File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/Shared/Components/CICDHistory Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
36
36
useGetUserRoles ,
37
37
} from '../../../Common'
38
38
import { EMPTY_STATE_STATUS } from '../../constants'
39
+ import { Icon } from '../Icon'
39
40
import { TargetPlatformBadgeList } from '../TargetPlatforms'
40
41
import { TERMINAL_STATUS_MAP } from './constants'
41
42
import { ArtifactType , CIListItemType } from './types'
@@ -84,6 +85,13 @@ export const CIListItem = ({
84
85
</ div >
85
86
) }
86
87
88
+ { isDeploymentWithoutApproval && (
89
+ < div className = "w-100 bg__primary flex left dc__gap-6 px-12 pt-8 pb-7 border__secondary--bottom border__primary--top border__primary--left border__primary--right dc__top-radius-4" >
90
+ < Icon name = "ic-lightning-fill" color = "Y500" />
91
+ < p className = "m-0 fs-13 lh-20 cn-9" > Deployed by an exception user</ p >
92
+ </ div >
93
+ ) }
94
+
87
95
{ headerMetaDataPresent &&
88
96
renderCIListHeader &&
89
97
renderCIListHeader ( {
@@ -93,12 +101,13 @@ export const CIListItem = ({
93
101
appliedFiltersTimestamp,
94
102
promotionApprovalMetadata,
95
103
selectedEnvironmentName,
96
- isDeploymentWithoutApproval,
97
104
} ) }
98
105
99
106
< div
100
107
className = { `dc__h-fit-content ci-artifact image-tag-parent-card bg__primary br-4 dc__border p-12 w-100 dc__mxw-800 ci-artifact--${ type } ${
101
- headerMetaDataPresent && renderCIListHeader ? 'dc__no-top-radius dc__no-top-border' : ''
108
+ ( headerMetaDataPresent && renderCIListHeader ) || isDeploymentWithoutApproval
109
+ ? 'dc__no-top-radius dc__no-top-border'
110
+ : ''
102
111
} `}
103
112
data-testid = "hover-on-report-artifact"
104
113
>
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ export interface DeploymentDetailStepsType {
446
446
renderDeploymentApprovalInfo : ( userApprovalMetadata : UserApprovalMetadataType ) => JSX . Element
447
447
}
448
448
449
- export interface RenderCIListHeaderProps extends Pick < History , 'isDeploymentWithoutApproval' > {
449
+ export interface RenderCIListHeaderProps {
450
450
userApprovalMetadata : UserApprovalMetadataType
451
451
triggeredBy : string
452
452
appliedFilters : FilterConditionsListType [ ]
You can’t perform that action at this time.
0 commit comments