Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions app/components/badge_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class BadgeComponent < BaseComponent
ICONS = %i[
lock
check_circle
warning
info
].to_set.freeze

attr_reader :icon, :tag_options
Expand Down
14 changes: 0 additions & 14 deletions app/components/badge_component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,3 @@
.lg-verification-badge .usa-icon {
margin-right: units(1);
}

.border-warning {
border-color: color('warning');
.usa-icon {
color: color('warning');
}
}

.border-info {
border-color: color('info');
.usa-icon {
color: color('info');
}
}
25 changes: 0 additions & 25 deletions app/components/badge_tooltip_component.rb

This file was deleted.

10 changes: 0 additions & 10 deletions app/components/badge_tooltip_component.scss

This file was deleted.

1 change: 0 additions & 1 deletion app/components/badge_tooltip_component.ts

This file was deleted.

23 changes: 0 additions & 23 deletions app/javascript/packages/badge-tooltip/README.md

This file was deleted.

This file was deleted.

65 changes: 0 additions & 65 deletions app/javascript/packages/badge-tooltip/badge-tooltip-element.ts

This file was deleted.

11 changes: 0 additions & 11 deletions app/javascript/packages/badge-tooltip/package.json

This file was deleted.

38 changes: 3 additions & 35 deletions app/presenters/account_show_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def show_password_reset_partial?
end

def show_pii_partial?
decrypted_pii.present? || user.identity_verified? unless
user.pending_in_person_enrollment.present? || user.
gpo_verification_pending_profile.present?
decrypted_pii.present? || user.identity_verified?
end

def show_manage_personal_key_partial?
Expand All @@ -36,36 +34,10 @@ def show_gpo_partial?
user.gpo_verification_pending_profile?
end

def show_ipp_partial?
user.pending_in_person_enrollment.present?
end

def showing_any_partials?
show_password_reset_partial? ||
show_gpo_partial? || show_ipp_partial? || show_pii_partial?
end

def showing_alerts?
show_service_provider_continue_partial? ||
show_password_reset_partial?
end

def show_unverified?
show_password_reset_partial? &&
(!show_ipp_partial? || !show_gpo_partial?)
end

def service_provider_or_app_name
if user.identities.count == 0
APP_NAME
else
user.identities.last.friendly_name
end
end

def formatted_due_date
user.pending_in_person_enrollment.due_date.
strftime(I18n.t('time.formats.event_date'))
show_password_reset_partial? ||
show_gpo_partial?
end

def show_unphishable_badge?
Expand All @@ -88,10 +60,6 @@ def personal_key_generated_at
user.personal_key_generated_at
end

def biometric_identity_verification?
user.identity_verified_with_biometric_comparison?
end

def header_personalization
return decrypted_pii.first_name if decrypted_pii.present?

Expand Down
4 changes: 4 additions & 0 deletions app/views/accounts/_badges.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% if @presenter.show_unphishable_badge? %>
<%= render BadgeComponent.new(icon: :lock).with_content(t('headings.account.unphishable')) %>
<% end %>

<% if @presenter.show_verified_badge? %>
<%= render BadgeComponent.new(icon: :check_circle).with_content(t('headings.account.verified_account')) %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/accounts/_pending_profile_gpo.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= render AlertComponent.new(type: :info, text_tag: 'div') do %>
<%= render AlertComponent.new(type: :warning, text_tag: 'div') do %>
<p>
<%= t('account.index.verification.instructions') %>
</p>
Expand Down
8 changes: 0 additions & 8 deletions app/views/accounts/_pending_profile_ipp.html.erb

This file was deleted.

12 changes: 10 additions & 2 deletions app/views/accounts/_pii.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
</div>
</div>
<% end %>


<div class="margin-bottom-4 card profile-info-box">
<div class="grid-row margin-bottom-1 margin-top-0">
<div class="grid-col-12">
<h2 class="margin-0">
<%= t('headings.account.verified_information') %>
<%= image_tag asset_url('lock.svg'), width: 8, height: 10 %>
</h2>
</div>
</div>
<div class="border-bottom border-primary-light">
<div class="padding-1 grid-row border-top border-left border-right border-primary-light">
<div class="tablet:grid-col-4 text-bold">
Expand Down Expand Up @@ -67,3 +74,4 @@
<%= link_to t('account.security.link'), MarketingSite.help_url %>
</div>
<% end %>
</div>
6 changes: 0 additions & 6 deletions app/views/accounts/_unverified_profile.html.erb

This file was deleted.

9 changes: 0 additions & 9 deletions app/views/accounts/_validated_badge.html.erb

This file was deleted.

Loading