Skip to content

feat(ui): Access and onboarding design prototype (staff-only, not for merge) - #10964

Draft
ssibley-clerk wants to merge 23 commits into
mainfrom
stephen/access-onboarding-prototype
Draft

ssibley-clerk wants to merge 23 commits into
mainfrom
stephen/access-onboarding-prototype

Conversation

@ssibley-clerk

Copy link
Copy Markdown

Description

This draft exists for the Vercel clerk-js-sandbox preview 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 when OrganizationProfile receives the @internal __internal_accessOnboarding prop, so the shipped profile is unchanged, and the changeset is empty.

What the prototype covers:

  • Access policies per email domain: enrollment, SSO, MFA, re-verification, membership, and domain ownership proof.
  • Parent accounts, an account above organizations that owns the verified domains. Admins reach it from a hint before their first policy, or from a third Membership option, "Manage these users with a parent account", that appears once domain ownership is proven and people at the domain are in other organizations.
  • On a parent account: an Unmanaged users tab on Members (users at your domains who are in organizations outside the parent, with migrate and remove), invites for those outside organizations on Access › Organizations, and a "Where users land" setting that places users by directory group or domain.

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-sandbox preview 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 test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other: staff-only design prototype, not for merge

✎

ssibley-clerk and others added 23 commits August 19, 2026 15:09
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>
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 23, 2026 9:09pm UTC
mosaic-docs Ready Ready Preview Nov 23, 2026 9:09pm UTC
swingset Ready Ready Preview Nov 23, 2026 9:09pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bf54480

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When 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

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pkg-pr-new

pkg-pr-new Bot commented Nov 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@10964

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@10964

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@10964

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@10964

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10964

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10964

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10964

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@10964

@clerk/expo-biometrics

npm i https://pkg.pr.new/@clerk/expo-biometrics@10964

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10964

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10964

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@10964

@clerk/express

npm i https://pkg.pr.new/@clerk/express@10964

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@10964

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10964

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@10964

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10964

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@10964

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@10964

@clerk/react

npm i https://pkg.pr.new/@clerk/react@10964

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@10964

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@10964

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@10964

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@10964

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10964

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@10964

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@10964

commit: bf54480

This branch was successfully deployed

2 active deployments
Preview – swingset — bf544804 Deployed Nov 23, 2026 by vercel[bot]
Preview – clerk-js-sandbox — bf544804 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant