Repository navigation
improve(ui): align transient menu chrome with design-system geometry - #122109
Conversation
Use one shared transient-menu recipe across Control UI panels and items. Match the carapace reference: 6px item radius plus 4px inset yields a 10px panel radius, with restrained motion for fixed menus.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 11, 2026, 12:51 PM ET / 16:51 UTC. ClawSweeper reviewWhat this changesThis PR introduces shared Control UI menu geometry tokens, applies them across several menu surfaces, restores 44px coarse-pointer rows, and relaxes ACP stderr assertions for SQLite diagnostics. Merge readinessKeep open: the shared menu recipe misses the composer attachment/capability menu, and the unrelated ACP change suppresses all SQLite transaction warnings rather than only the known benign diagnostic. Priority: P2 Review scores
Verification
How this fits togetherControl UI menus combine shared theme tokens with local CSS rules for each page or component. Those rules feed visible menus in chat, sidebar, terminal, cron, board, and usage views. flowchart LR
A[Theme tokens] --> B[Shared menu recipe]
C[Local menu CSS] --> D[Rendered Control UI menus]
B --> D
E[Coarse pointer rule] --> B
D --> F[Browser and E2E checks]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +45, Tests +30. Total +75 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Apply the shared panel and interactive-row tokens to the composer menu while retaining its width constraints, and whitelist only the exact load-dependent slow-hold diagnostic in the ACP assertion. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: opening the composer attachment/capability dropdown retains its local 5px/34px recipe rather than the new shared token values. Is this the best way to solve the issue? No: central tokens are the right owner boundary, but the composer menu must consume them and the ACP test must retain visibility into non-benign transaction warnings. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fe4cff7a6b24. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…penclaw#122109) * improve(ui): align transient menu chrome with design-system geometry Use one shared transient-menu recipe across Control UI panels and items. Match the carapace reference: 6px item radius plus 4px inset yields a 10px panel radius, with restrained motion for fixed menus. * test(ui): align gateway picker menu expectations * test(cli): keep benign sqlite diagnostics out of ACP exit stderr assertions * fix(ui): restore 44px menu touch targets on coarse pointers
What Problem This Solves
Control UI transient menus—context menus and dropdowns—used a heavy, extra-round panel recipe (14px panel radius, 10px item pills, 6px padding, and
--shadow-lg) copy-pasted across roughly 14 surfaces. Two strays also hardcoded their own values. The look had drifted from the carapace design system, and menus could not be tuned consistently from one place.Why This Change Was Made
This introduces three semantic tokens in
base.css:--menu-radius,--menu-item-radius, and--menu-padding. They encode a concentric geometry contract—6px item radius plus 4px padding equals a 10px panel radius—while every menu panel now shares padding, border, radius, background, and--shadow-md. Menu items are 28px tall with flat--bg-hover, and fixed-position menus (excludingwa-dropdown) get a 140ms entrance-onlymenu-inanimation.The chat reply context menu, selection popup, terminal session picker, and board, cron, usage, and tool-card dropdowns are folded into the same recipe. This follows the
openclaw/carapacemenu-panel/model-menu design expressed through existing OpenClaw tokens; it does not import--oc-*tokens.User Impact
Every transient menu in the web UI now looks tighter and consistent. There is no behavior change.
Evidence
node scripts/check-changed.mjspassed for thecoreTestsanduilanes. Remote providers were unavailable, so the documented local fallback was used.menu-surface.test.ts: 5 passed.theme-contrast.test.ts: 2 passed.acp-cli-exit.process.test.ts: 5 passed.--menu-item-heightstays 28px normally and flips to 44px underpointer: coarse, with Chromium browser coverage for the computed row height.Production code is net +37 lines. The growth is the semantic token block, the shared entrance keyframe, and owned panel recipes for two dropdowns that previously relied on library defaults.
Release-note context for squash: user-visible UI refinement; no contributor credit (maintainer work).