1- import { ComponentProps , ReactNode } from 'react'
1+ import { ComponentProps } from 'react'
22
33import { getAIAnalyticsEvents } from '@Common/Helper'
44import { Tooltip } from '@Common/Tooltip'
@@ -7,18 +7,19 @@ import { getAppDetailsURL } from '@Shared/Helpers'
77
88import { Button , ButtonComponentType , ButtonVariantType } from '../Button'
99import { DeploymentStatusDetailBreakdown } from '../CICDHistory'
10+ import { DEPLOYMENT_STATUS_TEXT_MAP } from '../DeploymentStatusBreakdown'
1011import { ErrorBar } from '../Error'
1112import { Icon } from '../Icon'
1213import { ShowMoreText } from '../ShowMoreText'
1314import { AppStatus , DeploymentStatus , StatusType } from '../StatusComponent'
1415import AppStatusContent from './AppStatusContent'
1516import { APP_STATUS_CUSTOM_MESSAGES } from './constants'
16- import { AppStatusBodyProps , AppStatusModalTabType , StatusHeadingContainerProps } from './types'
17+ import { AppStatusBodyProps , AppStatusModalTabType , InfoCardItemProps , StatusHeadingContainerProps } from './types'
1718import { getAppStatusMessageFromAppDetails } from './utils'
1819
19- const InfoCardItem = ( { heading, value, isLast = false } : { heading : string ; value : ReactNode ; isLast ?: boolean } ) => (
20+ const InfoCardItem = ( { heading, value, isLast = false , alignCenter = false } : InfoCardItemProps ) => (
2021 < div
21- className = { `py-12 px-16 dc__grid dc__column-gap-16 info-card-item ${ ! isLast ? 'border__secondary--bottom' : '' } ` }
22+ className = { `py-12 px-16 dc__grid dc__column-gap-16 info-card-item ${ alignCenter ? 'dc__align-items-center' : '' } ${ ! isLast ? 'border__secondary--bottom' : '' } ${ alignCenter ? 'dc__align-center ' : '' } ` }
2223 >
2324 < Tooltip content = { heading } >
2425 < h3 className = "cn-9 fs-13 fw-4 lh-1-5 dc__truncate m-0 dc__no-shrink" > { heading } </ h3 >
@@ -149,6 +150,11 @@ export const AppStatusBody = ({
149150 { deploymentStatusDetailsBreakdownData ?. deploymentStatus ? (
150151 < DeploymentStatus
151152 status = { deploymentStatusDetailsBreakdownData . deploymentStatus }
153+ message = {
154+ DEPLOYMENT_STATUS_TEXT_MAP [
155+ deploymentStatusDetailsBreakdownData . deploymentStatus
156+ ]
157+ }
152158 showAnimatedIcon
153159 />
154160 ) : (
@@ -170,6 +176,7 @@ export const AppStatusBody = ({
170176 heading = { item . heading }
171177 value = { item . value }
172178 isLast = { index === infoCardItems . length - 1 }
179+ alignCenter = { item . heading !== 'Message' }
173180 />
174181 ) ) }
175182 </ div >
0 commit comments