File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,31 @@ export const SingleStatus: Story = {
82
82
} ,
83
83
} ;
84
84
85
+ export const MultipleStatuses : Story = {
86
+ args : {
87
+ agent : mockAgent ( [
88
+ {
89
+ ...MockWorkspaceAppStatus ,
90
+ id : "status-1" ,
91
+ icon : "" ,
92
+ message : "Initial setup complete." ,
93
+ created_at : createTimestamp ( 5 , 10 ) , // 15:05:10 (after referenceDate)
94
+ uri : "" ,
95
+ state : "complete" as const ,
96
+ } ,
97
+ {
98
+ ...MockWorkspaceAppStatus ,
99
+ id : "status-2" ,
100
+ icon : "" ,
101
+ message : "Working..." ,
102
+ created_at : createTimestamp ( 5 , 0 ) , // 15:05:00 (after referenceDate)
103
+ uri : "" ,
104
+ state : "working" as const ,
105
+ }
106
+ ] ) ,
107
+ } ,
108
+ } ;
109
+
85
110
function mockAgent ( statuses : WorkspaceAppStatus [ ] ) {
86
111
return {
87
112
...MockWorkspaceAgent ,
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export const AppStatuses: FC<AppStatusesProps> = ({
156
156
< div className = "flex items-center justify-between w-full text-content-secondary" >
157
157
< span className = "text-xs flex items-center gap-2" >
158
158
< AppStatusStateIcon
159
- state = { latestStatus . state }
159
+ state = { status . state }
160
160
latest = { false }
161
161
className = "size-icon-xs w-[18px]"
162
162
/>
You can’t perform that action at this time.
0 commit comments