LG-12172 implement tmx rejection screen and refactor please call code#10119
LG-12172 implement tmx rejection screen and refactor please call code#10119JackRyan1989 merged 4 commits intomainfrom
Conversation
…t when user has passed ipp
|
✅ Code changes look good and includes testing Update: I don't see the button on not_verified html. (I didn't dig to see if this is a partial view and it could be somewhere else.) I feel like this ticket was expecting that button to already be on that template. I think if more work is needed, we can remove that from the AC and create a new ticket to handle the Exit button. I also wonder if it should be added to the template for all or if it needs to be conditionally rendered? Testing locally- I don't see the button Translations |
| heading: t('idv.failure.verify.heading'), | ||
| action: { text: t('idv.failure.verify.exit', app_name: APP_NAME), url: :return_to_sp_failure_to_proof, method: :get }, | ||
| ) do %> | ||
| <p> |
There was a problem hiding this comment.
@JackRyan1989 I now observe the Exit button on the page.
When I click the Exit button, I am taken to the Sinatra app but it reads that I have not signed out.
On Sinatra, if you click the Log out button (see the screenshot above) you are taken to the screen below.
The Yes, sign out of Login.gov button appears to sign the user out and redirect you back to Sinatra. What do you think about keeping that same behavior (sign the user out and redirect) for the button? Or should the user be directed to this confirmation page from your button? Do either sound reasonable? I know the mocks are a little different but maybe best practice to sign the user out as well. Consider soliciting others opinions before implementing in case we don't want to do this.
There was a problem hiding this comment.
@gina-yamada thanks for confirming! So I'm going by the note in the Figma file which states to use the return_to_sp link.
I found this route in the routes.rb file and am taking advantage of it here:
get '/redirect/return_to_sp/failure_to_proof' => 'redirect/return_to_sp#failure_to_proof',
as: :return_to_sp_failure_to_proof
That's line 315 of the routes.rb file.
|
LGTM based on our conversation in Slack! |
n1zyy
left a comment
There was a problem hiding this comment.
Nice! I feel like the scope on this grew, and yet you implemented it with relatively few lines of code.
I don't have a good answer for where the "Exit" button should go. I think Gina raises a good point about how it would be reasonable to log people out, but it sounds like your implementation is based on what was proposed in the Figma design. I'm approving this PR because I think either approach is reasonable.
| @@ -0,0 +1,52 @@ | |||
| require 'rails_helper' | |||
|
|
|||
| RSpec.describe 'idv/not_verified/show.html.erb' do | |||
There was a problem hiding this comment.
👏 for adding a test for this.









🎫 Ticket
Link to the relevant ticket:
LG-12172
🛠 Summary of changes
This simplifies and extends the logic used to implement LG-11995. The reason I could simplify is that we're targeting both reject and review methods instead of just one. So there's no need to isolate as much code.
📜 Testing Plan
Test with a failed enrollment:
Screenshots:
Completed design: