feat(swingset): Add Tooltip primitive#8807
Conversation
Adds a self-contained Mosaic Tooltip component and documents it in swingset with an interactive "Options" story showing all four sides. Also fixes a few latent bugs in the freshly scaffolded swingset app surfaced while testing: the StoryCanvas knob-reset effect that looped infinitely, the sidebar Collapsible uncontrolled-state warning, and the dev-only Script placement in the root layout.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. 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:
Comment |
🦋 Changeset detectedLatest commit: 9a41890 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 |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
Adds a self-contained Mosaic
Tooltipcomponent (@clerk/ui/mosaic) that reveals a label on hover or keyboard focus, with asidevariant for placement, and documents it in the swingset component explorer via an interactive "Options" story plus MDX docs. While testing the freshly scaffolded swingset app, this also fixes three latent bugs: theStoryCanvasknob-reset effect that looped infinitely (it depended on afindStoryobject that was new every render — now derived viauseMemoon the slug primitives), the sidebarCollapsibleuncontrolled-state warning (now a controlled per-group component that opens on the active route), and the dev-only<Script>in the root layout rendering outside<head>. To test:pnpm dev --filter @clerk/swingsetand open/components/tooltip, then hover/focus the trigger buttons. No published API surface changes (swingset is private and Mosaic isn't yet exported from@clerk/ui), so the changeset is empty.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change