Repository navigation
fix: identify required configuration fields in Settings - #180882
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 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +46, Tests +314. Total +360 across 10 files. Added test files: 2. View PR surface stats
LabelsLabel changes:
Label justifications:
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 (3 earlier review cycles)Reviewed October 23, 2026, 5:27 AM ET / 09:27 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Worked on by: - @etzelm Co-authored-by: etzelm <[email protected]> OpenClaw-Publication: 53107baa-3e43-4cab-aa8a-454d5fccde12
ff71609 to
f599a78
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Improved: Settings now identifies required inputs visually and for assistive technology while preserving schema defaults and editing behavior. With thanks to @etzelm. |
) 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]>
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
ceb574b148932fbf5fcefdc90d0da8da20f64259still 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.Visual evidence
ArrowRight selects postgres and autosaves the expected configuration
[email protected]
Visual verification
f599a78563775e306a4c7c21083024cc7fafcbd1Mitchell Etzel (@etzelm) requested and contributed to this accessibility improvement.