Skip to content

Commit

Permalink
M3-5536: Add Storybook components (#7995)
Browse files Browse the repository at this point in the history
## Description

Remove unused stories and create placeholders for stories to be added

## How to test

Run `yarn storybook`
  • Loading branch information
tiffwong committed Oct 27, 2021
1 parent 27a0cc1 commit 99385fd
Show file tree
Hide file tree
Showing 21 changed files with 78 additions and 291 deletions.
2 changes: 1 addition & 1 deletion packages/manager/src/components/Button/button.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Button from 'src/components/Button';

<Meta
title="UI Elements/Button"
title="UI Elements/Buttons"
component={Button}
decorators={[
(Story) => (
Expand Down
6 changes: 6 additions & 0 deletions packages/manager/src/components/Chip.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Chip from '/src/components/core/Chip';

<Meta title="UI Elements/Chips" component={Chip} />

# Chips
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Banner from './DismissibleBanner';

<Meta title="UI Elements/Notifications/Banners" component={Banner} />

# Banners
6 changes: 6 additions & 0 deletions packages/manager/src/components/DragAndDrop.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Table from '/src/components/Table/Table';

<Meta title="UI Elements/Drag and Drop" component={Table} />

# Drag and Drop

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import EntityIconStory from './EntityIconStory';

# Entity Icons

### Overview

<hr />

[insert text...]

<Canvas>
<Story name="Entity Icons">
<EntityIconStory />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ export default {
export const ListView = () => (
<Provider store={store}>
<Grid spacing={8}>
<EntityTable
entity="domains"
headers={headers}
row={domainRow}
isGroupedByTag
/>
<EntityTable entity="domains" headers={headers} row={domainRow} />
</Grid>
</Provider>
);
Expand Down
6 changes: 6 additions & 0 deletions packages/manager/src/components/FileUpload.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import FileUpload from '/src/features/ObjectStorage/ObjectUploader/FileUpload';

<Meta title="Components/File Upload" component={FileUpload} />

# File Upload
6 changes: 6 additions & 0 deletions packages/manager/src/components/Grid/Grid.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Grid from './Grid';

<Meta title="Core/Grid" component={Grid} />

# Grid
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react';
import LinearProgress from './LinearProgress';

export default {
title: 'UI Elements/Loading/Linear Progress Indicator',
title: 'UI Elements/Linear Progress Indicator',
};

export const Indefinite = () => <LinearProgress />;
2 changes: 1 addition & 1 deletion packages/manager/src/components/Notice/Notice.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import store from 'src/store';
import Notice from './Notice';

export default {
title: 'UI Elements/Notification/Notice',
title: 'UI Elements/Notifications/Notice',
};

export const AllNotices = () => (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import NotificationDrawer from '/src/features/NotificationCenter/NotificationDrawer.tsx';

<Meta
title="Components/Drawer/Notifications Drawer"
component={NotificationDrawer}
/>

# Notifications Drawer
6 changes: 6 additions & 0 deletions packages/manager/src/components/Paper.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Paper from '/src/components/core/Paper';

<Meta title="Components/Papers" component={Paper} />

# Papers
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import Placeholder from '/src/components/Placeholder';

<Meta
title="UI Elements/Entity Landing Page/Placeholders"
component={Placeholder}
/>

# Placeholders
115 changes: 0 additions & 115 deletions packages/manager/src/components/ScriptCode/ScriptCode.stories.tsx

This file was deleted.

6 changes: 6 additions & 0 deletions packages/manager/src/components/SideMenu.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import SideMenu from './SideMenu';

<Meta title="Components/Navigation/Side Menu" component={SideMenu} />

# Side Menu
Loading

0 comments on commit 99385fd

Please sign in to comment.