Skip to content

improve(ui): align settings sidebar and row controls on one rhythm - #196129

Merged
roboclaw-bot merged 12 commits into
mainfrom
openclaw/ui-rhythm-settings
Nov 9, 2026
Merged

roboclaw-bot merged 12 commits into
mainfrom
openclaw/ui-rhythm-settings

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The Settings takeover mixed control heights, corner radii and left insets: the sidebar header stack stacked a 32px back row, a 40px agent picker, a 34px search field and 32px nav rows, with glyphs landing on 20/21/22px edges and radii split between 10px and 12.5px; the Agents toolbar put a 32px icon button beside 32.6px and 33px buttons with two radii; segmented controls and the emoji trigger in the identity row used radii that did not belong to the field family they sit in.

User Impact

User impact: Settings controls now read as one system. The sidebar's back row, title, agent picker, search field, section labels and nav rows share a 32px height, one radius and a single 22px content edge; the Agents header actions are one 32px row with one radius; segmented controls and the emoji picker match the fields beside them. No behavior changes.

Why This Change Was Made

Vincent's rhythm feedback asked for consistent vertical/horizontal alignment and one control shape per surface. The change only moves existing geometry onto the owners that already define it: --settings-control-height (32px) for every control in the sidebar header stack and the Agents toolbar (the toolbar joins the existing "one control height inside settings clusters" rule), and --field-radius (10px, 12.5px on corner-shape engines, like .btn) for the sidebar back row, search field, segmented tracks and the Agents toolbar's icon button via its documented --icon-button-radius context token. Nested controls take concentric radii (field radius minus their inset): segmented items (3px) and the emoji trigger (3px, now 26px inside the 32px field instead of overhanging it). Skeletons were updated to the same heights so loading never shifts.

Deliberately unchanged, with reasons:

  • The native macOS titlebar band keeps only the window controls and history chevrons; the "Back to app" row stays beneath it, like a macOS sidebar list under its toolbar. Its box already starts on the same 12px inset as the traffic lights, so nothing in the band and the row below disagrees.
  • The Settings scroll container keeps its scroll offset when navigating between settings pages via the sidebar (channels scrolled 300px → Appearance opens at 300px, header hidden). That is a shell-level route-change behavior shared by every route, not a settings stylesheet issue; reported separately rather than patched from settings.

Evidence

Measured on the mocked Control UI (pnpm dev:ui:mock), native-macOS chrome simulated by installNativeWebChrome, 1400×900, Chromium:

Control Before (h / radius / content x) After
Sidebar back row 32 / 10px / 21 32 / 12.5px / 22
Sidebar title — / — / 21 — / — / 22
Agent picker trigger 40 / 12.5px / 21 32 / 12.5px / 22
Search field 34 / 10px / icon 22, text 44 32 / 12.5px / icon 22, text 46 (= nav labels)
Section label — / — / 21 — / — / 22
Nav row 32 / 12.5px / 22 unchanged
Agents toolbar: refresh / New agent / more 32 / 10px · 32.6 / 12.5px · 33 / 12.5px 32 / 32 / 32, all 12.5px
Segmented track / item 32 / 10px / 7px 32 / 12.5px / 9.5px
Emoji trigger in identity field 32×32 / 6px (overhangs 32px field) 26×26 / 9.5px, 3px inset

Same results at 820px and in web (non-native) mode; the stack keeps 38px touch heights under pointer: coarse.

Tests:

  • New ui/src/styles/settings-rhythm.browser.test.ts (real CSS in Chromium): one height/radius/inset through the sidebar header stack, one height/radius in the Agents toolbar, concentric emoji trigger, and the Agents menu trigger at 390px. Red on the base ([32, 40, 34, 32], [32, 32.59, 33], 32 ≠ 26, phone menu [44, 44] ≠ [38, 38] on the first reviewed head), green with the fix.
  • corner-shape.browser.test.ts: .settings-segmented moves from the unscaled list to the --field-radius scale (10px → 12.5px with corner-shape), still circular.
  • Passing: form-controls.browser, sidebar-footer-layout.browser, settings-sidebar*.test, settings-ui.browser, agent-emoji-picker.browser, solid/hub-tabs.browser, e2e agent-select-layout, mobile-page-actions-header, native-desktop-titlebar; pnpm lint:ui:styles, pnpm tsgo:ui, oxfmt.
  • Control UI performance comparison (scripts/check-control-ui-performance-base.mts against the CI base): total CSS raw −29 B, gzip +29 B vs base, inside the 64 B variance the already-over-ceiling base allows; the first head's +167 B came from an agent-trigger height override that merely repeated the shared token and was removed.
  • ClawSweeper's phone cascade finding (removing the :root 38px override exposed a later 44px literal in agents.css) is fixed by deleting that literal so the token owns the size at every width; covered by the 390px test above and mobile-page-actions-header e2e.
  • Layout shift (PerformanceObserver, entering each settings route from /chat/main at 400/820/1280, native and web, mocked Gateway): no shift attributed to the changed sidebar or toolbar nodes; the only entries (content column on first settings entry at 820 web, channel rows arriving, titlebar history controls) are identical on the base.

Screenshots (synthetic mock data; before = base, after = this branch; magenta line marks the traffic-light centerline y=26). Full set in the attachment comment.

Sidebar header stack, 2× zoom, native dark:

Before After
Before: sidebar header stack After: sidebar header stack

Agents toolbar, 2× zoom:

Before After
Before: agents toolbar After: agents toolbar

Emoji trigger inside the identity field, 3× zoom:

Before After
Before: emoji trigger After: emoji trigger
Full page, native dark, /settings/agents (before / after)

Before: agents page
After: agents page

Thanks to @vincentkoc for the design direction.

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:45
Settings sidebar header stack (back row, agent picker, search, nav rows)
now shares one 32px control height, the field radius and a 22px content
edge; the Agents page toolbar and row controls (segmented, emoji picker)
share the 32px settings control height and the field radius family.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7e683927-a223-456e-9d72-1ccafa4e9148
@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

Copy link
Copy Markdown
Collaborator Author

Before/after screenshots (mocked Control UI, synthetic data, Chromium 1400×900, native-macOS chrome simulated; magenta line = traffic-light centerline y=26).

Settings sidebar header stack (2× zoom, dark)

Before After
Before: sidebar header stack After: sidebar header stack

Agents toolbar (2× zoom)

Before After
Before: agents toolbar After: agents toolbar

Emoji trigger inside the identity field (3× zoom)

Before After
Before: emoji trigger After: emoji trigger

Full page, native dark, /settings/agents

Before After
Before: agents page After: agents page

After, other states: light /settings/appearance (segmented controls, pickers) and native dark 820px /settings/agents.

After: appearance light
After: agents native 820

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 9, 2026 16:53
@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. labels Nov 9, 2026
roboclaw-bot and others added 2 commits November 9, 2026 17:05
The shared .agent-select__trigger already takes --settings-control-height,
which is 38px under coarse pointers, so the sidebar override and its
pointer: coarse block only repeated it. Keeps total CSS below the base.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 5055bca2-3cac-418f-88d4-3f725b11d85d
@clawsweeper clawsweeper Bot added 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 maintainer review before merge.

What this changes

This PR aligns Settings sidebar controls, Agents toolbar buttons, segmented controls, and the identity emoji picker using existing geometry tokens.

Example: Open Settings on a desktop with a fine pointer.

  • Before: The sidebar agent picker is 40px tall, search is 34px, and navigation rows are 32px.
  • After: These controls share a 32px height and aligned content edges.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, owner-directed visual work with inspectable application screenshots and no remaining actionable finding; broad exact-head CI is still pending.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI sidebar and Agents toolbar through the mocked development app in Chromium at 1400×900 with simulated native chrome, visibly showing the changed alignment; browser regressions support the geometry and revised phone cascade.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Settings presents nearby controls with visibly inconsistent heights, corners, and content alignment.
Reason: The collaborator-authored PR supplies owner direction and credits Vincent Koc's alignment feedback; the implementation stays within that visual scope.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed visual cleanup is useful, the earlier phone-menu finding is fixed, and no new actionable defect was found.

Priority: P3
Reviewed head: 0216c0bbcc2c15e5fbf6b187fe79c791830f89d1

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI styles combine shared control tokens with Settings and Agents presentation rules to turn existing component markup into responsive controls.

flowchart TD
  A[Shared geometry tokens] --> B[Shared control styles]
  A --> C[Settings sidebar styles]
  A --> D[Agents page styles]
  E[Existing component markup] --> F[Browser layout]
  B --> F
  C --> F
  D --> F
Loading

Technical review

Best possible solution:

Retain the focused geometry changes and the phone override removal, then land through the existing exact-head checks.

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

The base styles and inspected before screenshots establish the inconsistent geometry; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The change uses the existing height and radius owners, removes superseded overrides, and adds browser checks for distinct rendered failures without introducing another production abstraction.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Settings sidebar geometry changes intended behavior with a stated reason (9269a27: The Settings takeover introduced dedicated sidebar navigation; subsequent selection and stylesheet moves preserved its presentation.)
  • Segmented control radii changes intended behavior with a stated reason (01a6148: Shared segmented styling standardized height, selected surfaces, wrapping, and concentric corners; this PR explicitly aligns its radius with surrounding fields.)
  • Agents identity and toolbar keeps the original intent (improve(ui): organize Agents Overview as settings rows #191252: Agents Overview grouped identity fields and settings rows; the new trigger dimensions refine that retained layout without replacing its owner.)
  • Phone menu sizing keeps the original intent (e72184b: Page controls deliberately use the shared 38px phone height; removing both obsolete overrides preserves that result.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Reviewed introduction: The pinned introduced diff changes presentation and browser coverage, without adding production state, dependencies, APIs, or authorization behavior. (0216c0bbcc2c)
  • Earlier finding resolved: Compared with the previously reviewed head, the later 44px phone-menu override is deleted and a 390px browser case checks the shared 38px dimensions. (ui/src/styles/agents.css:33, 0216c0bbcc2c)
  • Inspected visual proof: The four prepared before/after screenshots visibly support the sidebar and Agents toolbar alignment changes in Chromium with synthetic data and simulated native chrome. Additional emoji images could not be downloaded because scratch writes failed; browser retrieval also returned Cache miss, which is a reviewer infrastructure limitation. (0216c0bbcc2c)
  • Existing responsive contract: The merged phone-control work establishes 38px page controls: improve(ui): keep one height per control at phone width #190768; the revised menu rule preserves that contract through the existing token. (ui/src/styles/settings-controls.css:284, e72184bb260d)
  • Current main comparison: Fetched main retains the prior geometry in the changed production stylesheets, so this PR still contributes distinct work. (c74d7a70ae12)
  • Policy and inspection limits: Applied the root, UI, and test AGENTS files and the simplification and test-value guidance; no maintainer-notes directory exists. Some extended history searches reached unavailable promisor objects, while the pinned diff, relevant blobs, attribution, and current-source comparison were readable. (AGENTS.md, 0216c0bbcc2c)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 01a6148 adds ui/src/styles/settings-controls.css:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 01a614821a3d; files: ui/src/styles/settings-controls.css)
  • Peter Steinberger: Raw commit 9269a27 adds ui/src/styles/layout.css:131 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9269a27f18c3; files: ui/src/styles/layout.css)

PR surface

Source +5, Tests +183. Total +188 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 4 44 39 +5
Tests 3 184 1 +183
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 228 40 +188

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: 🦐 gold shrimp: 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 visual consistency work with no demonstrated interruption to a user workflow.
  • 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:22:32.796Z sha 69e7e95 :: needs changes before merge. :: [P2] Remove the remaining 44px phone menu override

Reviewed November 9, 2026, 12:50 PM ET / 17:50 UTC (Revision 2).

roboclaw-bot and others added 2 commits November 9, 2026 17:42
With the desktop trigger rule reading --settings-control-height, the
phone-width 44px literal in agents.css became the winning rule once the
:root override left settings-controls.css. Delete it so the token owns
the size at every width, and cover the 390px cascade in the rhythm test.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 2cc61766-8979-4955-98f1-7eed2eeeeb36
@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: 🦐 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. 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
Shares one fixture document and geometry reader across the three cases,
and records the remaining 152-line growth in a test-lines allocation.

Co-authored-by: vincentkoc <[email protected]>
roboclaw-bot and others added 5 commits November 9, 2026 17:57
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: b4057034-cadb-43e5-b5fc-47d4bcd6d7bb
The module-level HTML string was named document, so the page.evaluate
reader typed the browser global as a string.

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

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 72d73232-f3a7-4375-b472-f1708e36cbe5
…ttings

# Conflicts:
#	test/vitest/vitest.ui-paths.mjs
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 135e61bf-9634-4959-abcc-c3ab6b34fedc
@roboclaw-bot
roboclaw-bot merged commit 527d291 into main Nov 9, 2026
81 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/ui-rhythm-settings branch November 9, 2026 19:49
@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
…penclaw#196129)

* improve(ui): align settings sidebar and row controls on one rhythm

Settings sidebar header stack (back row, agent picker, search, nav rows)
now shares one 32px control height, the field radius and a 22px content
edge; the Agents page toolbar and row controls (segmented, emoji picker)
share the 32px settings control height and the field radius family.

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

* improve(ui): align settings sidebar and row controls on one rhythm

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7e683927-a223-456e-9d72-1ccafa4e9148

* improve(ui): drop redundant settings agent trigger height overrides

The shared .agent-select__trigger already takes --settings-control-height,
which is 38px under coarse pointers, so the sidebar override and its
pointer: coarse block only repeated it. Keeps total CSS below the base.

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

* Publish openclaw/ui-rhythm-settings

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 5055bca2-3cac-418f-88d4-3f725b11d85d

* fix(ui): keep the Agents phone menu on the shared 38px control height

With the desktop trigger rule reading --settings-control-height, the
phone-width 44px literal in agents.css became the winning rule once the
:root override left settings-controls.css. Delete it so the token owns
the size at every width, and cover the 390px cascade in the rhythm test.

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

* Publish openclaw/ui-rhythm-settings

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 2cc61766-8979-4955-98f1-7eed2eeeeb36

* test(ui): tighten the settings rhythm suite and allocate its test lines

Shares one fixture document and geometry reader across the three cases,
and records the remaining 152-line growth in a test-lines allocation.

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

* Publish openclaw/ui-rhythm-settings

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: b4057034-cadb-43e5-b5fc-47d4bcd6d7bb

* test(ui): stop shadowing document in the settings rhythm fixture

The module-level HTML string was named document, so the page.evaluate
reader typed the browser global as a string.

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

* Publish openclaw/ui-rhythm-settings

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 72d73232-f3a7-4375-b472-f1708e36cbe5

* Publish openclaw/ui-rhythm-settings

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 135e61bf-9634-4959-abcc-c3ab6b34fedc

---------

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