Repository navigation
improve(ui): align picker interaction feedback - #133650
vyctorbrzezowski merged 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 4:55 PM ET / 20:55 UTC. ClawSweeper reviewWhat this changesThe PR moves picker styling to Web Awesome component hosts, standardizes selected and hover feedback, disables motion for reduced-motion users, and adds focused browser regression coverage. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open: it is a coherent, source-backed Control UI repair and addresses the prior reduced-motion finding. Its closing link needs scope confirmation because the linked report also includes Desktop source-card feedback that this branch intentionally leaves unchanged. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI renders Chat, agent, and provider pickers with Web Awesome components. Shared CSS tokens and picker-specific host styles determine the selection, hover, and motion feedback an operator sees after opening those controls. flowchart LR
Operator[Operator opens a picker] --> Picker[Chat or setup picker]
Picker --> Component[Web Awesome control]
Preferences[Theme and motion preference] --> Styles[Shared and picker CSS]
Styles --> Component
Component --> Feedback[Selection, hover, and motion feedback]
Decision needed
Why: The linked issue names Desktop source choices as an expected interaction surface, while the PR deliberately excludes its Desktop card change; only maintainers can settle whether that behavior belongs in the same product contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource -31, Tests +148. Total +117 across 8 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the host-level picker repair, and split or retain the remaining Desktop source-card behavior rather than closing the broader linked report unless maintainers confirm that Desktop is out of scope. Do we have a high-confidence way to reproduce the issue? Yes — the added browser suite defines a concrete current-base mocked Control UI path for the selected-state and motion defects, though this read-only review did not execute it. Is this the best way to solve the issue? Unclear — the host-level repair is the narrowest solution for the Web Awesome picker subset, but it is not the complete solution to the linked issue unless its Desktop request is split or explicitly excluded. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2640154bcf80. 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 (1 earlier review cycle)
|
d3e115f to
d2797d5
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Merged via squash.
|
Closes #133642
Reported and repaired by @vyctorbrzezowski.
What Problem This Solves
Equivalent picker controls were giving different or missing hover, selected, keyboard-focus, surface, and opening-motion feedback. In particular, Web Awesome dropdown items do not expose a
basepart, so several::part(base)rules never affected the visible rows; selected permission and microphone rows could therefore render without their intended wash.Why This Change Was Made
This moves dropdown-item geometry and state styling to the public host contract, uses Web Awesome's hover and duration custom properties, and gives model/effort popups the same fast scale/fade family as dropdown menus. The repair follows the existing Web Awesome implementation instead of adding a custom picker abstraction or dependency.
Reduced motion is owned once for the Web Awesome menu family, and inline popup animation is explicitly disabled at the shadow part boundary. Selected rows share one global theme token. Light-theme field triggers keep their existing white pixel through
--bg-elevated; this is tokenization, not a product color change.User Impact
Production CSS: +64/-95 (net -31). Tests: +148/-0.
Evidence
Permission selected state
Before:
After (final rebased build):
Agent picker, light theme
Before:
After:
Model Setup provider picker
Before:
After:
Microphone picker unavailable state
Before:
After:
All attached images were captured from real mocked-Gateway browser flows and inspected before upload.
Regression and browser proof
OPENCLAW_VITEST_MAX_WORKERS=2 pnpm test ui/src/e2e/chat-picker-interaction-contract.e2e.test.ts— failed 2/2 as intended: selected and unselected permission backgrounds were both transparent; inline popupanimationNamewasnoneinstead ofchat-composer-picker-in.OPENCLAW_VITEST_MAX_WORKERS=2 pnpm test ui/src/e2e/chat-flow.models-reasoning.e2e.test.ts— passed 13/13 before the final main refresh; the focused final-head contract test above re-proved the changed surface after the refresh.node --import ./scripts/tsx.mjs scripts/capture-composer-mic-hover-proof.mts— passed before and after, with 0 px hover shift.pnpm dlx [email protected] --check --no-error-on-unmatched-pattern -- <8 changed files>— passed using the formatter version pinned by current main.pnpm exec oxlint ui/src/e2e/chat-picker-interaction-contract.e2e.test.ts— passed.node scripts/run-tsgo.mjs -p tsconfig.ui.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/ui.tsbuildinfo— passed.git diff --check— passed.pnpm check:changedwas run serially as required. The first run passed every stage through lint and correctly caught that adding coverage to an already-large test file exceeded its line budget; the coverage was moved into its own focused file. After the final main refresh, the rerun reached formatting and stopped because this worktree's pre-existing dependency tree still exposes Oxfmt 0.60 while current main pins 0.65. Worktree policy forbids dependency reconciliation here, so the exact pinned 0.65 formatter, focused lint, UI typecheck, and final browser test were run separately. Exact-head CI uses a clean dependency install and is the authoritative full gate.Landing notes
ui/src/styles/chat/composer.cssowner; the branch is now a single fresh commit.--menu-selectedtoken and consumed it from composer, Agent Select, and Model Setup.whitewith behavior-equivalent--bg-elevated; no trigger color change.wa-dropdown-item::part(base)rule. Unique host behavior moved to hosts; duplicate policy now comes from the existing canonical host rules.data-current-placementand aligned duration to Web Awesome's fast token.Latest ClawSweeper rank-up move: applied. Popup animation is suppressed for reduced-motion users, and the focused real-browser test verifies the computed animation plus Web Awesome duration values. No X-ray adjustment was skipped.
Scope confirmed by the maintainer: the Desktop source-card hover and keyboard-focus behavior described in #133642 is accepted as out of scope for this repair, so the closing reference stands as written.
Risk and coverage
What else could break:
.agent-select__optionis shared with the sidebar agent menu. Existing sidebar host rules still override its padding, hover, and active treatment; the light/dark Agent Select flows pass.session-menu__itempolicy; no dropdown-itembaseselectors remain.What remains uncovered: