feat(ui,clerk-js,shared): Surface organization creation defaults to components
Description
Resolves ORGS-1027, ORGS-1136
Checklist
- [X]
pnpm testruns as expected. - [X]
pnpm buildruns 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:
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Review | Updated (UTC) |
|---|---|---|---|
| clerk-js-sandbox | Preview, Comment | Dec 19, 2025 3:32pm |
β οΈ No Changeset found
Latest commit: 22edba6ce46e5da67e9c6b5171f3042e6ed25459
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
π Walkthrough
Walkthrough
This pull request implements organization creation defaults functionality across the Clerk JavaScript SDK and UI components. It introduces new type definitions for organization creation defaults with advisory capabilities, adds a new resource class to fetch these defaults from an API endpoint, and extends existing organization settings to track whether this feature is enabled. The TaskChooseOrganization screen is updated to conditionally fetch and display these defaults when enabled, including pre-filling form fields with default values and rendering advisory alerts when existing organizations are detected for a user's email domain. Supporting changes include fixture helpers for testing, new localization strings, and UI component enhancements for avatar uploading and form pre-population.
Pre-merge checks
β Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | β οΈ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | You can run @coderabbitai generate docstrings to improve docstring coverage. |
β Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | β Passed | Check skipped - CodeRabbitβs high-level summary is enabled. |
| Linked Issues check | β Passed | The PR comprehensively addresses both ORGS-1027 and ORGS-1136 objectives: new types added to @clerk/shared/types, clerk-js resources updated to consume defaults, conditional fetching based on enabled flag implemented, default naming/logo rendered in TaskChooseOrganization with warning alerts. |
| Out of Scope Changes check | β Passed | All changes are directly scoped to implementing organization creation defaults: type definitions, resource classes, UI components for alerts and form prefilling, test fixtures, and localization strings. A minor adjustment to AvatarUploader appears supportive of the avatar upload feature. |
| Title check | β Passed | The title accurately describes the main change: introducing organization creation defaults to UI, clerk-js, and shared packages as a new feature. |
Comment @coderabbitai help to get the list of available commands and usage tips.
I'll hold merging this one after the winter break