refactor(frontend): update person-case forms for multi-channel flow #437
+2,619
−1,759
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.
Summary
AB#18736 Summary and Send for validation screen
AB#19354 Copy screens to the multichannel flow
Notable Changes
Added new folder
routes/protected/sin-application
protected/person-case/{screen}.tsx
to their own componentsprotected/sin-application/{screen}Form.tsx
protected/person-case/types.d.ts
toprotected/sin-application/types.d.ts
validation.server.ts
fromprotected/person-case/validation.server.ts
toprotected/sin-application/validation.server.ts
Updated
validation.server.ts
formData.get('input')
from person-case screens to separate functions toparseScreenName()
person-case/review.tsx
&multi-channel/send-validation.tsx
toformatSinApplication()
Added
multi-channel/edit-application.tsx
multi-channel/send-validation.tsx
, you are redirected toedit-application.tsx
with a parameter to determine which form to renderTypes of changes
What types of changes does this PR introduce?
(check all that apply by placing an
x
in the relevant boxes)Checklist
Before submitting this PR, ensure that you have completed the following. You can fill these out now, or after creating the PR.
(check all that apply by placing an
x
in the relevant boxes)Linting and formatting
Unit and e2e tests
npm run test npm run test:e2e
Additional Notes
Context
The Summary and Send for Validation screen needs to be able to edit the sin application, however the screen cannot use the existing person-case screens as they are tied to the in-person flow.
Objective
The goal of this PR is to refactor person-case screens to be able to use their forms to edit the case in the multi-channel flow.
Screenshots (if applicable)
Provide screenshots or screen-recordings to help reviewers understand the visual impact of your changes, if relevant.