Date: Thu, 8 Jun 2023 10:31:10 -0400
Subject: [PATCH 08/21] Cancel link
---
app/views/idv/phone_errors/failure.html.erb | 10 +++++-----
config/locales/idv/en.yml | 1 +
config/locales/idv/es.yml | 1 +
config/locales/idv/fr.yml | 1 +
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/app/views/idv/phone_errors/failure.html.erb b/app/views/idv/phone_errors/failure.html.erb
index 2cbdd80b8e9..98e80f6a723 100644
--- a/app/views/idv/phone_errors/failure.html.erb
+++ b/app/views/idv/phone_errors/failure.html.erb
@@ -4,16 +4,16 @@
heading: t('idv.failure.phone.rate_limited.heading'),
current_step: :verify_phone_or_address,
options: [
- decorated_session.sp_name && {
- url: return_to_sp_failure_to_proof_path(step: 'phone', location: request.params[:action]),
- text: t('idv.troubleshooting.options.get_help_at_sp', sp_name: decorated_session.sp_name),
- new_tab: true,
- },
{
url: MarketingSite.contact_url,
text: t('idv.troubleshooting.options.contact_support', app_name: APP_NAME),
new_tab: true,
},
+ decorated_session.sp_name && {
+ url: return_to_sp_failure_to_proof_path(step: 'phone', location: request.params[:action]),
+ text: t('idv.failure.phone.rate_limited.option_cancel_and_return_to_sp'),
+ new_tab: true,
+ },
].select(&:present?),
) do %>
diff --git a/config/locales/idv/en.yml b/config/locales/idv/en.yml
index cb90162e476..6c8ba559399 100644
--- a/config/locales/idv/en.yml
+++ b/config/locales/idv/en.yml
@@ -102,6 +102,7 @@ en:
button: Verify by mail
heading: 'We couldn’t verify your identity by phone'
option_cancel: Cancel and start over again after %{time_left}
+ option_cancel_and_return_to_sp: Cancel
option_verify_by_mail_html: 'Verify by mail, which typically takes 3-7 business days'
options_header: 'You can:'
timeout: Our request to verify your information timed out. Please try again.
diff --git a/config/locales/idv/es.yml b/config/locales/idv/es.yml
index 05d025babe9..820fb2594b8 100644
--- a/config/locales/idv/es.yml
+++ b/config/locales/idv/es.yml
@@ -108,6 +108,7 @@ es:
button: Verificar por correo
heading: No pudimos asociarlo a este número
option_cancel: Cancelar y empezar de nuevo transcurridas %{time_left}
+ option_cancel_and_return_to_sp: Cancelar
option_verify_by_mail_html: 'Verificar por correo, lo que suele demorar de 3
a 7 días hábiles'
options_header: 'Puede:'
diff --git a/config/locales/idv/fr.yml b/config/locales/idv/fr.yml
index 6aca4a69cd7..238a3a9bec9 100644
--- a/config/locales/idv/fr.yml
+++ b/config/locales/idv/fr.yml
@@ -114,6 +114,7 @@ fr:
button: Vérifier par courrier
heading: Nous n’avons pas pu vérifier votre identité par téléphone
option_cancel: Annuler et recommencer après %{time_left}
+ option_cancel_and_return_to_sp: Annuler
option_verify_by_mail_html: Vérifier par courrier, ce qui prend généralement de
trois à sept jours ouvrables.
options_header: 'Vous Pouvez :'
From 61c79086452aec072a6e562a7c1870271abacf86 Mon Sep 17 00:00:00 2001
From: John Maxwell
Date: Thu, 8 Jun 2023 15:12:22 -0400
Subject: [PATCH 09/21] Fixed Cancel link spec
---
spec/views/idv/phone_errors/failure.html.erb_spec.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spec/views/idv/phone_errors/failure.html.erb_spec.rb b/spec/views/idv/phone_errors/failure.html.erb_spec.rb
index b380168fa0c..37c9df21b10 100644
--- a/spec/views/idv/phone_errors/failure.html.erb_spec.rb
+++ b/spec/views/idv/phone_errors/failure.html.erb_spec.rb
@@ -22,7 +22,7 @@
it 'renders a list of troubleshooting options' do
expect(rendered).to have_link(
- t('idv.troubleshooting.options.get_help_at_sp', sp_name: sp_name),
+ t('idv.failure.phone.rate_limited.option_cancel_and_return_to_sp'),
href: return_to_sp_failure_to_proof_path(step: 'phone', location: 'failure'),
)
expect(rendered).to have_link(
From 5396be3dcca6ff854ef357962957e7e8c62dd881 Mon Sep 17 00:00:00 2001
From: John Maxwell
Date: Fri, 9 Jun 2023 10:40:20 -0400
Subject: [PATCH 10/21] Made cancel link not open a new tab
---
app/views/idv/phone_errors/failure.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/idv/phone_errors/failure.html.erb b/app/views/idv/phone_errors/failure.html.erb
index 98e80f6a723..9b7342c10b6 100644
--- a/app/views/idv/phone_errors/failure.html.erb
+++ b/app/views/idv/phone_errors/failure.html.erb
@@ -12,7 +12,7 @@
decorated_session.sp_name && {
url: return_to_sp_failure_to_proof_path(step: 'phone', location: request.params[:action]),
text: t('idv.failure.phone.rate_limited.option_cancel_and_return_to_sp'),
- new_tab: true,
+ new_tab: false,
},
].select(&:present?),
) do %>
From 20bd35d8be3ed93463e2e1d830939dbe145f6550 Mon Sep 17 00:00:00 2001
From: John Maxwell
Date: Tue, 27 Jun 2023 11:33:37 -0400
Subject: [PATCH 11/21] Checkin to change branches
---
app/views/idv/phone_errors/failure.html.erb | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/app/views/idv/phone_errors/failure.html.erb b/app/views/idv/phone_errors/failure.html.erb
index 9b7342c10b6..bc3e817bec6 100644
--- a/app/views/idv/phone_errors/failure.html.erb
+++ b/app/views/idv/phone_errors/failure.html.erb
@@ -31,16 +31,6 @@
<% if @gpo_letter_available %>
<%= t('idv.failure.phone.rate_limited.option_verify_by_mail_html') %>
<% end %>
-
- <%= t(
- 'idv.failure.phone.rate_limited.option_cancel',
- time_left: distance_of_time_in_words(
- Time.zone.now,
- [@expires_at, Time.zone.now].compact.max,
- except: :seconds,
- ),
- ) %>
-
<% if @gpo_letter_available %>
@@ -53,3 +43,6 @@