Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: [M3-8210] - Storybook nav organization POC #10809

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Storybook nav organization ([#10809](https://github.com/linode/manager/pull/10809))
9 changes: 8 additions & 1 deletion packages/manager/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ const preview: Preview = {
options: {
storySort: {
method: 'alphabetical',
order: ['Intro', 'Core Styles', 'Components', 'Features'],
order: [
'Intro',
'Design System',
'Icons',
'Foundations',
'Components',
'Features',
],
},
},
viewport: {
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/assets/logo/akamai-logo-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/manager/src/components/Accordion.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Accordion } from './Accordion';

const meta: Meta<typeof Accordion> = {
component: Accordion,
title: 'Components/Accordion',
title: 'Foundations/Accordion',
};

type Story = StoryObj<typeof Accordion>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export const Default: StoryObj<BetaChipProps> = {
const meta: Meta<BetaChipProps> = {
args: { color: 'default' },
component: BetaChip,
title: 'Components/Chip/BetaChip',
title: 'Foundations/Chip/BetaChip',
};
export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Box } from './Box';

const meta: Meta<typeof Box> = {
component: Box,
title: 'Components/Box',
title: 'Foundations/Box',
};

type Story = StoryObj<typeof Box>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Breadcrumb } from './Breadcrumb';

const meta: Meta<typeof Breadcrumb> = {
component: Breadcrumb,
title: 'Components/Breadcrumb',
title: 'Foundations/Breadcrumb',
};

type Story = StoryObj<typeof Breadcrumb>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const meta: Meta<typeof Button> = {
tooltipText: '',
},
component: Button,
title: 'Components/Button',
title: 'Foundations/Button',
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const meta: Meta<typeof StyledTagButton> = {
onClick: () => null,
},
component: StyledTagButton,
title: 'Components/TagButton',
title: 'Components/Tags/TagButton',
};

export default meta;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Checkbox } from './Checkbox';

const meta: Meta<typeof Checkbox> = {
component: Checkbox,
title: 'Components/Checkbox',
title: 'Foundations/Checkbox',
};

type Story = StoryObj<typeof Checkbox>;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Chip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ export const WithDeleteButton: StoryObj<ChipProps> = {
const meta: Meta<ChipProps> = {
args: { label: 'Chip', onDelete: undefined },
component: Chip,
title: 'Components/Chip',
title: 'Foundations/Chip',
};
export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const meta: Meta<typeof Currency> = {
},
},
component: Currency,
title: 'Components/Typography/Currency',
title: 'Foundations/Typography/Currency',
};

export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const meta: Meta<typeof DateTimeDisplay> = {
},
},
component: DateTimeDisplay,
title: 'Components/Typography/Date Time Display',
title: 'Foundations/Typography/Date Time Display',
};

export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Divider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Divider } from 'src/components/Divider';

const meta: Meta<typeof Divider> = {
component: Divider,
title: 'Components/Divider',
title: 'Foundations/Divider',
};

type Story = StoryObj<typeof Divider>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const meta: Meta<DocsLinkProps> = {
label: 'Custom Doc Link Label',
},
component: DocsLink,
title: 'Components/Link/DocsLink',
title: 'Foundations/Link/DocsLink',
};

export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const WithSuffix: Story = {

const meta: Meta<typeof EditableText> = {
component: EditableText,
title: 'Components/Editable Text',
title: 'Components/Input/Editable Text',
};

export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const meta: Meta<typeof EnhancedNumberInput> = {
},
args: {},
component: EnhancedNumberInput,
title: 'Components/EnhancedNumberInput',
title: 'Components/Input/EnhancedNumberInput',
};

export default meta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { EntityVariants } from 'src/components/EntityIcon/EntityIcon';
const meta: Meta<typeof EntityIcon> = {
args: { variant: 'linode' },
component: EntityIcon,
title: 'Components/EntityIcon',
title: 'Icons/EntityIcon',
};

export default meta;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Flag.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Flag } from './Flag';

const meta: Meta<typeof Flag> = {
component: Flag,
title: 'Components/Flag',
title: 'Icons/Flag',
};

type Story = StoryObj<typeof Flag>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const meta: Meta<typeof InlineMenuAction> = {
tooltipAnalyticsEvent: action('tooltipAnalyticsEvent'),
},
component: InlineMenuAction,
title: 'Components/InlineMenuAction',
title: 'Components/Action Menu/InlineMenuAction',
};

export default meta;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const meta: Meta<LinkProps> = {
to: '/internal-link',
},
component: Link,
title: 'Components/Link',
title: 'Foundations/Link',
};

export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/OSIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Alpine: StoryObj<typeof OSIcon> = {

const meta: Meta<typeof OSIcon> = {
component: OSIcon,
title: 'Components/OS Icon',
title: 'Icons/OS Icon',
};

export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Paper.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Paper } from './Paper';

const meta: Meta<typeof Paper> = {
component: Paper,
title: 'Components/Paper',
title: 'Foundations/Paper',
};

type Story = StoryObj<typeof Paper>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { HideShowText } from './HideShowText';

const meta: Meta<typeof HideShowText> = {
component: HideShowText,
title: 'Components/Hide Show Text',
title: 'Components/Input/Hide Show Text',
};

type Story = StoryObj<typeof HideShowText>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PasswordInput from './PasswordInput';

const meta: Meta<typeof PasswordInput> = {
component: PasswordInput,
title: 'Components/Password Input',
title: 'Components/Input/Password Input',
};

type Story = StoryObj<typeof PasswordInput>;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const meta: Meta<RadioProps> = {
</Box>
),
],
title: 'Components/Radio',
title: 'Foundations/Radio',
};

type Story = StoryObj<RadioProps>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const meta: Meta<ShowMoreExpansionProps> = {
name: 'Show More',
},
component: ShowMoreExpansion,
title: 'Components/Accordion/ShowMoreExpansion',
title: 'Foundations/Accordion/ShowMoreExpansion',
};

export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Stack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const WithDivider: StoryObj<typeof Stack> = {

const meta: Meta<typeof Stack> = {
component: Stack,
title: 'Components/Stack',
title: 'Foundations/Stack',
};

export default meta;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StatusIcon } from './StatusIcon';

const meta: Meta<typeof StatusIcon> = {
component: StatusIcon,
title: 'Components/StatusIcon',
title: 'Icons/StatusIcon',
};

type Story = StoryObj<typeof StatusIcon>;
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/components/Tabs/Tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ const meta: Meta<TabsProps> = {
onChange: () => null,
},
component: Tabs,
title: 'Components/Tabs',
title: 'Foundations/Tabs',
};
export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TextField } from './TextField';

const meta: Meta<typeof TextField> = {
component: TextField,
title: 'Components/TextField',
title: 'Foundations/TextField',
};

type Story = StoryObj<typeof TextField>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const meta: Meta<ToggleProps> = {
disabled: false,
},
component: Toggle,
title: 'Components/Toggle',
title: 'Foundations/Toggle',
};

export default meta;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Typography.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Typography } from './Typography';

const meta: Meta<typeof Typography> = {
component: Typography,
title: 'Components/Typography',
title: 'Foundations/Typography',
};

type Story = StoryObj<typeof Typography>;
Expand Down
Loading