Skip to content

improve(ui): standardize menus, selects, and pickers - #188283

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/control-ui-menus
Oct 31, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/control-ui-menus

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Menus, selects and pickers across the Control UI had drifted apart. Panels used different radii, borders and shadows, row padding and icon sizes varied by caller, shortcuts sat away from the row edge, selected options used tinted outlines, and hover, focus, selected and open-submenu states were hard to tell apart. Many callers restated the same surface styling.

Why This Change Was Made

Each family now has one owner:

  • Action menus: the shared oc-menu styles own the surface, row geometry, icon, check and chevron slots, shortcut badges in one aligned column, 9 px dividers, one neutral state for hover, focus and open submenu parents, and 150/100 ms motion. Flyouts line their first row up with the parent row.
  • Select family: the select picker, multi-select combobox and, where the engine supports appearance: base-select, native selects share one surface, 32 px rows, weight and check for selection, and 300/200 ms motion. Keyboard navigation keeps its visible outline.
  • Callers: duplicate panel overrides and per-menu dividers are removed in favor of tokens.
  • Themes: menu corners derive from the --radius-* chain and the corner scale. CRT pins its near-square steps and shortcut badges follow --radius-sm, so they stay square there.

Options, selectors, permissions, copy and keyboard behavior are unchanged. Composer footer controls keep their layout; only their popups change. Reduced motion, reduced transparency and forced colors keep legible fallbacks.

User Impact

Menus and pickers look and behave the same across the app in light and dark themes, long labels truncate instead of stretching the panel, and selection, focus and hover are easier to tell apart.

Evidence

Captured from the real UI flow on the mock Control UI with synthetic data. Before is the base commit of this branch.

Validation after integrating current main: 148 targeted Chromium tests across nine menu, picker, native-control and accessibility files passed. Review caught a native-select reduced-motion override losing the CSS cascade; matching its selector specificity fixes it, with failing-before/passing-after coverage added to an existing case. All 18 form-control tests then passed. Scoped lint, formatting and independent review passed. Duplicate unsupported-select fallback coverage was removed; the existing forced-colors suite retains it.

Current-head CI run 41218128622 completed with only baseline E2E failures: workspace attachments/mobile workspace visibility and the mobile rail test expecting 52 px rather than 49 px. The same failures occur on main in run 41214796881, job 124577191304, with identical owning source and test blobs. All other selected checks passed.

Known gaps: mobile-chat-session-menu timed out once in the previous run of the same e2e set and passed on this head, so it is still worth watching in CI. Full suites, WebKit and CI were not run. Focus stays visible on the first row of a menu opened by click. Native selects use the new surface only where the engine supports appearance: base-select. RTL is covered by browser tests rather than screenshots. The multi-select combobox and mention menu are not captured below. Theme captures apply each theme to the running mock page.

Action menus

State Before After
Open, light
Open, dark
Keyboard focus, light
Keyboard focus, dark
Hover and open submenu, light
Hover and open submenu, dark
Submenu, light
Submenu, dark
Long label, light
Long label, dark

Sidebar menus

State Before After
Identity with shortcuts and submenu, light
Identity with shortcuts and submenu, dark
Agent switcher, light
Agent switcher, dark
Session context menu, light
Session context menu, dark
Filter and sort, light
Filter and sort, dark

Select picker

State Before After
Closed, light
Closed, dark
Open with search, light
Open with search, dark
Inline submenu, light
Inline submenu, dark

Native selects

State Before After
Closed, light
Closed, dark
Open, light
Open, dark

Composer popups (footer controls unchanged)

State Before After
Plus menu, light
Plus menu, dark
Permissions, light
Permissions, dark
Model picker, light
Model picker, dark
Slash commands, light
Slash commands, dark

Page menus

State Before After
Cron job actions, light
Cron job actions, dark
Usage export, light
Usage export, dark

Narrow widths

State Before After
Header menu at 390 px, light
Header menu at 390 px, dark
Plus menu at 390 px, light
Plus menu at 390 px, dark
Header menu at 700 px, light
Header menu at 700 px, dark

Themes

The open menu and submenu in each theme family. CRT keeps its near-square corners (panel 3 px, row 2 px, shortcut 2 px). Beacon shortcut and label text measures at least 9.6:1 and 18.7:1 on the menu surface, and its panel keeps a full 1 px edge.

Theme Light Dark
Default
Absolutely
Beacon
CRT
Dash
Knot
Manuscript
Miami
Phosphor
Rose
Tide

@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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR standardizes Control UI menu and picker surfaces, row spacing, selection indicators, shortcuts, corners, and motion through existing shared styles.

Example: Open the session action menu in the light theme.

  • Before: The panel uses caller-specific geometry, with shortcut badges inset from the trailing edge.
  • After: The panel uses shared rounded geometry, compact rows, and aligned shortcut badges.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful consolidation with inspected visual proof and the prior finding addressed; unresolved CI attribution limits landing confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Prepared before/after screenshots exercise the real session action menu in the mock Control UI with synthetic data and visibly demonstrate the changed shared presentation in light and dark modes; they do not establish animation lifecycle or WebKit behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Equivalent menus and pickers have inconsistent surfaces, spacing, selection treatments, and shortcut alignment.
Reason: The maintainer-authored direction provides the owner decision, and consolidating existing presentation reduces caller drift without changing domain authority.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed UI improvement remains distinct from main, and the prior consumer-contract finding is addressed; no new introduced defect was established, but current CI failures remain unattributed.

Priority: P3
Reviewed head: 4265557e9d8260d5d8b71239d48bc1e35861db7b

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI callers supply menu entries and picker options; existing Solid components and overlay owners render, position, navigate, and dismiss the styled surfaces.

flowchart LR
  A[Control UI callers] --> B[Menu component]
  A --> C[Select and multi-select components]
  B --> D[Overlay lifecycle and navigation]
  C --> D
  E[Shared theme tokens] --> F[Menu and select styles]
  F --> B
  F --> C
Loading

Technical review

Best possible solution:

Keep presentation with the existing menu and select owners, and settle the failing consumer checks before landing.

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

This is a presentation improvement; inspected before/after screenshots demonstrate the central visual differences, and no target code was executed.

Is this the best way to solve the issue?

The change uses existing components and shared tokens, removes competing caller styling, and introduces no unnecessary state owner or parallel renderer.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +15, Tests +43. Total +58 across 52 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 35 459 444 +15
Tests 17 95 52 +43
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 52 554 496 +58

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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: 🐚 platinum hermit, 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 a visual consistency improvement without an established urgent user workflow regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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-10-30T11:36:42.259Z sha da7000a :: needs changes before merge. :: [P2] Update the remaining consumers of the new visual contracts

Reviewed October 31, 2026, 12:15 PM ET / 16:15 UTC (Revision 2).

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

The affected consumer expectations now match the approved menu/select contracts while retaining viewport, focus, forced-colors and interaction checks. Current head also fixes native-select reduced-motion specificity with red/green browser coverage.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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. labels Oct 31, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 07fae10 into main Oct 31, 2026
112 of 116 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-menus branch October 31, 2026 16:23
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* improve(ui): standardize menus, selects, and pickers

* improve(ui): keep menu corners and shortcut badges theme aware

* improve(ui): merge shortcut rail default into menu rule

* test(ui): align style contracts with the shared menu surface

* fix(ui): keep the online menu divider on the shared separator style
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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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