@@ -152,3 +152,79 @@ export const LongTimeRange = {
152
152
] ,
153
153
} ,
154
154
} ;
155
+
156
+ // We want to gracefully handle the case when the action is added in the BE but
157
+ // not in the FE. This is a temporary fix until we can have strongly provisioner
158
+ // timing action types in the BE.
159
+ export const MissedAction : Story = {
160
+ args : {
161
+ agentConnectionTimings : [
162
+ {
163
+ ended_at : "2025-03-12T18:15:13.651163Z" ,
164
+ stage : "connect" ,
165
+ started_at : "2025-03-12T18:15:10.249068Z" ,
166
+ workspace_agent_id : "41ab4fd4-44f8-4f3a-bb69-262ae85fba0b" ,
167
+ workspace_agent_name : "Interface" ,
168
+ } ,
169
+ ] ,
170
+ agentScriptTimings : [
171
+ {
172
+ display_name : "Startup Script" ,
173
+ ended_at : "2025-03-12T18:16:44.771508Z" ,
174
+ exit_code : 0 ,
175
+ stage : "start" ,
176
+ started_at : "2025-03-12T18:15:13.847336Z" ,
177
+ status : "ok" ,
178
+ workspace_agent_id : "41ab4fd4-44f8-4f3a-bb69-262ae85fba0b" ,
179
+ workspace_agent_name : "Interface" ,
180
+ } ,
181
+ ] ,
182
+ provisionerTimings : [
183
+ {
184
+ action : "create" ,
185
+ ended_at : "2025-03-12T18:08:07.402358Z" ,
186
+ job_id : "a7c4a05d-1c36-4264-8275-8107c93c5fc8" ,
187
+ resource : "coder_agent.Interface" ,
188
+ source : "coder" ,
189
+ stage : "apply" ,
190
+ started_at : "2025-03-12T18:08:07.194957Z" ,
191
+ } ,
192
+ {
193
+ action : "create" ,
194
+ ended_at : "2025-03-12T18:08:08.029908Z" ,
195
+ job_id : "a7c4a05d-1c36-4264-8275-8107c93c5fc8" ,
196
+ resource : "null_resource.validate_url" ,
197
+ source : "null" ,
198
+ stage : "apply" ,
199
+ started_at : "2025-03-12T18:08:07.399387Z" ,
200
+ } ,
201
+ {
202
+ action : "create" ,
203
+ ended_at : "2025-03-12T18:08:07.440785Z" ,
204
+ job_id : "a7c4a05d-1c36-4264-8275-8107c93c5fc8" ,
205
+ resource : "module.emu_host.random_id.emulator_host_id" ,
206
+ source : "random" ,
207
+ stage : "apply" ,
208
+ started_at : "2025-03-12T18:08:07.403171Z" ,
209
+ } ,
210
+ {
211
+ action : "missed action" ,
212
+ ended_at : "2025-03-12T18:08:08.029752Z" ,
213
+ job_id : "a7c4a05d-1c36-4264-8275-8107c93c5fc8" ,
214
+ resource : "null_resource.validate_url" ,
215
+ source : "null" ,
216
+ stage : "apply" ,
217
+ started_at : "2025-03-12T18:08:07.410219Z" ,
218
+ } ,
219
+ ] ,
220
+ } ,
221
+ play : async ( { canvasElement } ) => {
222
+ const user = userEvent . setup ( ) ;
223
+ const canvas = within ( canvasElement ) ;
224
+ const applyButton = canvas . getByRole ( "button" , {
225
+ name : "View apply details" ,
226
+ } ) ;
227
+ await user . click ( applyButton ) ;
228
+ await canvas . findByText ( "missed action" ) ;
229
+ } ,
230
+ } ;
0 commit comments