Skip to content

Commit cd34d2f

Browse files
frankieyanclaude
andauthored
docs(storybook): reorganize story hierarchy by component category (#1064)
Regroup every story title under the nine type-based categories from the Reactist component inventory, replacing the inconsistent Design system / Components split so the sidebar matches the inventory we're standardizing on. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a11a99a commit cd34d2f

36 files changed

Lines changed: 50 additions & 36 deletions

.storybook/preview.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,21 @@ const preview: Preview = {
2222
options: {
2323
storySort: {
2424
method: 'alphabetical',
25-
order: ['Reactist', 'Design tokens', 'Design system', 'Hooks', 'Components'],
25+
order: [
26+
'Reactist',
27+
'Design tokens',
28+
'🔘 Buttons & links',
29+
'📊 Data display',
30+
'💬 Feedback',
31+
'📝 Form',
32+
'📐 Layout',
33+
'📑 Menus & tabs',
34+
'🪟 Overlays',
35+
'🔤 Typography',
36+
'⚙️ Utility',
37+
'🪝 Hooks',
38+
'Tips and tricks',
39+
],
2640
},
2741
},
2842
chromatic: {

src/avatar/avatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type PlaygroundArgs = Omit<AvatarProps, 'image'> & {
183183
}
184184

185185
const meta = {
186-
title: 'Components/Avatar',
186+
title: '📊 Data display/Avatar',
187187
component: Avatar,
188188
parameters: {
189189
badges: ['accessible'],

src/badge/badge.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function DarkModeTemplate() {
9696
}
9797

9898
export default {
99-
title: 'Design system/Badge',
99+
title: '📊 Data display/Badge',
100100
component: Badge,
101101

102102
parameters: {

src/banner/banner.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function DarkModeTemplate() {
383383
}
384384

385385
export default {
386-
title: 'Design system/Banner',
386+
title: '💬 Feedback/Banner',
387387
component: Banner,
388388

389389
parameters: {

src/box/box.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import type {
3232
import type { BoxBorderRadius } from './box'
3333

3434
export default {
35-
title: 'Design system/Box',
35+
title: '📐 Layout/Box',
3636
component: Box,
3737
parameters: {
3838
badges: ['accessible'],

src/button/button.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function DarkModeTemplate(props) {
183183
}
184184

185185
export default {
186-
title: 'Design system/Button',
186+
title: '🔘 Buttons & links/Button',
187187
component: Button,
188188

189189
parameters: {

src/button/icon-button.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function DarkModeTemplate(props) {
101101
}
102102

103103
export default {
104-
title: 'Design system/IconButton',
104+
title: '🔘 Buttons & links/IconButton',
105105
component: IconButton,
106106

107107
parameters: {

src/checkbox-field/checkbox-field.stories.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Template = ({
2929
}) => <CheckboxField disabled={disabled} indeterminate={indeterminate} label={label} icon={icon} />
3030

3131
export default {
32-
title: 'Design system/CheckboxField',
32+
title: '📝 Form/CheckboxField',
3333
component: CheckboxField,
3434

3535
parameters: {

src/columns/columns.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type {
2323
} from './columns'
2424

2525
export default {
26-
title: 'Design system/Columns',
26+
title: '📐 Layout/Columns',
2727
component: Columns,
2828
subcomponents: { Column },
2929
argTypes: {

src/heading/heading.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ResponsiveWidthRef, select, selectWithNone } from '../utils/storybook-h
66
import { Heading } from './heading'
77

88
export default {
9-
title: 'Design system/Heading',
9+
title: '🔤 Typography/Heading',
1010
component: Heading,
1111
parameters: {
1212
badges: ['accessible'],

0 commit comments

Comments
 (0)