Put alert rules, service levels, notifications and alert tickets on one Alert settings page, in four tabs

Old addresses (/alert-rules, /service-levels, /settings/notifications) lead to the right tab.
Notifications and Alert tickets stay administrator-only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-03 20:38:15 +01:00
1 parent 07ce2b0305
commit 4269213275
40 files changed
+212 -188

No files matched your search

+1 -1
View File
@@ -389,7 +389,7 @@ export default function AppShell({ user, children }: { user: CurrentUser; childr
{away.away.state === "planned" ? `Away from ${formatDateTime(new Date(away.away.from!))} until ${formatDateTime(new Date(away.away.until))}` : `Away until ${formatDateTime(new Date(away.away.until))}`}
{away.away.note ? ` — ${away.away.note}` : ""}.{" "}
{away.away.state === "active" ? `Notifications are held${away.away.criticalThrough ? " (critical alerts still come through)" : ""}${away.held > 0 ? ` — ${away.held} so far` : ""}. ` : ""}
<Link to="/settings/notifications?tab=when">{user.role === "admin" ? "Manage" : "Details"}</Link>
<Link to="/alert-settings?view=notifications&tab=when">{user.role === "admin" ? "Manage" : "Details"}</Link>
</div>
</div>
)}
+1 -3
View File
@@ -8,7 +8,6 @@ import {
IconArrowsSplit2,
IconHome2,
IconBatteryCharging,
IconTargetArrow,
IconDatabaseExport,
IconAdjustmentsAlt,
IconChecklist,
@@ -151,14 +150,13 @@ export const NAV: NavEntry[] = [
icon: <IconHeartbeat size={20} />,
items: [
{ to: "/endpoints", label: "Endpoints", icon: <IconHeartbeat size={20} /> },
{ to: "/alert-rules", label: "Alert rules", icon: <IconAdjustmentsAlt size={20} /> },
{ to: "/alert-settings", label: "Alert settings", icon: <IconAdjustmentsAlt size={20} /> },
{ to: "/heartbeats", label: "Heartbeats", icon: <IconHeartRateMonitor size={20} /> },
{ to: "/uptime-kuma", label: "Uptime Kuma", icon: <IconActivityHeartbeat size={20} /> },
{ to: "/ups", label: "UPS", icon: <IconBatteryCharging size={20} /> },
{ to: "/prometheus", label: "Prometheus", icon: <IconFlame size={20} /> },
{ to: "/grafana", label: "Grafana", icon: <IconChartAreaLine size={20} /> },
{ to: "/speedtest", label: "Speedtest", icon: <IconGauge size={20} /> },
{ to: "/service-levels", label: "Service levels", icon: <IconTargetArrow size={20} /> },
],
},
{