From 311ef7619efeae1545bf0fb5f4c92f018d2e079e Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Sat, 9 Aug 2025 18:27:30 +0000 Subject: [PATCH] fix: critical production issues for v4.1.0-rc.5 - Fixed Discord/Slack/Teams webhooks not persisting (Issue #272) - Fixed email recipients not saving and Enter key issue (Issue #270) - Fixed auto-update toggle not saving (Issue #269) - Fixed false CPU alerts for stopped VMs/containers (Issue #273) - Automatic alert clearing for stopped guests - Preserve passwords when updating email config chore: bump version to v4.1.0-rc.5 --- VERSION | 2 +- frontend-modern/src/api/notifications.ts | 1 + .../components/Alerts/EmailProviderSelect.tsx | 12 +++- .../src/components/Alerts/WebhookConfig.tsx | 36 +++++----- .../src/components/Settings/Settings.tsx | 7 ++ frontend-modern/src/pages/Alerts.tsx | 66 +++++++++++-------- internal/alerts/alerts.go | 21 +++++- internal/api/notifications.go | 23 ++++++- internal/config/persistence.go | 2 +- internal/monitoring/monitor.go | 16 ++++- 10 files changed, 132 insertions(+), 54 deletions(-) diff --git a/VERSION b/VERSION index 22ab6f398..8f1459f06 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.0-rc.4 +4.1.0-rc.5 diff --git a/frontend-modern/src/api/notifications.ts b/frontend-modern/src/api/notifications.ts index c30c0a3f3..4ece4301f 100644 --- a/frontend-modern/src/api/notifications.ts +++ b/frontend-modern/src/api/notifications.ts @@ -52,6 +52,7 @@ export interface Webhook { headers: Record; template?: string; enabled: boolean; + service?: string; // Added to support Discord, Slack, etc. } export interface NotificationTestRequest { diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx index ae3199a8f..ce954c1a9 100644 --- a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx +++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx @@ -209,12 +209,20 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {