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
test(alerts): preserve delivery status across same-resource recurrence
pulse-triage[bot]f65bfcdbaf29
diff --git a/frontend-modern/src/features/alerts/__tests__/OverviewTab.deliverystatus.test.tsx b/frontend-modern/src/features/alerts/__tests__/OverviewTab.deliverystatus.test.tsxindex 5dcaaaeb72..ee50ebc9ce 100644--- a/frontend-modern/src/features/alerts/__tests__/OverviewTab.deliverystatus.test.tsx+++ b/frontend-modern/src/features/alerts/__tests__/OverviewTab.deliverystatus.test.tsx@@ -146,6 +146,37 @@ describe('OverviewTab delivery status line', () => {expect(screen.getByText('Notifications are turned off')).toBeTruthy();});+ it('does not apply a resolved incident response to its recurrence on the same resource', async () => {+ let finishOlder!: (value: AlertDeliveryDiagnosis[]) => void;+ getDeliveryDiagnoses.mockReturnValueOnce(+ new Promise((resolve) => {+ finishOlder = resolve;+ }),+ );+ getDeliveryDiagnoses.mockResolvedValueOnce([+ makeDiagnosis('a2', { status: 'suppressed', reason: 'notifications_disabled' }),+ ]);+ const original = makeAlert('a1');+ const recurrence = {+ ...makeAlert('a2'),+ resourceId: original.resourceId,+ resourceName: original.resourceName,+ startTime: '2026-09-06T19:00:00Z',+ };+ const [alerts, setAlerts] = createSignal<Record<string, Alert>>({ a1: original });+ render(() => <OverviewTab {...defaultProps()} activeAlerts={alerts()} />);+ await waitFor(() => expect(getDeliveryDiagnoses).toHaveBeenCalledTimes(1));+ setAlerts({ a2: recurrence });+ await waitFor(() => expect(screen.getByText('Notifications are turned off')).toBeTruthy());+ expect(getDeliveryDiagnoses).toHaveBeenCalledTimes(2);+ finishOlder([makeDiagnosis('a1', { lastNotified: '2026-08-26T10:15:00Z' })]);+ await Promise.resolve();+ expect(screen.getByText('High CPU on VM a2')).toBeTruthy();+ expect(screen.queryByText('High CPU on VM a1')).toBeNull();+ expect(screen.queryByText(/^Dispatch requested /)).toBeNull();+ expect(screen.getByText('Notifications are turned off')).toBeTruthy();+ });+it('renders no delivery line when the diagnosis fetch fails', async () => {const activeAlerts: Record<string, Alert> = { a1: makeAlert('a1') };getDeliveryDiagnoses.mockRejectedValue(new Error('boom'));