VA Forms System Core will be a React library hosted in NPM that will allow engineers and designers to easily interact with Forms inside of vets-website.
VAFSC has a chapter component that isn't currently in use. Originally it was intended to render child routes through the use of a react-router v5 Switch component, but we ran into compatibility issues when we upgraded VAFSC to react router v6.
The chapter component could be resurrected and exposed as an optional component engineers can use to semantically group pages together. This would impact how information is presented on the review page.
FormRouter currently relies on a PageContextProvider to manage current route. Adding a chapter component would impact this, as pages grouped into a chapter would share a part of the url.
Tasks
[ ] Rewrite chapter component so it can manage child routes
[ ] Write unit tests for chapter component
[ ] Ensure chapter data is displayed sensibly on the review page
Description
VAFSC has a chapter component that isn't currently in use. Originally it was intended to render child routes through the use of a react-router v5
Switch
component, but we ran into compatibility issues when we upgraded VAFSC to react router v6.The chapter component could be resurrected and exposed as an optional component engineers can use to semantically group pages together. This would impact how information is presented on the review page.
Considerations
Routes
componentTasks
Acceptance Criteria