Skip to content

Commit

Permalink
Determine UI for Unhealthy
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <[email protected]>
  • Loading branch information
ffjlabo committed Dec 26, 2024
1 parent 6734011 commit 8e16586
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const useStyles = makeStyles((theme) => ({
other: {
color: theme.palette.info.main,
},
unhealthy: {
color: theme.palette.info.main,
},
}));

export interface ApplicationHealthStatusIconProps {
Expand All @@ -31,6 +34,8 @@ export const ApplicationHealthStatusIcon: FC<ApplicationHealthStatusIconProps> =
return <FavoriteIcon className={classes.healthy} />;
case ApplicationLiveStateSnapshot.Status.OTHER:
return <OtherIcon className={classes.other} />;
case ApplicationLiveStateSnapshot.Status.UNHEALTHY:
return <OtherIcon className={classes.unhealthy} />;
}
}
);
1 change: 1 addition & 0 deletions web/src/constants/health-status-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export const APPLICATION_HEALTH_STATUS_TEXT: Record<
[ApplicationLiveStateSnapshot.Status.UNKNOWN]: "Unknown",
[ApplicationLiveStateSnapshot.Status.HEALTHY]: "Healthy",
[ApplicationLiveStateSnapshot.Status.OTHER]: "Other",
[ApplicationLiveStateSnapshot.Status.UNHEALTHY]: "Unhealthy",
};

0 comments on commit 8e16586

Please sign in to comment.