Skip to content

fix(ui): align menu shortcuts and share sidebar keycap badges - #184883

Merged
Patrick-Erichsen merged 2 commits into
mainfrom
fix/shortcut-menu-badges
Oct 26, 2026
Merged

Patrick-Erichsen merged 2 commits into
mainfrom
fix/shortcut-menu-badges

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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:

Before: plain shortcut hints inset from the account menu edge

After — fixed production-bundle E2E, synthetic fixture:

After: shared sidebar-style badges aligned to the account menu edge

  • Reproduced missing badges, excess trailing gutter, and missing shadow-root styles with failing browser regressions before the corresponding fixes.
  • Shared badge/rail tests pass in Chromium and WebKit, including 390, 768, 1366 and 1440px widths, LTR/RTL, actual permission picker, and shadow-hosted menus.
  • Existing native-menu contract, keycap, and permission-picker tests pass.
  • Production-bundle account-menu E2E passes and checks exact trailing-edge alignment, badge padding/background, and corner radius.
  • UI production build, UI/test typechecks, focused lint, CSS lint, formatting and diff checks pass. Existing unrelated Solid lint warnings remain unchanged.
  • An earlier private source-server capture stalled during cold Vite navigation (no app errors or Gateway requests); the shipped-bundle lane above provides the final product proof. No timeouts or assertions were relaxed.

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.

@clawsweeper

clawsweeper Bot commented Oct 26, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review October 26, 2026 18:20
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper autofix

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper autofix is retired; ClawSweeper now only reviews.

@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: 🦐 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 Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares sidebar-style keycap badges across menus and aligns account-menu shortcuts with the trailing edge.

Example: Open the account menu on macOS.

  • Before: Settings shows ⌘⇧, as plain text inset by the gutter reserved for the Help submenu.
  • After: Settings shows ⌘⇧, in a rounded badge aligned with the row’s trailing padding.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused shared-owner implementation with inspected visual proof, resolved prior findings, and no remaining review defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the actual account menu gaining shared badges and trailing alignment in the declared production-bundle fixture; the latest commit changes tests only, leaving that visual proof applicable.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Shortcut hints have inconsistent visual treatment, and account-menu hints sit unnecessarily far from the trailing edge.
Reason: The maintainer-authored PR supplies the direction decision for this styling preference, and consolidation reduces production code while preserving keyboard behavior.

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
Reviewed head: 66408cec940ef8a92a0efb45258d5353494db804

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Shared sidebar badge skin keeps the original intent (a876cbb: Render sidebar tooltip shortcuts as tinted keycap chips while retaining accessible labels.)
  • Menu indicator rail changes intended behavior with a stated reason (150cd18: Balance leading and trailing insets while preserving shared rails for checkmarks and submenu arrows.)
  • Shortcut fonts changes intended behavior with a stated reason (15b5313: Keep modifier glyphs readable with a system UI font while ordinary hints retained monospace styling.)
  • Panel launcher hints changes intended behavior with a stated reason (1e5df7d: Use compact typography and plain shortcut hints in the panel launcher.)
  • Palette styles changes intended behavior with a stated reason (fc3b2dc: Keep full palette styles lazy while preserving their appearance; this PR deliberately replaces local keycap skins with the shared treatment.)
  • Solid keyboard primitive and shadow-menu lifecycle keeps the original intent (eca633a: Share presentation primitives across renderers; subsequent native-menu work retained styles through the existing overlay lifecycle.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -58, Tests +196. Total +138 across 13 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 9 25 83 -58
Tests 4 200 4 +196
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 225 87 +138

Review metrics

Metric Value Why it matters
Production versus test LOC Production +25/−83; tests +200/−4 Production shrinks by sharing the existing skin; test growth covers cross-surface styles, actual account-menu geometry, shadow-root relocation, and typography consumers.

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 and alignment polish without changed keyboard bindings or blocked workflows.
  • 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-10-26T18:38:27.616Z sha 55a16ae :: needs changes before merge. :: [P2] Update the shadow-menu relocation test for both retained stylesheets | [P2] Migrate typography assertions to the shared keycap contract

Reviewed October 26, 2026, 2:49 PM ET / 18:49 UTC (Revision 2).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 26, 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 Oct 26, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) October 26, 2026 18:55
@Patrick-Erichsen
Patrick-Erichsen merged commit c752cee into main Oct 26, 2026
112 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/shortcut-menu-badges branch October 26, 2026 18:58
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…aw#184883)

* fix(ui): align menu shortcuts and share sidebar keycap badges

* test(ui): update shared shortcut badge contracts
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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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