Cap degraded in the mail

This commit is contained in:
Owen
2026-04-27 15:24:03 -07:00
parent 3439a3690f
commit 24f437e260

View File

@@ -117,11 +117,11 @@ function getEventMeta(eventType: AlertEventType): {
}; };
case "resource_degraded": case "resource_degraded":
return { return {
heading: "Resource Unhealthy", heading: "Resource Degraded",
previewText: "A resource in your organization is not healthy.", previewText: "A resource in your organization is degraded.",
summary: summary:
"A resource in your organization is currently unhealthy.", "A resource in your organization is currently degraded.",
statusLabel: "Unhealthy", statusLabel: "Degraded",
statusColor: "#dc2626" statusColor: "#dc2626"
}; };
case "resource_toggle": case "resource_toggle":
@@ -158,6 +158,8 @@ function resolveToggleStatus(status: unknown): {
return { label: "Healthy", color: "#16a34a" }; return { label: "Healthy", color: "#16a34a" };
case "unhealthy": case "unhealthy":
return { label: "Unhealthy", color: "#dc2626" }; return { label: "Unhealthy", color: "#dc2626" };
case "degraded":
return { label: "Degraded", color: "#dc2626" };
default: default:
return { label: String(status ?? "Unknown"), color: "#f59e0b" }; return { label: String(status ?? "Unknown"), color: "#f59e0b" };
} }