Skip to content

LG-12603 Verified & Pending States for Identity Verification#10823

Merged
kevinsmaster5 merged 26 commits intomainfrom
kmas-lg-12603-verified-pending-states
Jun 20, 2024
Merged

LG-12603 Verified & Pending States for Identity Verification#10823
kevinsmaster5 merged 26 commits intomainfrom
kmas-lg-12603-verified-pending-states

Conversation

@kevinsmaster5
Copy link
Contributor

@kevinsmaster5 kevinsmaster5 commented Jun 17, 2024

🎫 Ticket

Link to the relevant ticket:
LG-12603

🛠 Summary of changes

Creates a wrapper component to provide a tooltip-interactive element to Verified status badges and implement on account view. Adds logic to account view that determines what sort of "Verified" type badge to show based on the user's verification status: Pending, Unverified( but previously verified ), and Verified. It also factors in users that are verified by way of Biometric verification.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create a verified account on http://localhost:3000 (or using OIDC/Sinatra, etc)
  • Depending on verification status compare with screenshots.

👀 Screenshots

Verified user

Screenshot 2024-06-18 at 12 56 38 PM (2)

Verified user

(with biometric)
verified

Unverified

(by way of reset password on formerly verified account)
unverified

Pending

(IPP)
Screenshot 2024-06-18 at 2 18 19 PM (2)

Pending

(GPO)
gpo

@kevinsmaster5 kevinsmaster5 force-pushed the kmas-lg-12603-verified-pending-states branch from 75123e2 to cfd4dd6 Compare June 18, 2024 11:58
@kevinsmaster5 kevinsmaster5 marked this pull request as ready for review June 18, 2024 19:11
@kevinsmaster5 kevinsmaster5 requested a review from a team June 20, 2024 11:41
@kevinsmaster5 kevinsmaster5 merged commit 5c8c872 into main Jun 20, 2024
@kevinsmaster5 kevinsmaster5 deleted the kmas-lg-12603-verified-pending-states branch June 20, 2024 16:46
this.badge = this.querySelector('.usa-tooltip')!;

this.setUpTooltip();
this.badge.addEventListener('mouseover', () => this.handleHover());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does someone access the tooltip content if they're using a keyboard or screen reader?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, should those be tab-focusable? It seemed like from Kamal's comment they would only be a hover
https://www.figma.com/design/RbqHzdFNiCMTXSKSBOqwYX?node-id=4482-9726#769800201
It leaves Mobile out of the picture also.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way I would expect it to work is that the badge is focusable (which it is currently), and that the tooltip is visible as long as the badge has focus. In addition to the current hover behavior.

margin-right: units(1);
}

.border-warning {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.border-warning already exists, as implemented by the design system, so I don't think we need to duplicate it here, and I wouldn't expect the utility class to customize icon or text color.

Instead, I think we could apply classes border-warning text-warning on the HTML elements and avoid this additional CSS altogether.


def show_pii_partial?
decrypted_pii.present? || user.identity_verified?
decrypted_pii.present? || user.identity_verified? unless
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add test coverage for these changes?

if user.identities.count == 0
APP_NAME
else
user.identities.last.friendly_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any guarantees that this is the name of the service provider that the user was trying to access for identity verification, as opposed to another partner application that the user is authenticated with (at IAL1) ?

<% else %>
<p>
<%= t('account.index.verification.finish_verifying', partner_agency: @presenter.service_provider_or_app_name) %>
<br><%= link_to t('account.index.verification.learn_more_link'), MarketingSite.help_url %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Were these supposed to go to a specific Help Center article?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants