-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
87799 ARF migrate 21a into ARP #30835
Conversation
…representative-portal
…hat save in progress uses
Fixing this error unlocks the next error which I believe exposes a more meaningful incompatibility that SIP experiences when the the app's state has not been set up by the platform user component. The key idea here is that in progress forms are fundamentally connected to a user. to integrate in progress forms into our app we'll need to introduce and expose user state that in progress forms understands
…t-of-veterans-affairs/vets-website into 87799-arf-migrate-21a-into-arp
This is really hairy. With this version I do get the SIP functionality (pointing it at this backend PR), but I don't quite have a sense of how far off we are from the integration really being correct. It seems like there are a lot of really careful cases for course correcting out of many really ephemeral logged in states that are interspersed throughout the various interactions and pages of SIP. I have a couple of other information dumps that I hope can orient anyone trying to make the next earnest effort on this. Dump 1In Progress Forms ProtocolFor an app to conform to the in progress forms protocol, it must implement a particular set of interactions. These interactions break down into four possible categories which are the combinatorial product of the interactions' possible Redux media (
|
@@ -77,6 +77,8 @@ export const VA_FORM_IDS_IN_PROGRESS_FORMS_API = Object.freeze({ | |||
// 526 save-in-progress endpoint that adds an `updatedRatedDisabilities` array | |||
// to the saved form data from /v0/disability_compensation_in_progress_forms/ | |||
[VA_FORM_IDS.FORM_21_526EZ]: '/v0/disability_compensation_in_progress_forms/', | |||
[VA_FORM_IDS.FORM_21A]: | |||
'/accredited_representative_portal/v0/in_progress_forms/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that we may need to override inProgressApi
if our module is hosted separately (i.e. api.representative.va.gov
).
Supplanted by #31352 |
Are you removing, renaming or moving a folder in this PR?
Note: There is a PR to delete the 21a application entry in content-build registry.json that must be merged before this one
Summary
I aimed to keep the changes very minimal in this PR after I realized that we were running into some potential complexity.
So first commit just drags and drops the accreditation/21a folder into accredited-representative-portal.
Second commit aimed to make form 21a the visible content of the accredited-representative-portal in alignment with the V3 designs.
As such it reverts our app to react-router v3 since that is what form apps use by default (but of course feel free to revert it back to compat).
The url was going to be /attorney-claims-agent-form-21a but the third commit reverts that to not clash with identity code that had it as /representative.
The url is still /attorney-claims-agent-form-21a in the content build and DevOps PRs that I also pushed up as part of this migration:
Summarize the changes that have been made to the platform: All changes are in files owned by ARF
Related issue(s)
Testing done
Screenshots
Mobile
Before
https://staging.va.gov/representative
https://staging.va.gov/representative/poa-requests
After
Still in progress since need to fix this error:
If I update src/applications/accredited-representative-portal/accreditation/21a/containers/App.jsx to:
Desktop
Before
After
Same Error
If I update src/applications/accredited-representative-portal/accreditation/21a/containers/App.jsx to:
Acceptance criteria
Quality Assurance & Testing
Authentication
Requested Feedback