Skip to content

improve(ui): personal sidebar sections with a two-step editor - #186229

Merged
roboclaw-bot merged 26 commits into
mainfrom
openclaw/tidal-crayfish
Oct 28, 2026
Merged

roboclaw-bot merged 26 commits into
mainfrom
openclaw/tidal-crayfish

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  1. Name and source. Section name, then Choose sessions from: My sessions, Involving me, All sessions (including teammates'), or a project.
  2. Choose sessions. The chosen source is shown above the list; the list comes from the Gateway for that source, search covers every accessible session (not only loaded rows), and teammates' sessions show their owner. Selected sessions outside the source stay listed first under In this section (editing) or Added (created from a session).

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.

  • The session list uses a plain sessions.list request (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.
  • Enter in the search field filters; it never submits the editor.
  • The project picker is the shared select component; dialog styles reuse the shared dialog, field, chip and button classes.
  • Saving still only keeps sessions the editor resolved (loaded, fetched, or previously saved).
  • The native session menu is unchanged apart from the added entry's label and icon. Dialog styles stay in the lazily loaded dialog stylesheet.

Evidence

Actual Control UI, mocked Gateway with owners and projects, light theme, 1280×900.

Sidebar Step 1
Sidebar: Pinned first, sections with layers icon Step 1: name and Choose sessions from
Step 2: all sessions with teammate owners Edit: In this section, then My sessions
Entry points, project source, search, dark theme, from a session

Filter & sort with New section

Session menu: Add to section

Step 1 with a project chosen

Search on the Gateway

Edit in dark theme

From a teammate's session: Added

  • 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 sends search to 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. Suite personal-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:base vs a8d925e: startup JS +575 B gzip (within limit), chat boot requests unchanged (20), startup CSS unchanged. After merging current main (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.txt admits 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

roboclaw-bot and others added 4 commits October 27, 2026 07:23
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
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 27, 2026
@roboclaw-bot roboclaw-bot changed the title Publish openclaw/tidal-crayfish improve(ui): rename personal groups to sidebar sections Oct 27, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as draft October 27, 2026 19:12
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: Personal groups appears above Pinned, and the editor always displays its search field.
  • After: This week appears below Pinned with a layers icon, and its bounded editor reveals search on demand.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The product direction is useful, but visual evidence is currently unviewable and three concrete repairs remain.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: A permanent personal-groups heading adds clutter, while the editor grows with the loaded session list.
Reason: The collaborator-authored direction is established and records Vyctor's Sections design; the change preserves solo and guest use without introducing another persistence owner.

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
Reviewed head: 2a2fc3f0bd06898b4758cf25bda9b83f34e0507c

Before merge

  • Update selection ordering when moving Pinned above sections (P2) - The DOM now renders pins before sections, but sidebarVisibleRowsInOrder still returns [...personalGroupRows, ...pins, ...visibleRows]. Shift selection slices that array. With pinned Alpha/Bravo followed visually by section Charlie/Delta, Alt-clicking Alpha then Shift-clicking Charlie selects Charlie, Delta, and Alpha instead of Alpha, Bravo, and Charlie. Update the existing selection-order owner with the rendering change and cover a cross-boundary range.
  • Bind the search key handler through the supported event path (P2) - The new direct addEventListener call in this TSX file is explicitly forbidden by scripts/check-control-ui-controllers.mts and the applicable UI/Solid guidance, so the controller check rejects this head. Use the supported JSX or shared listener binding while retaining the two-stage Escape behavior; do not raise its baseline.
  • Keep the dialog styles within the enforced CSS ceilings (P2) - The PR's own production comparison reports 308,128 gzip bytes and 1,598,649 raw bytes of CSS, exceeding the unchanged fixed ceilings by 359 and 1,068 bytes. The added lazy dialog styles are identified as the growth source; lazy loading does not exempt total CSS. Consolidate or reduce the styling until the unchanged performance check passes rather than silently increasing its budgets.
  • Complete next step - Resolve GitHub's reported merge conflict while preserving main's lazy locale registration, then remove the draft hold when ready.

Findings

  • [P2] Update selection ordering when moving Pinned above sections — ui/src/components/app-sidebar-session-list-render.tsx:242-243
  • [P2] Bind the search key handler through the supported event path — ui/src/components/personal-session-group-dialog-view.tsx:179-182
  • [P2] Keep the dialog styles within the enforced CSS ceilings — ui/src/components/personal-session-group-dialog.css:8-20

Tests

  • Low-value test ui/src/components/app-sidebar.live-pins.test.ts: Remove the added unused/empty-section visibility test: the changed browser flow already covers absent sections, deliberate emptiness, and disappearance after last removal without a distinct boundary here.
  • Missing end-to-end proof: Accessible visual evidence and WebKit search/Escape coverage remain unavailable, and the supplied regressions do not exercise Shift selection across Pinned and sections.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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:

  • [P2] Update selection ordering when moving Pinned above sections — ui/src/components/app-sidebar-session-list-render.tsx:242-243
    The DOM now renders pins before sections, but sidebarVisibleRowsInOrder still returns [...personalGroupRows, ...pins, ...visibleRows]. Shift selection slices that array. With pinned Alpha/Bravo followed visually by section Charlie/Delta, Alt-clicking Alpha then Shift-clicking Charlie selects Charlie, Delta, and Alpha instead of Alpha, Bravo, and Charlie. Update the existing selection-order owner with the rendering change and cover a cross-boundary range.
    Confidence: 0.99
  • [P2] Bind the search key handler through the supported event path — ui/src/components/personal-session-group-dialog-view.tsx:179-182
    The new direct addEventListener call in this TSX file is explicitly forbidden by scripts/check-control-ui-controllers.mts and the applicable UI/Solid guidance, so the controller check rejects this head. Use the supported JSX or shared listener binding while retaining the two-stage Escape behavior; do not raise its baseline.
    Confidence: 1
  • [P2] Keep the dialog styles within the enforced CSS ceilings — ui/src/components/personal-session-group-dialog.css:8-20
    The PR's own production comparison reports 308,128 gzip bytes and 1,598,649 raw bytes of CSS, exceeding the unchanged fixed ceilings by 359 and 1,068 bytes. The added lazy dialog styles are identified as the growth source; lazy loading does not exempt total CSS. Consolidate or reduce the styling until the unchanged performance check passes rather than silently increasing its budgets.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 364c0d4ebcd4.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:control-ui-controllers
  • pnpm ui:check-performance:base
  • pnpm tsgo:ui
  • pnpm tsgo:test:ui
  • pnpm lint:ui:styles

What I checked:

Likely related people:

  • Shakker: Raw commit 51da49b adds ui/src/components/app-sidebar-personal-navigation.ts:217 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 51da49b1e4ac; files: ui/src/components/app-sidebar-personal-navigation.ts)
  • Peter Steinberger: Raw commit 58a6f9d adds ui/src/components/app-sidebar-personal-navigation.ts:170 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 58a6f9d5b964; files: ui/src/components/app-sidebar-personal-navigation.ts)

PR surface

Source +472, Tests +320, Docs +8. Total +800 across 20 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 15 767 295 +472
Tests 4 402 82 +320
Docs 1 18 10 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 1187 387 +800

Review metrics

Metric Value Why it matters
Reported total CSS overrun 359 B gzip; 1,068 B raw Both measurements exceed unchanged enforced ceilings; these are reported measurements, not a new review run.

Root-cause cluster

Relationship: canonical
Canonical: #186229
Summary: This PR carries the earlier discovery work forward with the Sections iteration.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P3: This is optional sidebar terminology and editor polish, with no urgent current-main outage established.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is optional sidebar terminology and editor polish, with no urgent current-main outage established.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 3:29 PM ET / 19:29 UTC.

roboclaw-bot and others added 2 commits October 27, 2026 19:33
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
roboclaw-bot and others added 4 commits October 28, 2026 11:35
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
@roboclaw-bot roboclaw-bot changed the title improve(ui): rename personal groups to sidebar sections improve(ui): personal sidebar sections with a two-step editor Oct 28, 2026
roboclaw-bot and others added 5 commits October 28, 2026 17:39
…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
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 28, 2026
roboclaw-bot and others added 4 commits October 28, 2026 19:02
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
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 28, 2026 19:12
roboclaw-bot and others added 7 commits October 28, 2026 19:33
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant