Repository navigation
feat(ui): Access and onboarding design prototype (staff-only, not for merge) - #10964
Draft
ssibley-clerk wants to merge 23 commits into
Draft
ssibley-clerk wants to merge 23 commits into
ssibley-clerk wants to merge 23 commits into
Conversation
Prototype of the C2 self-serve surface for the Access & Onboarding initiative: one page merging today's Verified domains and Security->SSO flows into per-domain rules with enrollment and authentication as independent axes. Gated behind a new __internal_accessOnboarding prop; state is page-local fixtures (nothing persists). Includes the add-domain flow (affiliation OTP -> proof-gated enrollment options), the self-serve SSO wizard with the DNS TXT ownership gate, and an OrgAccessOnboarding sandbox scenario. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…rd model The add-domain flow follows the wizard's question shape: domain (with the affiliation email round-trip), sign-in (default vs SSO with the provider chosen inline, two-step as a checkbox under default, and re-verification as a dropdown preselected to the application setting), enrollment (sign-in-aware ordering with a Recommended badge; directory sync locked until single sign-on is active), then a pure review that saves with Add rule. Manage picks up the ordering, the outside-the-directory question, and a read-only membership fact when the application requires membership. SSO setup prefills the provider picked in the wizard. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…n state in the access & onboarding prototype - Replace the domain list with a "Domain rules" table (Domain / Status / Enrollment / Authentication) and a per-domain setup checklist covering affiliation, ownership, single sign-on, and directory sync (SCIM, "available soon"). - Seed acme.com as a rule pre-approved from the dashboard: ownership waived, membership shown as a read-only fact, row reads "Awaiting setup" until the org admin configures it. - Enrollment options are derived by enrollmentChoicesFor (order tracks the sign-in answer; locked modes listed with their reason instead of dead rows). - Checklist links into the SSO page with ?configure=1, which auto-opens the configure wizard once the overview has loaded. The SSO route is always registered while the prototype flag is on so the deep link resolves. Prototype only, behind __internal_accessOnboarding; nothing persists. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…URL param setScenario already writes the scenario to the URL, but only localStorage was read back on load, so a shared sandbox link still needed a console command. Read the URL first, matching getComponentProps. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The sandbox's scenario mocking registers /mockServiceWorker.js, which the dev server serves as a static directory but the production build never copied, so scenarios could not boot on a deployed sandbox. Copy sandbox/public into dist next to the ui bundle. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…, inline add domain, connections tab
Replaces the wizard, Manage form, SSO drawer and setup checklist with the
Sept 2026 Figma: a Target / Enrollment / Authentication table with the
catch-all row ("Everyone" alone, "Everyone else" once a domain exists),
an inline Add domain card that creates the row at the application's
defaults, a Connections tab listing SSO connections and directories, and a
prototype scenario switch (work email / personal email / configured).
State moves to a session-backed store shared with the Configure policy
page, which lands next; rows open it via ?policy=<id>. Nav item is now
"Access".
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… verification Rows open a Configure policy page (Overview / SSO / Directory Sync tabs; the catch-all row only has Overview). Overview is the Figma's Configure access form: domains as chips, sign in with the MFA switch under Default and a connection dropdown under SSO (existing connections show what they are used with, or a new one), re-verification, enrollment with the recommended badge and the directory fallback radios, and verification per domain. Proof follows the settled rule: SSO or directory sync need the DNS record, everything else the email code, pre-approved domains nothing. Save & continue lands on the tab that still needs setting up, else the table. SSO and Directory Sync tab bodies land next. Also gives the Access page's prototype scenario select its button and option list, without which it rendered empty. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
SSO: the connection's ACS URL and Entity ID with copy, and the Test SSO connection card — Test connection adds a pending log row that resolves to success and activates the connection; Logs count, Refresh, and the Timestamp / Run details / Status table. A broken connection explains itself above the credentials. Directory Sync: the provider card with its domains and instructions, the SCIM endpoint URL, a bearer token with Generate new token and the shown- once warning, and Attributes / Roles as coming-soon sections. Save & continue marks the directory configured and returns to the table. Provider picker and the stepper's later steps stay placeholders. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Two more scenarios on the prototype switch: a member without the manage permission (no Add, no menus, rows do not open, Save disabled) and an organization the application owner has not allowed SSO for (the SSO option is replaced by the owner's message). Also fixes the import order the last commit's hook let through. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Navbar tab reads "Access" and only appears with the prototype prop; the work-email scenario renders the auto-created row and the catch-all at the defaults; adding a domain creates a new row at the defaults. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Action.Root's animation wrapper has no width and the tab panel is a row flex, so the policies section shrink-wrapped to its content. Wrapped it in a full-width box; the Configure policy tabs get an explicit width too. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Two-factor verification is only supported for default sign-in, so the switch now lives inside that option rather than below the radio group, matching the Figma. The sign-in radios are drawn option by option to allow the nesting. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…st, activate in one line Every domain policy now shows Overview, SSO and Directory Sync. The SSO tab is the whole setup in order: verify domain ownership (the DNS record moves here from Overview), choose an existing connection or a new provider, connect and test, then Activate, which is what flips the policy's sign-in to SSO. Each step persists as it completes, so leaving mid-way and coming back lands on the first open step, and nothing changes for end users until Activate. Overview only asks for affiliation (the email code) and states ownership as a fact pointing at the SSO tab. Choosing SSO there reads "Save & configure" and lands on the tab; once the connection is live Overview shows it with a link to manage it. Switching back to Default keeps the connection, and the SSO tab says it is set up but not in use. Directory Sync is gated on an active SSO connection and points at the SSO tab until then. In the table an abandoned setup reads "SSO · Setting up" with a "Continue SSO setup" menu item. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…Activate Choosing SSO on Overview no longer saves the policy as SSO. It saves everything else (domains, re-verification, enrollment, MFA), keeps the current sign-in method, and lands on the SSO tab. Only Activate there switches sign-in to SSO. Leaving before that changes nothing for users, and the SSO tab says so in plain words. The Overview connection dropdown and the table's "SSO · Setting up" state are gone with it; a chosen but unactivated connection is only reachable from the row menu. New scenario "Domain added, nothing verified": a hand-added domain with no affiliation and no ownership, so every proof step is exercised. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…s, and SSO-then-directory routing - The Everyone else row is always the bottom row, whatever order domains were added in. - A domain on default sign-in reads "No proof needed" instead of "Verified": nothing was checked, and the state says so. The email-code step is gone; proof is ownership only, asked for on the SSO tab. - Directory sync can be chosen with default sign-in. It still needs a live SSO connection, so Save & configure goes to the SSO tab first; Save & activate there hands over to Directory Sync when it is wanted, else back to the table. Only SSO: back to the table after activation. - "Mock the setup (prototype)" on the SSO tab completes ownership, an Okta connection and a passing test; on the Directory Sync tab it generates the token and marks the directory configured. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ons tabs, one policy form, setup wizards Built to Organizations Figma section 13750:22959. Policies tab: active table with the catch-all, Inactive table with Draft/Inactive badges, connection and directory names in the cells. Add/Manage policy is one form (Status, Target list with association/ownership proof and the TXT record dialog, MFA switch, Default/SSO with a connections list, re- verification, enrollment with directory picker and the outside-directory question) with Save as draft / Activate policy. Three-step SSO and Directory Sync setup wizards hand the new connection back to the form. Connections tab opens Manage SSO connection / Manage Directory Sync. Manage default edits the catch-all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Admins add or remove people who can sign in with an email code when a connection breaks. Always available with SSO; no instance setting gates it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…otype Claim a domain from its policy once ownership is proven: review who joins, a 14-day notice or now, and optionally their organizations. Adds parent and sub-organization scenarios with a Sub-organizations tab, per-policy scope, routing with directory group mapping, SSO MFA skip, and inherited rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ess prototype Offer a parent when a proven domain is shared or a domain is already owned, and from the Access page; proof moves up on creation and organizations the member doesn't administer wait for their owner. Parent members get into the parent from the organization switcher and stay out of sub-organizations unless an optional setting allows it. Adds one sub-organization per directory group routing, and the directory fallback now chooses between creating their own organization (default), joining, or an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e policy form Authentication comes before multi-factor authentication, which is now an Optional / Required choice. Creating a parent is offered only on the policy form, as a link under a shared or already-owned domain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e Access prototype - Rename enterprise account to parent account in all copy; say users, not people - Policy Membership: other-organizations box above the choice, and a third option revealed by domain ownership that sets up a parent account (SSO-style button) - Policies list: "Start with a parent account" hint before the first policy - Members: new Unmanaged users tab (count badge, migrate / remove / reset, save bar) and the parent members switch - Access > Organizations: invite outside organizations, and a dropdown-first "Where users land" setting with group and domain placement rules - Rename sub-organizations to organizations in parent account copy - Remove the Domains-tab design, the org-name header, and dead parent and wizard code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: bf54480 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 |
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
@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: |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This draft exists for the Vercel
clerk-js-sandboxpreview of the Organizations access and onboarding design prototype. It is not meant to merge.The prototype is a staff-only Access tab in
<OrganizationProfile />that we use to work through the end-customer admin side of the access and onboarding redesign with design and leadership before building it for real. It never calls the backend: all data comes from an MSW sandbox scenario and a session-storage store. It only renders whenOrganizationProfilereceives the@internal__internal_accessOnboardingprop, so the shipped profile is unchanged, and the changeset is empty.What the prototype covers:
Some product decisions are still open, including whether SSO and SCIM should live only on the parent account, so treat the flows and copy as work in progress.
To try it, open the
clerk-js-sandboxpreview from the Vercel comment and go to/organization-profile?scenario=OrgAccessOnboarding, then open the Access tab. The "Prototype scenario" picker at the top switches between setups. To see the parent account screens, pick "SSO already live", open the acmedev.org policy, choose "Manage these users with a parent account" under Membership, then "Create parent account" and "Create and continue". After that, Members › Unmanaged users and Access › Organizations show the parent account views.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
✎