Repository navigation
feat(core): a11y.name validator rule and the agent-operable settings bundle - #609
Closed
lorant-one wants to merge 1 commit into
Closed
lorant-one wants to merge 1 commit into
lorant-one wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
a11y.namerule inonce-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.label,aria-labelandaria-labelledby, plustooltiporplaceholderwhere those name the control.Select.toolbarrule. A spread silences the check, as it does in the other rules.data-agent-confirm.quality.agentOperableline.ai-settings-agent.test.tsx. It renders the settings gold example from the built package and walks each tab withcreateAgent(). It checks that every control has a name and changes all six settings, oneactcall 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
a11y.namefindings.Generated by Claude Code