LG-11666 Add Post Office search link to barcode page and emails#11520
Conversation
There was a problem hiding this comment.
Instead of html_safe, I suggest using _html suffix convention for translated strings:
https://guides.rubyonrails.org/i18n.html#using-safe-html-translations
There was a problem hiding this comment.
Thanks!! Will make this update.
spec/mailers/user_mailer_spec.rb
Outdated
There was a problem hiding this comment.
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.
| 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 } |
There was a problem hiding this comment.
Good catch! These new tests were actually not functioning properly at all, thanks for highlighting them.
kellular
left a comment
There was a problem hiding this comment.
I just had one comment about the Chinese translations, otherwise looks good from design.
config/locales/zh.yml
Outdated
There was a problem hiding this comment.
Nit: We're missing a "。" at the end of the sentence. So the end of the sentence should look like:
... 点。
eileen-nava
left a comment
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 😛
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
The comment I left on L232 of app/views/idv/in_person/ready_to_verify/show.html.erb is relevant here, too.
eileen-nava
left a comment
There was a problem hiding this comment.
Approved. I left nonblocking feedback on test setup.
spec/mailers/user_mailer_spec.rb
Outdated
There was a problem hiding this comment.
I appreciate how readable these specs are.
spec/mailers/user_mailer_spec.rb
Outdated
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
Non-blocking: I wonder if Andrew's comment on the user mailer spec also applies here?
There was a problem hiding this comment.
Non-blocking: Again, I wonder if Andrew's comment on the user mailer spec also applies to this set-up?
3ce6fad to
ee19b3c
Compare
changelog: In-person proofing, User-Facing Improvements, Add PO search link to barcode page and ready to verify emails
ee19b3c to
eb9967b
Compare
|
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 |
🎫 Ticket
Link to the relevant ticket:
LG-11666
🛠 Summary of changes
Updates Ready to Verify barcode page and email/reminder email:
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
Verify that the new H3 and body text are not added in the EIPP flow:
Verify the emails:
👀 Screenshots
Ready to Verify Barcode Page (ID-IPP):
Ready to Verify Barcode Page (EIPP):
Ready to Verify Email (ID-IPP):
Reminder Email (ID-IPP):
Read to Verify email (EIPP):
Reminder email (EIPP):