Repository navigation
improve(ui): standardize Control UI fields and triggers - #189632
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR gives Control UI fields and picker triggers shared sizing, colors, corners, and interaction states. Example: An operator edits the agent name “Molty” on desktop.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: both prior findings are resolved, and no new actionable defect was found; failed UI checks still need attribution before landing. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI styles turn theme tokens and rendered form controls into consistent browser presentation without changing Gateway requests or stored settings. flowchart LR
A[Theme palette] --> B[Shared field tokens]
B --> C[Shared interaction rules]
B --> D[Page control styles]
C --> E[Rendered fields and triggers]
D --> E
F[Responsive sizing] --> E
Technical reviewBest possible solution: Retain the shared CSS owners and resolved loading geometry, then land once the failed UI lanes are classified and applicable gates are satisfied. Do we have a high-confidence way to reproduce the issue? Base CSS and supplied running-app captures establish the inconsistent control presentation; no target code was executed during this read-only review. Is this the best way to solve the issue? Shared tokens and state rules are the smallest coherent implementation, with justified exceptions for navigation chrome, editors, touch sizing, and invalid states. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ea19b6f716ca. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -64, Tests +11. Total -53 across 18 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 1, 2026, 5:14 AM ET / 10:14 UTC (Revision 2). |
Drop the focus shadow from fields and triggers and raise the focus border until it reads on its own, with solid accent on Beacon and CRT. Triggers with no border draw the same line in place. A read-only Agents file keeps full text contrast; an empty, disabled editor stays dimmed.
|
The dashboard loading control now uses the same responsive height as its resolved control. The affected browser expectations were updated while preserving keyboard, focus, alignment and containment coverage. Main's lazy-search interaction was retained during integration. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
) * improve(ui): standardize Control UI fields and triggers * improve(ui): make the field focus border the only focus signal Drop the focus shadow from fields and triggers and raise the focus border until it reads on its own, with solid accent on Beacon and CRT. Triggers with no border draw the same line in place. A read-only Agents file keeps full text contrast; an empty, disabled editor stays dimmed. * fix(ui): align loading fields with responsive controls
What Problem This Solves
Text inputs, search inputs, native selects, picker triggers and agent selects each carried their own height, background, border, focus treatment and font size, so the same control looked different from page to page.
User Impact
Fields and field-like triggers now read as one control across Settings, Usage, Dashboards, Automations and Logs: same height, corner, padding, text size, resting border, hover, focus and disabled treatment. Control heights adopt the shared responsive sizing; copy and page structure are unchanged. Dashboard loading placeholders use the same height as the loaded controls.
Why This Change Was Made
This follows the menu and floating-surface standardization. Shared
--field-*tokens and one shared state rule now own the control, so per-caller overrides are deleted. Corners come from the theme-aware radius scale.--settings-control-height: 32px, 38px on coarse pointers and narrow screens, 44px where Settings already asks for it--field-radius: 10px × theme corner scale--control-ui-text-sm; the 16px touch floor stays global--field-bg,--field-border--border-strong--field-focus-border, border only: accent mixed with 15%--text, solid--accenton Beacon and CRT; forced colors draw a 2pxSelectedItemoutlinenot-allowed; a read-only Agents file keeps full text opacityUsage selects and Dashboards selects move from the browser arrow to the shared chevron. All field text is now 12px on desktop, including inputs that were 16px.
Left as they are, with a reason to differ:
--danger.Evidence
Real app in Chrome through the mock Gateway with its default fixture data and real components, at
3ca45374579(After) and the base commit2fe0a234f29(Before). The theme and color mode come fromui.prefsin the mock config, with nothing inserted into the page and nothing hidden. Hover and focus come from real pointer movement and the Tab key. Disabled is a control the fixture already disables (Channels, Account). Crops are cut from the running pages, and rows may include neighbouring controls.Focus
The border is the only focus signal. Measured on focused controls after Tab, the box shadow and outline are
none, and the control's size does not change. Width stays 1px.rgb(218, 134, 106)rgb(181, 114, 86)rgb(255, 194, 51)rgb(110, 74, 0)rgb(232, 232, 232)rgb(31, 31, 31)Absolutely light's accent alone stays under 3:1 on its light surfaces, so the token mixes in
--text, which moves the color away from the surface in both modes. The other built-in themes, in both modes, measure at least 4.21:1.The compact agent trigger, the sidebar owner picker and the session filter pickers have no border to recolor, so focus draws the same 1px line just inside their edge, without moving anything.
Safari
Safari 27.0.1 on macOS at
3ca45374579, with the same mock data, in Absolutely dark and light. A local pass-through served the mock's page with the sameui.prefsand method list as the Chrome captures, with nothing inserted into the page and nothing hidden. Focus was set on each named control through the macOS accessibility API rather than the Tab key. The session filter picker's panel was opened the same way.Absolutely dark
Absolutely light
CRT stays square
Beacon keeps its contrast
Focus on Beacon is a solid accent border, including on the page-scope agent pill.
In context
Multi-select,
.fieldinputs, textareas and invalid statesBefore runs the base commit
2fe0a234f29from its own checkout and After runs3ca45374579, both through the mock Gateway. The served CSS was checked on each side:--field-*references inbase.css,multi-select.css,settings-controls.cssandcomponents.cssare 0, 0, 0, 0 Before and 6, 6, 6, 21 After, matching each commit. The change is CSS only, so the markup and the mock are the same on both sides.How each state was produced:
ui.prefsin the mock config.config.set,config.apply,agents.updateandagents.files.setare added to the mock's method list so these forms are editable.:focus-visibleconfirmed on each focus crop. The 390 px samples use touch emulation, so they use taps and have no hover.agents.files.set, the Agents file editor is the read-only view.abc. The Snooze date comes from typing 2020-01-01 and pressing Enter. The login secret comes from connecting once, then the mock rejectingconnectwith a token mismatch after typing a wrong token and pressing Enter.Rows are crops of the running pages and may include neighbours. Tall editors are cut at 130 px. The two sides differ in the port shown in the Gateway URL and the clock in the prefilled date. The dotted underline on "Molty" is the browser's spellcheck.
Measured, Before to After, in Absolutely on desktop unless noted:
.multi-select, empty.multi-select, two chips.fieldinput.fieldinput and multi-select, touch at 390 pxEvery invalid control in After has a border equal to
--danger, at rest, on hover and on focus. The login secret also keeps the 3px--dangerhalo it has on main whenever it is invalid. In Before, the Snooze date in Absolutely light keeps its neutral border when invalid.For review:
.fieldinputs and editors moves from the theme's heavier double line around the control to a 1px solid accent border. Compare the Focus sheets.--dangerborder while focused, so its focused and unfocused borders match. The text caret is what shows focus there..fieldinputs inside Settings grow from 38 to 44px on touch and narrow screens, matching Settings inputs that were already 44px.Not shown:
.field textareainvalid (goal editor) and the rename input dialog turn invalid only when the server rejects a save.Absolutely dark
Absolutely light
CRT
Beacon
390 px, touch, Absolutely dark
Checks
Dashboard loading controls now share the resolved field-height token. The existing browser scenario reproduced a 7.45 px toolbar shrink before the correction and passes afterward in dark and light.
The affected sidebar and Activity browser checks pass (18 cases), preserving keyboard, containment, alignment, refresh and retry coverage. UI test typechecks, scoped lint/format/stylelint and source review pass.
Stylelint and oxfmt pass.
ui:check-performance:basepasses: total CSS +32 B gzip and -1379 B raw against base.Browser and node tests pass at the current head, 130 tests in 14 files: form controls, control theme, multi-select, select picker, forced colors, corner shape, agent select opening, config form, menu surface, theme contrast, theme tokens, agent file preview.
E2E passed on the first commit before rebase, 33 tests: settings layout, agent select layout, usage cost analysis, login gate, channel wizard contrast. It was not rerun after the focus change.
No existing test needed updating.
Forced colors measured on real controls at the current head: settings inputs,
.fieldinputs, Usage selects and the sidebar owner picker draw a solid 2px outline on focus.Focus measured by tabbing through 14 pages in Absolutely, Beacon and CRT, dark and light: no focused field has a box shadow, and only the borderless triggers above have an outline.
Gaps
.fieldinputs, textareas and invalid states are in the states section above, which lists what it does not show. They are also covered by the browser tests.