Skip to content

Spike: Investigate approaches for adding field validation from react-hook-form #372

Description

@handreyrc

Description

Investigate approaches for adding field validation from react-hook-form.

Motivation

react-hook-form is the chosen library for form generation, so it shall consume a filtered task schema to build a complete form for a selected task. Form libraries generally come with their own strategies to validate fields out-of-the-box, and react-hook-form is no different.

react-hook-form uses resolvers to extend form validation straight from a schema. However, there are some requirements to achieve the proposed layered validation, so it is necessary to investigate the best way to achieve that.

Proposed Implementation

No response

Definition of Done

  • Implementation: Build a PoC consuming a task filtered schema and react-hook-form considering layered validation as requirement.
  • Unit Tests: Comprehensive unit tests are included and passing.
  • Integration Tests: Verified within the monorepo and target environments (Web/VS Code).
  • Documentation: Updated README.md, ADRs, or official docs.
  • Performance: No significant regression in editor responsiveness.
  • Accessibility: UI changes comply with accessibility standards.of-thett

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

Status
Next

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions