Skip to content
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
3 changes: 2 additions & 1 deletion packages/grid/src/dashboard-grid/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import type {
} from '../../shared/types';

const meta: Meta< typeof DashboardGrid > = {
title: 'Grid/DashboardGrid',
id: 'grid-dashboardgrid',
title: 'Widgets/Grid/DashboardGrid',
component: DashboardGrid,
tags: [ 'status-experimental' ],
args: {
Expand Down
3 changes: 2 additions & 1 deletion packages/grid/src/dashboard-lanes/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import type { DashboardLanesLayoutItem } from '../types';
import type { GridOverlayRenderProps } from '../../shared/types';

const meta: Meta< typeof DashboardLanes > = {
title: 'Grid/DashboardLanes',
id: 'grid-dashboardlanes',
title: 'Widgets/Grid/DashboardLanes',
component: DashboardLanes,
tags: [ 'status-experimental' ],
args: {
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-dashboard/src/stories/anatomy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import AnatomyDoc from './anatomy.md?raw';
import dashboardAnatomy from './assets/dashboard-anatomy.svg';

<Meta title="Widget Dashboard/Anatomy" />
<Meta id="widget-dashboard-anatomy" title="Widgets/Dashboard/Anatomy" />

<Markdown>
{ AnatomyDoc.replace( './assets/dashboard-anatomy.svg', dashboardAnatomy ) }
Expand Down
3 changes: 2 additions & 1 deletion packages/widget-dashboard/src/stories/debug.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ function StagingEnforcementStory( {
}

const meta: Meta< typeof WidgetDashboard > = {
title: 'Widget Dashboard/Playground/Debug',
id: 'widget-dashboard-playground-debug',
title: 'Widgets/Dashboard/Playground/Debug',
component: WidgetDashboard,
tags: [ 'status-experimental' ],
parameters: {
Expand Down
3 changes: 2 additions & 1 deletion packages/widget-dashboard/src/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ const INITIAL_LAYOUT: DashboardWidget[] = [
];

const meta: Meta< typeof WidgetDashboard > = {
title: 'Widget Dashboard/Playground',
id: 'widget-dashboard-playground',
title: 'Widgets/Dashboard/Playground',
component: WidgetDashboard,
tags: [ 'status-experimental' ],
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-dashboard/src/stories/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import IntroductionDoc from './introduction.md?raw';

<Meta title="Widget Dashboard/Introduction" />
<Meta id="widget-dashboard-introduction" title="Widgets/Dashboard/Introduction" />

<Markdown>{ IntroductionDoc }</Markdown>
2 changes: 1 addition & 1 deletion packages/widget-dashboard/src/stories/policy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import PolicyDoc from './policy.md?raw';
import policySeam from './assets/policy-seam.svg';

<Meta title="Widget Dashboard/Policy" />
<Meta id="widget-dashboard-policy" title="Widgets/Dashboard/Policy" />

<Markdown>
{ PolicyDoc.replace( './assets/policy-seam.svg', policySeam ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-dashboard/src/stories/widget-chrome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import headerAnatomy from './assets/header-anatomy.svg';
import headerFit from './assets/header-fit.svg';
import footerAnatomy from './assets/footer-anatomy.svg';

<Meta title="Widget Dashboard/Widget Chrome" />
<Meta id="widget-dashboard-widget-chrome" title="Widgets/Dashboard/Widget Chrome" />

<Markdown>
{ WidgetChromeDoc.replace( './assets/tile-anatomy.svg', tileAnatomy )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ const resolveDemoModule = async () => ( {
} );

const meta: Meta< typeof WidgetRender > = {
title: 'Widget Primitives/WidgetRender',
id: 'widget-primitives-widgetrender',
title: 'Widgets/Primitives/WidgetRender',
component: WidgetRender,
tags: [ 'status-experimental' ],
parameters: {
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ActionsDoc from './actions.md?raw';
import actionAxes from './assets/action-axes.svg';
import actionSurfaces from './assets/action-surfaces.svg';

<Meta title="Widget Primitives/Actions" />
<Meta id="widget-primitives-actions" title="Widgets/Primitives/Actions" />

<Markdown>
{ ActionsDoc.replace( './assets/action-axes.svg', actionAxes ).replace(
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/anatomy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import presentationFullBleed from './assets/presentation-full-bleed.svg';
import representation from './assets/representation.svg';
import attributeRelevance from './assets/attribute-relevance.svg';

<Meta title="Widget Primitives/Anatomy" />
<Meta id="widget-primitives-anatomy" title="Widgets/Primitives/Anatomy" />

<Markdown>
{ AnatomyDoc.replace( './assets/three-layers.svg', threeLayers )
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/field-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import FieldTypesDoc from './field-types.md?raw';
import fieldTypePipeline from './assets/field-type-pipeline.svg';

<Meta title="Widget Primitives/Field Types" />
<Meta id="widget-primitives-field-types" title="Widgets/Primitives/Field Types" />

<Markdown>
{ FieldTypesDoc.replace(
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/icons.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import IconsDoc from './icons.md?raw';

<Meta title="Widget Primitives/Icons" />
<Meta id="widget-primitives-icons" title="Widgets/Primitives/Icons" />

<Markdown>{ IconsDoc }</Markdown>
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import IntroductionDoc from './introduction.md?raw';

<Meta title="Widget Primitives/Introduction" />
<Meta id="widget-primitives-introduction" title="Widgets/Primitives/Introduction" />

<Markdown>{ IntroductionDoc }</Markdown>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import pipelineDiagram from '../../../../docs/explanations/architecture/assets/d

{/* Use the locally served diagram so Storybook renders it offline. */}

<Meta title="Widget Primitives/System Architecture" />
<Meta id="widget-primitives-system-architecture" title="Widgets/Primitives/System Architecture" />

<Markdown>
{ ArchitectureDoc.replace(
Expand Down
2 changes: 1 addition & 1 deletion packages/widget-primitives/src/stories/widget-host.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, Markdown } from '@storybook/addon-docs/blocks';
import WidgetHostDoc from './widget-host.md?raw';
import widgetHostSeam from './assets/widget-host-seam.svg';

<Meta title="Widget Primitives/Widget Host" />
<Meta id="widget-primitives-widget-host" title="Widgets/Primitives/Widget Host" />

<Markdown>
{ WidgetHostDoc.replace( './assets/widget-host-seam.svg', widgetHostSeam ) }
Expand Down
18 changes: 13 additions & 5 deletions storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,19 @@ export const parameters = {
'ImageCropper',
'MediaEditor',
'Editor',
'Widget Primitives',
[ 'Introduction', 'Anatomy', 'System Architecture' ],
'Widget Dashboard',
[ 'Introduction', 'Anatomy', 'Widget Chrome', 'Playground' ],
'Grid',
'Widgets',
[
'Primitives',
[ 'Introduction', 'Anatomy', 'System Architecture' ],
'Dashboard',
[
'Introduction',
'Anatomy',
'Widget Chrome',
'Playground',
],
'Grid',
],
'Playground',
];
const PRIORITIZED_MDX_DOCS = [ 'Introduction', 'Overview' ];
Expand Down
Loading