Repository navigation
fix(ui): align menu shortcuts and share sidebar keycap badges - #184883
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. |
|
@clawsweeper autofix |
|
|
|
Codex review: needs maintainer review before merge. What this changesThis PR shares sidebar-style keycap badges across menus and aligns account-menu shortcuts with the trailing edge. Example: Open the account menu on macOS.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved visual improvement is useful, both previous findings are fixed, and no new actionable defect was found; current-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI menu callers supply shortcut labels to shared Solid keyboard components, while the shared keycap stylesheet and menu layout render badges in document and shadow roots. flowchart TD
A[Account and session menus] --> C[Shared keyboard components]
B[Panel and composer pickers] --> C
C --> D[Shared keycap stylesheet]
D --> E[Native menu layout]
E --> F[Document and shadow root badges]
Technical reviewBest possible solution: Use the existing keycap stylesheet for menu badges and the existing menu layout for conditional indicator spacing. Do we have a high-confidence way to reproduce the issue? Current-main CSS reserves the trailing indicator gutter when Help has a submenu, while the inspected before image shows the resulting account-menu inset; no reproduction was run during this read-only review. Is this the best way to solve the issue? The patch is a focused solution: it promotes the existing badge skin, removes competing styles, and reuses shadow-style retention without adding state or keyboard logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d704d3b10632. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -58, Tests +196. Total +138 across 13 files. Added test files: 2. View PR surface stats
Review metrics
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 26, 2026, 2:49 PM ET / 18:49 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
…aw#184883) * fix(ui): align menu shortcuts and share sidebar keycap badges * test(ui): update shared shortcut badge contracts
What Problem This Solves
Keyboard shortcuts in menus were plain text, and the account menu reserved an unnecessary submenu gutter that left Settings and System busyness hints inset from the right edge.
User Impact
Menu and popover shortcuts now use the same compact, rounded badges as sidebar tooltips, with consistent trailing alignment and readable modifier symbols.
Why This Change Was Made
The shared keycap stylesheet now owns the badge treatment. The audit removes competing command-palette and quick-access skins, converts the permission picker's numeric hints to shared keycaps, and carries the stylesheet into shadow-hosted menus. Account, session/link, Layout/panel, model and permission menus consume the same pattern. Checkbox and shortcut-bearing submenu indicator rails are preserved.
Simplification: one badge skin replaces local skins; production code is net-negative, with no new state or keyboard bindings. Standalone instructional dialogs retain their existing larger keycaps outside this menu/popover scope.
Evidence
Before — pre-fix production build, synthetic fixture:
After — fixed production-bundle E2E, synthetic fixture:
Before/after screenshots were inspected and delivered in the originating chat before publication. No configuration, migration, or user action is required.
CI contract repair
CI exposed two consumer expectations that needed to follow this intentional style change. The existing open/closed shadow-menu lifecycle tests now verify both shared stylesheets, keycap appearance after moving roots, and complete cleanup. The typography fixture now models the real shared model-picker keycap and retains the plain-text monospace check. Both repaired suites pass in Chromium/WebKit, and the Mac/Linux typography E2E cases pass. Duplicate standalone shadow-badge proof was consolidated into that existing lifecycle suite. This follow-up changes tests only, so the inspected production before/after screenshots remain applicable. Required CI and hosted review are being rechecked on the new head.