Skip to content

Commit

Permalink
[VA-IIR 1041] WIP initial contact list loop setup (#32249)
Browse files Browse the repository at this point in the history
* [VA-IIR 1041] WIP initial contact list loop setup

* [VA-IIR 1041] delete intro page tests

* [VA-IIR 1041] remove unused page
  • Loading branch information
john-rodriguez-adhocteam authored Oct 4, 2024
1 parent 8def25e commit 03b98d9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 220 deletions.
30 changes: 17 additions & 13 deletions src/applications/personalization/review-information/config/form.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import footerContent from 'platform/forms/components/FormFooter';
import { VA_FORM_IDS } from 'platform/forms/constants';
import { TITLE, SUBTITLE } from '../constants';
import profileContactInfo from 'platform/forms-system/src/js/definitions/profileContactInfo';
import { TITLE } from '../constants';
import manifest from '../manifest.json';
import IntroductionPage from '../containers/IntroductionPage';
import ConfirmationPage from '../containers/ConfirmationPage';

import nameAndDateOfBirth from '../pages/nameAndDateOfBirth';
const allContactInformationKeys = ['address', 'email', 'phone'];

/** @type {FormConfig} */
const formConfig = {
Expand All @@ -15,7 +15,7 @@ const formConfig = {
submit: () =>
Promise.resolve({ attributes: { confirmationNumber: '123123123' } }),
trackingPrefix: 'welcome-va-setup-review-information-',
introduction: IntroductionPage,
introduction: null,
confirmation: ConfirmationPage,
dev: {
showNavLinks: true,
Expand All @@ -38,18 +38,22 @@ const formConfig = {
'Please sign in again to continue your application for welcome va setup review information form.',
},
title: TITLE,
subTitle: SUBTITLE,
defaultDefinitions: {},
chapters: {
personalInformationChapter: {
title: 'Your personal information',
infoPages: {
pages: {
nameAndDateOfBirth: {
path: 'name-and-date-of-birth',
title: 'Name and date of birth',
uiSchema: nameAndDateOfBirth.uiSchema,
schema: nameAndDateOfBirth.schema,
},
...profileContactInfo({
contactPath: 'contact-information',
included: allContactInformationKeys,
contactInfoRequiredKeys: allContactInformationKeys,
addressKey: 'address',
mobilePhoneKey: 'phone',
contactInfoUiSchema: {},
// TODO: Work on skipping review page if possible in ticket created for this work
// onNavForward: ({ goPath }) => {
// goPath('confirmation');
// },
}),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export const TITLE = 'Welcome VA Setup Review Information Form';
export const SUBTITLE =
'welcome va setup review information form (VA Form 00-0000)';
export const TITLE = 'Review your contact information';

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createSaveInProgressFormReducer } from 'platform/forms/save-in-progress/reducers';
import vapService from '@@vap-svc/reducers';
import formConfig from '../config/form';

export default {
form: createSaveInProgressFormReducer(formConfig),
vapService,
};

This file was deleted.

0 comments on commit 03b98d9

Please sign in to comment.