Skip to content

improve(ui): quieter sidebar top bar and catalogs on the list grid - #188145

Merged
vyctorbrzezowski merged 8 commits into
mainfrom
brzezowski/sidebar-catalog-toolbar
Oct 30, 2026
Merged

vyctorbrzezowski merged 8 commits into
mainfrom
brzezowski/sidebar-catalog-toolbar

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Builds on the merged #188141.

What Problem This Solves

The sidebar top bar gives the owner picker, sort and collapse controls equal weight. Session catalogs (Claude Code, Codex) also sit off the session list grid, repeat counts while expanded, and show a host subtitle that competes with the section label.

User Impact

User impact: the top bar reads as one quiet line, with only the filter name in strong text. Catalog projects and sessions line up with the rest of the sidebar, and counts appear only when a group is collapsed.

Why This Change Was Made

  • Top bar: the picker label is 13/550 in --text-strong, with a 12px muted chevron, and the picker is sized to its content. Toolbar icons are 14px with stroke 1.6, muted. The sort status is 12.5/450.
  • Catalog host: a muted 12/500 subtitle with a 13px icon.
  • Catalog projects: projects are 28px rows with a 12px chevron on the lead column and a 12.5/600 label. Their sessions stay on the list columns. The count and run spinner appear only when the group is collapsed and end on the trailing column.
  • Empty section hint: it sits directly under its heading, on the text column.

Evidence

Compared against the approved prototype by measuring computed styles element by element across all prototype states. Differences that remain on purpose:

  • A failed cloud badge stays red. The prototype's cascade muted it by accident.
  • Elapsed time on a tagged row keeps the readable muted tone, so it stays above AA contrast.
  • Rows are 32px with a 30px fill and no list gap, so the virtual window no longer adds 2px between rows.
  • Running and failed child toggles are muted, matching the prototype.

Current captures compare main after #188141 (a1d62cfc) with this PR (5aac352). Both use the actual Control UI with identical synthetic Gateway data, the same viewport and crop. The flow selects All owners, then collapses the active project.

Before After
Sidebar · dark
Sidebar · light

Measured in the running mock: project rows are 28px with the chevron centered on x=30 and the label at x=48. Project session titles start at x=48, with their state on the x=30 lead column.

Checks:

  • Unit tests touching the catalog, picker and collapse toggle: 32 files, 433 tests passed.
  • pnpm tsgo:ui, oxlint and stylelint on the touched files: clean.

Behavior to review: the host count is hidden, but a host load error stays visible.

Gaps: the captures cover the toolbar and catalog, including active collapsed projects; they do not cover every host subtitle or empty-section variation.

Landing verification

Long selected owner names now shrink and truncate inside the existing toolbar instead of pushing its controls outside. Collapsed project headers retain their active-run indicator; the shared activity projection uses live Gateway state for adopted sessions and the catalog's own running state otherwise. Existing visual values and error indicators remain intact.

The owner-overflow and collapsed-project regressions failed before repair and passed after it. All 80 catalog cases and 15 browser cases passed, including after updating onto main. UI production/test typechecks and independent review passed. The prior session-diff-panel failure also reproduces unchanged on the pre-PR base at the same assertion (-625 >= 40); its test and direct owners are unchanged by this layer, and its coverage was preserved.

Remaining CI failures

CI run 41041301137 is not green. The approved CSS-budget exception covers the measured growth (302.8 vs 302.6 KiB gzip; 1565.0 vs 1563.0 KiB raw); performance limits and the approved design remain unchanged.

The other failure is the WebKit video fixture in image-lightbox.browser.test.ts:298: native readyState stays at 0 before keyboard assertions. Its test, MP4 fixture, lightbox owners, base styles, browser configuration and dependencies are unchanged from a1d62cfc; the changed sidebar selectors do not apply to that fixture. The same test passed in the paired Linux WebKit job for #188144 and in this run’s Chromium job. Targeted local runs on base and candidate both loaded the video, then failed at the same later native-focus assertion on line 323. That later assertion is a separate failure, not a reproduction of the CI loading failure. The source comparison supports classifying the media-loading failure as unrelated to this sidebar change; its underlying cause remains unresolved. No media test or production behavior was weakened, and no CI rerun was used to obtain a pass.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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:bug Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR reduces sidebar toolbar emphasis and aligns catalog headings, projects, and sessions with the session-list grid.

Example: Expand the Codex catalog’s openclaw project containing two sessions.

  • Before: The expanded project displays a trailing count of 2.
  • After: The project count disappears and its session rows receive child-style indentation.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The design direction is approved, but concrete CSS regressions and off-target visual evidence prevent a merge-ready verdict.
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) 4 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Toolbar controls compete visually, and catalog hierarchy and counts make the sidebar harder to scan.
Reason: The maintainer-authored proposal supplies an owner decision for this focused visual refinement.

Merge readiness

⛔ Needs changes before merge - 5 items remain

Keep open: this maintainer-authored draft offers useful sidebar polish, but its CSS introduces text-scaling, overflow, and catalog-status regressions.

Priority: P2
Reviewed head: 7cbb7211c8e90cd981f76d6ae769878a7f88094f

Before merge

  • Preserve the saved text-size scale in the new font sizes (P2) - At Appearance text size 140%, the existing project label renders at 16.8px, but this override fixes it at 12.5px. The host label, catalog counts, and empty hint similarly replace scaled values with fixed pixels. Users who enlarged text lose that preference on these surfaces. Multiply the new sizes by --control-ui-text-scale or use the existing scaled tokens.
  • Allow the owner label to shrink within the toolbar (P2) - Selecting another owner with a long label, such as “Alexandria Montgomery Engineering”, gives the picker copy its intrinsic text width. Setting flex:none disables its shrink behavior, so the ellipsis label cannot fit within a narrow sidebar and overflows toward the chevron and trailing controls. Keep the copy shrinkable while allowing short labels to retain content-sized presentation.
  • Keep host error indicators visible when hiding counts (P2) - The renderer uses sidebar-session-catalog-host__count for both numeric counts and the alertTriangle shown when a host has an error. This unconditional display:none hides that warning too. For a disconnected node with cached sessions, NODE_OFFLINE is deliberately excluded from aggregate catalog errors, so the sidebar now presents its stale rows without the host’s visible offline warning. Exclude the --error variant from count suppression.
  • Retain an activity signal for sessions hidden inside projects (P2) - An expanded catalog can contain a collapsed project whose sessions include an active run. This selector hides the catalog’s aggregate spinner solely because the catalog is expanded, while the collapsed project renders no session rows or project-level spinner. All visible indication of that active run disappears. Keep the aggregate signal when running rows are hidden, or expose activity on their collapsed project header.
  • Explain or restore the original intent of Sidebar text scaling - 86fe45c: Sidebar metadata and project labels were made responsive to the saved appearance text-size preference.

Findings

  • [P2] Preserve the saved text-size scale in the new font sizes — ui/src/styles/layout.css:4121-4124
  • [P2] Allow the owner label to shrink within the toolbar — ui/src/styles/layout.css:4016-4020
  • [P2] Keep host error indicators visible when hiding counts — ui/src/styles/layout.css:4150-4152

Provenance

  • Sidebar text scaling changes intended behavior without addressing why it exists (86fe45c: Sidebar metadata and project labels were made responsive to the saved appearance text-size preference.)

Tests

  • Missing end-to-end proof: Provide sanitized before/after Control UI captures of this PR’s toolbar and catalogs, including enlarged text, a long owner label, an offline host, and a collapsed project containing an active session.
Agent review details

How this fits together

The Control UI sidebar renders owner filters and Gateway-provided session catalogs; shared styles control their layout and visible status indicators.

flowchart TD
  A[Gateway session catalogs] --> B[Sidebar catalog renderer]
  C[Owner filter selection] --> D[Shared picker]
  B --> E[Sidebar markup]
  D --> E
  F[Layout and sidebar styles] --> E
  E --> G[Visible sidebar]
Loading

Technical review

Best possible solution:

Apply the visual changes through the existing style owners while preserving text scaling, label truncation, host warnings, and activity signals for hidden sessions.

Do we have a high-confidence way to reproduce the issue?

The introduced regressions follow from the CSS selectors and production markup; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The approved design fits the existing sidebar, but the implementation must preserve its established accessibility and status contracts.

Full review comments:

  • [P2] Preserve the saved text-size scale in the new font sizes — ui/src/styles/layout.css:4121-4124
    At Appearance text size 140%, the existing project label renders at 16.8px, but this override fixes it at 12.5px. The host label, catalog counts, and empty hint similarly replace scaled values with fixed pixels. Users who enlarged text lose that preference on these surfaces. Multiply the new sizes by --control-ui-text-scale or use the existing scaled tokens.
    Confidence: 0.99
  • [P2] Allow the owner label to shrink within the toolbar — ui/src/styles/layout.css:4016-4020
    Selecting another owner with a long label, such as “Alexandria Montgomery Engineering”, gives the picker copy its intrinsic text width. Setting flex:none disables its shrink behavior, so the ellipsis label cannot fit within a narrow sidebar and overflows toward the chevron and trailing controls. Keep the copy shrinkable while allowing short labels to retain content-sized presentation.
    Confidence: 0.93
  • [P2] Keep host error indicators visible when hiding counts — ui/src/styles/layout.css:4150-4152
    The renderer uses sidebar-session-catalog-host__count for both numeric counts and the alertTriangle shown when a host has an error. This unconditional display:none hides that warning too. For a disconnected node with cached sessions, NODE_OFFLINE is deliberately excluded from aggregate catalog errors, so the sidebar now presents its stale rows without the host’s visible offline warning. Exclude the --error variant from count suppression.
    Confidence: 0.99
  • [P2] Retain an activity signal for sessions hidden inside projects — ui/src/styles/layout.css:4154-4155
    An expanded catalog can contain a collapsed project whose sessions include an active run. This selector hides the catalog’s aggregate spinner solely because the catalog is expanded, while the collapsed project renders no session rows or project-level spinner. All visible indication of that active run disappears. Keep the aggregate signal when running rows are hidden, or expose activity on their collapsed project header.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 65aa7f41642c.

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Introduced change: The pinned introduction diff adds a CSS override block; it changes picker sizing, typography, catalog indentation, and status visibility. (ui/src/styles/layout.css:3962, 7cbb7211c8e9)
  • Draft and approved direction: The maintainer-authored PR remains a draft, explicitly records unfinished work, and targets the branch of improve(ui): calmer, tighter sidebar session rows #188141. (7cbb7211c8e9)
  • Prepared screenshots cover the parent: All four downloaded images were inspected. Their URLs match the parent PR’s session-row screenshots; they show expanded project counts and do not demonstrate this PR’s changed toolbar or catalog behavior. (c03af2ffad14)
  • Existing text-size contract: fix(control-ui): scale sidebar text with appearance setting #121087 deliberately made sidebar metadata and catalog labels follow the appearance text-size setting; current-main labels still multiply their font sizes by --control-ui-text-scale. (ui/src/styles/layout.css:1606, 65aa7f41642c)
  • Status indicators share the hidden elements: The host count span also renders host errors; NODE_OFFLINE is deliberately excluded from aggregate catalog errors. Project rows disappear when collapsed, while their active-run signal currently lives on the catalog header. (ui/src/components/app-sidebar-session-catalog-render.tsx:384, 7cbb7211c8e9)
  • Policy and history inspection: Root and UI policies were read in full; no deeper ancestor AGENTS.md or maintainer-notes directory exists. History was inspected across the catalog renderer’s .ts and .tsx names. Some deeper searches encountered unavailable historical blobs, including sidebar-rail.css blob d6ec759c56de7a823e1616a8febbe3e5c599b158; accessible history and current source support the findings. (ui/AGENTS.md, 7cbb7211c8e9)

PR surface

Source +213. Total +213 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 213 0 +213
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 213 0 +213

Labels

Label changes:

  • add P2: The introduced regressions affect sidebar readability and status discoverability without breaking the core session workflow.
  • 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:

  • P2: The introduced regressions affect sidebar readability and status discoverability without breaking the core session workflow.
  • 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 30, 2026, 2:42 AM ET / 06:42 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 30, 2026 08:56
Base automatically changed from brzezowski/sidebar-session-row-rhythm to main October 30, 2026 10:26
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/sidebar-catalog-toolbar branch from 379183b to 5aac352 Compare October 30, 2026 10:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Updated visual evidence: main after #188141 (a1d62cfc) versus this PR (5aac352). Actual Control UI with the same synthetic Gateway data: select All owners, then collapse the active project. The captures use the same viewport and crop.

Theme Before After
Dark
Light

@vyctorbrzezowski
vyctorbrzezowski merged commit c04c6ae into main Oct 30, 2026
100 of 104 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sidebar-catalog-toolbar branch October 30, 2026 11:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…penclaw#188145)

Align catalog sessions with the sidebar list and simplify the top bar without changing the approved design. Preserve collapsed project activity and keep long owner labels within the toolbar.

Reviewed and validated on 5aac352; scoped tests and before/after UI evidence are recorded in the PR. CI is not green: the CSS budget exception was explicitly authorized, and the independent WebKit media-fixture failure was investigated and source-attributed outside this change. Its cause remains unresolved; no test or budget was weakened.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M 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