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.

Keep policy-withdrawal proof distinct from count scope

pulse-triage[bot]42aec9044840
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
index 0a816d6aee..df47592504 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
@@ -804,8 +804,10 @@ export const ProxmoxBackupsTable: Component<{
<>
<span class="font-medium">
Health counts cover all targets and backup locations, regardless of filters.
- </span>{' '}
- {getBackupPostureRuleText(protectionPostures.policy())}
+ </span>
+ <Show when={getBackupPostureRuleText(protectionPostures.policy())}>
+ {(rule) => <span data-coverage-posture-rule> {rule()}</span>}
+ </Show>
</>
}
tail={
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index a4e96568e0..38ed5fecab 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -1673,7 +1673,7 @@ describe('Coverage withdraws failed protection assessments', () => {
expect(detail).not.toHaveTextContent('A current verified backup is available.');
expect(detail).toHaveTextContent('Restore evidence');
expect(within(detail).getByText('PVE file', { exact: true })).toBeInTheDocument();
- expect(document.querySelector('[data-coverage-strip-footnote]')).toBeNull();
+ expect(document.querySelector('[data-coverage-posture-rule]')).toBeNull();
expect(document.body).not.toHaveTextContent('SYNTHETIC_PRIVATE_VALUE');
const beforePVE = sourceCalls('pve').length;
@@ -1720,7 +1720,7 @@ describe('Coverage withdraws failed protection assessments', () => {
expect(detail).not.toHaveTextContent('History Complete');
expect(detail).toHaveTextContent('Restore evidence');
expect(within(detail).getByText('PVE file', { exact: true })).toBeInTheDocument();
- expect(document.querySelector('[data-coverage-strip-footnote]')).toBeNull();
+ expect(document.querySelector('[data-coverage-posture-rule]')).toBeNull();
const pending = deferred<typeof accepted>();
apiFetchJSONMock.mockReturnValue(pending.promise);
@@ -1743,7 +1743,7 @@ describe('Coverage withdraws failed protection assessments', () => {
expect(detail).toHaveTextContent('The current backup verification needs attention.');
expect(screen.queryByText(/Protection posture is unavailable/)).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: '1 attention' })).toBeInTheDocument();
- expect(document.querySelector('[data-coverage-strip-footnote]')).not.toBeNull();
+ expect(document.querySelector('[data-coverage-posture-rule]')).not.toBeNull();
expect(apiFetchMock.mock.calls.filter(([url]) => url === '/api/backups/pve')).toHaveLength(2);
expect(apiFetchMock.mock.calls.filter(([url]) => url === '/api/backups/pbs')).toHaveLength(2);
} finally {