Repository navigation
improve(ui): standardize menus, selects, and pickers - #188283
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +15, Tests +43. Total +58 across 52 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 31, 2026, 12:15 PM ET / 16:15 UTC (Revision 2). |
|
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 |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* 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
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:
oc-menustyles 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.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.--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-menutimed 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 supportsappearance: 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
Sidebar menus
Select picker
Native selects
Composer popups (footer controls unchanged)
Page menus
Narrow widths
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.