Skip to content
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

Deploy RC 121 to Production #4327

Merged
merged 36 commits into from
Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
61bda7f
Log the user UUID in the image uploads controller (#4286)
jmhooper Oct 7, 2020
c8b47ab
Async phone proofing calls (LG-3275) (#4273)
mitchellhenke Oct 7, 2020
d391f77
LG-3512: Apply link button styling to link element (#4290)
aduth Oct 8, 2020
538d341
Hide "+" character from screen readers via aria-hidden (LG-3560) (#4291)
zachmargolis Oct 8, 2020
7d83586
Fix intermittent IAA Billing Report test failures by sorting SPs (#4289)
aduth Oct 9, 2020
0f39228
Remove unused Webpack loaders (#4279)
aduth Oct 9, 2020
979a8d1
Add source-map-loader to Webpack configuration (#4280)
aduth Oct 9, 2020
3cc950a
LG-3423: Refactor doc capture (hybrid) polling to own endpoint (#4293)
aduth Oct 9, 2020
ce1350d
Async proofing for recovery flow (#4294)
mitchellhenke Oct 9, 2020
4ac261c
Remove unused profile step (#4297)
mitchellhenke Oct 9, 2020
2cd5364
Add CircleCI lint step to verify ES5 syntax for Internet Explorer (#4…
aduth Oct 9, 2020
d80d65b
Generate desktop selfie as JPEG at original (constrained) capture siz…
aduth Oct 9, 2020
31311a7
Remove explicit dependency to identity-es5-safe (#4298)
aduth Oct 9, 2020
a060bf4
fix warning from i18n update (#4300)
mitchellhenke Oct 9, 2020
206b7b0
Fixes a bug where canceling identity proofing would leave the user in…
solipet Oct 13, 2020
1e17c4c
Use default USWDS pseudo-class for banner collapse button (#4277)
aduth Oct 14, 2020
b89e615
Convert more slim templates (#4304)
mitchellhenke Oct 14, 2020
f04b14e
LG-3576 Update the piv/cac chooser page with new graphics, layout, co…
amathews-fs Oct 14, 2020
faf0b5b
Fixing 2FA SMS code not autocompleting in Safari (#4303)
ankurp Oct 14, 2020
f857528
One liner to fix local docker building. (#4306)
amathews-fs Oct 14, 2020
9db3846
ensure input has associated label (#4311)
mitchellhenke Oct 15, 2020
17a897a
fix bottom margin on label (#4312)
mitchellhenke Oct 15, 2020
2b6c824
async proofing for cac flow (#4299)
mitchellhenke Oct 15, 2020
03090dc
Async resolution proofing in USPS flow (#4305)
mitchellhenke Oct 15, 2020
9f15e03
Use lambdas for async resolution proofing calls (#4308)
mitchellhenke Oct 16, 2020
3ecdadc
Convert more slim templates (#4316)
mitchellhenke Oct 16, 2020
1abcb81
Add aria-invalid attribute to all required fields (LG-3531) (#4309)
zachmargolis Oct 19, 2020
9ed0f90
LG-3419: Add background upload for images in document capture (#4314)
aduth Oct 19, 2020
fc821dd
DocAuth: Move it to a gem (#4307)
zachmargolis Oct 19, 2020
1287b45
LG-3589: List supported MIME types for file input accept pattern (#4317)
aduth Oct 19, 2020
d22a63a
Update string usage from doc auth gem (#4320)
aduth Oct 20, 2020
82389b9
LG-3672 Fix overall success rate reporting when doc capture step enab…
stevegsa Oct 20, 2020
5778e83
LG-3645 Fix authentication costing for SAML (#4319)
stevegsa Oct 20, 2020
edd83da
Ensure advance warning of links opening new window (LG-3528) (#4310)
mitchellhenke Oct 20, 2020
05723ea
LG-3416 API to verify documents (#4313)
stevegsa Oct 21, 2020
a415de4
Bump identity-idp-functions (#4328)
zachmargolis Oct 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure advance warning of links opening new window (LG-3528) (#4310)
* convert registration pii accordion to erb and add new window warning to external link

* convert users emails show template to erb and add new window warning to external links

* update translations

* add new window warning to external links

* use partial for rendering links that open new window

* automatically apply external link icon

* helper function and CSS update

* indenting

* link helper

* set target=_blank

* Update styles to not conflict

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* comment

* support block form in new_window_link_to

* use new link helper

* fix a couple bugs

* Update app/views/idv/doc_auth/overview.html.erb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update app/views/sign_up/registrations/new.html.erb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update app/views/sign_up/registrations/new.html.erb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* lint

* update helper to behave more like link_to

* remove convert_options_to_data_attributes

* maintain footer colors

* fix double footer link spec

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
  • Loading branch information
mitchellhenke and aduth authored Oct 20, 2020
commit edd83da36d43685e965b143243a0f2f7beb50199
11 changes: 11 additions & 0 deletions app/assets/stylesheets/components/_external-link.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// We're not (yet) using USWDS links consistently, where we'd expect color changes on hover, so in order to prevent the icon from flipping color independently from the rest of the link text on hover, we have to override it.

// In the future, we'll want to either apply usa-link to all links, or to configure $theme-global-link-styles to apply link styling globally. This will bring hover color styles, at which point we can remove these overrides.

.usa-link--external {
@include external-link(external-link, external-link);

&.usa-link--alt {
@include external-link(external-link-alt, external-link-alt);
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/components/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import 'card';
@import 'color';
@import 'container';
@import 'external-link';
@import 'footer';
@import 'form';
@import 'icon';
Expand Down
34 changes: 34 additions & 0 deletions app/helpers/link_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module LinkHelper
EXTERNAL_LINK_CLASS = 'usa-link--external'.freeze

def new_window_link_to(name = nil, options = nil, html_options = nil, &block)
if block_given?
html_options = options
options = name
name = block
end
options ||= {}
html_options ||= {}

url = url_for(options)
html_options[:href] ||= url
html_options[:class] ||= html_options[:class].to_s
html_options[:target] = '_blank'

classes = html_options[:class].split(' ').append(EXTERNAL_LINK_CLASS)

html_options[:class] = classes.uniq.join(' ')

if block_given?
link_to(url, html_options) do
yield(block)
concat content_tag('span', t('links.new_window'), class: 'usa-sr-only')
end
else
link_to(url, html_options) do
content_tag('span', name) +
content_tag('span', t('links.new_window'), class: 'usa-sr-only')
end
end
end
end
10 changes: 4 additions & 6 deletions app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@
<% end %>

<p class="my1">
<%= link_to(
t('notices.privacy.security_and_privacy_practices'),
MarketingSite.security_and_privacy_practices_url,
target: '_blank',
) %>
<%= new_window_link_to(t('notices.privacy.security_and_privacy_practices'),
MarketingSite.security_and_privacy_practices_url) %>
</p>
<p class="my1">
<%= link_to t('notices.privacy.privacy_act_statement'), MarketingSite.privacy_act_statement_url, target: '_blank' %>
<%= new_window_link_to(t('notices.privacy.privacy_act_statement'),
MarketingSite.privacy_act_statement_url) %>
</p>
2 changes: 1 addition & 1 deletion app/views/idv/doc_auth/overview.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<%= check_box_tag :ial2_consent_given, true, false %>
<span class="indicator"></span>
<%= t('recover.instructions.consent') %>
<%= link_to(t('recover.instructions.learn_more'), 'https://login.gov/policy/', target: '_blank') %>
<%= new_window_link_to(t('recover.instructions.learn_more'), 'https://login.gov/policy/') %>
</div>
</label>
<%= f.button :submit, t('recover.buttons.continue'), class: 'btn btn-primary btn-wide sm-col-6 col-6' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/idv/doc_auth/welcome.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<%= check_box_tag :ial2_consent_given, true, false %>
<span class="indicator"></span>
<%= t('doc_auth.instructions.consent') %>
<%= link_to(t('doc_auth.instructions.learn_more'), 'https://login.gov/policy/', target: '_blank') %>
<%= new_window_link_to t('doc_auth.instructions.learn_more'), 'https://login.gov/policy/' %>
</div>
</label>
<%= f.button :submit, t('doc_auth.buttons.continue'), class: 'btn btn-primary btn-wide sm-col-6 col-6' %>
Expand Down
3 changes: 2 additions & 1 deletion app/views/idv/in_person/encrypt.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<%= t('in_person_proofing.instructions.encrypt') %>
</p>

<%= link_to t('in_person_proofing.instructions.read_more_encrypt'), MarketingSite.security_url, target: '_blank' %>
<%= new_window_link_to t('in_person_proofing.instructions.read_more_encrypt'),
MarketingSite.security_url %>

<%= validated_form_for(:in_person_proofing, url: url_for, method: 'PUT',
html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| %>
Expand Down
3 changes: 2 additions & 1 deletion app/views/idv/review/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<%= t('idv.messages.sessions.review_message') %>
</p>

<%= link_to t('idv.messages.sessions.read_more_encrypt'), "https://login.gov/security/", target: "_blank" %>
<%= new_window_link_to(t('idv.messages.sessions.read_more_encrypt'),
MarketingSite.security_url)%>

<%= validated_form_for(current_user, url: idv_review_path,
html: { autocomplete: 'off', method: :put, role: 'form' }) do |f| %>
Expand Down
53 changes: 37 additions & 16 deletions app/views/shared/_footer_lite.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,29 @@
<div class='container py1 px2 lg-px0 <%= 'sm-py0' if show_language_dropdown %>'>
<div class='flex flex-center'>
<div class='flex flex-auto flex-first'>
<%= link_to('https://gsa.gov', class: 'flex flex-center text-decoration-none white h6', target: '_blank', 'aria-label': t('shared.footer_lite.gsa')) do %>
<%= image_tag asset_url('sp-logos/square-gsa.svg'),
width: 20, class: 'mr1 sm-show', alt: '' %>
<%= image_tag asset_url('sp-logos/square-gsa-dark.svg'),
width: 20, class: 'mr1 sm-hide', alt: '' %>
<span class='sm-show'>
<%= t('shared.footer_lite.gsa') %>
</span>
<% end %>
<div class="sm-hide">
<%= new_window_link_to 'https://gsa.gov', { class: 'flex flex-center text-decoration-none white h6 mr1 sm-hide',
'aria-label': t('shared.footer_lite.gsa') } do %>
<%= image_tag asset_url('sp-logos/square-gsa-dark.svg'),
width: 20, alt: '' %>
<% end %>
</div>

<div class="sm-show">
<%= new_window_link_to 'https://gsa.gov', { class: 'flex flex-center text-decoration-none white h6 mr1 usa-link--alt',
'aria-label': t('shared.footer_lite.gsa') } do %>
<%= image_tag asset_url('sp-logos/square-gsa.svg'),
width: 20, class: 'mr1', alt: '' %>
<span>
<%= t('shared.footer_lite.gsa') %>
</span>
<% end %>
</div>
</div>
<div class='flex flex-center'>
<% if show_language_dropdown %>
<ul class='list-reset sm-show mb0'>
<li class='i18n-desktop-toggle flex my1 mx3 relative'>
<li class='i18n-desktop-toggle flex my1 mx2 relative'>
<%= link_to '#', class: 'white text-decoration-none border border-blue rounded-lg px1 py-tiny', 'aria-expanded': 'false' do %>
<%= image_tag asset_url('globe-white.svg'), width: 12, class: 'mr1', alt: '',
'aria-hidden': 'true' %>
Expand All @@ -60,12 +69,24 @@
</li>
</ul>
<% end %>
<%= link_to t('links.help'), MarketingSite.help_url,
class: 'caps h6 blue sm-white text-decoration-none mr3', target: '_blank' %>
<%= link_to t('links.contact'), MarketingSite.contact_url,
class: 'caps h6 blue sm-white text-decoration-none mr3', target: '_blank' %>
<%= link_to t('links.privacy_policy'), MarketingSite.security_and_privacy_practices_url,
class: 'caps h6 blue sm-white text-decoration-none', target: '_blank' %>

<div class="sm-hide">
<%= new_window_link_to(t('links.help'), MarketingSite.help_url,
class: 'caps h6 blue text-decoration-none mr2') %>
<%= new_window_link_to(t('links.contact'), MarketingSite.contact_url,
class: 'caps h6 blue text-decoration-none mr2') %>
<%= new_window_link_to(t('links.privacy_policy'), MarketingSite.security_and_privacy_practices_url,
class: 'caps h6 blue text-decoration-none mr2') %>
</div>

<div class="sm-show">
<%= new_window_link_to(t('links.help'), MarketingSite.help_url,
class: 'caps h6 white text-decoration-none mr2 usa-link--alt') %>
<%= new_window_link_to(t('links.contact'), MarketingSite.contact_url,
class: 'caps h6 white text-decoration-none mr2 usa-link--alt') %>
<%= new_window_link_to(t('links.privacy_policy'), MarketingSite.security_and_privacy_practices_url,
class: 'caps h6 white text-decoration-none mr2 usa-link--alt') %>
</div>
</div>
</div>
</div>
Expand Down
57 changes: 57 additions & 0 deletions app/views/sign_up/registrations/_required_pii_accordion.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<p class="clearfix">
<%= image_tag(asset_url('get-started/ID.svg'),
size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('idv.index.id.need_html') %>
</span>
</p>

<div class="mt2">
<%= accordion('you-will-need', t('devise.registrations.start.accordion')) do %>
<p class="clearfix">
<%= image_tag(asset_url('get-started/email-password.svg'),
size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_1_html') %>
</span>
</p>
<p class="clearfix">
<%= image_tag(asset_url('get-started/2FA.svg'), size: '40', alt: '',
class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_2_html') %>
</span>
</p>
<p class="clearfix">
<%= image_tag(asset_url('get-started/personal-details.svg'),
size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_3_html') %>
</span>
</p>
<p class="clearfix">
<%= image_tag(asset_url('get-started/personal-details.svg'),
size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_4_html') %>
</span>
</p>
<p class="clearfix">
<%= image_tag(asset_url('get-started/financial.svg'),
size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_5_html') %>
</span>
</p>
<p class="clearfix">
<%= image_tag(asset_url('p-key.svg'), size: '40', alt: '', class: 'mt-tiny col col-1') %>
<span class="col col-11 pl2">
<%= t('devise.registrations.start.bullet_6_html') %>
</span>
</p>
<p class="mb3">
<%= new_window_link_to t('devise.registrations.start.learn_more'),
MarketingSite.help_url %>
</p>
<% end %>
</div>
33 changes: 0 additions & 33 deletions app/views/sign_up/registrations/_required_pii_accordion.html.slim

This file was deleted.

6 changes: 4 additions & 2 deletions app/views/sign_up/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
<%= render 'shared/cancel', link: decorated_session.cancel_link_url %>

<p class='mt2'>
<%= link_to t('notices.privacy.security_and_privacy_practices'), MarketingSite.security_and_privacy_practices_url, target: '_blank' %>
<%= new_window_link_to(t('notices.privacy.security_and_privacy_practices'),
MarketingSite.security_and_privacy_practices_url) %>
</p>

<p>
<%= link_to t('notices.privacy.privacy_act_statement'), MarketingSite.privacy_act_statement_url, target: '_blank' %>
<%= new_window_link_to(t('notices.privacy.privacy_act_statement'),
MarketingSite.privacy_act_statement_url) %>
</p>

<%= javascript_pack_tag 'email-validation' %>
29 changes: 29 additions & 0 deletions app/views/users/emails/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<% title t('titles.registrations.new') %>

<%= render 'shared/sp_alert' %>

<h1 class="h3 my0">
<%= t('headings.add_email') %>
</h1>

<div class="mb4">
<%= validated_form_for(@add_user_email_form,
html: { autocomplete: 'off', role: 'form' },
url: add_email_path) do |f| %>
<%= f.input :email, label: t('forms.registration.labels.email'), required: true,
input_html: { aria: { invalid: false } } %>
<%= f.button :submit, t('forms.buttons.submit.default'), class: 'btn-wide' %>
<% end %>
</div>

<%= render 'shared/cancel', link: decorated_session.cancel_link_url %>

<p class="mt2">
<%= new_window_link_to t('notices.privacy.security_and_privacy_practices'),
MarketingSite.security_and_privacy_practices_url %>
</p>

<p>
<%= new_window_link_to t('notices.privacy.privacy_act_statement'),
MarketingSite.privacy_act_statement_url %>
</p>
24 changes: 0 additions & 24 deletions app/views/users/emails/show.html.slim

This file was deleted.

3 changes: 2 additions & 1 deletion app/views/users/totp_setup/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<% help_link = link_to t('links.what_is_totp'), MarketingSite.help_authentication_app_url, target: :_blank %>
<% help_link = new_window_link_to t('links.what_is_totp'),
MarketingSite.help_authentication_app_url %>
<h1 class="h3 my0"><%= t('headings.totp_setup.new') %></h1>
<p class="mt-tiny mb3"><%= t('forms.totp_setup.totp_intro_html', link: help_link) %></p>
<%= form_tag(authenticator_setup_path, method: :patch, role: 'form', class: 'mb1') do %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/users/webauthn_setup/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% title t('titles.totp_setup.new') %>
<% help_link = link_to t('links.what_is_webauthn'),
MarketingSite.help_hardware_security_key_url, target: :_blank %>
<% help_link = new_window_link_to t('links.what_is_webauthn'),
MarketingSite.help_hardware_security_key_url %>

<%= image_tag asset_url('security-key.svg'), alt: '', width: '90', class: 'ml1' %>

Expand Down
2 changes: 1 addition & 1 deletion config/locales/doc_auth/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ en:
compare it to the image on the front of your ID.
email_sent: Link sent to %{email}. Please check your desktop email and follow
instructions to verify your identity.
learn_more: Learn more.
learn_more: Learn more
send_sms: We'll send a text message to your device with a link. Follow that
link to your browser to take photos of the front and back of your ID.
switch_back: Switch back to your computer to finish verifying your identity
Expand Down
2 changes: 1 addition & 1 deletion config/locales/doc_auth/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ es:
con la imagen en el frente de su identificación.
email_sent: Enlace enviado a %{email}. Compruebe el correo electrónico de su
escritorio y siga las instrucciones para verificar su identidad.
learn_more: Aprende más.
learn_more: Aprende más
send_sms: Le enviaremos un mensaje de texto a su dispositivo con un enlace.
Siga ese enlace a su navegador para tomar fotografías de la parte delantera
y trasera de su identificación.
Expand Down
2 changes: 1 addition & 1 deletion config/locales/doc_auth/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fr:
Nous le comparerons à l'image au recto de votre pièce d'identité.
email_sent: Lien envoyé à %{email}. Veuillez vérifier votre email de bureau
et suivez les instructions pour vérifier votre identité.
learn_more: Apprendre encore plus.
learn_more: Apprendre encore plus
send_sms: Nous enverrons un message texte à votre appareil avec un lien. Suivez
ce lien vers votre navigateur pour prendre des photos du recto et du verso
de votre identifiant.
Expand Down
1 change: 1 addition & 0 deletions config/locales/links/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ en:
go_back: Go back
help: Help
my_account: my account
new_window: "(opens new window)"
next: Sign in
passwords:
forgot: Forgot your password?
Expand Down
Loading