-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update verify hard fail screens #1640
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
p.mb1 = t('idv.messages.hardfail4', sp: decorated_session.sp_name) | ||
p.mb1 = t('idv.messages.hardfail', hours: Figaro.env.idv_attempt_window_in_hours) | ||
.mt2.p3.col-12.center.border-box.border.border-teal.rounded-xl | ||
p.mb3.fs-20p = t('idv.messages.hardfail4_html', sp: decorated_session.sp_name) | ||
= link_to t('idv.buttons.continue_plain'), | ||
decorated_session.sp_return_url, | ||
class: 'btn btn-primary btn-wide' | ||
hr.mt2 | ||
.mt2 = link_to t('idv.messages.help_center'), MarketingSite.help_url | ||
.mt2 | ||
= link_to t('idv.messages.return_to_profile', app: APP_NAME), profile_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.mt2.p3.col-12.center.border-box.border.border-teal.rounded-xl | ||
p.mb3.fs-20p | ||
= t('idv.messages.help_center') | ||
= link_to t('idv.buttons.continue_plain'), | ||
MarketingSite.help_url, | ||
class: 'btn btn-primary btn-wide' | ||
hr.mt2 | ||
.mt2 | ||
= link_to t('idv.messages.return_to_profile', app: APP_NAME), profile_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
- title t('idv.titles.hardfail') | ||
|
||
h1.h3.mt0 = t('idv.titles.hardfail') | ||
p.mb1 = t('idv.messages.hardfail', hours: Figaro.env.idv_attempt_window_in_hours) | ||
.mb1.sm-m0.center.pb1 | ||
= image_tag(asset_url('no-verify.svg'), | ||
alt: '', | ||
class: 'align-bottom', | ||
width: 170) | ||
h1.h3.mt0.center.px6 | ||
= t('idv.titles.hardfail') | ||
= render decorated_session.idv_hardfail4_partial | ||
|
||
.mt4.p3.col-12.center.border-box.border.border-teal.rounded-xl | ||
p.mb3.fs-20p = t('idv.messages.help_center') | ||
= link_to t('idv.buttons.help'), MarketingSite.help_url, class: 'btn btn-primary btn-wide' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'verify/_hardfail4.html.slim' do | ||
let(:decorated_session) do | ||
instance_double('SessionDecorator', sp_name: 'Example SP', sp_return_url: 'test.host') | ||
end | ||
|
||
before do | ||
allow(view).to receive(:decorated_session).and_return(decorated_session) | ||
end | ||
|
||
it 'links to the profile' do | ||
render | ||
|
||
expect(rendered).to have_link( | ||
t('idv.messages.return_to_profile', app: APP_NAME), | ||
href: profile_path | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'verify/_no_sp_hardfail.html.slim' do | ||
it 'links to the profile' do | ||
render | ||
|
||
expect(rendered).to have_link( | ||
t('idv.messages.return_to_profile', app: APP_NAME), | ||
href: profile_path | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% convinced this is the right URL
I believe our goal is to have SP register a new URL specifically as a help page, so we'll need to add a new migration, update fields in the dashboard, etc etc
I am OK with us merging this as-is but it's wrong and we'll need to plan to fix it in the short-term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickbristow let's talk about how to fix this when you get back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zachmargolis you are correct, we don't have the SP's registering a help url atm, I think thats planned.