@@ -20,6 +20,20 @@ import { AgentRow, AgentRowProps } from "./AgentRow"
20
20
export default {
21
21
title : "components/AgentRow" ,
22
22
component : AgentRow ,
23
+ args : {
24
+ storybookStartupLogs : [
25
+ "\x1b[91mCloning Git repository..." ,
26
+ "\x1b[2;37;41mStarting Docker Daemon..." ,
27
+ "\x1b[1;95mAdding some 🧙magic🧙..." ,
28
+ "Starting VS Code..." ,
29
+ "\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 1475 0 1475 0 0 4231 0 --:--:-- --:--:-- --:--:-- 4238" ,
30
+ ] . map ( ( line , index ) => ( {
31
+ id : index ,
32
+ level : "info" ,
33
+ output : line ,
34
+ time : "" ,
35
+ } ) ) ,
36
+ } ,
23
37
}
24
38
25
39
const Template : Story < AgentRowProps > = ( args ) => < AgentRow { ...args } />
@@ -107,18 +121,6 @@ export const Starting = Template.bind({})
107
121
Starting . args = {
108
122
...Example . args ,
109
123
agent : MockWorkspaceAgentStarting ,
110
-
111
- storybookStartupLogs : [
112
- "\x1b[91mCloning Git repository..." ,
113
- "\x1b[2;37;41mStarting Docker Daemon..." ,
114
- "\x1b[1;95mAdding some 🧙magic🧙..." ,
115
- "Starting VS Code..." ,
116
- ] . map ( ( line , index ) => ( {
117
- id : index ,
118
- level : "info" ,
119
- output : line ,
120
- time : "" ,
121
- } ) ) ,
122
124
}
123
125
124
126
export const Started = Template . bind ( { } )
@@ -128,18 +130,6 @@ Started.args = {
128
130
...MockWorkspaceAgentReady ,
129
131
startup_logs_length : 1 ,
130
132
} ,
131
-
132
- storybookStartupLogs : [
133
- "Cloning Git repository..." ,
134
- "Starting Docker Daemon..." ,
135
- "Adding some 🧙magic🧙..." ,
136
- "Starting VS Code..." ,
137
- ] . map ( ( line , index ) => ( {
138
- id : index ,
139
- level : "info" ,
140
- output : line ,
141
- time : "" ,
142
- } ) ) ,
143
133
}
144
134
145
135
export const StartedNoMetadata = Template . bind ( { } )
0 commit comments