Skip to content

chore(site): refactor stories and test from page components #9603

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 31 commits into from
Sep 8, 2023
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
52fae61
Refactor AuditPage
BrunoQuaresma Sep 7, 2023
cc2a549
Refactor CliAuthPageView stories
BrunoQuaresma Sep 7, 2023
4f7bb53
Refactor CreateTemplateForm stories
BrunoQuaresma Sep 7, 2023
cd5b40f
Refactor CreateUserPage test
BrunoQuaresma Sep 7, 2023
c5b4eb5
Refactor CreateWorkspacePage tests
BrunoQuaresma Sep 7, 2023
6121f0d
Fix stories name
BrunoQuaresma Sep 7, 2023
a5440cb
Refactor AppereancePageView stories
BrunoQuaresma Sep 7, 2023
4b3d9f8
Refactor GitAuthSettingsPageView stories
BrunoQuaresma Sep 7, 2023
8f654b6
Refactor NetworkSettingsPageView stories
BrunoQuaresma Sep 7, 2023
1618d36
Refactor SecuritySettingsPageView stories
BrunoQuaresma Sep 7, 2023
64ee732
Refactor UserAuthSettingsPageView stories
BrunoQuaresma Sep 7, 2023
1e40624
Refactor GroupsPage stories
BrunoQuaresma Sep 7, 2023
974bb3f
Refactor LoginPage tests
BrunoQuaresma Sep 7, 2023
30a783a
Refactor SetupPage stories
BrunoQuaresma Sep 7, 2023
5e5e35c
Refactor StarterTemplatePageView stories
BrunoQuaresma Sep 7, 2023
429b823
Refactor StarterTemplatesPage tests
BrunoQuaresma Sep 8, 2023
5dd69e9
Refactor TemplatePage tests
BrunoQuaresma Sep 8, 2023
d5532f0
RefactorTemplateSettingsPage tests
BrunoQuaresma Sep 8, 2023
d6444c9
Refactor TemplatesPage tests
BrunoQuaresma Sep 8, 2023
08adf24
Flat TemplateVersionEditorPage
BrunoQuaresma Sep 8, 2023
d40214a
Refactor TemplateVersionPage stories
BrunoQuaresma Sep 8, 2023
5a8b649
Refactor UserSettingsPage stories
BrunoQuaresma Sep 8, 2023
2d1e6bf
Refactor UsersPage stories
BrunoQuaresma Sep 8, 2023
30ad92b
Simplify IndexPage
BrunoQuaresma Sep 8, 2023
5c64496
Refactor WorkspaceSettingsPage stories
BrunoQuaresma Sep 8, 2023
5d8bcde
Refactor WorkspacePage stories
BrunoQuaresma Sep 8, 2023
7f0e89e
Refactor Conditionals stories
BrunoQuaresma Sep 8, 2023
b5d365b
Fix typo
BrunoQuaresma Sep 8, 2023
2f55e6b
Fix imports
BrunoQuaresma Sep 8, 2023
b3114d6
Fix ChooseOne story
BrunoQuaresma Sep 8, 2023
397370c
Fix UserAuthSettingsPageView stories
BrunoQuaresma Sep 8, 2023
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
Prev Previous commit
Next Next commit
Refactor CliAuthPageView stories
  • Loading branch information
BrunoQuaresma committed Sep 8, 2023
commit cc2a549a391ba1e92c5f4a07cdfc7b10e90d7dfd
17 changes: 6 additions & 11 deletions site/src/pages/CliAuthPage/CliAuthPageView.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
import { Story } from "@storybook/react";
import { CliAuthPageView, CliAuthPageViewProps } from "./CliAuthPageView";
import { CliAuthPageView } from "./CliAuthPageView";
import type { Meta, StoryObj } from "@storybook/react";

export default {
const meta: Meta<typeof CliAuthPageView> = {
title: "pages/CliAuthPageView",
component: CliAuthPageView,
argTypes: {
sessionToken: { control: "text" },
},
args: {
sessionToken: "some-session-token",
},
};

const Template: Story<CliAuthPageViewProps> = (args) => (
<CliAuthPageView {...args} />
);
export default meta;
type Story = StoryObj<typeof CliAuthPageView>;

export const Example = Template.bind({});
Example.args = {};
export const Example: Story = {};