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 retained backup controls with unknown evidence

pulse-triage[bot]e6861494216e
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 0cafdf2165..5ce796356a 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -3290,15 +3290,18 @@ describe('backup column', () => {
expect(badge?.className).not.toContain('text-red');
});
- it('reserves red for supported guests without a backup', () => {
+ it('keeps missing supported-guest backup evidence cautionary rather than declaring absence', () => {
const { container } = renderGuestRow({
guest: makeGuest({ type: 'qemu', workloadType: 'vm', lastBackup: 0 }),
visibleColumnIds: ['name', 'backup'],
});
- expect(screen.getByText('None')).toBeTruthy();
- const badge = container.querySelector('[aria-label="Backup status: no backup found"]');
+ expect(screen.getByText('Unknown')).toBeTruthy();
+ const badge = container.querySelector(
+ '[aria-label="Backup status: no completed backup reported"]',
+ );
expect(badge).toBeTruthy();
- expect(badge?.classList.contains('text-red-700')).toBe(true);
+ expect(badge?.classList.contains('text-yellow-700')).toBe(true);
+ expect(badge?.className).not.toContain('red');
});
it('keeps positive backup coverage visible when the backup column is hidden', () => {
@@ -3331,7 +3334,7 @@ describe('backup column', () => {
});
const indicator = container.querySelector(
- '[aria-label="Backup running now · no completed backup found"]',
+ '[aria-label="Backup running now · no completed backup reported"]',
);
expect(indicator).toBeTruthy();
expect(indicator?.classList.contains('text-blue-600')).toBe(true);
@@ -3349,7 +3352,7 @@ describe('backup column', () => {
visibleColumnIds: ['name'],
});
- expect(container.querySelector('[title="No backup found"]')).toBeNull();
+ expect(container.querySelector('[title="No completed backup reported"]')).toBeNull();
expect(container.querySelector('[aria-label^="Backup status:"]')).toBeNull();
});
diff --git a/frontend-modern/src/components/Workloads/__tests__/backupTimeEvidence.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/backupTimeEvidence.contract.test.tsx
index 9ae739dbc9..ad9bb1b318 100644
--- a/frontend-modern/src/components/Workloads/__tests__/backupTimeEvidence.contract.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/backupTimeEvidence.contract.test.tsx
@@ -107,7 +107,7 @@ describe('backup time evidence', () => {
expect(badge).not.toHaveAccessibleName(/unavailable/);
expect(badge.className).toContain(running ? 'blue' : 'green');
setTimestamp(0);
- expect(badge).toHaveTextContent(running ? 'Running' : 'None');
+ expect(badge).toHaveTextContent(running ? 'Running' : 'Unknown');
expect(badge).toHaveAccessibleName(/no (completed )?backup/);
},
);