Conversation
changelog: User-Facing Improvements, IdV, New fraud rejection page for users
| redirect_to_fraud_review if fraud_review_pending? | ||
| end | ||
|
|
||
| def handle_fraud_rejection |
There was a problem hiding this comment.
Maybe this should be automatically wired up as a before_action if the concern is included:
included do
before_action :handle_fraud_rejection
endTaking a quick look over where this concern is included, I don't see a downside? We're having a proliferation of controllers under Idv and it'd be nice for them all to be able to easily redirect users due to being rejected.
There was a problem hiding this comment.
Idv::SetupErrorsController should get this before_action as well--if you refresh the page after being rejected, it should catch that and redirect you to the new messaging.
There was a problem hiding this comment.
true. yeah that will fix up some DRY.
| <%= link_to( | ||
| t('idv.failure.verify.fail_link_html', sp_name: decorated_session.sp_name), | ||
| return_to_sp_failure_to_proof_path( | ||
| step: 'verify_info', | ||
| location: request.params[:action], | ||
| ), | ||
| class: 'usa-link--external', | ||
| ) %> | ||
| <% else %> | ||
| <%= link_to( | ||
| t('idv.failure.verify.fail_link_html', sp_name: APP_NAME), | ||
| account_path, | ||
| class: 'usa-link--external', | ||
| ) %> |
There was a problem hiding this comment.
We typically only use external links in combination with opening a new tab, which we're not doing here. I think a case could be made to include it here, since it is technically an external site, though we also link back to the SP in many other places without it. The second link here is definitely not external though.
For the first link, I'd suggest either (a) removing the external styling since it opens in the same tab or (b) make the link open in a new tab.
| <%= link_to( | |
| t('idv.failure.verify.fail_link_html', sp_name: decorated_session.sp_name), | |
| return_to_sp_failure_to_proof_path( | |
| step: 'verify_info', | |
| location: request.params[:action], | |
| ), | |
| class: 'usa-link--external', | |
| ) %> | |
| <% else %> | |
| <%= link_to( | |
| t('idv.failure.verify.fail_link_html', sp_name: APP_NAME), | |
| account_path, | |
| class: 'usa-link--external', | |
| ) %> | |
| <%= link_to( | |
| t('idv.failure.verify.fail_link_html', sp_name: decorated_session.sp_name), | |
| return_to_sp_failure_to_proof_path( | |
| step: 'verify_info', | |
| location: request.params[:action], | |
| ), | |
| ) %> | |
| <% else %> | |
| <%= link_to( | |
| t('idv.failure.verify.fail_link_html', sp_name: APP_NAME), | |
| account_path, | |
| ) %> |
soniaconnolly
left a comment
There was a problem hiding this comment.
Tried it out, saw the right views. Noted that the rake task gave me an error, but that's not directly in this PR. Added a couple of code comments.
| <p> | ||
| <% if decorated_session.sp_name.present? %> | ||
| <%= link_to( | ||
| t('idv.failure.verify.fail_link_html', sp_name: decorated_session.sp_name), |
There was a problem hiding this comment.
The text says this is a help link, but it returns to the same failure to proof path as the Exit Login.gov button. I see idv.troubleshooting.options.get_help_at_sp in other places, maybe that's the right link?
Actually, looks like that's the usual text and we always send people to the "failure to proof" link to "get help at their sp"? That seems like bait & switch! I thought we would have an sp help page link there.
There was a problem hiding this comment.
I could bring this up with UX and ask
There was a problem hiding this comment.
@theabrad - I like the idea of talking w/ UX about what we might want to accomplish here, I myself am learning a lot about these URLs/links in some of the work around "rate limit" screens!
| @@ -0,0 +1,9 @@ | |||
| module Idv | |||
| class VerifyErrorsController < ApplicationController | |||
| before_action :confirm_two_factor_authenticated | |||
There was a problem hiding this comment.
I wonder if it would make sense to combine this controller and setup_errors_controller, since they're both really small and show related views, like the session_errors_controller that shows several different views.
soniaconnolly
left a comment
There was a problem hiding this comment.
LGTM. I like how the not_verified controller name reads!
🎫 Ticket
LG-8770
🛠 Summary of changes
Created a new page for users who are fraud rejected.
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
rake users:review:reject👀 Screenshots