Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4edd262
LG-6543 Adding doc auth rate triggered analytics call for acuant (#7659)
eric-gade Jan 23, 2023
accc280
changelog: Improvements, In-Person Proofing, Update PO Search copy to…
allthesignals Jan 23, 2023
e09903e
LG-8186 - Document Authorization Upload Success Bugfix (#7680)
Rwolfe-Nava Jan 23, 2023
ebff677
Add cumulative registrations report (LG-8679) (#7674)
zachmargolis Jan 23, 2023
d57c3d1
LG-7400 Add update functionality to VerifyInfoController outside Flow…
soniaconnolly Jan 23, 2023
ef972be
Remove fallback behavior for IE9 (#7684)
aduth Jan 24, 2023
dc39657
Micro-optimize bundle size of PasswordToggleElement (#7673)
aduth Jan 24, 2023
a8e02f2
Use design system styling consistently for form fields (#7576)
aduth Jan 24, 2023
11f3080
Remove JavaScript decorators package (#7688)
aduth Jan 24, 2023
701e26e
Remove a few redundant BassCSS styles (#7687)
aduth Jan 24, 2023
1af92c5
Remove event-specific hooks in Analytics class, move up to calling co…
zachmargolis Jan 24, 2023
634448c
Only allow email parameter in sessions controller (#7690)
Jan 24, 2023
0cbae89
Replace database phone one-time password rate limiter with Redis (#7554)
Jan 24, 2023
91fe914
LG-8546 Removing old Acuant SDK 11.7.0 files and updating default con…
eric-gade Jan 25, 2023
6f2e33d
Lg 7695 enrollment creation event (#7691)
svalexander Jan 25, 2023
8facbd0
Log whether we skipped the upload step when the upload step is submit…
jmhooper Jan 25, 2023
dc85a27
LG-7401 Add spinner button for VerifyInfoController#show (#7686)
soniaconnolly Jan 25, 2023
f72d700
LG-8697 Clean up StringRedacter and replace duplicated redact() metho…
soniaconnolly Jan 25, 2023
ebda42c
LG-8030 FileInput Component to Typescript (#7700)
eric-gade Jan 25, 2023
a6d4e13
LG-8703 use shared wait.html.erb, remove duplicates (#7702)
soniaconnolly Jan 25, 2023
79ee375
Implementation of temp 500 error on PO search (#7695)
eileen-nava Jan 26, 2023
0d6fd34
LG-8060 | Fetch from Redis in batches (#7706)
n1zyy Jan 26, 2023
16b5a6f
LG-8711: Do not eagerly reset foundAddress onSearch (#7701)
allthesignals Jan 26, 2023
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
45 changes: 0 additions & 45 deletions app/assets/stylesheets/components/_form.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
$radio-checkbox-space: 1.5rem;

@include at-media('tablet') {
input,
select {
font-size: $form-field-font-size-sm;
}
}

.field {
background-color: #f2f9ff;
border-style: solid;
border-width: $border-width;
border-color: $border-color;
border-radius: $border-radius;
color: color('ink');
font-weight: $bold-font-weight;
margin-top: units(0.5);

&[type='number'],
&.phone {
@include u-font-family('mono');
}

&:focus {
border-color: color('primary');
box-shadow: 0 0 0 2px rgba(color('primary'), 0.5);
outline: none;
}

&.usa-input--error {
@include u-border($theme-input-state-border-width, 'error');
}
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* stylelint-disable-next-line property-no-vendor-prefix */
Expand All @@ -53,13 +18,3 @@ input::-webkit-inner-spin-button {
margin-left: 0;
}
}

// Upstream: https://github.com/18F/identity-style-guide/pull/325
.usa-input {
margin-top: units(0.5);
}

// Upstream: https://github.com/18F/identity-style-guide/pull/325
.usa-hint {
margin: 0;
}
69 changes: 1 addition & 68 deletions app/assets/stylesheets/design-system-waiting-room.scss
Original file line number Diff line number Diff line change
@@ -1,65 +1,5 @@
// To be removed once design system incorporates styles included below.

// basscss-base-forms
//------------------------------------------------
@mixin input-styles() {
height: 3rem;
padding: 0.5rem 1rem;
vertical-align: middle;
}

input[type='text'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='time'],
input[type='url'],
input[type='week'] {
@include input-styles;
-webkit-appearance: none;
}

select {
@include input-styles;

// all below displays custom arrow and is pulled from:
// https://github.com/uswds/uswds/blob/develop/packages/usa-select/src/styles/_usa-select.scss
@include add-background-svg('usa-icons/unfold_more');
appearance: none;
background-color: color('white');
background-position: right units(1) center;
background-size: units(2.5);
padding-right: units(4);

&::-ms-expand {
display: none;
}

// Show default webkit style on select element when autofilled to show icon
&:-webkit-autofill {
appearance: menulist;
}

// Remove dotted outline from select element on focus in Firefox
&:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 color('black');
}

// Necessary to show chevron in forced colors mode in modern browsers
@media (forced-colors: active) {
appearance: listbox;
background-image: none;
padding-right: 0;
}
}

//basscss-base-typography
//------------------------------------------------
h1,
Expand All @@ -72,16 +12,9 @@ h6 {
margin-bottom: 0.5em;
}

p {
margin-top: 0;
margin-bottom: 1rem;
}

dl,
ol,
p,
ul {
margin-top: 0;
margin-bottom: 1rem;
}

// basscss-utility-typography
Expand Down
6 changes: 0 additions & 6 deletions app/assets/stylesheets/variables/_app.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$line-height: 1.5 !default;
$bold-font-weight: bold !default;

$h1: 1.5rem !default;
$h2: 1.25rem !default;
Expand All @@ -15,14 +14,9 @@ $sm-h4: 1rem !default;
$sm-h5: 0.875rem !default;
$sm-h6: 0.75rem !default;

$form-field-font-size-sm: 1.25rem !default;

$border-width: 1px !default;
$border-radius: 3px !default;
$border-radius-md: 6px !default;
$border-radius-xl: 16px !default;
$border-radius-xxl: 24px !default;
$border-color: #cedced !default;

$container-skinny-width: 620px !default;
$container-xskinny-width: 416px !default;
2 changes: 1 addition & 1 deletion app/controllers/frontend_log_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def valid_event?
end

def valid_payload?
!log_params[:payload].nil?
params[:payload].nil? || !log_params[:payload].nil?
end
end
3 changes: 3 additions & 0 deletions app/controllers/idv/gpo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def step_indicator_current_step
end

def update_tracking
Funnel::DocAuth::RegisterStep.new(current_user.id, current_sp).
call(:usps_letter_sent, :update, true)

analytics.idv_gpo_address_letter_requested(resend: resend_requested?)
irs_attempts_api_tracker.idv_gpo_letter_requested(resend: resend_requested?)
create_user_event(:gpo_mail_sent, current_user)
Expand Down
14 changes: 9 additions & 5 deletions app/controllers/idv/in_person/usps_locations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class UspsLocationsController < ApplicationController
# retrieve the list of nearby IPP Post Office locations with a POST request
def index
response = []

begin
if IdentityConfig.store.arcgis_search_enabled
candidate = UspsInPersonProofing::Applicant.new(
Expand All @@ -26,12 +25,17 @@ def index
else
response = proofer.request_pilot_facilities
end
render json: response.to_json
rescue => err
Rails.logger.warn(err)
response = proofer.request_pilot_facilities
analytics.idv_in_person_locations_request_failure(
exception_class: err.class,
exception_message: err.message,
response_body_present: err.respond_to?(:response_body) && err.response_body.present?,
response_body: err.respond_to?(:response_body) && err.response_body,
response_status_code: err.respond_to?(:response_status) && err.response_status,
)
render json: {}, status: :internal_server_error
end

render json: response.to_json
end

def proofer
Expand Down
6 changes: 5 additions & 1 deletion app/controllers/idv/phone_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def new
analytics.idv_phone_of_record_visited
render :new, locals: { gpo_letter_available: gpo_letter_available }
elsif async_state.in_progress?
render :wait
render 'shared/wait'
elsif async_state.missing?
analytics.proofing_address_result_missing
flash.now[:error] = I18n.t('idv.failure.timeout')
Expand All @@ -32,6 +32,10 @@ def new

def create
result = idv_form.submit(step_params)

Funnel::DocAuth::RegisterStep.new(current_user.id, current_sp).
call(:verify_phone, :update, result.success?)

analytics.idv_phone_confirmation_form_submitted(**result.to_h)
irs_attempts_api_tracker.idv_phone_submitted(
success: result.success?,
Expand Down
8 changes: 8 additions & 0 deletions app/controllers/idv/review_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Idv
class ReviewController < ApplicationController
before_action :personal_key_confirmed
before_action :confirm_verify_info_complete

include IdvStepConcern
include StepIndicatorConcern
Expand Down Expand Up @@ -124,6 +125,13 @@ def password
params.fetch(:user, {})[:password].presence
end

def confirm_verify_info_complete
if IdentityConfig.store.doc_auth_verify_info_controller_enabled &&
!idv_session.resolution_successful
redirect_to idv_verify_info_url
end
end

def personal_key_confirmed
return unless current_user
return unless current_user.active_profile.present? && need_personal_key_confirmation?
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/idv/session_errors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def ssn_failure

def throttled
@expires_at = Throttle.new(user: effective_user, throttle_type: :idv_doc_auth).expires_at
analytics.throttler_rate_limit_triggered(throttle_type: :idv_doc_auth)
irs_attempts_api_tracker.idv_document_upload_rate_limited
end

private
Expand Down
Loading