Skip to content
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

Remove confirmation page feature toggle implementation #35271

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/applications/pensions/components/FormAlerts/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@

RequestFormAlert.propTypes = {
children: PropTypes.node,
formLink: PropTypes.string.isRequired,

Check warning on line 185 in src/applications/pensions/components/FormAlerts/index.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/pensions/components/FormAlerts/index.jsx:185:3:Required prop types must be listed before all other prop types

Check warning on line 185 in src/applications/pensions/components/FormAlerts/index.jsx

View workflow job for this annotation

GitHub Actions / Linting (Files Changed)

src/applications/pensions/components/FormAlerts/index.jsx:185:3:Required prop types must be listed before all other prop types
formName: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
};
Expand Down Expand Up @@ -323,14 +323,3 @@
</p>
</va-alert>
);

export const SubmissionConfirmationAlert = () => (
<va-alert status="success">
<h3>Thank you for submitting your Veterans Pension application</h3>
<p className="vads-u-margin-y--0">
We’ve received your Veterans Pension application (VA Form 21P-527EZ).
After we complete our review, we’ll mail you a decision letter with the
details of our decision.
</p>
</va-alert>
);
334 changes: 103 additions & 231 deletions src/applications/pensions/containers/ConfirmationPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import PropTypes from 'prop-types';

import { utcToZonedTime, format } from 'date-fns-tz';
import { useSelector } from 'react-redux';
import { useFeatureToggle } from 'platform/utilities/feature-toggles';
import { isLoggedIn } from 'platform/user/selectors';

import { focusElement } from 'platform/utilities/ui';
import { ConfirmationView } from 'platform/forms-system/src/js/components/ConfirmationView';
import { SubmissionConfirmationAlert } from '../components/FormAlerts';
import {
formatFullName,
obfuscateAccountNumber,
Expand All @@ -21,10 +19,6 @@ const ConfirmationPage = ({ route }) => {
const form = useSelector(state => state.form);
const loggedIn = useSelector(isLoggedIn);
const { formConfig } = route;
const { useToggleValue, TOGGLE_NAMES } = useFeatureToggle();
const showUpdatedConfirmation = useToggleValue(
TOGGLE_NAMES.pensionConfirmationUpdate,
);
const { submission, data } = form;
const response = submission?.response ?? {};
const fullName = formatFullName(data?.veteranFullName ?? {});
Expand Down Expand Up @@ -63,20 +57,10 @@ const ConfirmationPage = ({ route }) => {
confirmationNumber={confirmationNumber}
formConfig={formConfig}
>
{showUpdatedConfirmation ? (
<ConfirmationView.SubmissionAlert
content={submissionAlertContent}
actions={<p />}
/>
) : (
<>
<h2 className="vads-u-margin-bottom--3">
Your Veterans Pension application
</h2>
<SubmissionConfirmationAlert />
<br />
</>
)}
<ConfirmationView.SubmissionAlert
content={submissionAlertContent}
actions={<p />}
/>
<va-summary-box>
<h3 slot="headline" className="vads-u-margin-top--0">
Your information for this application
Expand All @@ -95,171 +79,82 @@ const ConfirmationPage = ({ route }) => {
<p>{confirmationNumber}</p>
</>
)}
{!showUpdatedConfirmation && (
<va-button
class="screen-only"
text="Print this page"
onClick={() => {
window.print();
}}
/>
)}
</va-summary-box>
{showUpdatedConfirmation ? (
<>
<ConfirmationView.PrintThisPage />
<ConfirmationView.WhatsNextProcessList
item1Header="We’ll confirm when we receive your form"
item1Content="This can take up to 10 days. When we receive your form, we'll send you an email."
item1Actions={<p />}
item2Content="If we have questions or need more information after reviewing your form, we'll contact you by phone, email, or mail."
<ConfirmationView.PrintThisPage />
<ConfirmationView.WhatsNextProcessList
item1Header="We’ll confirm when we receive your form"
item1Content="This can take up to 10 days. When we receive your form, we'll send you an email."
item1Actions={<p />}
item2Content="If we have questions or need more information after reviewing your form, we'll contact you by phone, email, or mail."
/>
<p className="vads-u-padding-left--7">
If we send you a request for more information, you’ll need to respond
within 30 days of our request. If you don’t respond within 30 days, we
may decide your claim with the evidence thats available to us.
</p>
{loggedIn ? (
<section>
<h2>If you need to submit supporting documents</h2>
<p>
If you didn’t already submit your supporting documents and
additional evidence, you can submit them in one of these 2 ways:
</p>
<h3>Option 1: Upload your documents using the Claim Status Tool</h3>
<p>
It may take 7-10 days for your pension claim to appear in the
Claim Status Tool. After your pension claim appears, you can
upload your documents in the Files tab.
</p>
<va-link
href="/track-claims"
text="Use the Claim Status Tool to upload your documents"
/>
<p className="vads-u-padding-left--7">
If we send you a request for more information, you’ll need to
respond within 30 days of our request. If you don’t respond within
30 days, we may decide your claim with the evidence thats
available to us.
<h3>Option 2: Mail us copies of your documents</h3>
<p>
Don’t send us a printed copy of your pension claim. We already
have it. And don’t send us your original documents. We can’t
return them.
</p>
{loggedIn ? (
<section>
<h2>If you need to submit supporting documents</h2>
<p>
If you didn’t already submit your supporting documents and
additional evidence, you can submit them in one of these 2
ways:
</p>
<h3>
Option 1: Upload your documents using the Claim Status Tool
</h3>
<p>
It may take 7-10 days for your pension claim to appear in the
Claim Status Tool. After your pension claim appears, you can
upload your documents in the Files tab.
</p>
<va-link
href="/track-claims"
text="Use the Claim Status Tool to upload your documents"
/>
<h3>Option 2: Mail us copies of your documents</h3>
<p>
Don’t send us a printed copy of your pension claim. We already
have it. And don’t send us your original documents. We can’t
return them.
</p>
<p>Mail us copies of your documents to this address:</p>
<p className="va-address-block">
Department of Veterans Affairs
<br />
Pension Intake Center
<br />
PO Box 5365
<br />
Janesville, WI 53547-5365
</p>
<p>
<strong>Note:</strong> If we asked you to submit any
supporting documents, you should keep a copy of them for your
records.
</p>
</section>
) : (
<section>
<h2>If you need to submit supporting documents</h2>
<p>
If you didn’t already submit your supporting documents and
additional evidence, you can submit copies of your documents
by mail.
</p>
<p>Mail any supporting documents to this address:</p>
<p className="va-address-block">
Department of Veterans Affairs
<br />
Pension Intake Center
<br />
PO Box 5365
<br />
Janesville, WI 53547-5365
</p>
<p>
<strong>Note:</strong> Mail us copies of your documents only.
Don’t send us your original documents. We can’t return them.
</p>
</section>
)}
</>
<p>Mail us copies of your documents to this address:</p>
<p className="va-address-block">
Department of Veterans Affairs
<br />
Pension Intake Center
<br />
PO Box 5365
<br />
Janesville, WI 53547-5365
</p>
<p>
<strong>Note:</strong> If we asked you to submit any supporting
documents, you should keep a copy of them for your records.
</p>
</section>
) : (
<>
<section>
<h2>If you need to submit supporting documents</h2>
<span>You can submit supporting documents in one of 2 ways:</span>
<h4>Submit your documents online through AccessVA</h4>
<div>
<p>
You can use the QuickSubmit tool through AccessVA to submit
your documents online.
</p>
<va-link
href="https://eauth.va.gov/accessva/?cspSelectFor=quicksubmit"
text="Go to AccessVA to use QuickSubmit"
/>
</div>
<h4>Mail copies of your documents</h4>
<div>
<p>
Don’t mail us a printed copy of your pension application. We
already have your application. If you need to submit
supporting documents, you can mail copies of your documents to
us at this address:
</p>
<p className="va-address-block">
Department of Veterans Affairs
<br />
Pension Intake Center
<br />
PO Box 5365
<br />
Janesville, WI 53547-5365
</p>
<p>
<strong>Note:</strong> Don’t send us your original documents.
We can’t return them. Mail us copies of your documents only.
</p>
<p>
If we asked you to complete and submit additional forms, be
sure to make copies of the forms for your records before you
mail them to us.
</p>
</div>
</section>
<section>
<h2>What to expect next</h2>
<p>
You don’t need to do anything while you wait for a decision
unless we send you a letter to ask you for more information. If
we send you a request for more information, you’ll need to
respond within 30 days of our request. If you don’t respond
within 30 days, we may decide your claim with the evidence
that’s available to us.
</p>
<p>
If you’ve opted to receive VA emails or texts, we’ll send you
updates about the status of your application. You can manage
your notification settings within your Va.gov profile.
</p>
<p>
You can also{' '}
<va-link
href="https://www.va.gov/claim-or-appeal-status"
text="check the status of your pension claim online."
/>
</p>
<p>
<strong>Note:</strong> It may take 7 to 10 days after you apply
for your pension claim to appear online.
</p>
</section>
</>
<section>
<h2>If you need to submit supporting documents</h2>
<p>
If you didn’t already submit your supporting documents and
additional evidence, you can submit copies of your documents by
mail.
</p>
<p>Mail any supporting documents to this address:</p>
<p className="va-address-block">
Department of Veterans Affairs
<br />
Pension Intake Center
<br />
PO Box 5365
<br />
Janesville, WI 53547-5365
</p>
<p>
<strong>Note:</strong> Mail us copies of your documents only.
Don’t send us your original documents. We can’t return them.
</p>
</section>
)}

{usingDirectDeposit && (
<section>
<h2>Direct deposit account information</h2>
Expand Down Expand Up @@ -311,57 +206,34 @@ const ConfirmationPage = ({ route }) => {
/>
</section>
)}
{showUpdatedConfirmation ? (
<>
<section>
<h2>When to tell us if your information changes</h2>
<p>
If you receive Veterans Pension benefits, you’ll need to tell us
if certain information changes. Tell us right away if any of
these are true for you:
</p>
<ul>
<li>
Your income or the income of your dependents changes
(including earnings, Social Security benefits, or lottery and
gambling winnings)
</li>
<li>
Your net worth increases (including bank accounts,
investments, or real estate)
</li>
<li>Your medical expenses decrease</li>
<li>
You add or remove a dependent (including children, parents, or
spouses)
</li>
<li> Your address or phone number changes</li>
</ul>
</section>
<ConfirmationView.HowToContact />
</>
) : (
<section>
<h2>How to contact us if you have questions</h2>
<p>
You can ask us a question{' '}
<va-link
href="https://ask.va.gov/"
text="online through Ask VA."
/>
</p>
<p>
Or call us at <va-telephone contact="8008271000" international />{' '}
<va-telephone contact="711" tty />
</p>
</section>
)}
<div className="screen-only vads-u-margin-top--4">
<a className="vads-c-action-link--green" href="/">
Go back to VA.gov
</a>
</div>
{showUpdatedConfirmation && <ConfirmationView.NeedHelp />}
<section>
<h2>When to tell us if your information changes</h2>
<p>
If you receive Veterans Pension benefits, you’ll need to tell us if
certain information changes. Tell us right away if any of these are
true for you:
</p>
<ul>
<li>
Your income or the income of your dependents changes (including
earnings, Social Security benefits, or lottery and gambling
winnings)
</li>
<li>
Your net worth increases (including bank accounts, investments, or
real estate)
</li>
<li>Your medical expenses decrease</li>
<li>
You add or remove a dependent (including children, parents, or
spouses)
</li>
<li> Your address or phone number changes</li>
</ul>
</section>
<ConfirmationView.HowToContact />
<ConfirmationView.GoBackLink />
<ConfirmationView.NeedHelp />
</ConfirmationView>
</div>
);
Expand Down
Loading
Loading