feat(ui): add mosaic block/section/aio prototype layers#8838
feat(ui): add mosaic block/section/aio prototype layers#8838alexcarpenter wants to merge 3 commits into
Conversation
Introduces three new component hierarchy layers under packages/ui/src/mosaic/: - block/destructive.tsx — controlled confirmation dialog (trigger + input guard + action) - section/leave-organization.tsx — owns open/deleting state, wires Destructive to leave flow - aio/organization-profile.tsx — assembles organization sections into a full-page view Also adds swingset stories for all three (Blocks / Sections / AIO sidebar groups) and fixes slug.ts to treat consecutive uppercase letters as acronyms (AIO → aio, not a-i-o).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: df54c31 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 skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
API Changes Report
Summary
@clerk/sharedCurrent version: 4.17.1 Subpath
|
#8839) Co-authored-by: Alex Carpenter <alex.carpenter@clerk.dev>
Summary
packages/ui/src/mosaic/:block/destructive.tsx— controlled confirmation dialog composed fromDialog+Input+Button; caller owns open/deleting state; input must match resource name to enable the actionsection/leave-organization.tsx— ownsopen/isDeletingstate, wiresDestructiveto the leave-organization flowaio/organization-profile.tsx— assembles organization sections into a full-page viewslug.tsto treat consecutive uppercase letters as acronyms (AIO→aionota-i-o)https://swingset-git-carp-mosaic-block-destructive.clerkstage.dev/sections/delete-organization
Test plan
localhost:6006/aio/organization-profile— page renders with a "Leave organization" heading and trigger buttonlocalhost:6006/sections/leave-organization— same section in isolationlocalhost:6006/blocks/destructive— bare block with controlled state in the storyturbo build --filter=@clerk/uipasses with no type errors