From bd658c33faab85e7ce9c60a9068d50030e57be61 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Wed, 1 Oct 2025 20:56:44 +0000 Subject: [PATCH] feat: add powered-off alert toggle for guests Addresses #485 - adds UI controls for disabling powered-off alerts on a per-guest basis. Changes: - Add "Alert Powered-Off" / "No Powered-Off" toggle button for VMs/LXCs - Extend toggleNodeConnectivity() to handle guests in addition to nodes/PBS - Add disableConnectivity field to guest resource mapping - Update hasOverride logic to track connectivity state Previously, users could only disable ALL alerts for a guest or none. Now they can independently control resource metric alerts vs powered-off alerts, matching the functionality already available for nodes and PBS servers. User impact: - Enabled + Alert Powered-Off: All alerts including power state (default) - Enabled + No Powered-Off: Only resource alerts, ignore power state - Disabled: No alerts at all Backend already supports this via DisableConnectivity flag. --- .../src/components/Alerts/ResourceTable.tsx | 32 +++++++++++++++++++ .../src/components/Alerts/ThresholdsTable.tsx | 13 +++++--- 2 files changed, 40 insertions(+), 5 deletions(-) diff --git a/frontend-modern/src/components/Alerts/ResourceTable.tsx b/frontend-modern/src/components/Alerts/ResourceTable.tsx index a0ec4846b..ee91f1c05 100644 --- a/frontend-modern/src/components/Alerts/ResourceTable.tsx +++ b/frontend-modern/src/components/Alerts/ResourceTable.tsx @@ -311,6 +311,22 @@ export function ResourceTable(props: ResourceTableProps) { {resource.disabled ? 'Disabled' : 'Enabled'} + + + @@ -680,6 +696,22 @@ export function ResourceTable(props: ResourceTableProps) { {resource.disabled ? 'Disabled' : 'Enabled'} + + +