chore(react): reorder & rename Storybook top-level navigation#4723
Conversation
Reorganizes the Storybook sidebar to match popular design-system conventions and align with the F0 component lifecycle (PR #4253). - Top-level sections now follow ownership/altitude: Components, Patterns, Kits, Domain specific (was 'SDS'), Resources (was 'Library'), plus docs. - Experimental is no longer a top-level bucket: its stories fold into Components/Patterns and maturity shows as a sidebar badge from the story tag (manager.ts), matching the lifecycle's 'tag is source of truth'. - Layouts folded into Patterns/App shell; lib+hooks -> Resources. - Maturity badges switched from emoji to text (Experimental / Deprecated). - Fixes ~12 story titles that hard-coded a bucket prefix and created phantom sidebar nodes; moves the Toast API to Components. Scope: PR 1 of a series (top-level only). Group reshuffles (dissolve Internal/Deprecated into badges, Patterns cleanup) and functional subgroups follow in later PRs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ No New Circular DependenciesNo new circular dependencies detected. Current count: 0 |
📦 Alpha Package Version PublishedUse Use |
🔍 Visual review for your branch is published 🔍Here are the links to: |
✅ No breaking public API changesNo public exports were removed, renamed, or had existing props/types changed in a breaking way compared to Comparing
|
Coverage Report for packages/react
File CoverageNo changed files found. |
Some folders routed to their own Storybook directory entry had a root index.mdx with no explicit <Meta title>, so Storybook auto-titled them to the bare section prefix — showing up as a stray 'Documentation' node (e.g. the Widgets docs appearing directly under 'Components'). Reported by review on #4723. - experimental/Widgets/index.mdx -> <Meta title="Widgets"> - ui/OneRestrictComponent/index.mdx -> <Meta title="OneRestrictComponent"> - ui/IconBadge: renamed index.mdx -> Badge.mdx (uses a custom <OneMeta> that can't take a Meta title; the filename now drives the autotitle to match its stories). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…rs groups - Normalize 'Data collection' -> 'Data Collection' (inconsistent casing was splitting OneDataCollection into two sidebar nodes; 24 vs 6 stories/docs). - Group ApplicationFrame under Patterns/App shell (alongside the layouts). - Group FilterPicker, FilterPickerContent and DateNavigator under Patterns/Filters (DateNavigator is a temporal filter). Title-only changes; verified in Storybook: single 'Data Collection' node, new 'App shell' and 'Filters' groups, 0 title collisions. Scope: PR 2 of the Storybook reorg series. Stacked on #4723 (base branch). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@eliseo-juan fixed 👍 It was a root index.mdx (the Widgets docs) with no explicit |
…rs groups - Normalize 'Data collection' -> 'Data Collection' (inconsistent casing was splitting OneDataCollection into two sidebar nodes; 24 vs 6 stories/docs). - Group ApplicationFrame under Patterns/App shell (alongside the layouts). - Group FilterPicker, FilterPickerContent and DateNavigator under Patterns/Filters (DateNavigator is a temporal filter). Title-only changes; verified in Storybook: single 'Data Collection' node, new 'App shell' and 'Filters' groups, 0 title collisions. Scope: PR 2 of the Storybook reorg series. Stacked on #4723 (base branch). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

What & why
Reorders and renames the Storybook sidebar so it matches popular design-system conventions (Polaris / Carbon / Primer) and aligns with the F0 component lifecycle (#4253).
The previous nav mixed four different concepts at the top level — category (Components/Patterns/Kits), maturity (Experimental/Deprecated), ownership (SDS) and technical (Layouts/Library/Internal) — which made it hard to consume.
What changed (top-level only)
manager.ts), matching the lifecycle's "the story tag is the source of truth".Patterns/App shell; lib + hooks →Resources.Experimental/Deprecated)."Components/…","SDS/…") and created phantom sidebar nodes; moves the Toast API to Components.Scope
PR 1 of a series — top-level structure only. Follow-up PRs (separate): dissolve Internal & Deprecated into badges, Patterns cleanup (casing, Tabs→Components, DateNavigator→Filters…), then functional subgroups.
Test plan
Ran
storybook devand verified the built sidebar via/index.json:Components · Patterns · Kits · Domain specific · Resources+ docs. No staleExperimental/SDS/Layouts/Libraryroots.linkTo/storyIdpointing at old ids).Related: #4253 (component lifecycle).
🤖 Generated with Claude Code