pendulum-chain / pendulum-chain/vortex
Improve UX form errors
Open
@Sharqiewicz is already working on this.
Since Jan 12, 2026.
type:chore
type:enhancement
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 33
Description
Task summary
Standardize form error timing across the app using the "reward early, punish late"
Problem / context
- Currently validation is inconsistent: some fields show errors on change, some on blur, some only on submit.
- This creates UX noise, makes WCAG compliance harder (3.3.1 Error Identification), and complicates implementation
Acceptance Criteria
Validation timing:
- Before interaction: No errors shown until form submitted
- On submit: Validate all, show error summary + inline errors, focus first error
- On input: Clear error immediately when field becomes valid (don't wait for blur)
- On blur: Show error if field is invalid + dirty
( 3 and 4 only after form submission(2) )
- use react-hook-form and yup
Accessibility (WCAG 3.3.1 compliance)
- Use aria-invalid="true" on invalid fields, "false" or remove when valid.
- Link error text via aria-describedby="field-error-id".
- Error text must be perceivable without color alone (don't rely solely on red borders).
- Consider aria-live="polite" for dynamic inline error updates to avoid overwhelming screen readers.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.