Skip to content

Commit 9ac1670

Browse files
authoredSep 20, 2024··
fix(ui): Sync Health Statuses for Applications and everything else (#20020)
Signed-off-by: Josh Soref <jsoref@gmail.com>
1 parent de06f77 commit 9ac1670

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎ui/src/app/applications/components/application-details/application-resource-filter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const Filters = (props: FiltersProps) => {
145145
{ResourceFilter({
146146
label: 'HEALTH STATUS',
147147
prefix: 'health',
148-
options: ['Healthy', 'Progressing', 'Degraded', 'Suspended', 'Missing', 'Unknown'].map(label => ({
148+
options: ['Progressing', 'Suspended', 'Healthy', 'Degraded', 'Missing', 'Unknown'].map(label => ({
149149
label,
150150
count: getOptionCount(label, 'Health'),
151151
icon: <HealthStatusIcon state={{status: label as HealthStatusCode, message: ''}} noSpin={true} />

‎ui/src/app/shared/models.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ export const SyncStatuses: {[key: string]: SyncStatusCode} = {
324324
export type HealthStatusCode = 'Unknown' | 'Progressing' | 'Healthy' | 'Suspended' | 'Degraded' | 'Missing';
325325

326326
export const HealthStatuses: {[key: string]: HealthStatusCode} = {
327-
Unknown: 'Unknown',
328327
Progressing: 'Progressing',
329328
Suspended: 'Suspended',
330329
Healthy: 'Healthy',
331330
Degraded: 'Degraded',
332-
Missing: 'Missing'
331+
Missing: 'Missing',
332+
Unknown: 'Unknown'
333333
};
334334

335335
export interface HealthStatus {

0 commit comments

Comments
 (0)
Please sign in to comment.