Skip to content

feat: Redesign the workspace page #1620

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 7 commits into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add missing stories
  • Loading branch information
BrunoQuaresma committed May 20, 2022
commit 90a2c6c19adc0f68f762c8d5ba8e28cd8fba877c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import PlayArrowRoundedIcon from "@material-ui/icons/PlayArrowRounded"
import { ComponentMeta, Story } from "@storybook/react"
import React from "react"
import { WorkspaceActionButton, WorkspaceActionButtonProps } from "./WorkspaceActionButton"

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

const Template: Story<WorkspaceActionButtonProps> = (args) => <WorkspaceActionButton {...args} />

export const Example = Template.bind({})
Example.args = {
icon: <PlayArrowRoundedIcon />,
label: "Start workspace",
loadingLabel: "Starting workspace",
isLoading: false,
}

export const Loading = Template.bind({})
Loading.args = {
icon: <PlayArrowRoundedIcon />,
label: "Start workspace",
loadingLabel: "Starting workspace",
isLoading: true,
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const useStyles = makeStyles((theme) => ({
width: 1,
height: theme.spacing(5),
backgroundColor: theme.palette.divider,
marginRight: theme.spacing(3),
marginRight: theme.spacing(2),
},

capitalize: {
Expand Down
77 changes: 0 additions & 77 deletions site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Story } from "@storybook/react"
import dayjs from "dayjs"
import React from "react"
import * as Mocks from "../../testHelpers/renderHelpers"
import { WorkspaceSchedule, WorkspaceScheduleProps } from "./WorkspaceSchedule"
import { WorkspaceStats, WorkspaceStatsProps } from "../WorkspaceStats/WorkspaceStats"

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

const Template: Story<WorkspaceScheduleProps> = (args) => <WorkspaceSchedule {...args} />
const Template: Story<WorkspaceStatsProps> = (args) => <WorkspaceStats {...args} />

export const NoTTL = Template.bind({})
NoTTL.args = {
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/WorkspaceStats/WorkspaceStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const useStyles = makeStyles((theme) => ({
width: 1,
height: theme.spacing(5),
backgroundColor: theme.palette.divider,
marginRight: theme.spacing(3),
marginRight: theme.spacing(2),
},

capitalize: {
Expand Down
145 changes: 0 additions & 145 deletions site/src/components/WorkspaceStatusBar/WorkspaceStatusBar.tsx

This file was deleted.