Skip to content

Commit

Permalink
Added 3 categories for Storybook structure (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagabomb authored Oct 11, 2023
1 parent 406fdff commit 3a2104e
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/AboutPage/AboutPage.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const fetchAboutPageData = () =>
});

export default {
title: 'AboutPage',
title: 'Layouts/AboutPage',
component: AboutPage,

args: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Accordion/Accordion.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PremiumPill from '@components/PremiumPill';
import Accordion from '.';

export default {
title: 'Accordion',
title: 'Components/Accordion',
component: Accordion,
argTypes: {
header: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Banners/WarningBanner.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import WarningBanner from './WarningBanner';

export default {
title: 'WarningBanner',
title: 'Components/WarningBanner',
component: WarningBanner,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Button/Button.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import Button from '.';

export default {
title: 'Button',
title: 'Components/Button',
component: Button,
argTypes: {
size: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { faker } from '@faker-js/faker';
import CheckResultsOverview from './CheckResultsOverview';

export default {
title: 'CheckResultsOverview',
title: 'Layouts/CheckResultsOverview',
component: CheckResultsOverview,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ProviderSelection from './ProviderSelection';
const providers = Object.keys(providerData);

export default {
title: 'ProviderSelection',
title: 'Components/ProviderSelection',
components: ProviderSelection,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const selectedChecks = [
const targetID = faker.string.uuid();

export default {
title: 'ChecksSelection',
title: 'Patterns/ChecksSelection',
component: ChecksSelection,
argTypes: {
className: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import BackButton from '@components/BackButton';
import ChecksSelectionHeader from './ChecksSelectionHeader';

export default {
title: 'ChecksSelectionHeader',
title: 'Patterns/ChecksSelectionHeader',
component: ChecksSelectionHeader,
decorators: [
(Story) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import CleanUpButton from '.';

export default {
title: 'CleanUpButton',
title: 'Components/CleanUpButton',
component: CleanUpButton,
argTypes: {
cleaning: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const failoverDetails = ascsErsClusterDetailsFactory.build({
});

export default {
title: 'AscsErsClusterDetails',
title: 'Layouts/AscsErsClusterDetails',
components: AscsErsClusterDetails,
decorators: [
(Story) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'HanaClusterDetails',
title: 'Layouts/HanaClusterDetails',
components: HanaClusterDetails,
decorators: [
(Story) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'DatabaseDetails',
title: 'Layouts/DatabaseDetails',
components: GenericSystemDetails,
argTypes: {
system: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'DatabasesOverview',
title: 'Layouts/DatabasesOverview',
components: DatabasesOverview,
argTypes: {
databases: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { APPLICATION_TYPE, DATABASE_TYPE } from '@lib/model';
import DeregistrationModal from '.';

export default {
title: 'DeregistrationModal',
title: 'Patterns/DeregistrationModal',
component: DeregistrationModal,
argTypes: {
contentType: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import DottedPagination from '.';

export default {
title: 'DottedPagination',
title: 'Components/DottedPagination',
component: DottedPagination,
argTypes: {
pages: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Eula/Community.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
import Community from './Community';

export default {
title: 'Eula Community',
title: 'Patterns/Eula Community',
component: Community,
args: { visible: true, dispatch: action() },
};
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Eula/Premium.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from '@storybook/addon-actions';
import Premium from './Premium';

export default {
title: 'Eula Premium',
title: 'Patterns/Eula Premium',
component: Premium,
args: { visible: true, dispatch: action() },
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const executionDataWithoutValues = checksExecutionCompletedFactory.build({
});

export default {
title: 'CheckResultDetail',
title: 'Layouts/CheckResultDetail',
component: CheckResultDetail,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import ExpectationsResults from './ExpectationsResults';

export default {
title: 'ExpectationsResults',
title: 'Patterns/ExpectationsResults',
component: ExpectationsResults,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { faker } from '@faker-js/faker';
import ExpectedValues from './ExpectedValues';

export default {
title: 'ExpectedValues',
title: 'Patterns/ExpectedValues',
component: ExpectedValues,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const factValues = {
],
};
export default {
title: 'GatheredFacts',
title: 'Patterns/GatheredFacts',
component: GatheredFacts,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ const fetchCatalog = () =>
});

export default {
title: 'ExecutionResults',
title: 'Layouts/ExecutionResults',
components: ExecutionResults,
decorators: [
(Story) => (
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Health/HealthIcon.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import HealthIcon from '.';

export default {
title: 'HealthIcon',
title: 'Components/HealthIcon',
component: HealthIcon,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'HomeHealthSummary',
title: 'Layouts/HomeHealthSummary',
components: HomeHealthSummary,
decorators: [
(Story) => (
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/HostDetails/HostDetails.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'HostDetails',
title: 'Layouts/HostDetails',
component: HostDetails,
argTypes: {
agentVersion: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/ListView/ListView.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import ListView from '.';

export default {
title: 'ListView',
title: 'Components/ListView',
component: ListView,
argTypes: {
orientation: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/NotFound/NotFound.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import NotFound from '.';

export default {
title: 'NotFound',
title: 'Layouts/NotFound',
component: NotFound,
args: { buttonText: 'Go back home', onNavigate: () => {} },
};
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/ObjectTree/ObjectTree.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { objectTreeFactory } from '@lib/test-utils/factories';
import ObjectTree from '.';

export default {
title: 'ObjectTree',
title: 'Components/ObjectTree',
component: ObjectTree,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Pill/Pill.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Tooltip from '@components/Tooltip';
import Pill from '.';

export default {
title: 'Pill',
title: 'Components/Pill',
component: Pill,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/PremiumPill/PremiumPill.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PremiumPill from '.';

export default {
title: 'PremiumPill',
title: 'Components/PremiumPill',
component: PremiumPill,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ProviderLabel from '.';

export default {
title: 'ProviderLabel',
title: 'Components/ProviderLabel',
components: ProviderLabel,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'SapSystemDetails',
title: 'Layouts/SapSystemDetails',
components: GenericSystemDetails,
argTypes: {
system: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'SapSystemsOverview',
title: 'Layouts/SapSystemsOverview',
components: SapSystemsOverview,
argTypes: {
sapSystems: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function ContainerWrapper({ children }) {
}

export default {
title: 'SaptuneDetails',
title: 'Layouts/SaptuneDetails',
component: SaptuneDetails,
argTypes: {
appliedNotes: {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Spinner.stories.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Spinner from './Spinner';

export default {
title: 'Spinner',
title: 'Components/Spinner',
component: Spinner,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Table/Table.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
* See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Table',
title: 'Components/Table',
component: Table,
};

Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Tags/Tags.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import Tags from '.';

export default {
title: 'Tags',
title: 'Components/Tags',
component: Tags,
argTypes: { onChange: { action: 'tag changed' } },
};
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/Tooltip/Tooltip.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Tooltip from '.';
import { PLACES } from './Tooltip';

export default {
title: 'Tooltip',
title: 'Components/Tooltip',
component: Tooltip,
argTypes: {
content: {
Expand Down

0 comments on commit 3a2104e

Please sign in to comment.