Skip to content

Commit 381d3be

Browse files
committed
More storybook states
1 parent 61e4268 commit 381d3be

File tree

1 file changed

+23
-7
lines changed
  • apps/webapp/app/routes/storybook.run-and-span-timeline

1 file changed

+23
-7
lines changed

apps/webapp/app/routes/storybook.run-and-span-timeline/route.tsx

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,26 @@ const spanTimelines = [
3838
timestamp: new Date(Date.now() - 5000),
3939
duration: 4000,
4040
adminOnly: false,
41-
variant: "start-cap",
41+
markerVariant: "start-cap",
42+
lineVariant: "light",
4243
},
4344
{
4445
name: "Launched",
4546
offset: 0,
4647
timestamp: new Date(Date.now() - 1000),
4748
duration: 1000,
4849
adminOnly: false,
49-
variant: "dot-hollow",
50+
markerVariant: "dot-hollow",
51+
lineVariant: "light",
5052
},
5153
{
5254
name: "Imported task file",
5355
offset: 0,
5456
timestamp: new Date(Date.now() - 1000),
5557
duration: 1000,
5658
adminOnly: true,
57-
variant: "dot-hollow",
59+
markerVariant: "dot-hollow",
60+
lineVariant: "light",
5861
},
5962
],
6063
},
@@ -71,15 +74,17 @@ const spanTimelines = [
7174
timestamp: new Date(Date.now() - 5000),
7275
duration: 4000,
7376
adminOnly: false,
74-
variant: "start-cap",
77+
markerVariant: "start-cap",
78+
lineVariant: "light",
7579
},
7680
{
7781
name: "Forked",
7882
offset: 0,
7983
timestamp: new Date(Date.now() - 1000),
8084
duration: 1000,
8185
adminOnly: true,
82-
variant: "dot-hollow",
86+
markerVariant: "dot-hollow",
87+
lineVariant: "light",
8388
},
8489
],
8590
},
@@ -96,15 +101,17 @@ const spanTimelines = [
96101
timestamp: new Date(Date.now() - 25 * 60 * 60 * 1000),
97102
duration: 4000,
98103
adminOnly: false,
99-
variant: "start-cap",
104+
markerVariant: "start-cap",
105+
lineVariant: "light",
100106
},
101107
{
102108
name: "Forked",
103109
offset: 0,
104110
timestamp: new Date(Date.now() - 1000),
105111
duration: 1000,
106112
adminOnly: true,
107-
variant: "dot-hollow",
113+
markerVariant: "dot-hollow",
114+
lineVariant: "light",
108115
},
109116
],
110117
},
@@ -126,6 +133,15 @@ const runTimelines = [
126133
isFinished: true,
127134
isError: false,
128135
},
136+
{
137+
createdAt: new Date(Date.now() - 1000 * 60),
138+
updatedAt: new Date(),
139+
startedAt: new Date(Date.now() - 1000 * 30),
140+
executedAt: new Date(Date.now() - 1000 * 20),
141+
completedAt: new Date(Date.now() - 1000 * 15),
142+
isFinished: true,
143+
isError: true,
144+
},
129145
{
130146
createdAt: new Date(Date.now() - 1000 * 60),
131147
updatedAt: new Date(),

0 commit comments

Comments
 (0)