Skip to content

Conversation

@MagentaManifold
Copy link
Contributor

Because

  • The design for 2FA setup has been updated
  • We want the UI component to be reusable
  • We want to document the component and states in storybook

This pull request

  • Creates a new UI component with l10n, storybook and unit tests
  • Does not hook up the component in the setup flow - that will be done in a later ticket

Issue that this pull request solves

Closes: FXA-11625

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

image

Other information (Optional)

Any other information that is important to this pull request.

@MagentaManifold MagentaManifold marked this pull request as ready for review June 3, 2025 19:52
@MagentaManifold MagentaManifold requested review from a team as code owners June 3, 2025 19:52
Copy link
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

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

Thanks for your work here! Component looks good, but I suggested some changes for standardizing components.

id="flow-setup-2fa-backup-code-confirm-code-input"
attrs={{ label: true }}
>
<InputText
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommend using FormVerifyTotp (our newest code verification component) for the input + button to standardize with other code verification.

Also, errors on submission should be displayed in Banner component.
Figma example of error handling: https://www.figma.com/design/Xnjs0YApSnC0CV6Ns5gCt4/2SV_Security_key_flow-Email_phone_number_2023?node-id=4990-9361&t=eCyhyMtgmd99z7sT-4

Copy link
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

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

A few small nits - once these are fixed I'll be happy to ✅

Because:

* The design for 2FA setup has been updated
* We want the UI component to be reusable
* We want to document the component and states in storybook

This commit:

* Creates a new UI component with l10n, storybook and unit tests
* Updates FormVerifyTotp to allow custom styling
* Does not hook up the component in the setup flow - that will be done in a later ticket

Closes #FXA-11625
Copy link
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

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

Thank you for the updates!

@MagentaManifold MagentaManifold merged commit dd218a8 into main Jun 5, 2025
19 checks passed
@MagentaManifold MagentaManifold deleted the FXA-11625 branch June 5, 2025 16:54
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.

4 participants