Repository navigation
fix(site/src/pages/TemplateBuilder): associate customization errors with their fields - #31644
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 bb8c0d5. Organization and Description now render through FormField's control prop, so their inline errors get aria-invalid and aria-describedby, and I confirmed both reach the DOM. The reported invalid UUID length: 0 request is already blocked by the required-organization check from #28081, so this closes DEQ-38. No nits. Follow-ups filed (pre-existing): DEQ-614, the builder's duplicate-ID 409 has no Validations and shows only a page-level alert; DEQ-612, Create Template does nothing when the organizations query is loading or has failed.
🤖 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.
On
/templates/new/builder?step=customizations, the audit found that Create Template sent an emptyorganization_idand showed the server errorRequest body must be valid JSON. invalid UUID length: 0, which names no field (WCAG 3.3.1). #28081 has since added client-side validation, so that request no longer goes out. However, the inline Organization and Description errors were still not programmatically linked to their controls.Both fields now render through
FormField'scontrolprop, asChatProjectDialogdoes.FormFieldsetsaria-invalidandaria-describedbyand renders the linked error, which matches the step's other fields (Display name, ID, Icon).Closes DEQ-38
FormFieldseparates it with a text space instead ofml-1, matching the other required fields.Grouping and decision log
form-error-field-not-identifiedhas three tickets with three separate root causes, so it ships as three independent PRs: Filter (DEQ-495), login (DEQ-536), and this one (DEQ-38).useIdand ARIA attributes, becauseFormFieldalready provides this (RO1/FE3). It was replaced withFormField.onCreateis not called. I removed the duplicateonCreateassertion from theMissingOrganizationErrorstory'splayfunction (FE1).MissingOrganizationErrorandMissingNameError: no violations, and the organization combobox is described by "Select an organization to continue." A pixel diff ofMissingOrganizationErroragainstmainchanges 28 pixels, all on the asterisk.🤖 Generated by Coder Agents on behalf of @jeremyruppel.