Repository navigation
fix(mosaic): gate the alternative channel Continue and show its phone field errors - #10957
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
🦋 Changeset detectedLatest commit: faaa57c 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 |
361cd88 to
f090364
Compare
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@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: |
f090364 to
4766757
Compare
4766757 to
47503ea
Compare
47503ea to
be9ab7e
Compare
be9ab7e to
517461d
Compare
517461d to
e01dbbf
Compare
|
e01dbbf to
9fe5fdb
Compare
AuthAlternativeChannel now keeps Continue disabled until the form can submit, and reads the phone field's error from the form, so a server error that lands on phoneNumber shows under the phone field. The block no longer takes an errorMessage prop. Sign-up never set it, which is why its alternative phone screen showed no field error.
9fe5fdb to
faaa57c
Compare


Description
Two fixes to
AuthAlternativeChannel, the "Continue with WhatsApp" phone screen. Mosaic sign-up uses it from #10930, and the sign-in view renders it too. Stacked on #10956.1. Continue stays disabled until the form can submit. In Mosaic's form,
canSubmitgates the whole form, so pressing Continue with an empty number did nothing visible. This is the pattern inform.doc.tsand the other Mosaic forms that gate oncanSubmit.2. The phone field shows the form's error for it. Sign-up puts a server error such as an invalid number on the
phoneNumberfield throughFormSubmitError. The screen only read anerrorMessageprop that sign-up never set, so sign-up showed nothing. It now reads the field's feedback from the form it renders, asform.doc.tsshows.The block no longer takes
errorMessage, so its two callers (the sign-up view and the sign-in identifier step) stop passing it. Mosaic sign-in is a view with no controller yet, so no real flow changes. Its other steps still take a string error.Sign-up's WhatsApp tests in #10930 cover both through FAPI: "keeps Continue disabled on the WhatsApp phone screen until the phone number is filled" and "shows a rejected phone number on the WhatsApp phone screen and leaves it behind on the form".
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
🤖 Generated with Claude Code