fix: rename "breached" to "threshold exceeded" in user-facing strings

Only changes user-facing text — no enum, type, or backend status changes.

## Changes
- locales/en.json: "breached" → "threshold exceeded"
- notificationMessageBuilder.ts: notification title/summary/details
- email.ts: email subject line
This commit is contained in:
gorkem-bwl committed 2026-03-11 16:30:30 -04:00
1 parent 943ef92053
commit 9466090332
13 files changed
+32 -59

No files matched your search

@@ -139,12 +139,12 @@ export const InitializingStatusBox = ({ n }: { n: number }) => {
/>
);
};
export const ExceededStatusBox = ({ n }: { n: number }) => {
export const BreachedStatusBox = ({ n }: { n: number }) => {
const theme = useTheme();
const { t } = useTranslation();
return (
<StatusBox
label={t("pages.common.monitors.status.exceeded")}
label={t("pages.common.monitors.status.breached")}
n={n}
color={theme.palette.warning.main}
/>
@@ -21,8 +21,8 @@ export const StatusLabel = ({ status, sx }: { status: MonitorStatus; sx?: SxProp
return t("pages.common.monitors.status.up");
} else if (status === "down") {
return t("pages.common.monitors.status.down");
} else if (status === "exceeded") {
return t("pages.common.monitors.status.exceeded");
} else if (status === "breached") {
return t("pages.common.monitors.status.breached");
} else if (status === "maintenance") {
return t("pages.common.monitors.status.maintenance");
} else if (status === "paused") {
@@ -3,7 +3,7 @@ import {
DownStatusBox,
PausedStatusBox,
InitializingStatusBox,
ExceededStatusBox,
BreachedStatusBox,
} from "@/Components/design-elements";
import Stack from "@mui/material/Stack";
@@ -12,12 +12,12 @@ import { useTheme } from "@mui/material";
interface MonitorsSummaryProps {
summary: MonitorsSummary | null;
showExceeded?: boolean;
showBreached?: boolean;
}
export const HeaderMonitorsSummary = ({
summary,
showExceeded = false,
showBreached = false,
}: MonitorsSummaryProps) => {
const theme = useTheme();
return (
@@ -27,7 +27,7 @@ export const HeaderMonitorsSummary = ({
>
<UpStatusBox n={summary?.upMonitors || 0} />
<DownStatusBox n={summary?.downMonitors || 0} />
{showExceeded && <ExceededStatusBox n={summary?.exceededMonitors || 0} />}
{showBreached && <BreachedStatusBox n={summary?.breachedMonitors || 0} />}
<PausedStatusBox n={summary?.pausedMonitors || 0} />
<InitializingStatusBox n={summary?.initializingMonitors || 0} />
</Stack>
@@ -135,7 +135,7 @@ const InfrastructureMonitors = () => {
/>
<HeaderMonitorsSummary
summary={summary}
showExceeded={true}
showBreached={true}
/>
<Stack
direction={isSmall ? "column" : "row"}
+2 -2
View File
@@ -32,7 +32,7 @@ export const MonitorStatuses = [
"paused",
"initializing",
"maintenance",
"exceeded",
"breached",
] as const;
export type MonitorStatus = (typeof MonitorStatuses)[number];
@@ -90,7 +90,7 @@ export interface MonitorsSummary {
pausedMonitors: number;
initializingMonitors: number;
maintenanceMonitors: number;
exceededMonitors: number;
breachedMonitors: number;
}
export interface MonitorsWithChecksResponse {
+1 -1
View File
@@ -25,7 +25,7 @@ export const getStatusPalette = (status: MonitorStatus): PaletteKey => {
if (status === "down") {
return "error";
}
if (status === "exceeded") {
if (status === "breached") {
return "error";
}
return "warning";
+1 -1
View File
@@ -401,7 +401,7 @@
},
"status": {
"down": "down",
"exceeded": "threshold exceeded",
"breached": "threshold exceeded",
"initializing": "initializing",
"maintenance": "maintenance",
"paused": "paused",