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
fix(alerts): surface failing notification delivery on the alerts overview
rcourtman4cd4921e49a7
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex b2f3baa4f0..da83ce00a6 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,45 +1,41 @@{"version": 1,"result": "passed",- "verified_at": "2026-08-18T19:14:48Z",- "base_sha": "4be10526b653815389996d3d0e99fe582c648dc0",+ "verified_at": "2026-08-18T19:20:22Z",+ "base_sha": "7879862c24a9657707f8a963f2bf70d1c50ed32c","changed_paths": [- "frontend-modern/src/components/shared/MobileNavBar.tsx",- "frontend-modern/src/components/shared/mobileNavBarModel.ts",- "frontend-modern/src/components/shared/useMobileNavBarState.ts"+ "frontend-modern/src/features/alerts/OverviewTab.tsx",+ "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx",+ "frontend-modern/src/features/alerts/useAlertDestinationsTabState.ts",+ "frontend-modern/src/features/alerts/useNotificationDeliveryHealth.ts"],"content_sha256": {- "frontend-modern/src/components/shared/MobileNavBar.tsx": "94d38c6497660a31c2d9ea2ab8b7b1fcf07c58402b4b75f638753e028b665f38",- "frontend-modern/src/components/shared/mobileNavBarModel.ts": "f1ef527cb91657d748e26ed37dfa9d1b8527469837cd1838d5f41c53b13ea5db",- "frontend-modern/src/components/shared/useMobileNavBarState.ts": "b9f7d406e7c7d11c1c4d9c6655e13c4abf3cc2c1b1f6f55808dafa77b36b31ce"+ "frontend-modern/src/features/alerts/OverviewTab.tsx": "a96d21aed9960769a7fbdf8fcdd3ebbd64890749c4afab2259cd11df97a92653",+ "frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx": "eb85b628ea48e3e399d8613fa0511638d62f66b4b1f0e2a12d7127901dede711",+ "frontend-modern/src/features/alerts/useAlertDestinationsTabState.ts": "76046151c145a681b0bf098d50be3c7a8d5fa89d80304fc014bd8f6fb79025b3",+ "frontend-modern/src/features/alerts/useNotificationDeliveryHealth.ts": "092df36398945a9436017c070adf5f5a9e0a439017bed4069ee48abcfa7117fb"},"routes": [- "/proxmox/overview",- "/proxmox/replication",- "/docker/overview"+ "/alerts/overview",+ "/alerts/notifications"+ ],+ "states": [+ "healthy queue: no delivery warning on the alerts overview",+ "degraded queue: warning renders above the overview stat cards, naming the dominant failure class",+ "before the first health load resolves: nothing rendered, so no warning flash"+ ],+ "interactions": [+ "loaded /alerts/overview against a healthy queue and confirmed the overview stays clean",+ "served a degraded notification health payload and re-entered /alerts/overview; the delivery warning appeared with its refresh control"],"viewports": [{- "width": 1440,- "height": 1000+ "width": 1280,+ "height": 800},{- "width": 390,- "height": 844+ "width": 375,+ "height": 812}- ],- "states": [- "Mobile bottom navigation with Proxmox active and the dedicated platform switcher closed",- "Platform switcher open with Proxmox, Docker, Kubernetes, TrueNAS, vSphere, and Machines visible",- "Docker active after direct selection from the platform switcher",- "More menu open with Settings as its only secondary utility",- "Desktop primary navigation visible with the mobile bottom navigation hidden"- ],- "interactions": [- "opened the first-slot platform switcher from Proxmox",- "selected Docker and verified navigation to /docker/overview plus the current-platform label",- "opened More and verified that no platform destinations remain in its utility menu",- "selected Proxmox from the platform switcher",- "exercised ArrowDown, arrow traversal, Home, End, Escape focus return, and outside-click dismissal in component tests"]}diff --git a/frontend-modern/src/features/alerts/OverviewTab.tsx b/frontend-modern/src/features/alerts/OverviewTab.tsxindex 111351df12..f6e62a93d9 100644--- a/frontend-modern/src/features/alerts/OverviewTab.tsx+++ b/frontend-modern/src/features/alerts/OverviewTab.tsx@@ -1,13 +1,15 @@-import { createSignal, onCleanup, createEffect } from 'solid-js';+import { createSignal, onCleanup, createEffect, onMount, Show } from 'solid-js';import { useLocation } from '@solidjs/router';import type { Alert } from '@/types/api';+import { AlertDeliveryHealthCard } from './AlertDeliveryHealthCard';import { AlertOverviewActiveAlertsSection } from './AlertOverviewActiveAlertsSection';import { AlertOverviewStatsCards } from './AlertOverviewStatsCards';import type { Override } from './types';import { useAlertIncidentTimelineState } from './useAlertIncidentTimelineState';import { useAlertOverviewState } from './useAlertOverviewState';+import { useNotificationDeliveryHealth } from './useNotificationDeliveryHealth';export function OverviewTab(props: {overrides: Override[];@@ -29,6 +31,13 @@ export function OverviewTab(props: {updateAlert: props.updateAlert,});const timelineState = useAlertIncidentTimelineState();+ // A destination that stopped delivering is invisible by nature: the failure+ // is the channel that would have reported it. Surface it on the tab people+ // actually open, not only on the destinations config tab.+ const deliveryHealthState = useNotificationDeliveryHealth();+ onMount(() => {+ void deliveryHealthState.loadDeliveryHealth();+ });const scrollToAlertHash = () => {const hash = location.hash;@@ -69,6 +78,14 @@ export function OverviewTab(props: {return (<div class="space-y-4 sm:space-y-6">+ <Show when={deliveryHealthState.deliveryNeedsAttention()}>+ <AlertDeliveryHealthCard+ health={deliveryHealthState.deliveryHealth()?.queue ?? null}+ unavailable={deliveryHealthState.deliveryHealthUnavailable()}+ refreshing={deliveryHealthState.refreshingDeliveryHealth()}+ onRefresh={() => void deliveryHealthState.loadDeliveryHealth()}+ />+ </Show><AlertOverviewStatsCards state={overviewState} /><AlertOverviewActiveAlertsSectionstate={overviewState}diff --git a/frontend-modern/src/features/alerts/__tests__/useNotificationDeliveryHealth.test.tsx b/frontend-modern/src/features/alerts/__tests__/useNotificationDeliveryHealth.test.tsxnew file mode 100644index 0000000000..e08b50e91f--- /dev/null+++ b/frontend-modern/src/features/alerts/__tests__/useNotificationDeliveryHealth.test.tsx@@ -0,0 +1,63 @@+import { createRoot } from 'solid-js';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { NotificationsAPI } from '@/api/notifications';++import { useNotificationDeliveryHealth } from '../useNotificationDeliveryHealth';++vi.mock('@/api/notifications', () => ({+ NotificationsAPI: { getHealth: vi.fn() },+}));++const healthWith = (status: string) => ({ queue: { status, failed: 3, deadLetter: 1 } }) as never;++describe('useNotificationDeliveryHealth', () => {+ beforeEach(() => {+ vi.mocked(NotificationsAPI.getHealth).mockReset();+ });++ it('stays silent before the first load resolves so it cannot flash a warning', () =>+ createRoot(async (dispose) => {+ vi.mocked(NotificationsAPI.getHealth).mockResolvedValue(healthWith('degraded'));+ const state = useNotificationDeliveryHealth();++ expect(state.deliveryNeedsAttention()).toBe(false);++ await state.loadDeliveryHealth();+ expect(state.deliveryNeedsAttention()).toBe(true);+ dispose();+ }));++ it('does not raise attention for a healthy queue', () =>+ createRoot(async (dispose) => {+ vi.mocked(NotificationsAPI.getHealth).mockResolvedValue(healthWith('healthy'));+ const state = useNotificationDeliveryHealth();++ await state.loadDeliveryHealth();+ expect(state.deliveryNeedsAttention()).toBe(false);+ expect(state.deliveryHealthUnavailable()).toBe(false);+ dispose();+ }));++ it('treats an unreachable health endpoint as needing attention', () =>+ createRoot(async (dispose) => {+ vi.mocked(NotificationsAPI.getHealth).mockRejectedValue(new Error('network down'));+ const state = useNotificationDeliveryHealth();++ await state.loadDeliveryHealth();+ expect(state.deliveryHealthUnavailable()).toBe(true);+ expect(state.deliveryNeedsAttention()).toBe(true);+ expect(state.deliveryHealth()).toBeNull();+ dispose();+ }));++ it('treats a queue the server reports as unavailable as needing attention', () =>+ createRoot(async (dispose) => {+ vi.mocked(NotificationsAPI.getHealth).mockResolvedValue(healthWith('unavailable'));+ const state = useNotificationDeliveryHealth();++ await state.loadDeliveryHealth();+ expect(state.deliveryNeedsAttention()).toBe(true);+ dispose();+ }));+});diff --git a/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx b/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsxindex 6f7271ca2f..70f80c3e99 100644--- a/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx+++ b/frontend-modern/src/features/alerts/tabs/DestinationsTab.tsx@@ -73,11 +73,7 @@ export function DestinationsTab(props: DestinationsTabProps) {)}</Show>- <Show- when={- state.deliveryHealthUnavailable() || state.deliveryHealth()?.queue.status === 'degraded'- }- >+ <Show when={state.deliveryNeedsAttention()}><AlertDeliveryHealthCardhealth={state.deliveryHealth()?.queue ?? null}unavailable={state.deliveryHealthUnavailable()}diff --git a/frontend-modern/src/features/alerts/useAlertDestinationsTabState.ts b/frontend-modern/src/features/alerts/useAlertDestinationsTabState.tsindex f5c03f7fd3..c20d8f11a2 100644--- a/frontend-modern/src/features/alerts/useAlertDestinationsTabState.ts+++ b/frontend-modern/src/features/alerts/useAlertDestinationsTabState.ts@@ -1,6 +1,6 @@import { createMemo, createSignal, onMount, type Accessor } from 'solid-js';-import { NotificationsAPI, type AppriseConfig, type NotificationHealth } from '@/api/notifications';+import { NotificationsAPI, type AppriseConfig } from '@/api/notifications';import { notificationStore } from '@/stores/notifications';import { logger } from '@/utils/logger';import { showErrorWithDetail } from '@/utils/toast';@@ -14,6 +14,7 @@ import {import { parseAppriseTargets } from './helpers';import type { UIAppriseConfig, UIEmailConfig } from './types';+import { useNotificationDeliveryHealth } from './useNotificationDeliveryHealth';import { useAlertWebhookDestinationsState } from './useAlertWebhookDestinationsState';export interface AlertDestinationsTabStateProps {@@ -29,9 +30,13 @@ export interface AlertDestinationsTabStateProps {export function useAlertDestinationsTabState(props: AlertDestinationsTabStateProps) {const [testingEmail, setTestingEmail] = createSignal(false);const [testingApprise, setTestingApprise] = createSignal(false);- const [deliveryHealth, setDeliveryHealth] = createSignal<NotificationHealth | null>(null);- const [deliveryHealthUnavailable, setDeliveryHealthUnavailable] = createSignal(false);- const [refreshingDeliveryHealth, setRefreshingDeliveryHealth] = createSignal(false);+ const {+ deliveryHealth,+ deliveryHealthUnavailable,+ refreshingDeliveryHealth,+ deliveryNeedsAttention,+ loadDeliveryHealth,+ } = useNotificationDeliveryHealth();const webhookState = useAlertWebhookDestinationsState();const isLoading = createMemo(@@ -44,21 +49,6 @@ export function useAlertDestinationsTabState(props: AlertDestinationsTabStateProprops.setAppriseConfig({ ...props.appriseConfig(), ...partial });};- const loadDeliveryHealth = async () => {- setRefreshingDeliveryHealth(true);- try {- const health = await NotificationsAPI.getHealth();- setDeliveryHealth(health);- setDeliveryHealthUnavailable(health.queue.status === 'unavailable');- } catch (error) {- logger.error('Failed to load notification delivery health', error);- setDeliveryHealth(null);- setDeliveryHealthUnavailable(true);- } finally {- setRefreshingDeliveryHealth(false);- }- };-const buildAppriseRequestConfig = (): AppriseConfig => {const config = appriseState();const serverUrl = (config.serverUrl || '').trim();@@ -143,6 +133,7 @@ export function useAlertDestinationsTabState(props: AlertDestinationsTabStateProappriseState,deliveryHealth,deliveryHealthUnavailable,+ deliveryNeedsAttention,handleRetry,hasLoadError,isLoading,diff --git a/frontend-modern/src/features/alerts/useNotificationDeliveryHealth.ts b/frontend-modern/src/features/alerts/useNotificationDeliveryHealth.tsnew file mode 100644index 0000000000..f16d7f6d30--- /dev/null+++ b/frontend-modern/src/features/alerts/useNotificationDeliveryHealth.ts@@ -0,0 +1,48 @@+import { createMemo, createSignal } from 'solid-js';++import { NotificationsAPI, type NotificationHealth } from '@/api/notifications';+import { logger } from '@/utils/logger';++// Delivery health is the only evidence a user has that configured destinations+// are actually reaching them. It is shared rather than owned by the+// destinations tab so the warning can also reach the alerts overview, which is+// where someone looks when they are wondering about their alerting at all.+export function useNotificationDeliveryHealth() {+ const [deliveryHealth, setDeliveryHealth] = createSignal<NotificationHealth | null>(null);+ const [deliveryHealthUnavailable, setDeliveryHealthUnavailable] = createSignal(false);+ const [refreshingDeliveryHealth, setRefreshingDeliveryHealth] = createSignal(false);+ const [loadedOnce, setLoadedOnce] = createSignal(false);++ const loadDeliveryHealth = async () => {+ setRefreshingDeliveryHealth(true);+ try {+ const health = await NotificationsAPI.getHealth();+ setDeliveryHealth(health);+ setDeliveryHealthUnavailable(health.queue.status === 'unavailable');+ } catch (error) {+ logger.error('Failed to load notification delivery health', error);+ setDeliveryHealth(null);+ setDeliveryHealthUnavailable(true);+ } finally {+ setLoadedOnce(true);+ setRefreshingDeliveryHealth(false);+ }+ };++ // Only a queue the server itself calls degraded, or one it cannot report on,+ // is worth interrupting someone over. Stay silent until the first load+ // resolves so a slow request cannot flash a warning.+ const deliveryNeedsAttention = createMemo(+ () =>+ loadedOnce() &&+ (deliveryHealthUnavailable() || deliveryHealth()?.queue.status === 'degraded'),+ );++ return {+ deliveryHealth,+ deliveryHealthUnavailable,+ refreshingDeliveryHealth,+ deliveryNeedsAttention,+ loadDeliveryHealth,+ };+}