Skip to content

Commit 0abd2cf

Browse files
PRANJAL JAINPRANJAL JAIN
authored andcommitted
fix: show warning icon in square badge for partial experiment runs
Signed-off-by: PRANJAL JAIN <[email protected]>
1 parent bf60b0d commit 0abd2cf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

chaoscenter/web/src/utils/getPropsBasedOnStatus.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ export function getPropsBasedOnExperimentRunFaultStatus(status: Status): StatusP
4545
iconName: 'tick-circle',
4646
color: Color.GREEN_800
4747
};
48-
case ExperimentRunFaultStatus.COMPLETED_WITH_PROBE_FAILURE:
49-
case ExperimentRunFaultStatus.COMPLETED_WITH_ERROR: // <!-- needed for backwards compatibility -->
48+
case ExperimentRunStatus.COMPLETED_WITH_PROBE_FAILURE:
49+
case ExperimentRunStatus.COMPLETED_WITH_ERROR:
5050
return {
51-
iconName: 'error',
52-
color: Color.ORANGE_500
51+
iconName: 'warning',
52+
color: Color.ORANGE_500,
53+
bgColor: `var(--orange-100)`
5354
};
55+
5456
case ExperimentRunFaultStatus.ERROR:
5557
case ExperimentRunFaultStatus.FAILED: // <!-- needed for backwards compatibility -->
5658
return {

0 commit comments

Comments
 (0)