-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build MVP for reworked navigation of ContactInfo update prefilled pat…
…tern pages - PT 1 (#34026) * add toggle for prefill forms-system work * set up folder for contact info work * feat: mvp of contact info reroute overhaul, add mock data, hooks, and refactor ContactInfo and Edit comps * feat: start compound state for contact updates in session storage * adjust mock server for user with no contact info * remove compound session state for now, since its not used yet * spacing adjustment * working on fixing e2e tests * test: fix e2e test * update title for pattern page, adjust order of alert and styling * fix warning from dispatch in PatternConfigContext * linting updates, prop types
- Loading branch information
1 parent
cb546d5
commit 44b3bc8
Showing
18 changed files
with
1,416 additions
and
85 deletions.
There are no files selected for viewing
16 changes: 13 additions & 3 deletions
16
src/applications/_mock-form-ae-design-patterns/app-entry.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
import 'platform/polyfills'; | ||
import './sass/_mock-form-ae-design-patterns.scss'; | ||
|
||
import startApp from 'platform/startup'; | ||
import routes from './routes'; | ||
import reducer from './reducers'; | ||
import manifest from './manifest.json'; | ||
|
||
import coeReducer from './patterns/pattern2/TaskGray/shared/reducers'; | ||
import { asyncStartApp } from './utils/asyncStartApp'; | ||
|
||
const combinedReducers = { | ||
...reducer, | ||
certificateOfEligibility: coeReducer.certificateOfEligibility, | ||
}; | ||
|
||
startApp({ | ||
const createRoutes = initialRoutes => { | ||
// here we can do some async stuff | ||
// maybe we change the routes based on the state or other api call responses? | ||
// this could be where we add or remove routes for the contact info that is missing for a user | ||
// replace () with (store) to access the store and use it to determine the routes | ||
return () => { | ||
return initialRoutes; | ||
}; | ||
}; | ||
|
||
asyncStartApp({ | ||
entryName: manifest.entryName, | ||
url: manifest.rootUrl, | ||
reducer: combinedReducers, | ||
routes, | ||
createAsyncRoutesWithStore: createRoutes(routes), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...plications/_mock-form-ae-design-patterns/patterns/pattern2/TaskBlue/config/contactInfo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import profileContactInfo from 'applications/_mock-form-ae-design-patterns/shared/components/ContactInfo/profileContactInfo'; | ||
|
||
import { getContent } from 'platform/forms-system/src/js/utilities/data/profile'; | ||
|
||
const content = { | ||
...getContent('application'), | ||
description: null, | ||
title: 'Confirm the contact information we have on file for you', | ||
}; | ||
|
||
export const contactInfo = profileContactInfo({ | ||
content, | ||
contactInfoPageKey: 'confirmContactInfo3', | ||
contactPath: 'veteran-information', | ||
contactInfoRequiredKeys: [ | ||
'mailingAddress', | ||
'email', | ||
'homePhone', | ||
'mobilePhone', | ||
], | ||
included: ['homePhone', 'mailingAddress', 'email', 'mobilePhone'], | ||
disableMockContactInfo: true, | ||
prefillPatternEnabled: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.