LG-9026: Phone finder failure screen updates#8101
Conversation
soniaconnolly
left a comment
There was a problem hiding this comment.
A couple of translation issues that need attention, now going back to read the code and try it out.
config/locales/idv/en.yml
Outdated
There was a problem hiding this comment.
This language was previously shared between ID verification and phone/address verification throttles, leading to some confusion (see LG-9260).
soniaconnolly
left a comment
There was a problem hiding this comment.
Code looks good, and works as described.
I noticed when trying it that when I go back to retry with a different phone number, the "you have successfully verified your identity" banner still shows up at the top. That's confusing when I'm coming from an error screen. Also, we're still pre-filling the number even though we want them to try a different one.
There was a problem hiding this comment.
My understanding from UX shareout was that this could be a list of phone numbers if they fail with multiple ones. Is that included in this ticket?
There was a problem hiding this comment.
The banner shouldn't be there when going back to retry, so I'm thinking that needs to be fixed. I think it would also be good to avoid pre-filling the number, but those two things weren't explicitly included in the ticket. @benjaminchait should we do this here or create a new ticket for this work?
And the list of phone numbers isn't included on this ticket.
There was a problem hiding this comment.
I think that is a separate ticket. The designs for this only have the 1 number.
There was a problem hiding this comment.
@artfulaction - Let's do a new story! I think the idea of a "list of phone numbers" is separate from the idea of what a users sees when they "go back to retry". I created https://cm-jira.usa.gov/browse/LG-9373 to capture the "go back to retry" experience with some questions. Let's consider these with UX, and then bring to the larger team in the next few weeks?
Yeah, I noticed this as well. I could see an argument either way:
I think some of the work we've seen at UX shareouts around warning the user if they're entering a number they already tried will be helpful here. |
Hmm. Looks like this is not a new behavior (that banner is hardcoded into that template). I'm going to take a quick look and see if this is an easy fix on this branch and file a ticket if it is not. |
app/services/idv/phone_step.rb
Outdated
There was a problem hiding this comment.
nit - one param per line if multi-line
067f5b4 to
b98e286
Compare
There was a problem hiding this comment.
Couple thoughts:
- If
topandbottommargins are the same, you could also usemargin-y-5in place of the two classes button_or_link_tois useful if you're not certain whether you'll want a button or a link based on the desired HTTP method of the navigation, but this seems like most definitely a plain link, solink_towould sufficeButtonComponentis available to abstract some of the behaviors with the specific appearance styling. It's a little clunky with custom link action behaviors, but an option to consider.
| <div class="margin-top-5 margin-bottom-5"> | |
| <%= button_or_link_to( | |
| t('idv.failure.phone.rate_limited.gpo.button'), | |
| idv_gpo_path, | |
| class: 'usa-button usa-button--big usa-button--wide', | |
| ) %> | |
| </div> | |
| <div class="margin-y-5"> | |
| <%= render ButtonComponent.new( | |
| action: ->(**tag_options, &block) { link_to(idv_gpo_path, **tag_options, &block) }, | |
| big: true, | |
| wide: true, | |
| ).with_content(t('idv.failure.phone.rate_limited.gpo.button')) %> | |
| </div> |
Allow rendering an error screen with a step indicator
- EN only for now - Not wired in to controller, just view spec passing
Mit tësts!
Coupla keys missing, will follow up
Want this for rendering purposes on the warning page.
Untranslated for now
English only, tests not updated yet
There was only 1 use, so it's not really shared anymore?
- More tests around GPO content - Fix ref to i18n key
…rror messaging around phone verification failure and highlight alternate paths.
b98e286 to
ce30299
Compare
🎫 Ticket
LG-9026
🛠 Summary of changes
Update phone finder warning and rate limiting screens with new language and more prominent links to verify by mail.
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
703-555-5555)👀 Screenshots
❌ Rate limited screen