Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Align backup chronology controls with observed date evidence

pulse-triage[bot]fe2ef8fcebaf
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index e27e0b532c..5a88610421 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -1067,10 +1067,11 @@ describe('backup-date-evidence connected inventory', () => {
await waitFor(() =>
expect(document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')).toHaveLength(2),
);
- expect(screen.getByRole('status')).toHaveTextContent('remain listed');
- expect(screen.getByRole('status')).toHaveTextContent(
- 'excluded from the activity chart and day filters',
+ const warning = screen.getByText(
+ /Restore points with unavailable or future dates remain listed/,
);
+ expect(warning).toHaveAttribute('role', 'status');
+ expect(warning).toHaveTextContent('excluded from the activity chart and day filters');
expect(screen.getByText(/No dated backup activity/)).toBeInTheDocument();
const future = [...document.querySelectorAll('[data-proxmox-backup-row="recoverable"]')].find(
(row) => row.textContent?.includes('PBS'),
diff --git a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
index 8a827e04c5..20d94dee63 100644
--- a/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
+++ b/frontend-modern/src/features/proxmox/__tests__/proxmoxBackupActivityPresentation.test.ts
@@ -179,12 +179,13 @@ describe('proxmoxBackupActivityPresentation', () => {
expect(feb10.total).toBe(2);
});
- it('includes the window-start edge and excludes anything at or past start-of-tomorrow', () => {
+ it('includes the window-start and exactly-now edges but excludes future activity even within today', () => {
const todayStart = localMs(2026, 1, 13);
const items: ActivityItem[] = [
{ ts: localMs(2026, 1, 6, 23, 59), kind: 'ok' },
{ ts: localMs(2026, 1, 7, 0, 0), kind: 'ok' },
{ ts: todayStart, kind: 'failed' },
+ { ts: NOW.getTime(), kind: 'running' },
{ ts: todayStart + DAY_MS - 1, kind: 'running' },
{ ts: todayStart + DAY_MS, kind: 'ok' },
{ ts: localMs(2026, 1, 14, 12, 0), kind: 'ok' },
@@ -194,6 +195,9 @@ describe('proxmoxBackupActivityPresentation', () => {
expect(totals.get(dateKey(2026, 1, 7))).toBe(1);
expect(totals.get(dateKey(2026, 1, 13))).toBe(2);
+ expect(
+ timeline.points.find((point) => point.key === dateKey(2026, 1, 13))!.counts.running,
+ ).toBe(1);
expect(totals.get(dateKey(2026, 1, 6))).toBeUndefined();
expect(totals.get(dateKey(2026, 1, 14))).toBeUndefined();
});