Skip to content

DS-064: Add a FormErrorSummary component #464

Description

@IbrahimIjai

Context

Complex order and liquidity forms can contain multiple validation failures.
Inline errors alone are difficult to scan and navigate after submission.

Scope

  • Add a summary component that lists form errors and links to invalid fields.
  • Focus the summary after a failed submit when configured.
  • Support a concise title and optional correction guidance.
  • Document integration with the shared Field component.

Acceptance criteria

  • Error links move focus to the associated field.
  • Summary count and title are announced once after failed submission.
  • Dynamic error changes do not cause repeated disruptive announcements.
  • Works when fields are inside a scrollable dialog.
  • Tests cover linking, focus movement, updates, and empty state.

Out of scope

  • Introducing a form-state library.
  • Defining business validation rules.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions