Skip to content

Commit 2aef17c

Browse files
committed
feat: update deployment status mapping and add new workflow runner statuses
1 parent 4335197 commit 2aef17c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/Shared/Components/AppStatusModal/AppStatusBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { getAppStatusMessageFromAppDetails } from './utils'
1919

2020
const InfoCardItem = ({ heading, value, isLast = false, alignCenter = false }: InfoCardItemProps) => (
2121
<div
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' : ''}`}
22+
className={`py-12 px-16 dc__grid dc__column-gap-16 info-card-item ${alignCenter ? 'dc__align-items-center' : ''} ${!isLast ? 'border__secondary--bottom' : ''}`}
2323
>
2424
<Tooltip content={heading}>
2525
<h3 className="cn-9 fs-13 fw-4 lh-1-5 dc__truncate m-0 dc__no-shrink">{heading}</h3>

src/Shared/Components/DeploymentStatusBreakdown/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export const WFR_STATUS_DTO_TO_DEPLOYMENT_STATUS_MAP: Readonly<
4141
[WorkflowRunnerStatusDTO.PROGRESSING]: DEPLOYMENT_STATUS.INPROGRESS,
4242

4343
[WorkflowRunnerStatusDTO.QUEUED]: DEPLOYMENT_STATUS.QUEUED,
44+
45+
[WorkflowRunnerStatusDTO.UNKNOWN]: DEPLOYMENT_STATUS.UNKNOWN,
46+
[WorkflowRunnerStatusDTO.SUSPENDED]: DEPLOYMENT_STATUS.UNKNOWN,
47+
[WorkflowRunnerStatusDTO.MISSING]: DEPLOYMENT_STATUS.UNKNOWN,
4448
}
4549

4650
export const PROGRESSING_DEPLOYMENT_STATUS: Readonly<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS][]> = [

src/Shared/Components/DeploymentStatusBreakdown/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ export enum WorkflowRunnerStatusDTO {
1515
STARTING = 'Starting',
1616
QUEUED = 'Queued',
1717
INITIATING = 'Initiating',
18-
// Not found on BE but added for Backward compatibility
18+
// Coming in specific cases of helm apps
1919
HEALTHY = 'Healthy',
2020
DEGRADED = 'Degraded',
21+
MISSING = 'Missing',
22+
UNKNOWN = 'Unknown',
23+
SUSPENDED = 'Suspended',
2124
}
2225

2326
export interface ProcessUnableToFetchOrTimedOutStatusType {

0 commit comments

Comments
 (0)