Skip to content

improve(ui): give the shell top band one control size and radius - #196131

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/ui-rhythm-shell-topband
Nov 9, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/ui-rhythm-shell-topband

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The 52px shell top band (sidebar header, macOS history buttons, chat header) mixes control sizes and corner shapes in one row: the Sessions owner picker is 30px tall with 6px corners, Filter & sort / Collapse are 28px with 6px corners, the session title button is 32px with 6px corners, the session Actions trigger is 32px with 10px corners, and Details / Panels are 28px with 10px corners. The owner picker's avatar and label also do not line up with the session rows beneath them.

User Impact

User impact: every control in the desktop top band now shares one height (28px) and one corner radius (--radius-md), and the Sessions owner picker lines up with the rows below it (avatar on the row glyph column, label on the row text column). No behavior changes; mobile keeps its own header.

Why This Change Was Made

Vincent's design review asked for vertical/horizontal rhythm in the shell: consistent left-edge or centered alignment, and one control shape per surface. The band was already vertically centered on the traffic lights (y=26); this change makes the sizes, radii and the sidebar header's horizontal alignment consistent too. No new tokens or shared-component changes. The shipped CSS total already sits over its fixed ceiling on main, so the header rules use the 28px literal that --rail-header-action-size resolves to and the picker avatar is the 20px row lead itself; measured against the base build the change is −125 B raw / −9 B gzip of CSS.

In the native macOS shell the sidebar header keeps its window-control inset (92px). Aligning the picker to the content column there would put the avatar 5px after the zoom light, where it reads as a fourth traffic light and the hover pill touches it, so that offset is deliberate.

Details toggle: the header override that set its own calc(8px * scale) + corner-shape is removed; it now takes the base rule's --radius-md, the same shape as the icon buttons beside it. The session Actions menu trigger uses iconButtonClass({ size: 28 }), the size the Panels toggle already uses.

Evidence

Measured in the mocked Control UI at 1400×900 (/chat/main, dark). Every control in the band stays centered at y=26 (native) / y=22 (web).

Control Before After
Owner picker trigger 30h, 6px 28h, 10px
Filter & sort, Collapse 28h, 6px 28h, 10px
macOS Back/Forward 28h, 10px 28h, 10px
Session title button 32h, 6px 28h, 10px
Session Actions trigger 32h, 10px 28h, 10px
Details toggle 28h, 10px superellipse 28h, 10px (same as neighbors)
Panels toggle 28h, 10px 28h, 10px
Owner picker avatar / label x (web) avatar 73–91 (18px), label 96 vs rows: lead 72–92, text 100 avatar 72–92 (20px lead), label 100 = rows
Owner picker avatar / label x (native macOS) 97–115 / 120 (window-control inset) 96–116 / 124 (inset kept)

Before (native macOS shell, dark; fake traffic lights drawn at the AppKit positions)

Before: native dark sidebar header and chat header

After

After: native dark sidebar header and chat header

Before (web shell, dark — owner picker avatar/label vs the rows below)

Before: web dark sidebar header

After

After: web dark sidebar header

More states: header trailing controls, light theme, 820px

Before / after, native dark, trailing chat header controls:

Before: native dark trailing controls
After: native dark trailing controls

After, native light:

After: native light

After, web light:

After: web light

After, native dark at 820px:

After: native dark 820px

Tests (red on base, green with the fix):

  • ui/src/e2e/sidebar-rail-alignment.e2e.test.ts: header controls share 28px and --radius-md; the owner picker label starts on the row glyph column without an avatar and on the row text column with one, with the avatar centered on the glyph column. Base failure: .picker-select__trigger: expected 30 to be 28.
  • ui/src/e2e/chat-header-axis.e2e.test.ts: title button, Actions trigger and Details toggle share 28px and --radius-md. Base failure on .chat-pane__session-title-button.

Test-line budget: the two suites add 82 net lines, recorded in config/test-lines-allocations/196131-shell-topband-rhythm.txt (shared scalar unchanged).

Also run: native-desktop-titlebar, sidebar-users-filter, chat-header-connection, new-session-page.details-motion, native-session-sidebar, sidebar-pinned-agents-centering e2e; chat-pane-header (unit + browser), chat-header-session-menu, cursor-policy, app-sidebar-session-filter, chat-responsive browser tests; pnpm lint:ui:styles, pnpm tsgo:ui, oxfmt/oxlint on touched files. Layout-shift probe entering /chat/main from /sessions at 400/820/1280 (web and native): no shift attributed to shell chrome (the only non-trivial entry at web 820 comes from transcript rows arriving, unchanged by this PR).

Design feedback by @vincentkoc.

Work sessions

Linked for team reference; these sessions aren't public.

Worked on by

roboclaw-bot and others added 2 commits November 9, 2026 16:47
The sidebar header, macOS history buttons and chat header share the
52px titlebar row but mixed 28/30/32px controls and 6px/10px corners.
Every control in the row now uses the rail action size (28px) and
--radius-md: the Sessions owner picker, Filter & sort and Collapse
buttons, the session title button, the session Actions trigger and the
Details toggle (which drops its own radius/corner-shape and takes the
base rule's --radius-md like the icon buttons beside it).

The owner picker also mirrors the session row beneath it: its avatar
fills a 20px lead column centered on the row glyphs and its label starts
on the row text column (x=100 beside x=100 in the web shell). In the
native macOS shell the header keeps its window-control inset, so the
picker stays clear of the traffic lights.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 69b9e9d0-566a-40f8-9d0a-9dbe1ed7baca
@clawsweeper

clawsweeper Bot commented Nov 9, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 9, 2026 16:54
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR standardizes desktop shell header control sizes and radii and aligns the Sessions owner picker with session rows.

Example: Open /chat/main in the desktop web shell at 1400×900.

  • Before: The owner picker is 30px tall, the session title is 32px tall, and the picker label starts at x=96 while row labels start at x=100.
  • After: Both controls use a 28px height, and the picker label aligns with row labels at x=100.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, visually demonstrated polish using existing owners, with two attributable budget failures preventing readiness.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected native-shell and web-shell before/after screenshots exercise the rendered Control UI at 1400×900 with synthetic Gateway data and show the changed header and owner-picker alignment; fake traffic lights illustrate clearance rather than proving an AppKit run.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Adjacent shell header controls have visibly inconsistent dimensions and corners, and the owner picker does not align with session rows.
Reason: The maintainer-authored PR supplies direction, credits Vincent Koc's design feedback, and makes a focused improvement using existing presentation owners.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this PR delivers maintainer-directed visual polish, but two diff-caused budget failures need repair before merge.

Priority: P3
Reviewed head: 26958ae446a7b989278a2149acb9d7dc7de5d5ad

Before merge

  • [P2] Keep the emitted CSS within the existing growth gate (P2) - The exact-head performance job measures raw CSS growing from 1,684,921 to 1,685,212 bytes. Because the base already exceeds its fixed ceiling, the existing checker permits only 64 bytes of variance, so this PR's 291-byte growth fails the gate independently of inherited debt. Consolidate the added styling or remove redundant emitted declarations while preserving the alignment; do not raise the budget to admit this cosmetic change.
  • [P2] Account for the added regression test lines (P2) - The two extended E2E files add 90 lines without a test-line allocation, leaving this head at 6,602,413 lines against a 6,602,327 ceiling. The test-lines CI annotation confirms the failure, and the ratchet rejects positive growth above the ceiling. Consolidate the regression additions or add the narrowly justified allocation required by the testing guide, keeping the shared scalar unchanged.

Findings

  • [P2] [P2] Keep the emitted CSS within the existing growth gate — ui/src/styles/sidebar-rail.css:758-761
  • [P2] [P2] Account for the added regression test lines — ui/src/e2e/sidebar-rail-alignment.e2e.test.ts:48-54
Agent review details

How this fits together

Control UI header components combine session presentation data with shared CSS tokens to render sidebar and chat controls in web and native shells.

flowchart LR
  A[Session presentation data] --> B[Sidebar owner picker]
  A --> C[Chat header]
  D[Shared size and radius tokens] --> B
  D --> C
  B --> E[Rendered shell top band]
  C --> E
Loading

Technical review

Best possible solution:

Keep the existing token-based styling change while consolidating emitted CSS and satisfying the test-line budget without weakening either gate.

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

Current-main styles establish the mixed 28/30/32px geometry, and the supplied browser screenshots show the original alignment mismatch; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses existing CSS tokens and IconButton sizing, preserves the menu reservation, and adds no competing owner; its remaining repairs are the two concrete budget failures.

Full review comments:

  • [P2] [P2] Keep the emitted CSS within the existing growth gate — ui/src/styles/sidebar-rail.css:758-761
    The exact-head performance job measures raw CSS growing from 1,684,921 to 1,685,212 bytes. Because the base already exceeds its fixed ceiling, the existing checker permits only 64 bytes of variance, so this PR's 291-byte growth fails the gate independently of inherited debt. Consolidate the added styling or remove redundant emitted declarations while preserving the alignment; do not raise the budget to admit this cosmetic change.
    Confidence: 0.99
  • [P2] [P2] Account for the added regression test lines — ui/src/e2e/sidebar-rail-alignment.e2e.test.ts:48-54
    The two extended E2E files add 90 lines without a test-line allocation, leaving this head at 6,602,413 lines against a 6,602,327 ceiling. The test-lines CI annotation confirms the failure, and the ratchet rejects positive growth above the ceiling. Consolidate the regression additions or add the narrowly justified allocation required by the testing guide, keeping the shared scalar unchanged.
    Confidence: 0.99

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:test-lines-ratchet --base abf7150 --no-merge-base
  • pnpm ui:check-performance:base abf7150
  • pnpm test:ui:e2e ui/src/e2e/sidebar-rail-alignment.e2e.test.ts ui/src/e2e/chat-header-axis.e2e.test.ts
  • pnpm lint:ui:styles
  • pnpm tsgo:ui

What I checked:

PR surface

Source +12, Tests +90. Total +102 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 27 15 +12
Tests 2 90 0 +90
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 117 15 +102

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +27/-15; tests +90/-0 Production growth stays within existing styling owners; the tests extend existing browser scenarios to protect control geometry and avatar/no-avatar alignment.

Labels

Label changes:

  • add P3: This is visual consistency polish with no demonstrated broken core workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is visual consistency polish with no demonstrated broken core workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 November 9, 2026, 12:10 PM ET / 17:10 UTC.

roboclaw-bot and others added 2 commits November 9, 2026 17:15
The shipped CSS total already sits over its fixed ceiling on main, so
this change may not grow it. The owner picker's avatar is now the 20px
row lead itself (no extra leading rule), the header rules use the 28px
literal the rail action token resolves to, and the two owning e2e
suites' 82 net test lines are recorded in config/test-lines-allocations.
Measured against the base build: total CSS -125 B raw, -9 B gzip.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: a2a3ee0b-4002-4023-951f-61d451e88ef1
@roboclaw-bot
roboclaw-bot merged commit 965e7d9 into main Nov 9, 2026
142 of 144 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/ui-rhythm-shell-topband branch November 9, 2026 19:41
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

steipete added a commit that referenced this pull request Nov 10, 2026
Keep exact sidebar spacing and native header assertions aligned with the intentional shell top-band sizing from #196131.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…nclaw#196131)

* improve(ui): give the shell top band one control size and radius

The sidebar header, macOS history buttons and chat header share the
52px titlebar row but mixed 28/30/32px controls and 6px/10px corners.
Every control in the row now uses the rail action size (28px) and
--radius-md: the Sessions owner picker, Filter & sort and Collapse
buttons, the session title button, the session Actions trigger and the
Details toggle (which drops its own radius/corner-shape and takes the
base rule's --radius-md like the icon buttons beside it).

The owner picker also mirrors the session row beneath it: its avatar
fills a 20px lead column centered on the row glyphs and its label starts
on the row text column (x=100 beside x=100 in the web shell). In the
native macOS shell the header keeps its window-control inset, so the
picker stays clear of the traffic lights.

Co-authored-by: vincentkoc <[email protected]>

* improve(ui): give the shell top band one control size and radius

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 69b9e9d0-566a-40f8-9d0a-9dbe1ed7baca

* improve(ui): keep the top band CSS under its byte ceiling

The shipped CSS total already sits over its fixed ceiling on main, so
this change may not grow it. The owner picker's avatar is now the 20px
row lead itself (no extra leading rule), the header rules use the 28px
literal the rail action token resolves to, and the two owning e2e
suites' 82 net test lines are recorded in config/test-lines-allocations.
Measured against the base build: total CSS -125 B raw, -9 B gzip.

Co-authored-by: vincentkoc <[email protected]>

* Publish openclaw/ui-rhythm-shell-topband

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: a2a3ee0b-4002-4023-951f-61d451e88ef1

---------

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
Keep exact sidebar spacing and native header assertions aligned with the intentional shell top-band sizing from openclaw#196131.

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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