Skip to content

LG-8783 Update IPP CTA with nationwide language on barcode attention error page#7798

Merged
JackRyan1989 merged 2 commits intomainfrom
jryan/8783-match-nationwide-language
Feb 9, 2023
Merged

LG-8783 Update IPP CTA with nationwide language on barcode attention error page#7798
JackRyan1989 merged 2 commits intomainfrom
jryan/8783-match-nationwide-language

Conversation

@JackRyan1989
Copy link
Contributor

🎫 Ticket? TICKET.

🛠 Summary of changes

With the advent of the nationwide launch, the default state of the IPP CTA has changed. The previous language referring to D.C. and Baltimore only P.O. locations is irrelevant. So this is a minor change to make the default language that of CTA version A.

📜 Testing Plan

Since the changes to the frontend have already been made, there shouldn't be any changes to the text displayed.

  • Confirm that the text "You may be able to verify your ID in person at a participating Post Office near you." is displayed on the failure to verify ID page for IPP CTA Version A
  • Confirm that the text "Alternatively, if you are having trouble adding your ID online, you may be able to try in person at limited post office locations." is displayed on the failure to verify ID page for IPP CTA Version B
  • Confirm that the relevant text is displayed for each translation

👀 Screenshots

@JackRyan1989 JackRyan1989 requested review from a team and jess-fortier February 8, 2023 20:12
{altHeading || t('in_person_proofing.headings.cta')}
</h2>
<p>{altPrompt || t('in_person_proofing.body.cta.prompt_detail')}</p>
<p>{altPrompt}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently altPrompt is set as optional for this component. If a value isn't provided, we won't show any content here. This departs from the existing pattern of fallback values for altHeading, altPrompt and altButtonText.

Rather than making altPrompt required and removing the fallback to the (now updated) in_person_proofing.body.cta.prompt_detail, could we instead leave this file as-is and remove unnecessary props in the components calling this one?

heading={t('components.troubleshooting_options.ipp_heading')}
altInPersonCta={t('in_person_proofing.headings.cta_variant')}
altInPersonPrompt={t('in_person_proofing.body.cta.prompt_detail_a')}
altInPersonPrompt={t('in_person_proofing.body.cta.prompt_detail')}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit this line entirely if we leave the fallback in in-person-call-to-action.tsx.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tying this comment into your previous statement "could we instead leave this file as-is and remove unnecessary props in the components calling this one?"

This is the only place where the input prop matches the fallback text, so this is the only prop that can be removed FYI.

@JackRyan1989 JackRyan1989 merged commit 95a67ee into main Feb 9, 2023
@JackRyan1989 JackRyan1989 deleted the jryan/8783-match-nationwide-language branch February 9, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants