From dc93b68ad7f878f1b2f760a919b3e2573096e825 Mon Sep 17 00:00:00 2001
From: Adam Whitlock <8332986+adamwhitlock1@users.noreply.github.com>
Date: Mon, 28 Oct 2024 13:43:26 -0600
Subject: [PATCH 1/8] work with query params for return, add custom
ContactInfoEditReroute component WIP
---
.../pattern2/TaskOrange/config/form.js | 36 +++----------
.../pages/ContactInfoEditReroute.jsx | 54 +++++++++++++++++++
.../TaskOrange/pages/PersonalInformation.jsx | 22 ++++----
3 files changed, 73 insertions(+), 39 deletions(-)
create mode 100644 src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/pages/ContactInfoEditReroute.jsx
diff --git a/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/config/form.js b/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/config/form.js
index 7f15e6cad4f1..65a22f3faa1c 100644
--- a/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/config/form.js
+++ b/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/config/form.js
@@ -36,6 +36,7 @@ import {
} from '../pages/ApplicantInformation';
import ReviewPage from '../pages/ReviewPage';
import { EditNavigationWithRouter } from '../components/EditNavigation';
+import { ContactInfoEditReroute } from '../pages/ContactInfoEditReroute';
const {
date,
@@ -70,6 +71,9 @@ const formConfig = {
noAuth:
'Please sign in again to resume your application for education benefits.',
},
+ dev: {
+ showNavLinks: true,
+ },
prefillEnabled: true,
prefillTransformer,
transformForSubmit: transform,
@@ -173,7 +177,6 @@ const formConfig = {
hideOnReview: true, // We're using the `ReveiwDescription`, so don't show this page
forceDivWrapper: true, // It's all info and links, so we don't need a fieldset or legend
},
- 'ui:reviewId': 'other-contact-information',
'ui:title': '',
'ui:description': '',
'ui:widget': props => {
@@ -209,33 +212,16 @@ const formConfig = {
},
contactInformation: merge({}, contactInformationPage(fullSchema1990)),
contactInformationEdit: {
- hideNavButtons: true,
- title: 'Edit mailing address',
+ title: 'Edit contact information',
taskListHide: true,
- path: 'personal-information/edit-mailing-address',
+ path: 'personal-information/edit-veteran-address',
+ CustomPage: ContactInfoEditReroute,
+ CustomPageReview: null,
uiSchema: {
...descriptionUI(PrefillAlert, { hideOnReview: true }),
veteranAddress: addressFormDefinition.uiSchema(
'Edit mailing address',
),
- 'view:editNavigation': {
- 'ui:options': {
- hideOnReview: true, // We're using the `ReveiwDescription`, so don't show this page
- forceDivWrapper: true, // It's all info and links, so we don't need a fieldset or legend
- },
- 'ui:reviewId': 'veteranAddress',
- 'ui:title': '',
- 'ui:description': '',
- 'ui:widget': props => {
- return (
-
Here’s how signing in now helps you:
Equal to VA Form 22-1990 (Application for VA Education Benefits).
See what benefits you’ll get at the school you want to attend.{' '} @@ -79,7 +79,7 @@ export class IntroductionPage extends React.Component {
Complete this education benefits form.
@@ -89,7 +89,7 @@ export class IntroductionPage extends React.Component {
We usually process claims within 30 days. We’ll let you know @@ -105,7 +105,7 @@ export class IntroductionPage extends React.Component {
You’ll get a Certificate of Eligibility (COE), or award diff --git a/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/pages/PersonalInformation.jsx b/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/pages/PersonalInformation.jsx index 1a6847ca2ce9..20957f982290 100644 --- a/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/pages/PersonalInformation.jsx +++ b/src/applications/_mock-form-ae-design-patterns/patterns/pattern2/TaskOrange/pages/PersonalInformation.jsx @@ -68,16 +68,16 @@ export const PersonalInformationContact = ({
+ To protect your personal information, we don’t allow online changes to
+ your name, date of birth, or Social Security number. If you need to
+ change this information, call Veterans Benefits Assistance at{' '}
+
- Note: To protect your personal information, we don’t
- allow online changes to your name, date of birth, or Social Security
- number. If you need to change this information for your health benefits,
- call your VA health facility.{' '}
-
- If you want to update your contact information for other VA benefits, - you can do that from your profile.{' '} -
-+ Note: We’ve prefilled some of your information. If + you need to make changes, you can edit on this screen. Your changes + won’t affect your VA.gov profile. +
+