@@ -76,7 +76,7 @@ const Finished = memo(({ status, finishedOn, artifact, type, executionInfo }: Fi
76
76
)
77
77
} )
78
78
79
- const ProgressingStatus = memo ( ( { stage, type } : ProgressingStatusType ) : JSX . Element => {
79
+ const ProgressingStatus = memo ( ( { stage, type, label = 'In progress' } : ProgressingStatusType ) : JSX . Element => {
80
80
const [ aborting , setAborting ] = useState ( false )
81
81
const [ abortConfirmation , setAbortConfirmation ] = useState ( false )
82
82
const [ abortError , setAbortError ] = useState < {
@@ -140,7 +140,7 @@ const ProgressingStatus = memo(({ stage, type }: ProgressingStatusType): JSX.Ele
140
140
< >
141
141
< div className = "flex dc__gap-8 left pt-12" >
142
142
< div className = "dc__min-width-fit-content" >
143
- < div className = "fs-14 fw-6 flex left inprogress-status-color" > In progress </ div >
143
+ < div className = "fs-14 fw-6 flex left inprogress-status-color" > { label } </ div >
144
144
</ div >
145
145
146
146
{ abort && (
@@ -217,7 +217,17 @@ const CurrentStatus = memo(
217
217
}
218
218
219
219
if ( executionInfo . currentStatus === WorkflowStageStatusType . RUNNING ) {
220
- return < ProgressingStatus stage = { stage } type = { type } />
220
+ return (
221
+ < ProgressingStatus
222
+ stage = { stage }
223
+ type = { type }
224
+ { ...( ! executionInfo . executionStartedOn
225
+ ? {
226
+ label : 'Waiting To Start' ,
227
+ }
228
+ : { } ) }
229
+ />
230
+ )
221
231
}
222
232
223
233
if ( executionInfo . currentStatus === WorkflowStageStatusType . UNKNOWN ) {
@@ -446,7 +456,7 @@ const TriggerDetails = memo(
446
456
447
457
< div className = "flexbox-col flex-grow-1" >
448
458
< StartDetails
449
- startedOn = { executionInfo ?. triggeredOn ?? startedOn }
459
+ startedOn = { executionInfo ?. triggeredOn || startedOn }
450
460
triggeredBy = { triggeredBy }
451
461
triggeredByEmail = { triggeredByEmail }
452
462
ciMaterials = { ciMaterials }
@@ -463,7 +473,7 @@ const TriggerDetails = memo(
463
473
</ div >
464
474
</ div >
465
475
466
- { executionInfo ?. executionStartedOn && (
476
+ { ! ! executionInfo ?. executionStartedOn && (
467
477
< div className = "display-grid trigger-details__grid" >
468
478
< div className = "flexbox dc__content-center" >
469
479
< div className = "flexbox-col" >
@@ -472,12 +482,18 @@ const TriggerDetails = memo(
472
482
</ div >
473
483
474
484
{ renderDetailsSuccessIconBlock ( ) }
485
+
486
+ < div className = "flex flex-grow-1" >
487
+ < div className = "dc__border-left--n7 h-100" />
488
+ </ div >
475
489
</ div >
476
490
</ div >
477
491
478
492
< div className = "w-100 pr-20 flexbox dc__gap-8 py-12" >
479
493
< h3 className = "m-0 cn-9 fs-13 fw-6 lh-20" > Execution started</ h3 >
480
- < time className = "cn-7 fs-13" > { getFormattedTriggerTime ( startedOn ) } </ time >
494
+ < time className = "cn-7 fs-13" >
495
+ { getFormattedTriggerTime ( executionInfo . executionStartedOn ) }
496
+ </ time >
481
497
</ div >
482
498
</ div >
483
499
) }
@@ -510,10 +526,10 @@ const TriggerDetails = memo(
510
526
511
527
< div className = "display-grid trigger-details__grid py-4" >
512
528
< WorkerStatus
513
- message = { executionInfo ?. workerDetails . message ?? message }
514
- podStatus = { executionInfo ?. workerDetails . status ?? podStatus }
529
+ message = { executionInfo ?. workerDetails . message || message }
530
+ podStatus = { executionInfo ?. workerDetails . status || podStatus }
515
531
stage = { stage }
516
- finishedOn = { executionInfo ?. workerDetails . endTime ?? finishedOn }
532
+ finishedOn = { executionInfo ?. workerDetails . endTime || finishedOn }
517
533
clusterId = { executionInfo ?. workerDetails . clusterId || DEFAULT_CLUSTER_ID }
518
534
workerPodName = { workerPodName }
519
535
namespace = { namespace }
0 commit comments