Skip to content

refactor: Reorganize Storybook #1087

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

Merged
merged 1 commit into from
Apr 19, 2022
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
Reorganize Storybook
  • Loading branch information
presleyp committed Apr 19, 2022
commit a3f49d75e41f849bf7d1f5170db6518a6e885202
2 changes: 1 addition & 1 deletion site/src/components/Button/LoadingButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { LoadingButton, LoadingButtonProps } from "./LoadingButton"

export default {
title: "Button/LoadingButton",
title: "components/LoadingButton",
component: LoadingButton,
argTypes: {
loading: { control: { type: "boolean" } },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/CodeBlock/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Started container user
Using user 'coder' with shell '/bin/bash'`.split("\n")

export default {
title: "CodeBlock/CodeBlock",
title: "components/CodeBlock",
component: CodeBlock,
argTypes: {
lines: { control: "text", defaultValue: sampleLines },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/CodeExample/CodeExample.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CodeExample, CodeExampleProps } from "./CodeExample"
const sampleCode = `echo "Hello, world"`

export default {
title: "CodeBlock/CodeExample",
title: "components/CodeExample",
component: CodeExample,
argTypes: {
code: { control: "string", defaultValue: sampleCode },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Form/FormCloseButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { FormCloseButton, FormCloseButtonProps } from "./FormCloseButton"

export default {
title: "Form/FormCloseButton",
title: "components/FormCloseButton",
component: FormCloseButton,
argTypes: {
onClose: { action: "onClose" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react"
import { UserDropdown, UserDropdownProps } from "."

export default {
title: "Page/UserDropdown",
title: "components/UserDropdown",
component: UserDropdown,
argTypes: {
onSignOut: { action: "Sign Out" },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Section/SectionView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react"
import { Section, SectionProps } from "./"

export default {
title: "Page/Section",
title: "components/Section",
component: Section,
argTypes: {
title: { type: "string" },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/SignIn/CliAuthToken.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { CliAuthToken, CliAuthTokenProps } from "./CliAuthToken"

export default {
title: "SignIn/CliAuthToken",
title: "components/CliAuthToken",
component: CliAuthToken,
argTypes: {
sessionToken: { control: "text", defaultValue: "some-session-token" },
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/SignIn/SignInForm.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { SignInForm, SignInFormProps } from "./SignInForm"

export default {
title: "SignIn/SignInForm",
title: "components/SignInForm",
component: SignInForm,
argTypes: {
isLoading: "boolean",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { EnterpriseSnackbar, EnterpriseSnackbarProps } from "./EnterpriseSnackbar"

export default {
title: "Snackbar/EnterpriseSnackbar",
title: "components/EnterpriseSnackbar",
component: EnterpriseSnackbar,
}

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Stack/Stack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react"
import { Stack, StackProps } from "./Stack"

export default {
title: "Components/Stack",
title: "components/Stack",
component: Stack,
}

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/TabPanel/TabPanel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { TabPanel, TabPanelProps } from "."

export default {
title: "TabPanel/TabPanel",
title: "components/TabPanel",
component: TabPanel,
}

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/TabPanel/TabSidebar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from "react"
import { TabSidebar, TabSidebarProps } from "./TabSidebar"

export default {
title: "TabPanel/TabSidebar",
title: "components/TabSidebar",
component: TabSidebar,
}

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Table/Cells/UserCell.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MockUser, MockUserAgent } from "../../../testHelpers"
import { UserCell, UserCellProps } from "./UserCell"

export default {
title: "Table/Cells/UserCell",
title: "components/UserCell",
component: UserCell,
} as ComponentMeta<typeof UserCell>

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/UsersTable/UsersTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MockUser, MockUser2 } from "../../testHelpers"
import { UsersTable, UsersTableProps } from "./UsersTable"

export default {
title: "Components/UsersTable",
title: "components/UsersTable",
component: UsersTable,
} as ComponentMeta<typeof UsersTable>

Expand Down
2 changes: 1 addition & 1 deletion site/src/components/Workspace/Workspace.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MockOrganization, MockTemplate, MockWorkspace } from "../../testHelpers
import { Workspace, WorkspaceProps } from "./Workspace"

export default {
title: "Workspaces/Workspace",
title: "components/Workspace",
component: Workspace,
argTypes: {},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MockWorkspaceAutostartEnabled } from "../../testHelpers"
import { WorkspaceSchedule, WorkspaceScheduleProps } from "./WorkspaceSchedule"

export default {
title: "Workspaces/WorkspaceSchedule",
title: "components/WorkspaceSchedule",
component: WorkspaceSchedule,
}

Expand Down