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
Keep empty Coverage evidence scoped to the current list
pulse-triage[bot]f45493f3915f
diff --git a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsxindex 77ca3f0644..415afc013b 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx@@ -68,10 +68,11 @@ const COVERAGE_SNAPSHOT_ONLY_TITLE =const COVERAGE_HISTORY_UNKNOWN_TITLE ='No completed backup is visible in the current list. Missing entries do not mean no backups exist. Expand this row to inspect the evidence.';-// A fulfilled raw-inventory request is not proof that every provider scope was-// readable. Keep absence scoped to the server's history/access evidence, not-// the posture colour (an independently readable backup can still be Protected).-const hasCompleteCoverageHistory = (row: WorkloadCoverageRow): boolean => {+// Provider quality supports the backup-age fallback, not absence of every+// restore point. In particular, complete PVE backup enumeration says nothing+// about an unread snapshot list or the posture's retained snapshot evidence.+// A fulfilled raw request and the posture colour cannot establish that either.+const hasCompleteBackupHistory = (row: WorkloadCoverageRow): boolean => {const posture = row.protectionPosture;const providers = posture?.providerStates ?? [];return (@@ -393,8 +394,8 @@ export function ProxmoxCoverageTable(props: {{(row) => {const isExpanded = () => props.expandedKey === row.key;const evidence = () => selectCoverageRestoreEvidence(row.artifacts);- const historyComplete = () =>- !props.historyReadIncomplete && hasCompleteCoverageHistory(row);+ const backupHistoryComplete = () =>+ !props.historyReadIncomplete && hasCompleteBackupHistory(row);const detailRowId = () => `proxmox-coverage-evidence-${row.key}`;return (<>@@ -485,7 +486,7 @@ export function ProxmoxCoverageTable(props: {<CoverageAgeFallbackunknown={row.ageUnknown?.backup}historyUnknown={- !historyComplete() ||+ !backupHistoryComplete() ||Boolean(row.protectionPosture?.lastSuccessfulPointAt)}compact={layoutMode() === 'compact'}@@ -594,11 +595,9 @@ export function ProxmoxCoverageTable(props: {role="status"class="text-xs">- {!historyComplete()+ {!backupHistoryComplete()? 'Restore-point history is not confirmed complete. Missing entries do not mean no backups exist.'- : row.protectionPosture?.lastSuccessfulPointAt- ? 'No restore points are visible in the current list. Missing entries do not mean no backups exist.'- : 'No restore points reported for this workload in the readable history.'}+ : 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.'}</InlineNotice>}>diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsxindex 49f71a38b2..61b3ebc59c 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx@@ -703,6 +703,75 @@ describe('ProxmoxBackupsTable', () => {expect(detailCell?.firstElementChild?.className).toContain('max-w-[100cqi]');});+ it('keeps retained snapshot posture distinct from the raw list and a readable peer', async () => {+ const retainedGuest = {+ ...workloadResource,+ id: 'ct-111',+ name: 'database-a',+ displayName: 'database-a',+ proxmox: { ...workloadResource.proxmox!, vmid: 111 },+ } as Resource;+ apiFetchMock.mockImplementation((url: string) =>+ Promise.resolve(+ jsonResponse(+ url === '/api/backups/pve'+ ? { data: { ...pvePayload.data, storageBackups: [], backupTasks: [] } }+ : { data: { backups: [] } },+ ),+ ),+ );+ const explanation =+ 'Only snapshots were found. A snapshot is not a separate backup, so it does not count.';+ apiFetchJSONMock.mockResolvedValue({+ data: [retainedGuest, workloadResource].map((guest) => ({+ subjectResourceId: guest.id,+ state: 'unprotected',+ coverage: 'none',+ freshness: 'unknown',+ verification: 'unknown',+ providerStates: [+ {+ provider: 'proxmox-pve',+ source: 'pve-backup-enumeration',+ scope: 'pve-a',+ jobState: 'success',+ historyCompleteness: 'complete',+ permissions: 'sufficient',+ evidenceIds: [],+ },+ ],+ repositoryResourceIds: [],+ evidenceIds: [],+ explanation,+ evaluatedAt: '2026-05-25T02:05:00Z',+ })),+ policy: { freshnessWindowSeconds: 604800, verificationWindowSeconds: 604800 },+ });+ renderInRouter(() => (+ <ProxmoxBackupsTable emptyIcon={<span />} workloads={[retainedGuest, workloadResource]} />+ ));++ await screen.findAllByText('pbs-docker');+ await fireEvent.click(screen.getByRole('link', { name: /coverage/i }));+ await fireEvent.click(screen.getByRole('button', { name: /expand details for database-a/i }));+ const detail = screen.getByTestId('proxmox-coverage-detail');+ await within(detail).findByText(explanation);+ expect(within(detail).getByText('History Complete')).toBeInTheDocument();+ expect(within(detail).getByRole('status')).toHaveTextContent(+ 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.',+ );+ expect(within(detail).queryByText('Restore evidence')).not.toBeInTheDocument();+ expect(within(detail).queryByText('pre-upgrade')).not.toBeInTheDocument();+ expect(detail).not.toHaveTextContent('No restore points reported');++ await fireEvent.click(screen.getByRole('button', { name: /expand details for pbs-docker/i }));+ const peer = screen.getByTestId('proxmox-coverage-detail');+ expect(within(peer).getByText('Restore evidence')).toBeInTheDocument();+ expect(within(peer).getByText('pre-upgrade')).toBeInTheDocument();+ expect(within(peer).queryByRole('status')).not.toBeInTheDocument();+ expect(screen.queryByText('previously recorded evidence', { exact: false })).not.toBeInTheDocument();+ });+it('keeps coverage evidence expanded across repeated workload snapshots', async () => {mockBackupAPIs();const [workloads, setWorkloads] = createSignal<readonly Resource[]>([workloadResource]);diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsxindex 3b04bb5fc7..048910684e 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx@@ -346,7 +346,7 @@ describe('ProxmoxCoverageTable column visibility', () => {expect(onToggleExpand).toHaveBeenCalledWith('w1');});- it('states a workload without restore points in a shared notice', () => {+ it('states an empty restore-point list in a shared notice', () => {renderInRouter(() => (<ProxmoxCoverageTablerows={[{ ...row, posture: 'unprotected' } as WorkloadCoverageRow]}@@ -366,7 +366,7 @@ describe('ProxmoxCoverageTable column visibility', () => {const notice = screen.getByRole('status');expect(notice).toHaveTextContent(- 'No restore points reported for this workload in the readable history.',+ 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.',);expect(notice.className).toContain('border-amber-300');// No registry match, so nothing to link to.@@ -583,7 +583,7 @@ describe('Coverage absence requires readable, complete history', () => {});expect(screen.getByTitle(unknownTitle)).toHaveTextContent(/^Unknown$/);expect(screen.getByRole('status')).toHaveTextContent(- 'No restore points are visible in the current list. Missing entries do not mean no backups exist.',+ 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.',);expect(screen.queryByText('Restore evidence')).not.toBeInTheDocument();});@@ -596,8 +596,38 @@ describe('Coverage absence requires readable, complete history', () => {});expect(screen.getByTitle('No PBS snapshot or PVE backup file')).toHaveTextContent(/^None$/);expect(screen.getByRole('status')).toHaveTextContent(- 'No restore points reported for this workload in the readable history.',+ 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.',);expect(screen.queryByTitle(unknownTitle)).not.toBeInTheDocument();});++ it.each(['pve-backup-enumeration', 'pbs-backup-enumeration'])(+ 'does not broaden complete %s into absence of retained snapshots',+ (source) => {+ const explanation =+ 'Only snapshots were found. A snapshot is not a separate backup, so it does not count.';+ mount({+ ...row,+ posture: 'unprotected',+ protectionPosture: {+ ...completePosture,+ state: 'unprotected',+ coverage: 'none',+ explanation,+ providerStates: [{ ...provider, source }],+ },+ });++ expect(screen.getByText(explanation)).toBeInTheDocument();+ expect(screen.getByText('History Complete')).toBeInTheDocument();+ expect(screen.getByRole('status')).toHaveTextContent(+ 'No restore-point details are visible in the current list. The posture above may use previously recorded evidence.',+ );+ expect(screen.getByTitle('No PBS snapshot or PVE backup file')).toHaveTextContent('None');+ // No lastSuccessfulPointAt is expected for a guest snapshot. Nor may the+ // notice synthesize a raw snapshot, date or completed backup from prose.+ expect(screen.queryByText('Restore evidence')).not.toBeInTheDocument();+ expect(document.body.textContent).not.toContain('No restore points reported');+ },+ );});