Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Govern alert destinations presentation helper
rcourtman3a6a376b3322
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex 30b72275a1..40628df68e 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -27,6 +27,7 @@ operator-facing alert routing behavior for live runtime alerts.5. `internal/alerts/unified_incidents.go`6. `frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx`7. `frontend-modern/src/utils/alertOverviewPresentation.ts`+8. `frontend-modern/src/utils/alertDestinationsPresentation.ts`## Shared Boundaries@@ -348,6 +349,9 @@ destinations render shell and composes`frontend-modern/src/features/alerts/AlertWebhookDestinationsSection.tsx`, andthe dedicated load/error wrappers. Future config cleanup should extend theconfig transport hook, the config model, the override-projection hook, or the+shared `frontend-modern/src/utils/alertDestinationsPresentation.ts` helper for+customer-facing destinations copy instead of reviving inline retry, test, and+error text across the feature tabs.destinations runtime hook based on which subsystem actually owns the behaviorinstead of letting the broader configuration hook absorb all four concernsagain.diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 8a1dd431af..bf282d6aa7 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -911,6 +911,7 @@],"owned_files": ["frontend-modern/src/pages/Alerts.tsx",+ "frontend-modern/src/utils/alertDestinationsPresentation.ts","frontend-modern/src/utils/alertOverviewPresentation.ts"],"verification": {@@ -992,6 +993,19 @@"frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts"]},+ {+ "id": "alert-destinations-presentation-helper",+ "label": "alert destinations presentation helper proof",+ "match_prefixes": [],+ "match_files": [+ "frontend-modern/src/utils/alertDestinationsPresentation.ts"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts"+ ]+ },{"id": "alerts-runtime-support","label": "alerts runtime support proof",diff --git a/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.tsindex 9a430d6a73..a6415de967 100644--- a/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts@@ -35,23 +35,21 @@ import {describe('alertDestinationsPresentation', () => {it('returns canonical destinations load error copy', () => {expect(ALERT_DESTINATIONS_CONFIG_LOAD_ERROR).toBe(- 'Failed to load notification configuration. Your existing settings could not be retrieved.',+ 'Unable to load notification settings. Your existing configuration could not be retrieved.',);- expect(ALERT_DESTINATIONS_WEBHOOK_LOAD_ERROR).toBe('Failed to load webhook configuration.');+ expect(ALERT_DESTINATIONS_WEBHOOK_LOAD_ERROR).toBe('Unable to load webhook settings.');expect(getAlertDestinationsConfigLoadError()).toBe(- 'Failed to load notification configuration. Your existing settings could not be retrieved.',- );- expect(getAlertDestinationsWebhookLoadError()).toBe(- 'Failed to load webhook configuration.',+ 'Unable to load notification settings. Your existing configuration could not be retrieved.',);+ expect(getAlertDestinationsWebhookLoadError()).toBe('Unable to load webhook settings.');});it('returns canonical destinations retry and warning copy', () => {expect(ALERT_DESTINATIONS_LOAD_ERROR_RISK_NOTICE).toBe('Saving now may overwrite your existing settings with defaults.',);- expect(getAlertDestinationsLoadErrorBanner('Failed to load webhook configuration.')).toBe(- 'Failed to load webhook configuration. Saving now may overwrite your existing settings with defaults.',+ expect(getAlertDestinationsLoadErrorBanner('Unable to load webhook settings.')).toBe(+ 'Unable to load webhook settings. Saving now may overwrite your existing settings with defaults.',);expect(ALERT_DESTINATIONS_RETRY_LABEL).toBe('Retry');expect(ALERT_DESTINATIONS_RETRYING_LABEL).toBe('Retrying…');@@ -65,7 +63,7 @@ describe('alertDestinationsPresentation', () => {expect(getAlertDestinationsStatusLabel(true)).toBe('Enabled');expect(getAlertDestinationsStatusLabel(false)).toBe('Disabled');expect(getAlertDestinationsAppriseTestLabel(false)).toBe('Send test');- expect(getAlertDestinationsAppriseTestLabel(true)).toBe('Testing...');+ expect(getAlertDestinationsAppriseTestLabel(true)).toBe('Testing…');expect(ALERT_DESTINATIONS_APPRISE_MODE_HELP).toBe('Choose how Pulse should execute Apprise notifications.',);@@ -89,24 +87,24 @@ describe('alertDestinationsPresentation', () => {ALERT_DESTINATIONS_APPRISE_MISSING_SERVER_URL_ERROR,);expect(ALERT_DESTINATIONS_EMAIL_TEST_SUCCESS).toBe(- 'Test email sent successfully! Check your inbox.',+ 'Test email sent. Check your inbox.',);- expect(ALERT_DESTINATIONS_EMAIL_TEST_FAILURE).toBe('Failed to send test email');+ expect(ALERT_DESTINATIONS_EMAIL_TEST_FAILURE).toBe('Unable to send the test email.');expect(getAlertDestinationsEmailTestSuccess()).toBe(- 'Test email sent successfully! Check your inbox.',+ 'Test email sent. Check your inbox.',);- expect(getAlertDestinationsEmailTestFailure()).toBe('Failed to send test email');+ expect(getAlertDestinationsEmailTestFailure()).toBe('Unable to send the test email.');expect(ALERT_DESTINATIONS_APPRISE_TEST_SUCCESS).toBe(- 'Test Apprise notification sent successfully!',+ 'Test Apprise notification sent.',);expect(ALERT_DESTINATIONS_APPRISE_TEST_FAILURE).toBe(- 'Failed to send test notification',+ 'Unable to send the test notification.',);expect(getAlertDestinationsAppriseTestSuccess()).toBe(- 'Test Apprise notification sent successfully!',+ 'Test Apprise notification sent.',);expect(getAlertDestinationsAppriseTestFailure()).toBe(- 'Failed to send test notification',+ 'Unable to send the test notification.',);});});diff --git a/frontend-modern/src/utils/alertDestinationsPresentation.ts b/frontend-modern/src/utils/alertDestinationsPresentation.tsindex 914be7146a..3924bf210b 100644--- a/frontend-modern/src/utils/alertDestinationsPresentation.ts+++ b/frontend-modern/src/utils/alertDestinationsPresentation.ts@@ -1,6 +1,6 @@export const ALERT_DESTINATIONS_CONFIG_LOAD_ERROR =- 'Failed to load notification configuration. Your existing settings could not be retrieved.';-export const ALERT_DESTINATIONS_WEBHOOK_LOAD_ERROR = 'Failed to load webhook configuration.';+ 'Unable to load notification settings. Your existing configuration could not be retrieved.';+export const ALERT_DESTINATIONS_WEBHOOK_LOAD_ERROR = 'Unable to load webhook settings.';export const ALERT_DESTINATIONS_LOAD_ERROR_RISK_NOTICE ='Saving now may overwrite your existing settings with defaults.';export const ALERT_DESTINATIONS_RETRY_LABEL = 'Retry';@@ -12,9 +12,9 @@ export const ALERT_DESTINATIONS_EMAIL_PANEL_DESCRIPTION ='Configure SMTP delivery for alert emails.';export const ALERT_DESTINATIONS_APPRISE_PANEL_TITLE = 'Apprise notifications';export const ALERT_DESTINATIONS_APPRISE_PANEL_DESCRIPTION =- 'Relay grouped alerts through Apprise via CLI or remote API.';+ 'Relay grouped alerts through Apprise by using the CLI or a remote API.';export const ALERT_DESTINATIONS_APPRISE_TEST_LABEL = 'Send test';-export const ALERT_DESTINATIONS_APPRISE_TESTING_LABEL = 'Testing...';+export const ALERT_DESTINATIONS_APPRISE_TESTING_LABEL = 'Testing…';export const ALERT_DESTINATIONS_APPRISE_MODE_LABEL = 'Delivery mode';export const ALERT_DESTINATIONS_APPRISE_MODE_CLI_LABEL = 'Local Apprise CLI';export const ALERT_DESTINATIONS_APPRISE_MODE_HTTP_LABEL = 'Remote Apprise API';@@ -62,11 +62,12 @@ export const ALERT_DESTINATIONS_APPRISE_MISSING_TARGETS_ERROR =export const ALERT_DESTINATIONS_APPRISE_MISSING_SERVER_URL_ERROR ='Enter an Apprise API server URL to test API delivery.';export const ALERT_DESTINATIONS_EMAIL_TEST_SUCCESS =- 'Test email sent successfully! Check your inbox.';-export const ALERT_DESTINATIONS_EMAIL_TEST_FAILURE = 'Failed to send test email';+ 'Test email sent. Check your inbox.';+export const ALERT_DESTINATIONS_EMAIL_TEST_FAILURE = 'Unable to send the test email.';export const ALERT_DESTINATIONS_APPRISE_TEST_SUCCESS =- 'Test Apprise notification sent successfully!';-export const ALERT_DESTINATIONS_APPRISE_TEST_FAILURE = 'Failed to send test notification';+ 'Test Apprise notification sent.';+export const ALERT_DESTINATIONS_APPRISE_TEST_FAILURE =+ 'Unable to send the test notification.';export function getAlertDestinationsConfigLoadError() {return ALERT_DESTINATIONS_CONFIG_LOAD_ERROR;