Merge pull request #1763 from Br0wnHammer/fix/fe/incidents-text

Fix: No Incidents Message
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-02-27 10:58:54 -08:00
commit 461006c1b7
3 files changed
+120

No files matched your search

@@ -35,6 +35,7 @@ const ChartBoxes = ({
const denominator =
totalUpChecks + totalDownChecks > 0 ? totalUpChecks + totalDownChecks : 1;
const groupedUptimePercentage = (totalUpChecks / denominator) * 100;
const noIncidentsMessage = "Great. No Incidents, yet!";
return (
<Stack
@@ -45,6 +46,7 @@ const ChartBoxes = ({
<ChartBox
icon={<UptimeIcon />}
header="Uptime"
isEmpty={monitor?.uptimePercentage === 0 && !monitor?.upChecks?.length}
>
<Stack
width={"100%"}
@@ -95,6 +97,8 @@ const ChartBoxes = ({
<ChartBox
icon={<IncidentsIcon />}
header="Incidents"
noDataMessage={noIncidentsMessage}
isEmpty={monitor?.groupedDownChecks?.length === 0}
>
<Stack width={"100%"}>
<Box position="relative">