Repository navigation
fix(site/src/components): associate Filter validation error with search box - #31642
Merged
Merged
Conversation
jeremyruppel
marked this pull request as ready for review
November 2, 2026 20:53
chrifro
approved these changes
Nov 9, 2026
chrifro
left a comment
Collaborator
There was a problem hiding this comment.
Clean at 29a24ca. The Filter's validation error span now has a useId id that the "Filter" search box references through SearchField's new aria-describedby prop. This fixes DEQ-495 for /audit and every other page that uses Filter, and the new Vitest test checks the accessible description. No nits. Follow-up filed (pre-existing): DEQ-613, the Filter shows an empty error span for non-validation API errors and doesn't announce new errors.
🤖 Generated by Coder Agents on behalf of @chrifro.
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The shared
Filterrenders API validation errors (for exampleQuery param "resource_type" has invalid value) under its search box, but the message was not programmatically linked to the "Filter" textbox, so screen readers could not tell which field was in error (WCAG 3.3.1).The error span now gets a
useIdid, and the search box references it witharia-describedby.SearchFieldgains anaria-describedbyprop, which it forwards to the input. This covers every page that usesFilter(audit log, users, workspaces, templates, and so on).Closes DEQ-495
Filtersearch box (reported on/audit)Grouping and decision log
form-error-field-not-identifiedhas three tickets with three separate root causes, so it ships as three independent PRs: this one (DEQ-495, Filter), login password validation (DEQ-536), and template builder customizations (DEQ-38).aria-describedbyrather thanaria-errormessage. The message renders whenevererroris set, butaria-invalidis set only for API validation errors, andaria-errormessageis ignored unlessaria-invalid="true". This matchesFormField.aria-describedbyuses the samehasError(error)condition as the span it points at, so it never references a missing id.pages/UsersPageView/WithError): the textbox is now described by the error text and the branch adds no violations. Theheading-order(moderate) violation in that story also appears onmain.🤖 Generated by Coder Agents on behalf of @jeremyruppel.