Skip to content

improve(ui): align sidebar rail pitch and panel row insets - #196135

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-rhythm-sidebar-rail
Nov 9, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-rhythm-sidebar-rail

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The Control UI sidebar rail and panel lack one rhythm: the New session button is a 30px control between 36px neighbors with an 11px gap above it and a divider plus 20px gap below, and the panel lists paint their fills and align their icons and titles differently depending on which view (Sessions, Pages, Users, agent roster) is showing.

User Impact

User impact: the rail reads as one column of equal controls with an even 8px pitch, and every sidebar view (Sessions rows and section headers, Pages links, pinned rows, Users rows, agent roster headers, empty/loading/"Show more"/pagination states) shares one fill edge, one lead column and one text column. No functional change.

Why This Change Was Made

Part of the Control UI rhythm pass requested by @vincentkoc ("there should be vertical/horizontal rhythm… the left side panel should have padding and either left icons aligned or centered"). Measured on the mocked Control UI at 1400×900 in native-macOS mode:

Surface Before After
Rail control box agent card 36, New session 30, views/search 36 36 everywhere (38 on coarse pointers)
Rail gaps (agent card → Search) 11 / 20 (divider) / 8 / 8 / 8 8 / 8 / 8 / 8 / 8 (44px pitch)
Sessions fill edge / lead / text x = 62 / 72 / 100 60 / 72 / 100
Pages fill / lead / text 60 / 69 / 97 60 / 72 / 100
Pinned rows in Pages (glyph / text) 71 (16px) / 97 72 (20px) / 100
Users fill / avatar / text 60 / 72 / 100 60 / 72 / 100
Agent roster header fill 62–299 60–301
Hints: list-level / group / startup / Users loading 98 / 100 / 104 / 96 100 / 100 / 100 / 100
Pagination / "Show more" text 98 / 101 100 / 100

The rail drops the separate --sidebar-rail-action-size and the desktop divider under New session; the accent fill is what distinguishes it. The panel replaces the desktop-only margin-inline: -6px override on the session list with a desktop --sidebar-inset: 10px, so fills run flush with the panel content box while the existing --sidebar-text-offset consumers keep the lead/text columns where they were. Pages links, pinned rows, Users rows, the roster header and the hints now derive their inset from the same tokens instead of literal 8/11/12px values.

Deliberate decisions and accepted edges:

  • The desktop rail divider under New session is removed to get a single pitch; the mobile drawer keeps its block divider and 40px step (its New session grows from 30 to 36px like its siblings).
  • .sidebar-sessions--removal-drop (drag-to-remove highlight) no longer has a 2px frame around rows; rows now sit flush with the highlight edge.
  • Unchanged, out of scope: the panel header/toolbar row, the catalog project pagination indent (--catalog), and the child-load error row's +3px.

Evidence

  • ui/src/e2e/sidebar-rail-alignment.e2e.test.ts gains "keeps one rail control size and pitch, and one row inset across panel views" (touch and non-touch): red on the base (sidebar-new-session 30px vs 36px; 17px gap vs 8px), green with the fix.
  • Related suites green locally: 20 sidebar/rail/native-titlebar/mobile e2e files (incl. sidebar-selection-overflow, sidebar-session-stability, sidebar-agent-first, sidebar-pinned-agents*, native-desktop-titlebar, mobile-sidebar-session-menu), sidebar-attention-layout and sidebar-region browser tests, pnpm lint:ui:styles, oxlint, oxfmt, tsgo for the ui-e2e lane.
  • Layout shift (mocked Control UI, /new → /chat at 400/820/1280): CLS 0.0000 before and after.
  • RTL (ClawSweeper finding on the first revision): the Users and pinned-row lead insets now use padding-inline, so with dir="rtl" the fill, avatar and title sit at 0 / 12 / 40px from the panel's right edge, matching LTR and main's mirrored Users layout.
  • Screenshots: mocked Control UI with synthetic data, 2× crops of the rail + panel (0–320 × 0–420). Native-macOS mode simulates the 52px titlebar and traffic lights.
Before After
Native · dark · Sessions before sessions after sessions
Native · dark · Pages before pages after pages
Web · light · Sessions before web light after web light
More states: Users, agent roster, 820px, RTL, full frame
Before After
Native · dark · Users before users after users
Native · dark · agent roster before roster after roster
Native · dark · 820px before 820 after 820
RTL · dark · Users (right panel edge) before rtl users after rtl users

After, full frame (native · dark · 1400×900):

after full frame

Design feedback and direction: @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:50
The rail's New session button was a 30px control between 36px neighbors,
with an 11px gap above it, a divider and a 20px gap below, before the
views settled into their 8px pitch. In the panel, Sessions rows and
section headers painted their fills 2px inside the content box while
Pages and Users rows ran flush, and Pages used its own lead/text columns
(69/97) next to the Sessions and Users columns (72/100). Empty, loading,
pagination and "Show more" states each sat at a slightly different x.

Give every rail control one box (36px, 38px on coarse pointers) and one
8px pitch from the agent card down to Search; New session keeps only its
accent fill. Make the desktop sidebar inset 10px so every view's fill
starts at the panel content edge with the lead column 12px and the text
column 40px inside it, and express the Pages links, pinned rows, Users
rows, roster headers and hints through the same tokens.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 75ad2e3a-cd21-45ac-80ae-e607f1c8ba56
@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.

@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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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 maintainer review before merge.

What this changes

Unify sidebar rail control sizes and spacing, and align panel fills, icons, titles, and hints through existing sidebar tokens.

Example: Desktop Control UI at 1400×900

  • Before: New session is 30px between 36px controls; Pages titles start at x=97 while Sessions titles start at x=100.
  • After: Rail controls share 36px boxes and 8px gaps; Pages and Sessions titles start at x=100.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct visual evidence supports a small, coherent presentation change; the earlier RTL defect is resolved and the consolidated regression protects distinct rendered geometry.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots show the changed production sidebar CSS in Sessions and Pages with synthetic Gateway data and simulated macOS chrome, visibly demonstrating equal control sizing, even rail spacing, and aligned panel columns.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Uneven rail spacing and differing panel columns make adjacent sidebar controls and views visually inconsistent.
Reason: The maintainer-authored PR establishes direction for this presentation refinement, and the implementation stays within that scope.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, maintainer-directed visual improvement with no remaining actionable findings; the prior RTL padding defect is fixed.

Priority: P3
Reviewed head: e0b4a2ecd56d6e41d3f5f60b052f75a33d813648

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI sidebar renders navigation, sessions, people, and agent rosters; shared CSS converts those rendered views into aligned rail controls and panel rows.

flowchart LR
  A[Navigation and session state] --> B[Sidebar components]
  B --> C[Rail controls]
  B --> D[Panel views]
  E[Shared sidebar CSS tokens] --> C
  E --> D
Loading

Technical review

Best possible solution:

Land the focused shared-CSS change with its consolidated browser geometry regression.

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

The base CSS defines the separate 30px New session control and differing panel insets, matching the inspected before screenshots; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses existing layout tokens and control rules, removes the competing action-size override, and extends the existing browser scenario without adding production machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 81ab38df631c.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction and current main: Reviewed the merge-base-to-head diff and original CSS/test blobs. The affected production and test files are unchanged between the merge base and fetched main, so the proposed geometry remains distinct work. (ui/src/styles/sidebar-rail.css:216, e0b4a2ecd56d)
  • Prior finding resolved: The earlier Users-row RTL finding is fixed: Users and pinned rows now use padding-inline rather than physical left padding. (ui/src/styles/layout.css:2229, e0b4a2ecd56d)
  • Inspected visual proof: Directly inspected the four prepared before/after Sessions and Pages screenshots. They show the larger New session control, removed desktop divider, even rail spacing, and aligned Pages titles in the rendered Control UI with synthetic Gateway data. (e0b4a2ecd56d)
  • Existing layout intent: The shared-grid contract originated in fix(ui): align the sidebar to a shared grid and dedupe owner presence #123938; fix(ui): remove uneven sidebar gaps without scrollbars #154523 established symmetric gutters and scrollbar clearance. This PR preserves shared columns and the existing scroller while deliberately changing fill edges. (ui/src/styles/layout.css:797, 295f2c0212fd)
  • Accepted presentation changes: The maintainer-authored body explicitly accepts removal of the desktop divider and the drag-removal highlight frame, while retaining mobile block separation and documenting excluded header/catalog details. (ui/src/styles/sidebar-rail.css:216, e0b4a2ecd56d)
  • Exact-head validation: Current-head check runs include successful UI shards, UI E2E, lint, performance, baseline ratchets, and security-fast checks; the separate openclaw/ci-gate commit status remains pending. (e0b4a2ecd56d)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit d9a9cae adds ui/src/styles/sidebar-rail.css:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d9a9caeee4b3; files: ui/src/styles/sidebar-rail.css)
  • Peter Steinberger: Raw commit dc92446 adds ui/src/styles/layout.css:1098 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dc9244687280; files: ui/src/styles/layout.css)
  • RoboClaw: Raw commit fd01817 adds ui/src/styles/sidebar-rail.css:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd018170c943; files: ui/src/styles/sidebar-rail.css)

PR surface

Source +1, Tests +54, Other +2. Total +57 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 38 37 +1
Tests 1 56 2 +54
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 5 96 39 +57

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.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is low-risk visual polish to sidebar spacing and alignment without a functional or persisted-state change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-09T17:11:40.950Z sha ad9b823 :: needs changes before merge. :: [P3] Preserve the Users row inset with logical padding

Reviewed November 9, 2026, 1:27 PM ET / 18:27 UTC (Revision 2).

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 9, 2026 17:13
roboclaw-bot and others added 4 commits November 9, 2026 17:21
The Users row and pinned Pages rows expressed their new token-based lead
inset with physical padding, so Arabic and Persian layouts moved the
avatar and title 4px toward the trailing edge. Use padding-inline so the
inset mirrors with the reading direction, as the existing Users layout did.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: c6bd2d2d-77e8-4542-ba78-daf640c89c1e
The rail pitch and cross-view column assertions reused the alignment
test's fixture, so measure them in that test instead of a second page
load. Record the remaining net test-line growth in a tracked allocation
for the checks-fast-baseline-ratchets gate.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: d2afbd30-2e15-45d1-9720-5f79de98d3b4
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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
@roboclaw-bot
roboclaw-bot merged commit e23c587 into main Nov 9, 2026
67 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/ui-rhythm-sidebar-rail branch November 9, 2026 19:16
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…196135)

* improve(ui): align sidebar rail pitch and panel row insets

The rail's New session button was a 30px control between 36px neighbors,
with an 11px gap above it, a divider and a 20px gap below, before the
views settled into their 8px pitch. In the panel, Sessions rows and
section headers painted their fills 2px inside the content box while
Pages and Users rows ran flush, and Pages used its own lead/text columns
(69/97) next to the Sessions and Users columns (72/100). Empty, loading,
pagination and "Show more" states each sat at a slightly different x.

Give every rail control one box (36px, 38px on coarse pointers) and one
8px pitch from the agent card down to Search; New session keeps only its
accent fill. Make the desktop sidebar inset 10px so every view's fill
starts at the panel content edge with the lead column 12px and the text
column 40px inside it, and express the Pages links, pinned rows, Users
rows, roster headers and hints through the same tokens.

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

* improve(ui): align sidebar rail pitch and panel row insets

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 75ad2e3a-cd21-45ac-80ae-e607f1c8ba56

* fix(ui): keep sidebar row lead inset logical in RTL

The Users row and pinned Pages rows expressed their new token-based lead
inset with physical padding, so Arabic and Persian layouts moved the
avatar and title 4px toward the trailing edge. Use padding-inline so the
inset mirrors with the reading direction, as the existing Users layout did.

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

* Publish openclaw/ui-rhythm-sidebar-rail

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: c6bd2d2d-77e8-4542-ba78-daf640c89c1e

* test(ui): fold sidebar rhythm geometry into the rail alignment test

The rail pitch and cross-view column assertions reused the alignment
test's fixture, so measure them in that test instead of a second page
load. Record the remaining net test-line growth in a tracked allocation
for the checks-fast-baseline-ratchets gate.

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

* Publish openclaw/ui-rhythm-sidebar-rail

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: d2afbd30-2e15-45d1-9720-5f79de98d3b4

---------

Co-authored-by: vincentkoc <[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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant