LG-11458 Redirect users who choose Opt-in IPP to the beginning of the IPP flow#9598
LG-11458 Redirect users who choose Opt-in IPP to the beginning of the IPP flow#9598gina-yamada merged 41 commits intomainfrom
Conversation
Pull in partial changes from prototype branch Finish wiring up opt-in IPP Add conditional back button on IPP prepare
Still need to delete the now-unused opt_in_ipp page
…en opt in ipp is picked
…choose Opt-in IPP to the beginning of the IPP flow when the in_person_proofing_opt_in_enabled flag is set to true
|
ℹ️ I am talking with my team to stand up an issue to handle when |
n1zyy
left a comment
There was a problem hiding this comment.
This code looks good to me. I have a handful of questions and comments below, some just on account of my being new.
Leaving a comment vs. approval only because I haven't had a chance to run this yet. (Soon, I hope!)
app/javascript/packages/document-capture/components/in-person-prepare-step.tsx
Show resolved
Hide resolved
soniaconnolly
left a comment
There was a problem hiding this comment.
Overall looks great! Some code cleanup comments. Happy to pair with you on testing to approve if no one else gets to it.
soniaconnolly
left a comment
There was a problem hiding this comment.
LGTM, really nice work. One comment still needs addressing, but I'm approving now.
| include RenderConditionConcern | ||
|
|
||
| before_action :confirm_step_allowed | ||
| before_action :confirm_document_capture_not_complete |
There was a problem hiding this comment.
Now that we merged #9589, this needs to be updated again. Sorry we missed setting it for you.
| before_action :confirm_document_capture_not_complete | |
| before_action :confirm_verify_info_step_needed |
There was a problem hiding this comment.
@soniaconnolly Done. See commit 4854b8e
At first I was not sure about this. I just reviewed PR#9589 and I now see why this is needed. Thanks for letting me know to add it.
| if idv_session.skip_doc_auth == false | ||
| @selection = Idv::HowToVerifyForm::REMOTE | ||
| elsif idv_session.skip_doc_auth == true | ||
| @selection = Idv::HowToVerifyForm::IPP | ||
| else | ||
| @selection = nil | ||
| end |
There was a problem hiding this comment.
if we wanted to DRY a bit we could assign from the if statement
| if idv_session.skip_doc_auth == false | |
| @selection = Idv::HowToVerifyForm::REMOTE | |
| elsif idv_session.skip_doc_auth == true | |
| @selection = Idv::HowToVerifyForm::IPP | |
| else | |
| @selection = nil | |
| end | |
| @selection = if idv_session.skip_doc_auth == false | |
| Idv::HowToVerifyForm::REMOTE | |
| elsif idv_session.skip_doc_auth == true | |
| Idv::HowToVerifyForm::IPP | |
| end |
and then we can drop the else block entirely because the result of not matching either branch is that it evaluates to nil
🎫 Ticket
LG-11458 Redirect users who choose Opt-in IPP to the beginning of the IPP flow
🛠 Summary of changes
in_person_proofing_opt_in_enabledflag is not enabledin_person_proofing_opt_in_enabledflag is enabled, ensure you are taken to Verify you identity at a Post Office/verify/document_capture#prepareafter picking Verify you identity at a Post Office on/verify/how_to_verify📜 Testing Plan
Confirm existing behavior is not affected
/verify/hybrid_handoffand the title is How would you like to add your ID? Also confirm the first step of the step indicator is Getting started./verify/document_captureand the title is We couldn't verify your ID. Click on Try at a Post Office. You should be take to/verify/document_capature#prepare. Confirm title is Verify your identity at a Post Office. Confirm the first step of the step indicator is Find a Post Office./verify/document_capture#location. Fill out the form, click search, and select one location. Confirm you are taken to/verify/in_person/state_id.verify/how_to_verifyConfirm existing and new behavior is working as expected
in_person_proofing_opt_in_enabledto application.yml file and set it to true./verify/welcome. Click continue. Secure your account by checking the radio button on/verify/agreementand clicking continue. Confirm the next url is/verify/how_to_verifyand the title reads Choose how you want to verify your identity.verify/hybrid_handoffand the title read How would you like to add your ID? Also confirm that the selected step in the step indicator is Verify your ID. Pick Upload photos. Confirm you are taken to/verify/document_capture. Add two photos to fail proofing and click submit. Confirm the url is/verify/document_captureand pick Try at a Post Office. Confirm you are taken to/verify/document_capature#prepare, the title reads Verify your identity at a Post Office and the first step (and selected) step in the step indicator is Find a Post Office. Clicking continues takes you to/verify/document_capture#location. Ensure we can get to/verify/document_capture#locationand the page is working as expected./verify/document_capture#prepare. Confirm the title reads Verify your identity at a Post Office and the first and selected step in the step indicator is Find a Post Office. Click continue. Confirm you are taken to/verify/document_capture#location🎥 Videos
Before:
Screen.Recording.2023-11-20.at.3.46.37.PM.mov
After:
Screen.Recording.2023-11-20.at.3.40.31.PM.mov