Skip to content

Commit 6b1ff6a

Browse files
committed
refactor: Update status color constants for TERMINAL_STATUS_MAP
1 parent 7c9f92e commit 6b1ff6a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Shared/Components/CICDHistory/types.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ export const TERMINAL_STATUS_COLOR_CLASS_MAP = {
287287
[TERMINAL_STATUS_MAP.SUCCEEDED]: 'cg-5',
288288
[TERMINAL_STATUS_MAP.HEALTHY]: 'cg-5',
289289
[TERMINAL_STATUS_MAP.FAILED]: 'cr-5',
290+
[TERMINAL_STATUS_MAP.CANCELLED]: 'cr-5',
290291
[TERMINAL_STATUS_MAP.ERROR]: 'cr-5',
291292
}
292293

src/Shared/constants.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,14 @@ export const statusColor = {
390390
progressing: 'var(--O500)',
391391
initiating: 'var(--O500)',
392392
starting: 'var(--O500)',
393-
succeeded: '#1dad70',
393+
succeeded: 'var(--G500)',
394394
running: 'var(--O500)',
395-
failed: '#f33e3e',
396-
error: '#f33e3e',
397-
cancelled: '#767d84',
398-
aborted: '#767d84',
399-
timedout: '#f33e3e',
400-
unabletofetch: '#f33e3e',
395+
failed: 'var(--R500)',
396+
error: 'var(--R500)',
397+
cancelled: 'var(--R500)',
398+
aborted: 'var(--R500)',
399+
timedout: 'var(--R500)',
400+
unabletofetch: 'var(--R500)',
401401
hibernating: 'var(--N700)',
402402
}
403403

0 commit comments

Comments
 (0)