Enable back button through document capture#9292
Conversation
de70372 to
d34a937
Compare
|
Trying this out. Going back and forth between HybridHandoff, Agreement, and Welcome works as described. The Agreement box stays checked after I submit Agreement. 🎉 If I check the Agreement box but don't submit and go back to Welcome and then go forward again, it is unchecked, which is surprising as a user but makes some sense as a developer. Since your comment says we prevent people from going back once they submit DocumentCapture, I tried submitting HybridHandoff, but not uploading any documents on DocumentCapture, and then going back. HybridHandoff automatically redirects to DocumentCapture, but I can go back past that to Agreement. I think we need to edit the HybridHandoff before_actions in this PR too. The Agreement before_action needs editing similar to the Welcome one - I was able to go back from Ssn page to Agreement. I was also able to go back from Phone to Welcome, as already noted in a comment. |
1cd0804 to
9863fab
Compare
|
Current plan is to hold on landing this until hybrid handoff back button situation is resolved (see LG-11218). |
changelog: User-Facing Improvements, Identity verification, Enable browser back button for early idv steps
- Keep consent checkbox checked on back - Clear consent checkbox after re-submitting welcome
Reviewed this with the team and there was a desire to keep this box checked after the user had checked it.
Co-authored-by Matt Hinz <matt.hinz@gsa.gov>
Once verify info is completed, all steps before and including it should be inaccessible
Since we don't have back button for hybrid_handoff worked out yet, don't allow users to go back to agreement or welcome once they submit hybrid_handoff.
This reverts commit 6ee321689ea3d555c6f60b9424ef810b9974c3cb.
It turns out that polling continues if you go back from LinkSent and return, so it's safe to enable the back button for hybrid handoff. Co-authored-by: Doug Price <douglas.price@gsa.gov>
375e298 to
4e8e344
Compare
@solipet and I added code to handle hybrid handoff. |
|
(I'm gonna write a spec to catch the issue Zach described before landing this.) |
Add spec to cover the issue Zach identified with `redirect_to && return`
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
9e72483 to
20b2411
Compare
soniaconnolly
left a comment
There was a problem hiding this comment.
LGTM, with style comments.
Fewer lets, less indirection, all that good stuff.
🎫 Tickets
LG-11041
LG-11220
LG-11218
🛠 Summary of changes
Enables the use of the browser back button for early steps of the IdV flow including:
To do this, the PR updates how early IdV steps evaluate whether the user can access them. Instead of checking whether e.g. the Welcome step has already been visited, we now check whether the user has completed document capture.
There is also a tweak to how the agreement step uses
Idv::ConsentFormso that the consent checkbox stays checked when navigating back to it.The user can navigate freely among the first few steps of the flow as long as they have not submitted DocumentCapture.
📜 Testing Plan
Provide a checklist of steps to confirm the changes.