You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c1c63c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mosaic): hold contact verify and MFA actions under one section lock
Sending a verification code for an email or phone now holds the section,
so set-primary, Remove and Add wait until the code is sent. Changing the
default SMS method, regenerating backup codes and removing an MFA method
now exclude each other, and the method menus and Add are disabled while
one runs.
Adds waitFor to the machine runtime so a pending action can wait for a
machine-driven step.
| An async action from a button or row: pending, an error, one lock |`usePendingAction` (`src/hooks/`) |
37
37
| Direct actions and confirmation dialogs that must exclude each other |`usePendingAction.guard` on the confirmation (`src/hooks/`, `src/blocks/confirm/`) |
38
+
| A machine-driven step that a lock or caller must await |`waitFor` (`src/machine/wait-for.ts`), inside `usePendingAction.run`|
38
39
| A form: values, validation, submit, field errors |`useForm` (`src/components/form/`), with `validateAsync` for a server-side check |
39
40
| A `<form>` element, without the browser's validation popup |`Form` (`src/primitives/form/`) |
40
41
| A model save whose Clerk errors should land on form fields |`save` (`src/utils/errors.ts`) in the model, or reject with `FormSubmitError`|
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-email-section/__tests__/user-profile-add-email.controller.test.ts
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-email-section/__tests__/user-profile-email-section.feature.test.tsx
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-email-section/user-profile-email-section.controller.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ export function useUserProfileEmailSectionController({
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-mfa-section/__tests__/user-profile-mfa-management.feature.test.tsx
Copy file name to clipboardExpand all lines: packages/mosaic/src/features/user-profile/user-profile-mfa-section/user-profile-mfa-section-leaf.controller.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ import type { UserProfileMfaSectionViewProps } from './user-profile-mfa-section.
0 commit comments