Repository navigation
feat(frontend): form primitives on React Aria - #158
Merged
Merged
Conversation
…e switch and check
sgomez
force-pushed
the
agent/frontend/137
branch
from
November 25, 2026 19:07
db6886b to
1f7b542
Compare
This was referenced Nov 25, 2026
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.
Closes #137. Part of #135.
Summary
Field owns the value, so the label, help and error are wired by React Aria:
console.css: three[data-…]selectors added to existing rules, with the same values:.input[data-invalid](next to.input.is-error),.seg button[data-selected]and.seg a[data-current](next to.seg button.onand.seg a.on). Link segments follow the link tabs of #157: React AriaLinkunderLinkRouter.Evidence
playfunctions and axe for Input, TextArea, Field, Segmented, Editor, Select, Switch, Check and Radios: default, hover, focus-visible, keyboard, disabled, invalid, help, optional, marks, busy, go to line.npm test: every file passes, coverage 99 % lines.npm run lint,npm run typecheck,composer staticandcomposer testpass.npm run test:visual: three runs, zero diffs. No reference screenshot changes.composer build: no diff.Departures and notes
Fieldtakesvalue/onChangeand noid;InputandTextArealoseid. Link segments move toLinkSegmented, button segments toSegmented(ToggleButtonGroup:radiogroup/radio aria-checkedin place ofaria-pressed, arrow keys move between segments). Call sites updated:EntityListandPublishPanel.Checkno longer takestype="radio": a single radio has no meaning in React Aria.Radiosis a group with its own label (.field+.label, existing classes). The board shows radios inline in a demo row, with no group label; the group is not on a board, so it is open to the maintainer.role="alert"moves from the.msg-errorbox to the text inside it, becauseFieldErrordoes not acceptrole. The error is now also the input's accessible description.react-aria3.53.1 andreact-stately3.51.0, the versionsreact-aria-componentsalready pins, added as direct dependencies foruseSwitch/useCheckbox/useRadio. Recorded inSPEC.md3.7.storybook/testhovers with synthetic events, and the real pointer's first move into the frame can end that hover, so the hover stories retry until it holds.Inputs.test.tsx,Navigation.test.tsx, which held only Segmented after Overlay and navigation primitives on React Aria #157, the Editor part ofText.test.tsx) are replaced by the stories.Merge Danger
Door: two-way
Blast Radius: forms
Pages look the same (zero screenshot diffs). Behaviour changes: arrow-key navigation in button segments, label/description/error wiring in fields.