Repository navigation
improve(ui): quiet slash command menu hierarchy - #122237
vyctorbrzezowski merged 7 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 9:29 PM ET / August 12, 2026, 01:29 UTC. ClawSweeper reviewWhat this changesThe PR gives Control UI slash-command and skill menus a neutral two-column layout, removes the tier expander and shortcut footer, and scrolls both menus through a nested viewport. Merge readinessNo blocking code defect found at the current PR head. This remains open because it is maintainer-authored/labeled and deliberately changes the default command-discovery policy, which needs maintainer acceptance alongside exact-head CI completion. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI chat composer turns flowchart LR
A[Composer input] --> B[Command or skill matching]
B --> C[Menu rows]
C --> D[Nested scroll viewport]
D --> E[Keyboard selection]
E --> F[Composer draft or action]
Decision needed
Why: The patch correctly implements either presentation, but the default discoverability-versus-density choice is a product decision rather than a mechanical correctness question. Before merge
Agent review detailsSecurityNone. PR surfaceSource -109, Tests +146. Total +37 across 10 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA short Control UI chat interaction can directly confirm the changed slash-menu hierarchy and all-tier scrolling behavior. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm that all command tiers should be visible by default, then land the neutral hierarchy and shared nested-scroll behavior after exact-head checks finish green. Do we have a high-confidence way to reproduce the issue? Yes—typing Is this the best way to solve the issue? Yes, conditional on accepting the full-list default: the nested viewport is the shared owner for slash and skill scrolling, and the final head covers both paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 021ea774ab6f. LabelsLabel changes:
Label justifications:
EvidenceWhat 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 (3 earlier review cycles)
|
0c1d9dd to
37802fb
Compare
|
Compaction pass is up at |
|
The two-column polish pass is up at |
|
The four follow-up adjustments are up at |
|
Addressed both Rank-up moves at Verified locally: 319 focused UI tests passed. @clawsweeper re-review |
|
Maintainer decision recorded: the full scrollable command list is the intended interaction; Vyctor explicitly requested removal of the |
|
Merged via squash.
|
* improve(ui): quiet slash command menu hierarchy * improve(ui): compact slash command menu * improve(ui): polish slash command rows * improve(ui): streamline slash command sheet * chore(ui): refresh command copy baseline * fix(ui): keep skill selection in view * test(ui): type skill menu viewport stub
Closes #122225
What Problem This Solves
Fixes an issue where the Control UI composer slash-command menu gives command names, icons, the selected row, and
instantmetadata the same brand-red emphasis. The result is visually noisy in both themes and makes the command hierarchy harder to scan.Why This Change Was Made
In this PR, slash-command rows use a consistent two-column grammar: icon and medium-weight command name on the left, with muted description and value metadata aligned to the right. Empty icon slots stay reserved so every name starts on the same column. The menu uses the existing neutral palette and shared menu geometry, with a subtle neutral hover surface and no section dividers.
Option counts remain visible as plain muted metadata, while the ambiguous
instantpills are removed.The rounded sheet now owns clipping while a nested viewport owns scrolling, preserving all four corners and leaving the scrollbar track transparent. All command tiers render directly in that scrollable list; the
Show morestate and the redundant keyboard-hint footer are removed.instantrepresented no-argument Control UI commands that submit immediately when selected, generally without a model round trip. It was not a latency guarantee: those paths may still queue, request confirmation, or await Gateway RPC. The execution behavior is unchanged.The row classes are also shared by composer skill suggestions, so both suggestion modes keep one consistent neutral hierarchy instead of diverging CSS paths. Group headers use the same small, muted treatment as other Control UI navigation labels.
User Impact
Users get a calmer, more legible command picker in light and dark themes. Every available command is immediately searchable and scrollable without an expander or footer chrome. Command behavior, keyboard navigation, descriptions, and option counts remain unchanged.
Evidence
Both pairs show the full
/command list in the same deterministic mocked-Gateway state.Validation:
/stoprendered theinstantbadge and power-tier commands were hidden behind the expander. They pass after the change while confirming option-count badges remain.node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/styles/theme-contrast.test.ts— 240 passed.node scripts/run-vitest.mjs ui/src/pages/chat/chat-view.test.ts ui/src/pages/chat/chat-responsive.browser.test.ts— 319 passed; slash and skill keyboard navigation keep the active option visible in the nested scroll viewport, including short landscape overflow.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-slash-command-ranking.e2e.test.ts— 1 passed against the real picker.pnpm ui:i18n:verify— passed after removing the obsolete keyboard-hint baseline entries.8b8c57640f2after remote-only reruns: https://github.com/openclaw/openclaw/actions/runs/31553420014