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:
1 parent
07ce2b0305
commit
4269213275
40 files changed
+212
-188
No files matched your search
@@ -16,7 +16,7 @@ const FIELDS: { key: Field; label: string; unit: string; min: number; max: numbe
|
||||
const has = (t: Thresholds | null) => !!t && (Object.keys(t).some((k) => k !== "mounts" && k !== "ignoreServices") || Object.keys(t.mounts ?? {}).length > 0);
|
||||
|
||||
/**
|
||||
* This server's own alert limits. Anything left empty follows Settings → Notifications, so changing the global limit still reaches every
|
||||
* This server's own alert limits. Anything left empty follows Alert settings → Notifications, so changing the global limit still reaches every
|
||||
* server that hasn't said otherwise. A disk can have a limit of its own, or be left alone altogether. Everyone can see what is set; only
|
||||
* an administrator changes it.
|
||||
*/
|
||||
@@ -115,7 +115,7 @@ export default function ServerThresholds({ server, defaults, disks, canEdit, onC
|
||||
}}
|
||||
>
|
||||
<div className="card-body">
|
||||
<p className="text-secondary small">Leave a box empty to follow Settings → Notifications (shown inside the box). Only what you fill in is different for this server.</p>
|
||||
<p className="text-secondary small">Leave a box empty to follow Alert settings → Notifications (shown inside the box). Only what you fill in is different for this server.</p>
|
||||
<div className="row g-3">
|
||||
{FIELDS.filter((f) => !f.onlyForGuests || isGuest || own?.[f.key] !== undefined).map((f) => (
|
||||
<div className="col-md-6" key={f.key}>
|
||||
|
||||
Reference in new issue
Block a user