Skip to content

LG-11666 Add Post Office search link to barcode page and emails#11520

Merged
jennyverdeyen merged 1 commit intomainfrom
jverdeyen/LG-11666-add-po-search-link-to-barcode-page
Nov 19, 2024
Merged

LG-11666 Add Post Office search link to barcode page and emails#11520
jennyverdeyen merged 1 commit intomainfrom
jverdeyen/LG-11666-add-po-search-link-to-barcode-page

Conversation

@jennyverdeyen
Copy link
Copy Markdown
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-11666

🛠 Summary of changes

Updates Ready to Verify barcode page and email/reminder email:

  • Removes the text "You can visit any Participating Post Office location." from the body text under the "Post Office information" heading
  • For EIPP only, adds a section with the heading "Need to change your Post Office location?" and add body text under it: "You don’t need to create a new barcode, you can bring this barcode to any participating Post Office location. Find other participating Post Office locations."
  • Also refactored the specs for the show.html.erb content to focus on sections of content as contexts, for readability and consistency.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Enter through Sinatra and choose identity-verified (not Enhanced)
  • Go through the flow to create an enrollment
  • At the barcode page, observe that the "You can visit any Participating Post Office location" body text is removed, under the H2 "Post Office Information"
  • Observe the added H3 "Need to change your Post Office location?" and the added body text under it: "You don’t need to create a new barcode, you can bring this barcode to any participating Post Office location. Find other participating Post Office locations."
  • Verify that the link to "Find other participating Post Office locations" brings you to the help center PO search page.
  • Verify that translations are present and consistent with the translations doc

Verify that the new H3 and body text are not added in the EIPP flow:

  • Enter through Sinatra and choose Enhanced In-Person Proofing
  • Go through the flow to create an enrollment
  • At the barcode page, observe that the "You can visit any Participating Post Office location" body text is removed, under the H2 "Post Office Information"
  • Observe the H3 "Need to change your Post Office location?" and any body text underneath are not added.

Verify the emails:

👀 Screenshots

Ready to Verify Barcode Page (ID-IPP): Screenshot 2024-11-14 at 12 59 09 PM Screenshot 2024-11-14 at 12 59 26 PM Screenshot 2024-11-14 at 12 59 41 PM Screenshot 2024-11-14 at 12 58 35 PM
Ready to Verify Barcode Page (EIPP): Screenshot 2024-11-18 at 10 47 56 AM Screenshot 2024-11-18 at 10 48 24 AM e04b70"> Screenshot 2024-11-18 at 10 49 03 AM
Ready to Verify Email (ID-IPP): Screenshot 2024-11-18 at 10 42 39 AM Screenshot 2024-11-18 at 10 43 27 AM Screenshot 2024-11-18 at 10 43 46 AM Screenshot 2024-11-18 at 10 44 01 AM
Reminder Email (ID-IPP): Screenshot 2024-11-15 at 4 56 46 PM Screenshot 2024-11-15 at 4 56 28 PM Screenshot 2024-11-15 at 4 56 08 PM Screenshot 2024-11-15 at 4 55 44 PM
Read to Verify email (EIPP): Screenshot 2024-11-18 at 10 32 46 AM Screenshot 2024-11-18 at 10 35 01 AM Screenshot 2024-11-18 at 10 35 22 AM Screenshot 2024-11-18 at 10 35 37 AM
Reminder email (EIPP): Screenshot 2024-11-18 at 10 41 09 AM Screenshot 2024-11-18 at 10 41 25 AM Screenshot 2024-11-18 at 10 41 41 AM Screenshot 2024-11-18 at 10 41 57 AM

@jennyverdeyen jennyverdeyen requested review from a team, gina-yamada and rutvigupta-design and removed request for a team November 18, 2024 16:16
@kellular kellular requested review from kellular and removed request for rutvigupta-design November 18, 2024 16:19
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of html_safe, I suggest using _html suffix convention for translated strings:

https://guides.rubyonrails.org/i18n.html#using-safe-html-translations

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks!! Will make this update.

Comment on lines 766 to 775
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be using the assigned let variable assignment, or at the very least have a matching before in "when enabled" block below? Assigning with the variable would let us define it once and have the context variable change for each spec.

Suggested change
context 'when Enhanced IPP is not enabled' do
let(:is_enhanced_ipp) { false }
before do
@is_enhanced_ipp = false
end
before do
@is_enhanced_ipp = is_enhanced_ipp
end
context 'when Enhanced IPP is not enabled' do
let(:is_enhanced_ipp) { false }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch! These new tests were actually not functioning properly at all, thanks for highlighting them.

Copy link
Copy Markdown

@kellular kellular left a comment

Choose a reason for hiding this comment

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

I just had one comment about the Chinese translations, otherwise looks good from design.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: We're missing a "。" at the end of the sentence. So the end of the sentence should look like:

... 点。

Copy link
Copy Markdown
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

I started to look at this, but didn't have time to do a full review. I can come back to it tomorrow. Good stuff!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ruby style guidelines vote for unless over if !, but I know unless is controversial. It be would nice if we could change this to if @is_id_ipp, but that would require introducing a new instance variable. I don't think the change is worth that.

What are your thoughts on if ! versus unless?

Copy link
Copy Markdown
Contributor Author

@jennyverdeyen jennyverdeyen Nov 18, 2024

Choose a reason for hiding this comment

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

Ooooh I was not hip to the unless hatred!

kill unless with fire

😱

I agree if @is_id_ipp would be the most readable but also agree it isn't particularly worth the squeeze here. I don't have strong feelings about unless vs if ! but I stuck with if ! here because it was being used that way earlier in the same file. I kind of like the idiomatic feel of unless but now I wonder if I should avoid it in the future so as not to upset reviewers 😛

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Eh. I slightly prefer unless because it's in the Ruby style guidelines, but I also am not going to die on this hill. I also found the PR that introduced the if ! syntax into this template and found that I approved it. 🙃 I guess my past self didn't feel strongly, either!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The comment I left on L232 of app/views/idv/in_person/ready_to_verify/show.html.erb is relevant here, too.

Copy link
Copy Markdown
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

Approved. I left nonblocking feedback on test setup.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I appreciate how readable these specs are.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking nit request: While you're in this file, could you please change line 819 to specify that it's Informed Delivery IPP (ID-IPP)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: I wonder if Andrew's comment on the user mailer spec also applies here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: Again, I wonder if Andrew's comment on the user mailer spec also applies to this set-up?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: taps sign

@jennyverdeyen jennyverdeyen force-pushed the jverdeyen/LG-11666-add-po-search-link-to-barcode-page branch from 3ce6fad to ee19b3c Compare November 19, 2024 20:36
changelog: In-person proofing, User-Facing Improvements, Add PO search link to barcode page and ready to verify emails
@jennyverdeyen jennyverdeyen force-pushed the jverdeyen/LG-11666-add-po-search-link-to-barcode-page branch from ee19b3c to eb9967b Compare November 19, 2024 20:38
@jennyverdeyen jennyverdeyen merged commit aa5a7e9 into main Nov 19, 2024
@jennyverdeyen jennyverdeyen deleted the jverdeyen/LG-11666-add-po-search-link-to-barcode-page branch November 19, 2024 21:51
@voidlily
Copy link
Copy Markdown
Contributor

if you're still using this reviewapp (unlikely since the PR for this was merged), i cleaned it up manually since it was causing some problems in the reviewapps cluster

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.

5 participants