Repository navigation
improve(ui): personal sidebar sections with a two-step editor - #186229
Conversation
Hide the unused collection section and add discovery through native sidebar and session menus. Preserve shared grouping, browser-local guest preferences, and descriptor-backed session scopes. Co-authored-by: shakkernerd <[email protected]>
Worked on by: - @shakkernerd Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 75583268-3e14-4386-b415-7172376ce3df
Show Pinned first and drop the collections heading; a layers icon marks personal sections, whose sessions follow the sidebar Sort by. The editor is a single step with a decorated header and chip, search behind an icon, and a fixed-height session list. All entry points list the same loaded sessions. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @shakkernerd - @vyctorbrzezowski Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9ef5ff0b-2b9b-4f0f-a298-7935f717ba63
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR renames personal groups to Sections, adds menu-based creation, moves Pinned first, and redesigns the section editor. Example: A user organizes Roadmap review and Release checklist into This week.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this maintainer-authored PR open, but request changes for incorrect cross-section range selection, a forbidden TSX listener, and the reported CSS-budget failure. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI resolves accessible session rows through the session owner, stores section references through existing navigation preferences, and renders them in the sidebar and editor. flowchart TD
A[Sidebar and session menus] --> B[Section actions]
B --> C[Session capability]
B --> D[Section editor]
D --> E[Navigation preferences]
E --> F[Browser storage and profile sync]
E --> G[Sidebar sections]
C --> G
Technical reviewBest possible solution: Keep the existing preference and session owners, align selection with rendered order, use supported event binding, and fit the editor within unchanged asset budgets. Do we have a high-confidence way to reproduce the issue? Source establishes the range-selection mismatch and forbidden listener; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? Reusing the existing section editor, navigation preferences, and session capability is appropriate, but the rendered-order cutover must include selection and preserve enforced UI constraints. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 364c0d4ebcd4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +472, Tests +320, Docs +8. Total +800 across 20 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 3:29 PM ET / 19:29 UTC. |
Move the dialog chip to the header's trailing edge and use the muted chip style, drop accent from the illustration and list frame, reveal section menus on header hover like shared groups, and tighten the section icon gap. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @shakkernerd - @vyctorbrzezowski Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fec23a10-f411-4262-a0ac-d29ca5f5ea1f
Replace the section editor's decoration and tint with a plain header: the title, a muted "Personal" chip, and one line explaining that adding a session won't move it out of its group. Restore the session list border. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @shakkernerd - @vyctorbrzezowski Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 6e686161-414f-4216-9dec-170d2c671f66
Split the section editor into two steps. Step 1 names the section and picks where its sessions come from: my sessions, involving me, all sessions, or one project. Step 2 lists those sessions from a scoped sessions.list query, shows teammates' owners, searches on the Gateway instead of only loaded rows, and keeps selected sessions outside the scope listed first. Editing opens on the session list with a Change link back to the name and source. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: fb8ef5c8-12af-4711-a566-325e0b945b87
…tact Enter in the section editor's search field no longer submits and saves the section. Candidate queries use a plain sessions.list request with the command palette's session scope, so per-keystroke searches stop evicting the sidebar's conditional row cache and automation, system and subagent sessions stay out. The project catalog is only awaited on the first editor open. Polish the approved design: one-line description, placeholder without "e.g.", no step-2 Change link (Back remains), the shared Picker for projects, and dialog styles that reuse shared dialog, field, chip and button classes. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Move SESSION_SEARCH_SCOPE to session-requests so the section editor and the command palette share one scope without pulling the palette module into the chat boot graph (which had added a boot JS request). Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 68ed9694-1bd5-43bd-8429-be4d492ba35f
Raise the fixed total-CSS ceilings by the measured +369 B gzip / +1,177 B raw of the lazily loaded section editor styles, approved by Vyctor Brzezowski. The 64 B build-variance allowance is unchanged. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 3c84a750-6010-427b-853e-67282a1bfdbe
Resolve conflicts with the split session-organization catalog: Sections copy moves into the shared catalog (plus Add to section and its toast, used by the eager session menu and sidebar), the editor registers the full catalog it loads lazily, and the total-CSS ceilings keep main's new values plus the approved Sections delta. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Format the shared Sections catalog and wait for the edit dialog's opening transition before measuring list height, so the fixed-height check does not read a scaled frame. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: e87cd996-ba80-41fb-a242-bd1939fb8326
Move the editor's candidate and scope types to the personal-groups owner so the actions and dialog modules no longer import each other. Use the shared nativeListener ref for the search field's keyboard handling, and start session queries from the step transition instead of an effect, so the dialog adds no addEventListener, createEffect, untrack or onCleanup uses. Update the optional-English test for the Sections copy. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
The sidebar's virtual list can mount one more row on its second layout pass. Without the old personal-groups heading the fixture hit that edge, so the first publication appeared to mount a row. Wait for a stable row count before counting publication work; the assertions themselves are unchanged. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 4d4184b8-50da-4630-a3a5-aa581285ade7
Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Raise the test-line ceiling by the exact 502 net lines this PR adds, measured against current main, with no extra allowance. Co-authored-by: shakkernerd <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski - @shakkernerd Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 65fd6cb8-4f52-4348-bcfc-275a76ba939b
Supersedes #185632 (same branch history plus later iterations). Related: #181680, #185348
What Problem This Solves
Personal session groups looked like shared groups, sat above Pinned under a permanent heading, and their editor only listed sessions already loaded in the sidebar, without saying whose they were.
User Impact
Personal groups are now Sections. Pinned stays at the top; sections follow it among the sidebar groups, marked by a stacked-layers icon instead of a heading, with their menu on header hover. Sessions inside a section follow the sidebar's Sort by.
Create a section from Filter & sort → New section or a session's Add to section menu. The editor has two steps and keeps one height:
The header shows Only you next to the title and "Adding a session doesn't move it from its group." Editing opens on step 2; Back returns to the name and source. Sections grant no access, shared groups and Move to group are unchanged, guests keep browser-local sections, and the stored preference key is unchanged.
Why This Change Was Made
Product direction (Vyctor): Sections naming, Pinned first, an icon instead of a heading, a source chosen once on step 1, owner context in the list, and a conservative, bounded dialog.
sessions.listrequest (kept out of the sidebar's conditional row cache) with the command palette's session scope and the existing filters (ownerId,involvingMe,projectId,search); no Gateway API, permission or storage change. Projects come from the existing project catalog and the option is hidden when none are available; owner-relative sources are hidden without a signed-in profile.Evidence
Actual Control UI, mocked Gateway with owners and projects, light theme, 1280×900.
Entry points, project source, search, dark theme, from a session
Browser regression (production bundle): Pinned precedes sections; no section heading; section icon; Sort-by order; step 1 sources, project picker and disabled Choose sessions without a name; All sessions queries without owner filters and My sessions queries
ownerId; teammate owner shown; constant dialog height across steps; edit opens on step 2 with In this section; search sendssearchto the Gateway, Enter does not save, keeps list height, Escape clears then closes; creating from a teammate's session lists it under Added and saves. Suitepersonal-session-groups.e2e.test.ts: 8/8 passed.Real-Gateway guest flow (two guest clients, session-only permissions, My sessions source): passed.
77 focused unit tests passed;
tsgo:ui,tsgo:test:ui, focused oxlint, stylelint,ui:i18n:baseline/verify, format passed.Independent AutoReview (P0–P2): no actionable findings on the full candidate and on the follow-up delta.
ui:check-performance:basevsa8d925e: startup JS +575 B gzip (within limit), chat boot requests unchanged (20), startup CSS unchanged. After merging currentmain(4757ac8): the lazily loaded section dialog styles bring total CSS to 308,462 B gzip (+406 B over main's measured total; raw stays under main's ceiling). Vyctor approved the increase; the total-CSS gzip ceiling is set to that measurement plus the existing 64 B build variance. Chat boot requests unchanged (19).Test-line ratchet: this PR adds exactly 502 net test lines (new two-step editor E2E coverage, guest flow, session-menu entry).
config/test-lines-baseline.txtadmits the measured 6,311,304 total against current main with no extra allowance.Gaps: Chromium only (WebKit not run); the session list shows the 100 most recent matches per source, with a note to search for others; no deployed Gateway change.
Worked on by
Work sessions