Skip to content

improve(ui): standardize Control UI fields and triggers - #189632

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/control-ui-fields
Nov 1, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/control-ui-fields

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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.

Shared value
Height --settings-control-height: 32px, 38px on coarse pointers and narrow screens, 44px where Settings already asks for it
Radius --field-radius: 10px × theme corner scale
Padding, text 10px inline, --control-ui-text-sm; the 16px touch floor stays global
Resting --field-bg, --field-border
Hover --border-strong
Focus and open --field-focus-border, border only: accent mixed with 15% --text, solid --accent on Beacon and CRT; forced colors draw a 2px SelectedItem outline
Disabled 50% opacity, not-allowed; a read-only Agents file keeps full text opacity

Usage 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:

  • Composer controls are untouched.
  • The page-scope agent pill stays 34px and fully round, including under CRT, as on main.
  • The compact agent trigger stays a 26px ghost control.
  • The Settings sidebar agent trigger (40px) and sidebar search (34px) are navigation chrome.
  • The sidebar picker (30px) belongs to the session rail.
  • Sensitive inputs keep 44px, the login form keeps 38px, and config and settings textareas keep their mono editor text.
  • Invalid fields keep --danger.
  • Icon-only menu triggers keep their surface-specific ghost treatment; the plugin editor's moves from 30px to 28px to match the others.
  • Chips are status tokens rather than fields.

Evidence

Real app in Chrome through the mock Gateway with its default fixture data and real components, at 3ca45374579 (After) and the base commit 2fe0a234f29 (Before). The theme and color mode come from ui.prefs in 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.

Theme Focus border Against field Against card Against page
Absolutely dark rgb(218, 134, 106) 5.83:1 5.13:1 6.24:1
Absolutely light rgb(181, 114, 86) 3.47:1 3.68:1 3.53:1
Beacon dark rgb(255, 194, 51) 12.41:1 11.42:1 13.02:1
Beacon light rgb(110, 74, 0) 7.29:1 7.68:1 7.48:1
CRT dark rgb(232, 232, 232) 15.56:1 14.39:1 16.18:1
CRT light rgb(31, 31, 31) 14.72:1 15.66:1 14.99:1

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.

Before After
Focus, Absolutely dark, before Focus, Absolutely dark, after
Focus, Absolutely light, before Focus, Absolutely light, after
Focus, CRT, before Focus, CRT, after
Focus, Beacon, before Focus, Beacon, after

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 same ui.prefs and 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.

  • Focus border: every focused control has one 1px line (2 device pixels) with no extra pixels outside it. This includes the compact agent trigger, sidebar owner picker and session filter picker.
  • Border contrast: at least 5.06:1 in dark and 3.45:1 in light against the surfaces beside it. The captures are color managed for the display, so their pixel values differ slightly from the table above.
  • Read-only editor: its text samples identical to the writable editor, 11.82:1 in dark and 11.21:1 in light. A disabled input stays dimmed, 4.04:1 and 2.72:1.
Absolutely dark Absolutely light
Focus, Safari, Absolutely dark Focus, Safari, Absolutely light

Absolutely dark

Before After
Before, Absolutely dark After, Absolutely dark

Absolutely light

Before After
Before, Absolutely light After, Absolutely light

CRT stays square

Before After
Before, CRT After, CRT

Beacon keeps its contrast

Focus on Beacon is a solid accent border, including on the page-scope agent pill.

Before After
Before, Beacon After, Beacon

In context

Before After
Usage before, dark Usage after, dark
Usage before, light Usage after, light
Dashboards before, dark Dashboards after, dark
Dashboards before, light Dashboards after, light

Multi-select, .field inputs, textareas and invalid states

Before runs the base commit 2fe0a234f29 from its own checkout and After runs 3ca45374579, both through the mock Gateway. The served CSS was checked on each side: --field-* references in base.css, multi-select.css, settings-controls.css and components.css are 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:

  • Data: set only in the mock scenario, with nothing inserted into the page and nothing hidden. The theme and color mode come from ui.prefs in the mock config. config.set, config.apply, agents.update and agents.files.set are added to the mock's method list so these forms are editable.
  • Hover and focus: real pointer movement and the Tab key, with :focus-visible confirmed on each focus crop. The 390 px samples use touch emulation, so they use taps and have no hover.
  • Open, two selected: click, then ArrowDown and Enter twice. Nothing is saved.
  • Disabled and read-only: the mock's stock method list, which lacks those methods, so the page disables its own controls. Without agents.files.set, the Agents file editor is the read-only view.
  • Invalid: Automations Name and Prompt come from pressing Create automation on the empty form. Every comes from typing abc. The Snooze date comes from typing 2020-01-01 and pressing Enter. The login secret comes from connecting once, then the mock rejecting connect with 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:

Control Height Text
.multi-select, empty 38 to 32px 12px
.multi-select, two chips 42.6 to 36.6px 12px
.field input 38 to 32px 14 to 12px
Login form URL 38px 14px
Login form secret 38px 13 to 14px
Automations Name 32px 16 to 12px
Manual RPC textarea 127.6px 12px mono
Agents file editor 504px 14 to 12px mono
Raw config textarea 500px 13px mono
.field input and multi-select, touch at 390 px 38 to 44px, 42.8 to 44px 16px

Every invalid control in After has a border equal to --danger, at rest, on hover and on focus. The login secret also keeps the 3px --danger halo it has on main whenever it is invalid. In Before, the Snooze date in Absolutely light keeps its neutral border when invalid.

For review:

  • On Beacon and CRT, focus on .field inputs and editors moves from the theme's heavier double line around the control to a 1px solid accent border. Compare the Focus sheets.
  • An invalid field keeps its --danger border while focused, so its focused and unfocused borders match. The text caret is what shows focus there.
  • The Agents file editor is the read-only view for an operator who cannot write files. Its text keeps full contrast, as on main. An editor with nothing loaded yet shows its placeholder and stays at 50%.
  • .field inputs inside Settings grow from 38 to 44px on touch and narrow screens, matching Settings inputs that were already 44px.

Not shown:

  • Multi-select has no invalid state.
  • The Manual RPC textarea has no disabled state.
  • .field textarea invalid (goal editor) and the rename input dialog turn invalid only when the server rejects a save.
  • The login URL invalid state needs a network failure and uses the warning tone.
  • The config form's JSON textarea did not appear on the config pages opened with the mock's schema.
  • The channel wizard's first step in the mock has no text input.

Absolutely dark

Before After
Multi-select, Absolutely dark, before Multi-select, Absolutely dark, after
Field input, Absolutely dark, before Field input, Absolutely dark, after
Textarea, Absolutely dark, before Textarea, Absolutely dark, after
Invalid, Absolutely dark, before Invalid, Absolutely dark, after

Absolutely light

Before After
Multi-select, Absolutely light, before Multi-select, Absolutely light, after
Field input, Absolutely light, before Field input, Absolutely light, after
Textarea, Absolutely light, before Textarea, Absolutely light, after
Invalid, Absolutely light, before Invalid, Absolutely light, after

CRT

Before After
Multi-select, CRT, before Multi-select, CRT, after
Field input, CRT, before Field input, CRT, after
Textarea, CRT, before Textarea, CRT, after
Invalid, CRT, before Invalid, CRT, after

Beacon

Before After
Multi-select, Beacon, before Multi-select, Beacon, after
Field input, Beacon, before Field input, Beacon, after
Textarea, Beacon, before Textarea, Beacon, after
Invalid, Beacon, before Invalid, Beacon, after

390 px, touch, Absolutely dark

Before After
Multi-select, 390 px, before Multi-select, 390 px, after
Field input, 390 px, before Field input, 390 px, after
Textarea, 390 px, before Textarea, 390 px, after
Invalid, 390 px, before Invalid, 390 px, after

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:base passes: 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, .field inputs, 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

  • In the first set of sheets, disabled is shown only on the picker trigger, because the default fixture disables no other family. It was not forced. The states section adds disabled for the other families.
  • Multi-select, .field inputs, 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.
  • The compact agent trigger and the session filter pickers appear only in the Safari sheets. In Chrome they were measured, not captured.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 31, 2026
@clawsweeper

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The field is 38px tall with 14px text and a separate focus halo.
  • After: The field uses the shared 32px height, 12px text, and contrasting focus border.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, compact consolidation with direct visual proof and both earlier findings repaired; failed CI lanes prevent a landing recommendation.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise real Control UI components through the mock Gateway in Chrome, showing the changed field geometry and focus treatment in dark and light; the body records additional Safari, theme, invalid-state, and touch observations.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Equivalent controls look and respond differently across Control UI pages.
Reason: The maintainer-authored direction improves consistency while consolidating existing styling and documenting deliberate presentation changes.

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
Reviewed head: 57d6f688c1daa0b7eb1f54f594cd259214fbca07

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Shared control height keeps the original intent (345083a: Give mixed Settings control clusters a uniform 32px height; the rules later moved into the eager shared stylesheet.)
  • Eager and lazy stylesheet ownership keeps the original intent (ca8bd59: Keep startup controls eager while loading picker and settings presentation through their owning components and routes.)
  • Focus presentation changes intended behavior with a stated reason (fix(a11y): B-1+B-2+B-3 — contrast, focus states, minimum font sizes #89822: Make keyboard focus visible and distinct from hover; this PR explicitly replaces halos with measured contrasting borders and retains forced-colors outlines.)
  • Touch typography keeps the original intent (c722ae6: Prevent iOS focus zoom by keeping text-entry controls at least 16px on touch devices; the current global rule preserves that invariant.)
  • Dashboard loading geometry keeps the original intent (c920944: Preview the eventual gallery while preserving loaded and loading geometry.)
  • Shared agent and picker controls keeps the original intent (c1258c0: Use consistent host-owned controls across Settings, session menus, and Workboard.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit c1258c0 adds ui/src/styles/settings-controls.css:13 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c1258c086482; files: ui/src/styles/settings-controls.css)
  • Peter Steinberger: Raw commit ca8bd59 adds ui/src/styles/settings-controls.css:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ca8bd59df50a; files: ui/src/styles/settings-controls.css)
  • Val Alexander: Raw commit 52370c5 adds ui/src/styles/base.css:93 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 52370c59980b; files: ui/src/styles/base.css)

PR surface

Source -64, Tests +11. Total -53 across 18 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 15 163 227 -64
Tests 3 13 2 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 176 229 -53

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, 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 owner-directed visual consistency and control ergonomics work without an established urgent runtime regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Classify the two failed UI lanes using detailed logs or matching base evidence before landing.

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-31T18:20:35.424Z sha 6cdeee9 :: needs changes before merge. :: [P2] Match Dashboard skeleton controls to the new field height | [P2] Update consumer checks for the new responsive control height

Reviewed November 1, 2026, 5:14 AM ET / 10:14 UTC (Revision 2).

vyctorbrzezowski and others added 3 commits October 31, 2026 15:41
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.
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 1, 2026 10:06
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

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

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 1, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 880bdcd into main Nov 1, 2026
82 of 86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/control-ui-fields branch November 1, 2026 10:17
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
)

* 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
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: 🐚 platinum hermit Good normal PR readiness with ordinary 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