Skip to content

Conversation

@LauraBeatris
Copy link
Member

@LauraBeatris LauraBeatris commented Jan 28, 2026

Description

Port from #7690

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:

Summary by CodeRabbit

  • New Features
    • Added a public hook to fetch suggested organization names and logos for organization creation (configurable enablement and keep-previous-data behavior).
  • User Interface
    • Organization creation flow now uses the new hook to surface suggested defaults and reflect loading state.
  • Chores
    • Minor package version bumps recorded.

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2026

🦋 Changeset detected

Latest commit: 773b79b

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

This PR includes changesets to release 20 packages
Name Type
@clerk/tanstack-react-start Minor
@clerk/chrome-extension Minor
@clerk/react-router Minor
@clerk/nextjs Minor
@clerk/shared Minor
@clerk/react Minor
@clerk/ui Minor
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/clerk-js Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/localizations Patch
@clerk/msw Patch
@clerk/nuxt Patch
@clerk/testing Patch
@clerk/vue Patch

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

@vercel
Copy link

vercel bot commented Jan 28, 2026

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

Project Deployment Review Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Jan 28, 2026 9:57pm

Request Review

@LauraBeatris LauraBeatris force-pushed the laura/backport-use-organization-creation-defaults branch from 9bcfd60 to a06b4be Compare January 28, 2026 19:21
@LauraBeatris LauraBeatris changed the title feat(shared): Export useOrganizationCreationDefaults hook feat(ui,shared): Export useOrganizationCreationDefaults hook Jan 28, 2026
@LauraBeatris LauraBeatris force-pushed the laura/backport-use-organization-creation-defaults branch from a06b4be to 9af7049 Compare January 28, 2026 19:23
@LauraBeatris LauraBeatris self-assigned this Jan 28, 2026
@LauraBeatris LauraBeatris requested a review from a team January 28, 2026 19:29
@LauraBeatris LauraBeatris marked this pull request as ready for review January 28, 2026 19:29
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 28, 2026

📝 Walkthrough

Walkthrough

Adds a new React hook useOrganizationCreationDefaults (implementation, types, and cache-key helper) under packages/shared, plus a new stable key ORGANIZATION_CREATION_DEFAULTS_KEY. Re-exports the hook from packages/react, packages/nextjs, and the chrome-extension re-exports. Integrates the hook into TaskChooseOrganization, replacing prior useFetch/useEnvironment usage. Adds a changeset entry with minor version bumps for multiple packages.

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(ui,shared): Export useOrganizationCreationDefaults hook' accurately describes the main change: exporting a new hook across multiple packages.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/ui/src/components/SessionTasks/tasks/TaskChooseOrganization/index.tsx (1)

17-26: Missing import for useOrganizationCreationDefaults (build-breaker).
Line 20 references useOrganizationCreationDefaults but it isn’t imported, which will fail TypeScript compilation.

🔧 Proposed fix
-import { useClerk, useSession, useUser } from '@clerk/shared/react';
+import { useClerk, useOrganizationCreationDefaults, useSession, useUser } from '@clerk/shared/react';

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 28, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7694

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7694

@clerk/expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 773b79b

@LauraBeatris LauraBeatris force-pushed the laura/backport-use-organization-creation-defaults branch from f632ede to 47650d7 Compare January 28, 2026 20:43
@LauraBeatris LauraBeatris force-pushed the laura/backport-use-organization-creation-defaults branch from 47650d7 to 679db6f Compare January 28, 2026 20:49
@LauraBeatris LauraBeatris force-pushed the laura/backport-use-organization-creation-defaults branch from 679db6f to 773b79b Compare January 28, 2026 21:56
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.

3 participants