@@ -24,7 +24,7 @@ import { AppType, TIMELINE_STATUS } from '@Shared/types'
24
24
25
25
import { ReactComponent as DropDownIcon } from '../../../Assets/Icon/ic-chevron-down.svg'
26
26
import { DATE_TIME_FORMATS , showError } from '../../../Common'
27
- import { ComponentSizeType , DEPLOYMENT_STATUS , statusIcon } from '../../constants'
27
+ import { ComponentSizeType , DEPLOYMENT_STATUS } from '../../constants'
28
28
import { AppStatusContent } from '../AppStatusModal'
29
29
import { Button , ButtonStyleType , ButtonVariantType } from '../Button'
30
30
import { APP_HEALTH_DROP_DOWN_LIST , MANIFEST_STATUS_HEADERS , TERMINAL_STATUS_MAP } from './constants'
@@ -47,10 +47,6 @@ export const DeploymentStatusDetailRow = ({
47
47
const statusBreakDownType = deploymentDetailedData . deploymentStatusBreakdown [ type ]
48
48
const [ isCollapsed , setIsCollapsed ] = useState < boolean > ( statusBreakDownType . isCollapsed )
49
49
50
- const isHelmManifestPushFailed =
51
- type === TIMELINE_STATUS . HELM_MANIFEST_PUSHED_TO_HELM_REPO &&
52
- deploymentDetailedData . deploymentStatus === statusIcon . failed
53
-
54
50
useEffect ( ( ) => {
55
51
setIsCollapsed ( statusBreakDownType . isCollapsed )
56
52
} , [ statusBreakDownType . isCollapsed ] )
@@ -132,22 +128,6 @@ export const DeploymentStatusDetailRow = ({
132
128
)
133
129
}
134
130
135
- const renderErrorInfoBar = ( ) => {
136
- if ( deploymentDetailedData . lastFailedStatusType !== TIMELINE_STATUS . HELM_MANIFEST_PUSHED_TO_HELM_REPO ) {
137
- return null
138
- }
139
-
140
- return (
141
- < div className = "bcr-1 fs-13 p-8" >
142
- < span className = "dc__word-break lh-20" > { deploymentDetailedData . deploymentError } </ span >
143
- < ol className = "m-0 pl-20" >
144
- < li > Ensure provided repository path is valid</ li >
145
- < li > Check if credentials provided for OCI registry are valid and have PUSH permission</ li >
146
- </ ol >
147
- </ div >
148
- )
149
- }
150
-
151
131
const isAccordion =
152
132
statusBreakDownType . subSteps ?. length ||
153
133
( type === TIMELINE_STATUS . APP_HEALTH && APP_HEALTH_DROP_DOWN_LIST . includes ( statusBreakDownType . icon ) ) ||
@@ -198,7 +178,7 @@ export const DeploymentStatusDetailRow = ({
198
178
< >
199
179
< div className = "bw-1 en-2" >
200
180
< div
201
- className = { `flexbox dc__align-items-center dc__content-space dc__gap-12 py-8 px-8 bg__primary ${ isCollapsed ? ( ! isHelmManifestPushFailed ? 'br-4' : '' ) : 'border-collapse' } ` }
181
+ className = { `flexbox dc__align-items-center dc__content-space dc__gap-12 py-8 px-8 bg__primary ${ isCollapsed ? 'br-4' : 'border-collapse' } ` }
202
182
>
203
183
< div className = "flexbox dc__align-items-center dc__gap-12 flex-grow-1" >
204
184
{ renderDeploymentTimelineIcon ( statusBreakDownType . icon ) }
@@ -247,7 +227,6 @@ export const DeploymentStatusDetailRow = ({
247
227
/>
248
228
) }
249
229
</ div >
250
- { isHelmManifestPushFailed && renderErrorInfoBar ( ) }
251
230
</ div >
252
231
253
232
{ renderAccordionDetails ( ) }
0 commit comments