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
Fail safe on unknown alert severities
Richard Courtmanfcf872fb5873
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex daa7c690ca..8526a9d003 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,43 +1,29 @@{"version": 1,- "base_sha": "b8d3a768bd216b29f472c1c6cf704493a290c675",- "verified_at": "2026-08-27T21:47:50Z",+ "base_sha": "cb27b8eb248a863502e39dbb4c6eebbdfc41c3c0",+ "verified_at": "2026-08-28T00:22:52Z","result": "passed","changed_paths": [- "frontend-modern/src/i18n/messages.de.ts",- "frontend-modern/src/i18n/messages.es.ts",- "frontend-modern/src/i18n/messages.ts",- "frontend-modern/src/pages/Alerts.tsx",- "frontend-modern/src/stores/websocket-global.ts",- "frontend-modern/src/stores/websocket.ts","frontend-modern/src/utils/alertOverviewPresentation.ts"],"content_sha256": {- "frontend-modern/src/i18n/messages.de.ts": "55202c2f8518f2400369222f2b46ad71d4d4cf5db7dc553972f42175436d97ea",- "frontend-modern/src/i18n/messages.es.ts": "206edbdaaba5b8a25a2947fc2ead16a9e3a8246f0a74c7d9245ec61cad41cddb",- "frontend-modern/src/i18n/messages.ts": "5fab4be38db1741dd4c59268f022978662b631f4c67a1cfbe030f9c472dd51e4",- "frontend-modern/src/pages/Alerts.tsx": "eba29751e432ca74f7408890b2d5724905fcad9b6f32d3545b28aea218081f54",- "frontend-modern/src/stores/websocket-global.ts": "f34a455d0f73a73a074e2c226a933bf6008811e840accdcb07983f3bc2966246",- "frontend-modern/src/stores/websocket.ts": "b7734ce09fa0f8b113d84ab0b9501026a9be1b6dddf293cba55d25ae74d0f670",- "frontend-modern/src/utils/alertOverviewPresentation.ts": "6b41224b13b4ff8bb5bd9979f89278e54f8eda7459c4317543a7cd9dc04c8329"+ "frontend-modern/src/utils/alertOverviewPresentation.ts": "b3fb07bdffbd444b7bdddb2103e30106bbf7337c76960aeb8cffd33fd67d0f8c"},- "routes": ["/alerts/overview"],+ "routes": ["/alerts/overview", "/alerts/history"],"viewports": [{ "width": 1280, "height": 720 },{ "width": 390, "height": 844 }],"states": [- "live updates reconnecting with 51 active alerts recovered through the canonical REST projection",- "active-alert REST recovery unavailable with no false all-clear and an explicit Retry action",- "successful Retry restoring all 51 active alerts without a page reload",- "expanded active-alert incident timeline with fired event filters and incident note composer",- "pending and unavailable alert-truth panels remain fluid at the narrow layout contract"+ "active critical and warning alert cards retain distinct red and warning-yellow presentations",+ "informational history alerts use the first-class blue severity badge and filter",+ "Alerts Overview and filtered Alert History remain fluid at the 390px layout contract",+ "unknown severity values fail safe to the warning palette under targeted regression coverage"],"interactions": [- "reloaded Alerts Overview while WebSocket upgrades were rejected and confirmed REST recovery rendered the real active-alert count",- "forced only GET /api/alerts/active to return 503 and confirmed the page showed unavailable truth, Retry, and no No active alerts copy",- "restored the active-alert endpoint, selected Retry, and confirmed the canonical overview returned with 51 alerts",- "expanded the first active alert Timeline and confirmed its incident opened with an alert-triggered event and note editor",- "reviewed the recovery panel against the existing 390px responsive Alerts layout contract and confirmed its fluid container and localized copy introduce no fixed-width surface"+ "inspected computed card and badge presentation for a live warning alert and confirmed the warning-yellow palette",+ "navigated from Alerts Overview to Alert History and confirmed informational badges render with the blue palette",+ "expanded narrow History filters, selected Info, and confirmed the 16-result informational projection",+ "confirmed both narrow routes have a 390px document width with no horizontal overflow"]}diff --git a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.coverage.test.ts b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.coverage.test.tsindex 7820b53bcc..a39eb5d071 100644--- a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.coverage.test.ts+++ b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.coverage.test.ts@@ -35,7 +35,7 @@ describe('alertOverviewPresentation coverage', () => {);});- it('projects an unacknowledged, non-critical severity onto the warning palette', () => {+ it('projects an unacknowledged warning onto the warning palette', () => {const presentation = getAlertOverviewCardPresentation('warning', false, false);expect(presentation.cardClassName).toBe(@@ -49,9 +49,17 @@ describe('alertOverviewPresentation coverage', () => {);});- it('treats an unrecognized severity string as non-critical rather than critical', () => {+ it('projects an unacknowledged informational alert onto the informational palette', () => {const presentation = getAlertOverviewCardPresentation('info', false, false);+ expect(presentation.cardClassName).toContain('border-blue-300');+ expect(presentation.iconClassName).toContain('text-blue-600');+ expect(presentation.resourceClassName).toContain('text-blue-700');+ });++ it('fails safe to warning for an unrecognized severity string', () => {+ const presentation = getAlertOverviewCardPresentation('notice', false, false);+expect(presentation.cardClassName).toContain('border-yellow-300');expect(presentation.cardClassName).not.toContain('border-red-300');expect(presentation.iconClassName).toContain('text-yellow-600');diff --git a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.tsindex 5a11dcbbf4..967fde1c65 100644--- a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts@@ -287,6 +287,18 @@ describe('alertOverviewPresentation', () => {iconClassName: 'mr-3 mt-0.5 transition-all text-green-600 dark:text-green-400',resourceClassName: 'text-sm font-medium truncate text-yellow-700 dark:text-yellow-400',});+ expect(getAlertOverviewCardPresentation('info', false, false)).toEqual({+ cardClassName:+ 'border rounded-md p-3 sm:p-4 transition-all border-blue-300 dark:border-blue-800 bg-blue-50 dark:bg-blue-900',+ iconClassName: 'mr-3 mt-0.5 transition-all text-blue-600 dark:text-blue-400',+ resourceClassName: 'text-sm font-medium truncate text-blue-700 dark:text-blue-400',+ });+ expect(getAlertOverviewCardPresentation('notice', false, false)).toEqual({+ cardClassName:+ 'border rounded-md p-3 sm:p-4 transition-all border-yellow-300 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-900',+ iconClassName: 'mr-3 mt-0.5 transition-all text-yellow-600 dark:text-yellow-400',+ resourceClassName: 'text-sm font-medium truncate text-yellow-700 dark:text-yellow-400',+ });expect(getAlertOverviewAcknowledgedBadgeClass()).toBe('px-2 py-0.5 text-xs bg-yellow-200 dark:bg-yellow-800 text-yellow-800 dark:text-yellow-200 rounded',);diff --git a/frontend-modern/src/utils/alertOverviewPresentation.ts b/frontend-modern/src/utils/alertOverviewPresentation.tsindex 7d5abb080b..84a95871e6 100644--- a/frontend-modern/src/utils/alertOverviewPresentation.ts+++ b/frontend-modern/src/utils/alertOverviewPresentation.ts@@ -374,27 +374,28 @@ export function getAlertOverviewCardPresentation(acknowledged: boolean,processing: boolean,): AlertOverviewCardPresentation {+ const isCritical = level === 'critical';+ const isInformational = level === 'info';const opacityClass = processing ? 'opacity-50' : acknowledged ? 'opacity-60' : '';const stateClass = acknowledged? 'border-border bg-surface-alt'- : level === 'critical'+ : isCritical? 'border-red-300 dark:border-red-800 bg-red-50 dark:bg-red-900'- : level === 'warning'- ? 'border-yellow-300 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-900'- : 'border-blue-300 dark:border-blue-800 bg-blue-50 dark:bg-blue-900';+ : isInformational+ ? 'border-blue-300 dark:border-blue-800 bg-blue-50 dark:bg-blue-900'+ : 'border-yellow-300 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-900';const iconClassName = acknowledged? 'mr-3 mt-0.5 transition-all text-green-600 dark:text-green-400'- : level === 'critical'+ : isCritical? 'mr-3 mt-0.5 transition-all text-red-600 dark:text-red-400'- : level === 'warning'- ? 'mr-3 mt-0.5 transition-all text-yellow-600 dark:text-yellow-400'- : 'mr-3 mt-0.5 transition-all text-blue-600 dark:text-blue-400';- const resourceClassName =- level === 'critical'- ? 'text-sm font-medium truncate text-red-700 dark:text-red-400'- : level === 'warning'- ? 'text-sm font-medium truncate text-yellow-700 dark:text-yellow-400'- : 'text-sm font-medium truncate text-blue-700 dark:text-blue-400';+ : isInformational+ ? 'mr-3 mt-0.5 transition-all text-blue-600 dark:text-blue-400'+ : 'mr-3 mt-0.5 transition-all text-yellow-600 dark:text-yellow-400';+ const resourceClassName = isCritical+ ? 'text-sm font-medium truncate text-red-700 dark:text-red-400'+ : isInformational+ ? 'text-sm font-medium truncate text-blue-700 dark:text-blue-400'+ : 'text-sm font-medium truncate text-yellow-700 dark:text-yellow-400';return {cardClassName: ['border rounded-md p-3 sm:p-4 transition-all', opacityClass, stateClass]