feat(ui): Add MFA section + flow - #9802
Conversation
🦋 Changeset detectedLatest commit: 572907f The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdded reusable MFA enrollment views and dialogs for SMS, authenticator apps, and backup codes. Shared phone steps replaced duplicated phone-dialog logic. Added MFA method management, localization, styles, exports, SwingSet fixtures, stories, and extensive Mosaic and fixture tests. Added SwingSet Vitest configuration and package scripts. Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: 🟡 Moderate · up to The added MFA test can fail because prior clipboard calls remain recorded, and authenticator-only users receive inaccurate backup-code recovery guidance. Resolve these localized defects before merging. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 5.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 44 files. (2 skipped: 2 unsupported.) Comment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-google-signin
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
1ab3e68 to
424fbf1
Compare
50b2384 to
8ddc9a8
Compare
8ddc9a8 to
4f34242
Compare
c66edcf to
bdecd18
Compare
maxyinger
left a comment
There was a problem hiding this comment.
Everything looks good. This is a big boi, so in favor of just getting it in and doing polish followups.
Main question on this one is do we plan on using these dialogs anywhere?
user-profile-add-authenticator.dialog.tsxuser-profile-add-sms.dialog.tsxuser-profile-backup-codes.dialog.tsx
Outside of that only thing that doesn't feel quite right is the copy banner in the authenticator setup view, but feels like something new we should discuss with design
Nice work!
| <UserProfileAuthenticatorSetupView | ||
| {...setup} | ||
| onCopy={onCopy} | ||
| copyStatus={copyStatus} | ||
| copyErrorMessage={copyErrorMessage} | ||
| /> | ||
| ) : ( | ||
| <> | ||
| <Card.Header> | ||
| <Card.Title>{setupMessages.title}</Card.Title> | ||
| </Card.Header> |
There was a problem hiding this comment.
Polish follow up, but these two being just slightly different heights makes me either want to either:
- be able to temporarily disable the height animation from inside a flow
- or force them to be the same height
There was a problem hiding this comment.
Asked Preston here about restructuring in away they maintain the same height. https://www.figma.com/design/yt5qKlfNyIIdaKaMoav1v2/Clerk-Mosaic-2.0?node-id=9578-28439#1933135188
If not we can look into disabling height animations within the flow.
Description
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change