Skip to content

feat(core): a11y.name validator rule and the agent-operable settings bundle - #609

Closed
lorant-one wants to merge 1 commit into
previewfrom
feat/validator-control-names
Closed

lorant-one wants to merge 1 commit into
previewfrom
feat/validator-control-names

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

This is step 4 of the agent-operable controls plan. It is stacked on #608, which is stacked on #607. Merge it after both.

What

  • New a11y.name rule in once-ui-validate-ai-code. It flags a control that has no name: none of its naming props and no <label htmlFor>. The control types checked are Input, Textarea, NumberInput, PasswordInput, ColorInput, DateInput, TagInput, Combobox, Switch, Checkbox, RadioButton, Slider, SegmentedControl, TabList and a self-closing IconButton.
    • The naming props are label, aria-label and aria-labelledby, plus tooltip or placeholder where those name the control.
    • Why it matters: a screen reader can only announce such a control by its role, and an agent can't find it by label.
    • Select keeps its own Select.toolbar rule. A spread silences the check, as it does in the other rules.
  • Every control in the gold examples and blocks now has a name.
    • SegmentedControls: dashboard, list-page, map-app, pricing.
    • Unnamed IconButtons: Feed3, Footer3/4, Streaming1, Table1, Waitlist1.
    • Table1's row Checkboxes.
    • The settings example's NumberInput.
    • The settings example's delete button now carries data-agent-confirm.
  • The settings bundle gains a quality.agentOperable line.
  • New test ai-settings-agent.test.tsx. It renders the settings gold example from the built package and walks each tab with createAgent(). It checks that every control has a name and changes all six settings, one act call per section. It also checks that the delete asks a person first.

Running the new rule across sibling apps flagged roughly a fifth of the files that hold controls. Most hits are unnamed SegmentedControls and icon-only IconButtons, which are real accessibility gaps. Those apps get fixed when they bump core.

Generated ai/ files (bundles, components, spec) are not in this diff. They regenerate on the next harness refresh.

Checks

  • validate-ai-code: 140 tests, including a new test that every example and block has no a11y.name findings.
  • All AI and agent tests pass (900).
  • The lint gate is at its baseline of 112.

Generated by Claude Code

@lorant-one
lorant-one changed the base branch from feat/agent-bridge to preview November 28, 2026 23:32
@lorant-one lorant-one closed this Nov 28, 2026
@lorant-one
lorant-one deleted the feat/validator-control-names branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants