File tree Expand file tree Collapse file tree
apps/web/src/components/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ export interface ComposerTaskStep {
1919
2020const MAX_TASK_SEGMENTS = 10 ;
2121
22+ const taskStatusLabels = {
23+ pending : "Pending" ,
24+ inProgress : "Running" ,
25+ completed : "Completed" ,
26+ } satisfies Record < ComposerTaskStep [ "status" ] , string > ;
27+
2228function keyedTaskSteps ( steps : readonly ComposerTaskStep [ ] ) {
2329 const occurrences = new Map < string , number > ( ) ;
2430 return steps . map ( ( step ) => {
@@ -84,7 +90,7 @@ function TaskSummary({
8490 className = { progress . completedSteps >= progress . totalSteps ? "text-success" : undefined }
8591 data-composer-task-progress = "true"
8692 >
87- { progress . completedSteps } /{ progress . totalSteps }
93+ { progress . completedSteps } /{ progress . totalSteps } complete
8894 </ ComposerBanner . Count >
8995 < TaskSegments className = "hidden w-20 sm:flex" steps = { steps } />
9096 < ComposerBanner . ToggleIcon expanded = { expanded } />
@@ -185,6 +191,9 @@ export const ComposerTasksContent = memo(function ComposerTasksContent({
185191 { step . step }
186192 </ ComposerBanner . Content >
187193 < ComposerBanner . Actions >
194+ < span className = "text-[10px] text-muted-foreground" >
195+ { taskStatusLabels [ step . status ] }
196+ </ span >
188197 < span
189198 className = "w-10 text-right text-[10px] text-muted-foreground/45 tabular-nums"
190199 data-composer-task-duration = "true"
You can’t perform that action at this time.
0 commit comments