Skip to content

Commit 3b412dc

Browse files
committed
update storybook
1 parent 3082908 commit 3b412dc

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

site/src/components/WorkspaceSchedule/WorkspaceSchedule.stories.tsx

+19-5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ export default {
1919

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

22+
export const NoScheduleNoTTL = Template.bind({})
23+
NoScheduleNoTTL.args = {
24+
workspace: {
25+
...Mocks.MockWorkspace,
26+
27+
latest_build: {
28+
...Mocks.MockWorkspaceBuild,
29+
transition: "stop",
30+
},
31+
autostart_schedule: undefined,
32+
ttl_ms: undefined,
33+
},
34+
}
35+
2236
export const NoTTL = Template.bind({})
2337
NoTTL.args = {
2438
workspace: {
@@ -29,7 +43,7 @@ NoTTL.args = {
2943
// SEE: #1834
3044
deadline: "0001-01-01T00:00:00Z",
3145
},
32-
ttl: undefined,
46+
ttl_ms: undefined,
3347
},
3448
}
3549

@@ -42,7 +56,7 @@ ShutdownSoon.args = {
4256
deadline: dayjs().add(ONE, "hour").utc().format(),
4357
transition: "start",
4458
},
45-
ttl: 2 * 60 * 60 * 1000 * 1_000_000, // 2 hours
59+
ttl_ms: 2 * 60 * 60 * 1000 // 2 hours
4660
},
4761
}
4862

@@ -56,7 +70,7 @@ ShutdownLong.args = {
5670
deadline: dayjs().add(SEVEN, "days").utc().format(),
5771
transition: "start",
5872
},
59-
ttl: 7 * 24 * 60 * 60 * 1000 * 1_000_000, // 7 days
73+
ttl_ms: 7 * 24 * 60 * 60 * 1000 // 7 days
6074
},
6175
}
6276

@@ -69,7 +83,7 @@ WorkspaceOffShort.args = {
6983
...Mocks.MockWorkspaceBuild,
7084
transition: "stop",
7185
},
72-
ttl: 2 * 60 * 60 * 1000 * 1_000_000, // 2 hours
86+
ttl_ms: 2 * 60 * 60 * 1000, // 2 hours
7387
},
7488
}
7589

@@ -82,6 +96,6 @@ WorkspaceOffLong.args = {
8296
...Mocks.MockWorkspaceBuild,
8397
transition: "stop",
8498
},
85-
ttl: 2 * 365 * 24 * 60 * 60 * 1000 * 1_000_000, // 2 years
99+
ttl_ms: 2 * 365 * 24 * 60 * 60 * 1000, // 2 years
86100
},
87101
}

0 commit comments

Comments
 (0)