Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mosaic-auth-card-spacing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The centered sign-in and sign-up card spaces its edges on the same 24px step as the gaps between its groups: the logo sits 24px above the title, and the card ends 24px below its last group or footer, where both were off-scale values.
5 changes: 5 additions & 0 deletions .changeset/mosaic-auth-copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

One voice for Mosaic's copy. Failures read "Couldn’t [do the thing]." followed by what to do next, without "Please", "Unable to" or "Something went wrong", across sign-in, sign-up, organizations, the user and organization profiles, API keys and the error catalog. Placeholders show an example or nothing, "Two-step verification" is used everywhere, resend countdowns read "Resend in 30s", file limits read "10 MB", and buttons name their action, such as "Send code" on the forgot-password step. Create organization and Invite members now have a short description.
16 changes: 16 additions & 0 deletions .changeset/mosaic-auth-flow-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@clerk/mosaic': patch
---

Sign-in, sign-up and organization fixes:

- An unknown email in a combined sign-in or sign-up now says "No Acme account uses …" with a link to use a different email, instead of going silently to the sign-up form.
- Choosing another two-step verification method no longer offers social providers, and the screen is titled "Verify another way".
- The backup-code screen offers "Sign in with another account", like the other two-step screens.
- Password managers can now tell which account a password belongs to on the password step.
- The edit button on the password and passkey steps names the identifier, which may be a username or phone number.
- When an account has several email addresses or phone numbers, choosing "Email code" or "Text message" lists them first, and the code is only sent once one is picked.
- After Resend, focus returns to the code. On full-page code screens without a resend line, the verifying status replaces the links so the card no longer changes height.
- On the email link screen, "Use another method" is a quiet link on full-page cards.
- Organization slugs drop accents and trailing punctuation, so "Café Société" becomes `cafe-societe` and "Acme Inc." becomes `acme-inc`.
- The choose-organization footer keeps "Sign out" next to "Signed in as …".
17 changes: 17 additions & 0 deletions .changeset/mosaic-auth-prototype-additions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
'@clerk/mosaic': patch
---

More sign-in, sign-up and organization improvements:

- The email-link screen shows that it's waiting for the link to be opened.
- The code, password and email-link screens name the account in bold in their description, with a "Use a different email" button below.
- The password step lists up to two other sign-in methods below an "or" divider (with "More options" when there are more) and ends with a Back button. Pass the methods as `alternatives` on the password step.
- "Use another method" lists each method as a row you select, such as "Email a code" with the address under it and a "Change" menu when there are several addresses. Nothing is sent until you press "Send code". Social sign-in buttons stay on the first screen and no longer repeat here.
- The code, password and email-link screens end with "Not you? Use a different email" instead of a separate button.
- When an unknown email is entered on combined sign-in, the code step reads "Create your account" and explains that no account uses that email yet.
- The sign-up "continue" step no longer shows social buttons or the "Already have an account?" prompt, and the legal consent checkbox shows its error below it.
- The app logo no longer animates into the user's photo once the account is known.
- Sign-up and the reset-password step can show a live password checklist (`AuthPasswordChecklist`), passed as `passwordRules` or `newPasswordRules`.
- Organization rows can show a second line, such as "Admin · 12 members", "Invited by Sam Lee" or "Matches your @umbrella.com email".
- Joining an invitation from the choose-organization step enters the organization in one step.
5 changes: 5 additions & 0 deletions .changeset/mosaic-authenticator-qr-well.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The authenticator app setup step in `UserProfile` now shows its QR code centered in a recessed panel, with the setup key link centered beneath it. A blocked sign-up now reads "Sign-up blocked" and says how to recover.
5 changes: 5 additions & 0 deletions .changeset/mosaic-card-actions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': minor
---

`Card` has a new `actions` prop that sets how its footer buttons lay out: `stacked`, `end`, `split` or `fill`. A prominent card stacks them at full width, a large card in a dialog groups them at the end at their natural widths, and every other card shares the row between them. In a dialog on a phone, the buttons stack with the primary on top. Only large dialogs show a divider above the footer. The close button in a dialog header now sits further from the title and description.
5 changes: 5 additions & 0 deletions .changeset/mosaic-card-nested-elevation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

A `Card` with `elevation='flush'` now drops its edge padding so its content runs to its edges, and a card nested in another card takes that card's elevation unless it sets its own. A sign-in or sign-up card placed inside a flush `Card` now sits flat on the page, with no background, shadow, padding or divider above the branding.
5 changes: 5 additions & 0 deletions .changeset/mosaic-choose-organization-auth-card.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The choose-organization step after sign-in or sign-up now uses the same centered card as sign-in, with the application logo and large controls, so the two read as one flow. The note about a pending request to join sits with the organizations it refers to, above the create button.
5 changes: 5 additions & 0 deletions .changeset/mosaic-field-edge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Text fields in `UserProfile` and `OrganizationProfile` now have a slightly stronger edge, so they sit at the same visual weight as the buttons beside them, and Mosaic cards render text with font smoothing on macOS.
5 changes: 5 additions & 0 deletions .changeset/mosaic-flow-buttons-polish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Steps in a `Flow` now fade in place while the surface animates to its new height, instead of sliding sideways. Full-width buttons keep their height when a dialog stacks them on a phone, where they had shrunk to the height of their label.
5 changes: 5 additions & 0 deletions .changeset/mosaic-flow-step-motion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Moving between screens in `UserProfile` and `OrganizationProfile` dialogs now slides a few pixels sideways instead of zooming, and follows the reading direction in right-to-left layouts. Going back in the add email address and add phone number dialogs slides the other way.
5 changes: 5 additions & 0 deletions .changeset/mosaic-otp-boxes-and-dialog-footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Code boxes are 48px squares everywhere. They sit centered in a centered card and start at the left edge in a left-aligned dialog. A rejected code shakes the row once, unless the user prefers reduced motion. The "Didn't receive a code?" line on the phone and email steps is 14px and centers in a centered card. Dialogs of every size now draw a divider above their footer actions. On the sign-in and sign-up code screens, an incorrect-code message is 14px like the lines around it, a lone "Use a different email" action is an outline button, and the actions under the code sit 8px apart instead of 24px.
5 changes: 5 additions & 0 deletions .changeset/mosaic-otp-polish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The verification code field in `UserProfile` is calmer to type into: digits fade in, one focus ring glides between the boxes, and a six-digit code reads as two groups of three. A rejected code gives the row a small nudge, and a verified code outlines every box in the text color instead of green. The code step no longer repeats “Verification code” above the boxes; screen readers still announce it. Code boxes are now 48px squares in every dialog and card, where some were 56px tall and stretched to fill the row.
5 changes: 5 additions & 0 deletions .changeset/mosaic-rtl-code-phone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Verification code and phone number fields in `UserProfile` now keep left-to-right order in right-to-left layouts, so a code reads in the order it was typed and a country code stays in front of the number.
5 changes: 5 additions & 0 deletions .changeset/mosaic-second-factor-alternatives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': minor
---

The sign-in second-factor code step now shows the user's other verification methods, such as a passkey or a backup code, as buttons under the code field, so they can switch without opening the method picker first.
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-change-address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': minor
---

The sign-in code step can now offer "Send to another email" or "Send to another number" under the code field when the user has more than one address, so they can switch without going back to the method list. The option appears when the app passes `onChangeAddress`.
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-code-autosubmit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': minor
---

Verification code screens on sign-in and sign-up no longer show a Continue button: the code submits itself once complete, with a "Verifying" status in place of the resend line while it is checked. The address the code went to appears under the description, with "Use a different email" or "Use a different phone number" beside "Use another method". When an account has several email addresses or phone numbers, "Use another method" lists each kind once, and the code screen lets you switch which address receives the code.
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-large-controls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

Sign-in and sign-up now use large inputs and buttons. A wrong verification code now plays in sequence: the boxes shake, the error appears, and then the digits clear so the next attempt starts fresh.
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-methods-rows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The sign-in "Use another method" screen now lists each method as a row with an icon, a name and a short description, like the two-step verification picker. Its back button reads "Back", since it returns to the step you came from. Two-step verification code screens now end with "Wrong account? Sign in with another account", so you can switch accounts without reloading the page.
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-password-step-actions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The sign-in password step now offers one "Sign in another way" button under Continue, grouped with it, in place of the passkey and email code buttons plus "More options". Every other way to sign in is listed on the screen that button opens, and the account-switch action sits below as a quiet button. The two-step verification code screen does the same with "Verify another way". The account-switch actions now read "Change email", "Change phone number" or "Use a different account", so they no longer sound like the method button next to them.
2 changes: 2 additions & 0 deletions .changeset/mosaic-sign-in-prominent-card.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/mosaic-sign-in-stack-three-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

The sign-in start screen now counts the passkey button with the social providers. Up to three buttons stack, one full-width row each with its long label. At four or more they become one row of icons and the passkey joins it, where before it joined only from five providers. A passkey next to two providers no longer leaves two half-width buttons above a full-width one.
5 changes: 5 additions & 0 deletions .changeset/mosaic-user-locked-copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

A locked account now shows a shorter message: "Your account is locked. Try again later or contact support."
5 changes: 5 additions & 0 deletions .changeset/mosaic-verification-help-prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/mosaic': patch
---

In the reverification dialog's list of verification methods, "Don’t have any of these? Get help" now matches the size and color of the surrounding text, and its link no longer looks smaller than the question.
5 changes: 5 additions & 0 deletions packages/mosaic/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ Most problems a feature hits already have a shared answer. Find the line for you
- A direct action that needs step-up verification → `useReverificationFlow` in the model, with `ReverificationDialog` (`src/blocks/reverification/`) in the view
- A step that verifies a factor (a code, password, backup code or passkey, the method picker, help) → the steps in `src/blocks/verification/`, such as `VerificationCode`
- A screen sign-in and sign-up both show (an email link and its status, a loading or protect-check notice, a blocked request, the wallet or enterprise connection picker, the alternative phone channel, the identity line, the captcha) → the steps in `src/blocks/auth/`, such as `AuthEmailLink`
- The user's email or phone number named inside a step's description, in bold → `emphasizeIdentifier` (`src/blocks/auth/`)
- The application logo above a sign-in or sign-up card → `AuthMark` with `useAuthMark` (`src/blocks/auth/`); a provider's icon, tinted when the mark is monochrome → `AuthProviderIcon`
- The password requirements under a new password, ticking as each is met → `AuthPasswordChecklist` (`src/blocks/auth/`), fed the instance's enforced rules
- A step's primary action with a secondary one, in the footer or stacked under the field → `VerificationActions` (`src/blocks/verification/`)
- A question with a link-style action after it, such as "Didn’t receive a code? Resend" → `Prompt` (`src/blocks/prompt/`)
- Showing any error to the user → One of the owners above. They call `toLocalizableError` (or `toLocalizableErrors` for all errors) and resolve copy with `useErrorText`
- Moving focus after a list row is removed → `useListRemovalFocus` (`src/hooks/`)
- A debounced, abortable async check as the user types → `useDebouncedAsync` (`src/hooks/`)
Expand Down
Loading