-
Notifications
You must be signed in to change notification settings - Fork 217
feat(settings): new FlowSetup2faBackupCodeConfirm component #18964
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
Conversation
vpomerleau
left a comment
There was a problem hiding this 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.
packages/fxa-settings/src/components/Settings/FlowSetup2faBackupCodeConfirm/index.test.tsx
Show resolved
Hide resolved
| id="flow-setup-2fa-backup-code-confirm-code-input" | ||
| attrs={{ label: true }} | ||
| > | ||
| <InputText |
There was a problem hiding this comment.
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
73e5eaa to
ea72e55
Compare
vpomerleau
left a comment
There was a problem hiding this 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 ✅
packages/fxa-settings/src/components/Settings/FlowSetup2faBackupCodeConfirm/en.ftl
Outdated
Show resolved
Hide resolved
packages/fxa-settings/src/components/Settings/FlowSetup2faBackupCodeConfirm/index.tsx
Outdated
Show resolved
Hide resolved
packages/fxa-settings/src/components/Settings/FlowSetup2faBackupCodeConfirm/index.tsx
Outdated
Show resolved
Hide resolved
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
ea72e55 to
75cac36
Compare
vpomerleau
left a comment
There was a problem hiding this 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!
Because
This pull request
Issue that this pull request solves
Closes: FXA-11625
Checklist
Put an
xin the boxes that applyScreenshots (Optional)
Other information (Optional)
Any other information that is important to this pull request.