Repository navigation
refactor(mosaic): centralize shared constants - #10560
alexcarpenter wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 8cd39ea 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 |
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
@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: |
2079648 to
8cd39ea
Compare
Description
Mosaic repeated values that have to stay in sync across features, including permission strings, avatar upload rules and verification timings. This moves them into small domain files in
src/utils/, so each has one place to change. It deliberately adds no catch-allconstants.ts; values with a single owner stay with that owner.permissions.ts:ORGANIZATION_PERMISSIONS, replacing local and inlineorg:sys_*strings in model files.avatar-upload.ts: the file picker rules and rejection errors shared by the logo and profile picture rows.verification.ts:CODE_LENGTHandCODE_RESEND_SECONDS.providerIdreplaces three copies of the provider prefix strip. The profile section now also trims whitespace, which it did not before; this is the only behaviour difference.OrganizationProfilePageIdtype fromorganization-profile.typesinstead of its own copy.Checklist
pnpm testruns as expected. (@clerk/mosaiconly)pnpm buildruns as expected. (@clerk/mosaiconly)Type of change