Skip to content

Commit

Permalink
VACMS-19785: Remove Air Force portal link from results page DUW v2 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskim2311 authored Nov 15, 2024
1 parent 761f073 commit c9b42d7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 64 deletions.
36 changes: 13 additions & 23 deletions src/applications/discharge-wizard/components/v2/ResultsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ import StepOne from './resultsComponents/StepOne';
import AdditionalInstructions from './resultsComponents/AdditionalInstructions';
import StepTwo from './resultsComponents/StepTwo';
import StepThree from './resultsComponents/StepThree';
import AirForcePortalLink from './resultsComponents/AirForcePortalLink';

import { determineIsAirForceAFRBAPortal } from '../../helpers';

const ResultsPage = ({ formResponses, router, viewedIntroPage }) => {
const H1 = 'Your Steps for Upgrading Your Discharge';
const airForceAFRBAPortal = determineIsAirForceAFRBAPortal(formResponses);

useEffect(
() => {
Expand All @@ -41,25 +37,19 @@ const ResultsPage = ({ formResponses, router, viewedIntroPage }) => {
<article className="dw-guidance" data-testid="duw-results">
<h1>{H1}</h1>
<ResultsSummary formResponses={formResponses} />
{airForceAFRBAPortal ? (
<AirForcePortalLink />
) : (
<>
<CarefulConsiderationStatement
formResponses={formResponses}
router={router}
/>
<Warnings formResponses={formResponses} />
<OptionalStep formResponses={formResponses} />
<section>
<va-process-list>
<StepOne formResponses={formResponses} />
<StepTwo formResponses={formResponses} />
<StepThree formResponses={formResponses} />
</va-process-list>
</section>
</>
)}
<CarefulConsiderationStatement
formResponses={formResponses}
router={router}
/>
<Warnings formResponses={formResponses} />
<OptionalStep formResponses={formResponses} />
<section>
<va-process-list>
<StepOne formResponses={formResponses} />
<StepTwo formResponses={formResponses} />
<StepThree formResponses={formResponses} />
</va-process-list>
</section>
<va-button
back
class="vads-u-margin-top--3"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@ const StepOne = ({ formResponses }) => {

const nonDd2014Tips = (
<ul>
{formResponses[SHORT_NAME_MAP.SERVICE_BRANCH] !== RESPONSES.AIR_FORCE && (
<li>
Pay special attention to item 6, which asks for the reason for your
change. Most Veterans attach additional pages to answer this question.{' '}
{strongCaseTips()}
</li>
)}
<li>
Pay special attention to item 6, which asks for the reason for your
change. Most Veterans attach additional pages to answer this question.{' '}
{strongCaseTips()}
</li>

{[
RESPONSES.PREV_APPLICATION_BCMR,
RESPONSES.PREV_APPLICATION_BCNR,
Expand Down Expand Up @@ -122,22 +121,20 @@ const StepOne = ({ formResponses }) => {
the reason for PTSD.
</li>
)}
{boardToSubmit.abbr !== DRB &&
formResponses[SHORT_NAME_MAP.SERVICE_BRANCH] !==
RESPONSES.AIR_FORCE && (
<li>
Item 8 asks for the date when you discovered the error or injustice
you’re asking the Board to address. If it’s been more than 3 years
since you found this error or injustice, you’ll need to include a
reason why the Board should consider your application. Examples of
good reasons include new evidence you’ve found to support your
claim, or recent changes in policy (like liberal consideration for
PTSD, TBI, or military sexual assault or harassment). These kinds of
reasons will make it more likely for the Board to decide in your
favor. The 3-year time limit isn’t a strict rule, so don’t let it
keep you from applying if you think you have a strong case.
</li>
)}
{boardToSubmit.abbr !== DRB && (
<li>
Item 8 asks for the date when you discovered the error or injustice
you’re asking the Board to address. If it’s been more than 3 years
since you found this error or injustice, you’ll need to include a
reason why the Board should consider your application. Examples of
good reasons include new evidence you’ve found to support your claim,
or recent changes in policy (like liberal consideration for PTSD, TBI,
or military sexual assault or harassment). These kinds of reasons will
make it more likely for the Board to decide in your favor. The 3-year
time limit isn’t a strict rule, so don’t let it keep you from applying
if you think you have a strong case.
</li>
)}
{boardToSubmit.abbr !== DRB && (
<li>
Item 17 asks if you’re willing to appear in person before the Board in
Expand Down
5 changes: 0 additions & 5 deletions src/applications/discharge-wizard/helpers/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,11 +561,6 @@ export const stepHeaderLevel = formResponses => {
return 2;
};

export const determineIsAirForceAFRBAPortal = formResponses =>
formResponses[SHORT_NAME_MAP.SERVICE_BRANCH] === RESPONSES.AIR_FORCE &&
determineBoardObj(formResponses).abbr === BCMR &&
determineFormData(formResponses).num === 149;

const handleDD215Update = (boardToSubmit, prevAppType, oldDischarge) => {
if (
![
Expand Down

0 comments on commit c9b42d7

Please sign in to comment.