@@ -24,6 +24,8 @@ import { ImageChipCell } from '@Shared/Components/ImageChipCell'
24
24
import { CommitChipCell } from '@Shared/Components/CommitChipCell'
25
25
import { ReactComponent as ICLines } from '@Icons/ic-lines.svg'
26
26
import { ReactComponent as ICPulsateStatus } from '@Icons/ic-pulsate-status.svg'
27
+ import { ReactComponent as ICArrowRight } from '@Icons/ic-arrow-right.svg'
28
+ import { getDeploymentStageTitle } from '@Pages/App'
27
29
import {
28
30
ConfirmationDialog ,
29
31
DATE_TIME_FORMATS ,
@@ -284,16 +286,33 @@ const StartDetails = ({
284
286
isJobView,
285
287
triggerMetadata,
286
288
renderDeploymentHistoryTriggerMetaText,
289
+ renderTargetConfigInfo,
290
+ stage,
287
291
} : StartDetailsType ) : JSX . Element => {
288
292
const { url } = useRouteMatch ( )
289
293
const { pathname } = useLocation ( )
290
294
291
295
return (
292
296
< div className = "w-100 pr-20 flex column left dc__border-bottom-n1" >
293
297
< div className = "flexbox dc__gap-8 dc__align-items-center pb-12" >
294
- < span className = "cn-9 fs-13 fw-6 lh-20" data-testid = "deployment-history-start-heading" >
295
- Start
296
- </ span >
298
+ < div className = "flex left dc__gap-4 cn-9 fs-13 fw-6 lh-20" >
299
+ < div className = "flex left dc__no-shrink dc__gap-4" data-testid = "deployment-history-start-heading" >
300
+ < div > Start</ div >
301
+ { stage && (
302
+ < >
303
+ < div className = "dc__bullet" />
304
+ < div className = "dc__first-letter-capitalize" > { getDeploymentStageTitle ( stage ) } </ div >
305
+ </ >
306
+ ) }
307
+ </ div >
308
+ { environmentName && (
309
+ < >
310
+ < ICArrowRight className = "icon-dim-14 scn-9 dc__no-shrink" />
311
+ < span className = "dc__truncate" > { environmentName } </ span >
312
+ </ >
313
+ ) }
314
+ { renderTargetConfigInfo ?.( ) }
315
+ </ div >
297
316
298
317
< time className = "cn-7 fs-13" >
299
318
{ moment ( startedOn , 'YYYY-MM-DDTHH:mm:ssZ' ) . format ( DATE_TIME_FORMATS . TWELVE_HOURS_FORMAT ) }
@@ -417,6 +436,7 @@ export const TriggerDetails = React.memo(
417
436
workerPodName,
418
437
triggerMetadata,
419
438
renderDeploymentHistoryTriggerMetaText,
439
+ renderTargetConfigInfo,
420
440
} : TriggerDetailsType ) : JSX . Element => (
421
441
< div className = "trigger-details flexbox-col pb-12" >
422
442
< div className = "display-grid trigger-details__grid py-12" >
@@ -436,6 +456,8 @@ export const TriggerDetails = React.memo(
436
456
isJobView = { isJobView }
437
457
triggerMetadata = { triggerMetadata }
438
458
renderDeploymentHistoryTriggerMetaText = { renderDeploymentHistoryTriggerMetaText }
459
+ renderTargetConfigInfo = { renderTargetConfigInfo }
460
+ stage = { stage }
439
461
/>
440
462
441
463
< CurrentStatus
@@ -657,6 +679,7 @@ const TriggerOutput = ({
657
679
resourceId,
658
680
scrollToTop,
659
681
scrollToBottom,
682
+ renderTargetConfigInfo,
660
683
} : TriggerOutputProps ) => {
661
684
const { appId, triggerId, envId, pipelineId } = useParams < {
662
685
appId : string
@@ -686,12 +709,15 @@ const TriggerOutput = ({
686
709
const appliedFiltersTimestamp = triggerHistory . get ( syncTriggerId ) ?. appliedFiltersTimestamp
687
710
const promotionApprovalMetadata = triggerHistory . get ( syncTriggerId ) ?. promotionApprovalMetadata
688
711
const runSource = triggerHistory . get ( syncTriggerId ) ?. runSource
712
+ const targetConfig = triggerHistory . get ( syncTriggerId ) ?. targetConfig
713
+
689
714
// These changes are not subject to change after refresh, add data which will not change
690
715
const additionalDataObject = {
691
716
...( appliedFilters . length ? { appliedFilters } : { } ) ,
692
717
...( appliedFiltersTimestamp ? { appliedFiltersTimestamp } : { } ) ,
693
718
...( promotionApprovalMetadata ? { promotionApprovalMetadata } : { } ) ,
694
719
...( runSource ? { runSource } : { } ) ,
720
+ ...( targetConfig ? { targetConfig } : { } ) ,
695
721
}
696
722
setTriggerHistory ( ( newTriggerHistory ) => {
697
723
newTriggerHistory . set ( syncTriggerId , { ...syncTriggerDetail , ...additionalDataObject } )
@@ -808,6 +834,8 @@ const TriggerOutput = ({
808
834
artifact = { triggerDetails . artifact }
809
835
triggerMetadata = { triggerDetails . triggerMetadata }
810
836
renderDeploymentHistoryTriggerMetaText = { renderDeploymentHistoryTriggerMetaText }
837
+ environmentName = { selectedEnvironmentName }
838
+ renderTargetConfigInfo = { renderTargetConfigInfo }
811
839
/>
812
840
< ul className = "pl-50 pr-20 pt-8 tab-list tab-list--nodes dc__border-bottom dc__position-sticky dc__top-0 bcn-0 dc__zi-3" >
813
841
{ triggerDetails . stage === 'DEPLOY' && deploymentAppType !== DeploymentAppTypes . HELM && (
0 commit comments