Skip to content

fix: identify required configuration fields in Settings - #180882

Merged
shakkernerd merged 3 commits into
mainfrom
openclaw/a11y-required-input-state-20261022
Oct 23, 2026
Merged

shakkernerd merged 3 commits into
mainfrom
openclaw/a11y-required-input-state-20261022

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Required configuration inputs look like optional inputs in Settings, and their required state is missing from assistive technology. This affects ordinary text and number fields, dropdowns, short choice groups, and JSON editors. For example, Storage Provider and Family Database Engine both require a value but previously gave no required cue.

User Impact

Settings shows a visible Required cue and exposes the corresponding accessible state when a schema requires input without a usable default. Valid direct and inherited defaults suppress the cue. Existing accessible names, validation, keyboard selection, autosave, and sensitive-value handling are preserved.

Why This Change Was Made

The renderers already receive required-property metadata. The shared field presentation combines that metadata with the existing schema validator, and each input renderer consumes the result. Short enum choices forward it to their existing radiogroup. The change adds no native required validation, input handlers, configuration options, or persistence behavior.

Evidence

  • The renderer and built Settings regressions reproduce missing required state on the base. A separate two-choice regression reproduces the segmented-input gap.
  • 212 selected unit/browser cases pass, including required and optional controls, valid and invalid defaults, keyboard selection, disabled controls, and draft behavior. Four additional cases cover invalid inherited defaults and redacted input wrappers.
  • Built Settings tests use the real configuration schema and synthetic Gateway responses, including the fixture footer metadata. Chromium accessibility-tree assertions cover the textbox and radiogroup required state. Storage Provider editing and Family Database Engine arrow-key selection submit the expected configuration and reach Saved.
  • The rebased renderer tests pass with the lazy Settings English catalog. The fetched target ceb574b148932fbf5fcefdc90d0da8da20f64259 still fails both required-state regressions, while the valid-default control passes. Both required-field scenarios and all three existing enum flows pass on the rebased head, including the target’s Settings focus changes.
  • Scoped formatting, lint, English catalog verification, and affected type checks pass. All three existing enum E2E cases also pass with the required control located by its unchanged accessible name. Full UI CI passes all three unit shards, nine mocked shards, and two real-Gateway shards on this head.

Visual evidence

Open preview

View Before After
Storage Provider Storage Provider before required cues Storage Provider with its required cue
Family Database Engine Family Database Engine before required cues Family Database Engine with its required cue

ArrowRight selects postgres and autosaves the expected configuration

[email protected]

Visual verification

  • Baseline: 71bbd18
  • Exact head: f599a78563775e306a4c7c21083024cc7fafcbd1
  • Scenario: Inspect required Storage Provider and Family Database Engine fields, edit with the keyboard, and verify the expected autosave request and Saved result.
  • Runtime/build: Native rebuilt Control UI from tree 4999f03fa1f5582459499513be88e4fec0754b7e; Chromium; real schema with synthetic Gateway data and footer metadata.
  • Required semantics: Chromium accessibility tree exposes required=true for textbox and radiogroup
  • Keyboard action: ArrowRight selects postgres; expected config.set payload reaches Saved
  • Preserved behavior: Optional and valid-default fields remain unmarked; native required validation stays absent
  • Identical dark theme, viewport, synthetic data, route and capture framing per comparison
  • Baseline fails at missing aria-required; final head passes both built Settings cases
  • 212 selected tests and 20 affected type graphs pass; five built Settings and enum cases pass
  • Keyboard action and Saved result are visible in the recording

Mitchell Etzel (@etzelm) requested and contributed to this accessibility improvement.

@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 22, 2026 18:32
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds visible Required cues and accessible required state to schema-backed fields without valid defaults.

Example: Settings displays storage.locations.example.provider with the value filesystem.

  • Before: Storage Provider has no required cue or accessible required state.
  • After: Storage Provider displays Required and exposes aria-required=true while retaining its accessible name.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused accessibility repair with inspected visual proof, meaningful renderer and built-Settings coverage, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the rebuilt Settings UI with the real schema and synthetic Gateway responses, showing the Storage Provider Required cue. Supplied Chromium regression evidence covers accessible required state, keyboard selection, and expected autosave payloads; the additional enum-after image and recording were unavailable because of review infrastructure limits.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Required Settings inputs look optional and omit required-state information for assistive technology.
Reason: The maintainer-authored direction repairs explicit schema semantics with a small presentation change and preserves existing user choices and editing behavior.

Merge readiness

✅ Ready for maintainer review

This PR delivers a useful accessibility repair with no actionable findings; the previous conflict is resolved, and current-head CI remains pending.

Priority: P2
Reviewed head: f599a78563775e306a4c7c21083024cc7fafcbd1

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI renders Gateway configuration schemas through shared field presentation and scalar, enum, and JSON controls; edits continue through the existing validation and autosave owners.

flowchart LR
  A[Gateway configuration schema] --> B[Schema analysis]
  B --> C[Shared field presentation]
  C --> D[Settings controls]
  D --> E[Accessible required state]
  D --> F[Existing validation and autosave]
Loading

Technical review

Best possible solution:

Keep the shared schema-based required-state calculation and let each existing renderer expose its visible and accessible presentation.

Do we have a high-confidence way to reproduce the issue?

Fetched main renders required scalar and enum controls without accessible required state; supplied baseline screenshots and regression reports corroborate the source path, although no target code was executed during this review.

Is this the best way to solve the issue?

The patch is a focused repair: required fields without valid defaults receive consistent cues through existing presentation owners, while native validation, edit admission, and saved values retain their contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 784bb85d7cf1.

Provenance checked

  • Schema-backed form rendering keeps the original intent (b8d31e9: The Solid migration preserved field identities, drafts, validation, defaults, and mutation owners.)
  • Shared field presentation keeps the original intent (4f62a43: Scalar and JSON controls were consolidated around shared presentation metadata.)
  • Existing enum regression locator keeps the original intent (a3cab57: The regression protects rejected enum selections and nullable choices; locating by the unchanged accessible name preserves that contract after adding visible cue text.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4f62a43 adds ui/src/components/config-form.node.shared.ts:71 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4f62a433acb7; files: ui/src/components/config-form.node.shared.ts)
  • Mitchell Etzel: Raw commit b44f145 adds ui/src/components/solid/settings-ui.tsx:468 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b44f145462c7; files: ui/src/components/solid/settings-ui.tsx)

PR surface

Source +46, Tests +314. Total +360 across 10 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 7 54 8 +46
Tests 3 318 4 +314
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 372 12 +360

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Required-field discoverability and screen-reader semantics improve a bounded Settings workflow without changing configuration execution.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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.

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 (3 earlier review cycles)
  • reviewed 2026-10-22T18:48:25.611Z sha df74457 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-23T07:41:25.879Z sha 12a123f :: needs maintainer review before merge. :: none
  • reviewed 2026-10-23T08:47:09.631Z sha ff71609 :: needs changes before merge. :: none

Reviewed October 23, 2026, 5:27 AM ET / 09:27 UTC (Revision 4).

@shakkernerd shakkernerd changed the title fix(ui): identify required configuration fields in Settings fix: identify required configuration fields in Settings Oct 23, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@shakkernerd shakkernerd added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 23, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 23, 2026
@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@shakkernerd
shakkernerd force-pushed the openclaw/a11y-required-input-state-20261022 branch from ff71609 to f599a78 Compare October 23, 2026 09:15
@shakkernerd

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@shakkernerd
shakkernerd merged commit ae90032 into main Oct 23, 2026
129 checks passed
@shakkernerd
shakkernerd deleted the openclaw/a11y-required-input-state-20261022 branch October 23, 2026 09:38
@shakkernerd

Copy link
Copy Markdown
Contributor

Improved: Settings now identifies required inputs visually and for assistive technology while preserving schema defaults and editing behavior.

With thanks to @etzelm.

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

Settings now shows visible and accessible required cues for inputs without usable schema defaults, including segmented choices, while preserving validation and autosave.

Reviewed-by: @shakkernerd
Co-authored-by: etzelm <[email protected]>
Co-authored-by: Shakker <[email protected]>
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

2 participants