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

Fixes #3967 Adds New Storybook Navigation Structure #4040

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions frontend/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ const parameters = {
storySort: {
method: "alphabetical",
order: [
"About",
"Brand",
"Core Components",
"Welcome",
"Core",
// Storybook infers the title when not explicitly set, but is case-sensitive
// so we need to explicitly set both casings here for this to properly sort.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation!

"Components",
"components",
"Features",
"Templates",
"Pages",
"pages",
Expand Down
5 changes: 5 additions & 0 deletions frontend/stories/about/implementation-guide.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="About/Implementation Guide" />

# Simpler.Grants.Gov Component Implementation Guide
5 changes: 5 additions & 0 deletions frontend/stories/about/welcome.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="About/Welcome" />

# Welcome to Simpler.Grants.Gov Design System Storybook
5 changes: 5 additions & 0 deletions frontend/stories/brand/colors.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Brand/Colors" />

# Welcome to Simpler.Grants.Gov Colors
5 changes: 5 additions & 0 deletions frontend/stories/brand/logo.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Brand/Logo" />

# Simpler.Grants.Gov Logo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Meta } from "@storybook/react";
import { Button } from "@trussworks/react-uswds";

const meta: Meta<typeof Button> = {
title: "Components/Button",
title: "Core Components/Button",
component: Button,
args: {
children: "Save",
Expand Down
5 changes: 5 additions & 0 deletions frontend/stories/core-components/guidance.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Core Components/Guidance" />

# Simpler.Grants.Gov Core Components Guidance
5 changes: 5 additions & 0 deletions frontend/stories/features/templates.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Features/Templates" />

# Simpler.Grants.Gov Templates
5 changes: 5 additions & 0 deletions frontend/stories/features/workflows.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Features/Workflows" />

# Simpler.Grants.Gov Workflows
5 changes: 5 additions & 0 deletions frontend/stories/guidance/docs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Meta } from "@storybook/blocks";

<Meta title="Guidance/Docs" />

# Simpler.Grants.Gov Guidance Docs
11 changes: 11 additions & 0 deletions frontend/stories/pages/notfound.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Meta } from "@storybook/react";
import NotFound from "src/app/[locale]/not-found";

const meta: Meta<typeof NotFound> = {
title: "Pages/Not Found",
component: NotFound,
};

export default meta;

export const Default = {};
Loading