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.

Show healthy backup shields in compact rows

rcourtmana73abe909cac
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index eccd362ae4..2c063c18fc 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -640,9 +640,14 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.
the shared `getBackupInfo` / `workloadGuestPresentation` vocabulary:
existing stale or overdue backups stay amber, while red is reserved for a
supported guest with no recorded backup. The compact row must not infer a
- red failure state from a fixed backup age. Backup support must be derived
- from the row's canonical platform scopes before classifying an absent
- scalar: `proxmox-pve` rows may consume the current `lastBackup` contract,
+ red failure state from a fixed backup age. When the dedicated Backup column
+ is hidden, supported non-template guests retain one fixed-size shield in
+ the identity cell for every state: green for fresh completed coverage,
+ amber for stale or overdue coverage, red for no recorded backup, and blue
+ for a backup currently running. Positive coverage must not disappear merely
+ because it is healthy. Backup support must be derived from the row's
+ canonical platform scopes before classifying an absent scalar: `proxmox-pve`
+ rows may consume the current `lastBackup` contract,
while API-backed providers without that contract, including
`vmware-vsphere`, render no compact warning and an unavailable cell rather
than converting missing evidence into "never backed up." Legacy workload
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index b8ec31b1fe..21cb243686 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,11 +1,11 @@
{
"version": 1,
- "base_sha": "1fbf10e2c2fc9757f1636550b504218923280d01",
- "verified_at": "2026-08-24T10:43:10Z",
+ "base_sha": "78be1b1c2a33c6d5df87bc08098c4ef67132070f",
+ "verified_at": "2026-08-24T10:59:15Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx"],
+ "changed_paths": ["frontend-modern/src/components/Workloads/GuestRowCells.tsx"],
"content_sha256": {
- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "259b90d13dff95fe03418f4da14cba4cd1012ba58ab459be18f329df45a0a210"
+ "frontend-modern/src/components/Workloads/GuestRowCells.tsx": "e745e1cf5875af055c2846b5ae4638be5a71ab6c08a5333b99cf700c6c05b806"
},
"routes": ["/proxmox"],
"viewports": [
@@ -19,16 +19,15 @@
}
],
"states": [
- "managed hot-dev mock estate with the bounded Proxmox Nodes preview visible",
- "phone node preview collapsed to six rows",
- "phone node preview expanded through the continuation footer",
- "desktop node preview collapsed to twelve rows"
+ "managed hot-dev mock estate with the compact Proxmox Guests table visible",
+ "phone identity cells showing fresh, stale or overdue, missing, and running backup shields",
+ "desktop Guests table showing the existing dedicated Backup column"
],
"interactions": [
- "confirmed the final phone row fades into a full-width footer labelled Show all 50 nodes with 44 more below",
- "clicked the phone footer and confirmed it expanded in one action, removed the fade, and changed to Show fewer nodes",
- "collapsed the preview and confirmed the desktop footer reports 38 more below after twelve visible rows",
- "confirmed the desktop node card has no new horizontal overflow",
+ "confirmed fresh phone rows retain a fixed-size green checked shield when the Backup column is hidden",
+ "confirmed stale or overdue rows remain amber, missing backups remain red, and an active backup is blue",
+ "confirmed shield tooltips and accessible labels retain the completed-backup age or running state",
+ "confirmed the desktop Backup column continues to show its green healthy state and the table has no horizontal overflow",
"restored the browser viewport after verification"
]
}
diff --git a/frontend-modern/src/components/Workloads/GuestRowCells.tsx b/frontend-modern/src/components/Workloads/GuestRowCells.tsx
index 91232edaee..060aa61e3e 100644
--- a/frontend-modern/src/components/Workloads/GuestRowCells.tsx
+++ b/frontend-modern/src/components/Workloads/GuestRowCells.tsx
@@ -13,6 +13,36 @@ import {
type WorkloadsGuestBackupDisplayStatus,
} from '@/utils/workloadGuestPresentation';
+function BackupShieldIcon(props: { icon: 'check' | 'warning' | 'x' | 'running'; pulse?: boolean }) {
+ return (
+ <svg
+ class="h-3.5 w-3.5 flex-shrink-0"
+ classList={{ 'animate-pulse': props.pulse }}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ stroke-width="2"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ aria-hidden="true"
+ >
+ <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
+ <Show when={props.icon === 'check'}>
+ <path d="m9 12 2 2 4-4" />
+ </Show>
+ <Show when={props.icon === 'warning'}>
+ <path d="M12 8v4M12 16h.01" />
+ </Show>
+ <Show when={props.icon === 'x'}>
+ <path d="M10 10l4 4M14 10l-4 4" />
+ </Show>
+ <Show when={props.icon === 'running'}>
+ <path d="M8 12h.01M12 12h.01M16 12h.01" />
+ </Show>
+ </svg>
+ );
+}
+
function BackupIndicator(props: {
lastBackup: string | number | null | undefined;
isTemplate: boolean;
@@ -24,15 +54,10 @@ function BackupIndicator(props: {
const backupInfo = createMemo(() =>
getBackupInfo(props.lastBackup, alertsActivation.getBackupThresholds()),
);
- const config = createMemo(() => getWorkloadsGuestBackupStatusPresentation(backupInfo().status));
-
- // The indicator flags a problem (no fresh completed backup) and stays
- // truthful while a backup is running - only a COMPLETED backup clears it.
- // The running state is surfaced in the tooltip and the Backup column badge.
- const shouldShow = createMemo(() => {
- const status = backupInfo().status;
- return status === 'stale' || status === 'overdue' || status === 'never';
- });
+ const displayStatus = createMemo<WorkloadsGuestBackupDisplayStatus>(() =>
+ props.backupRunning ? 'running' : backupInfo().status,
+ );
+ const config = createMemo(() => getWorkloadsGuestBackupStatusPresentation(displayStatus()));
const tooltipText = createMemo(() => {
const info = backupInfo();
@@ -40,40 +65,13 @@ function BackupIndicator(props: {
});
return (
- <Show when={shouldShow()}>
- <span class={`flex-shrink-0 ${config().color}`} title={tooltipText()}>
- <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="currentColor">
- <path
- d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- <Show when={config().icon === 'warning'}>
- <path
- d="M12 8v4M12 16h.01"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- </Show>
- <Show when={config().icon === 'x'}>
- <path
- d="M10 10l4 4M14 10l-4 4"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- />
- </Show>
- </svg>
- </span>
- </Show>
+ <span
+ class={`flex-shrink-0 ${config().color}`}
+ title={tooltipText()}
+ aria-label={tooltipText()}
+ >
+ <BackupShieldIcon icon={config().icon} pulse={displayStatus() === 'running'} />
+ </span>
);
}
@@ -358,31 +356,7 @@ function BackupStatusCell(props: {
onMouseLeave={tip.onMouseLeave}
aria-label={ariaLabel()}
>
- <svg
- class="h-3.5 w-3.5 flex-shrink-0"
- classList={{ 'animate-pulse': displayStatus() === 'running' }}
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
-
- <Show when={config().icon === 'check'}>
- <path d="m9 12 2 2 4-4" />
- </Show>
- <Show when={config().icon === 'warning'}>
- <path d="M12 8v4M12 16h.01" />
- </Show>
- <Show when={config().icon === 'x'}>
- <path d="M10 10l4 4M14 10l-4 4" />
- </Show>
- <Show when={config().icon === 'running'}>
- <path d="M8 12h.01M12 12h.01M16 12h.01" />
- </Show>
- </svg>
+ <BackupShieldIcon icon={config().icon} pulse={displayStatus() === 'running'} />
<Show when={displayStatus() !== 'fresh'}>
<span>{badgeLabel()}</span>
</Show>
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index b15d2ec28f..fe809634b2 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -1589,6 +1589,42 @@ describe('backup column', () => {
expect(badge?.classList.contains('text-red-700')).toBe(true);
});
+ it('keeps positive backup coverage visible when the backup column is hidden', () => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date('2026-05-26T12:00:00Z'));
+
+ const { container } = renderGuestRow({
+ guest: makeGuest({
+ type: 'qemu',
+ workloadType: 'vm',
+ lastBackup: Date.parse('2026-05-26T07:00:00Z'),
+ }),
+ visibleColumnIds: ['name'],
+ });
+
+ const indicator = container.querySelector('[aria-label="Last backup: 5 hours ago"]');
+ expect(indicator).toBeTruthy();
+ expect(indicator?.classList.contains('text-green-600')).toBe(true);
+ });
+
+ it('shows active backup work in blue when the backup column is hidden', () => {
+ const { container } = renderGuestRow({
+ guest: makeGuest({
+ type: 'qemu',
+ workloadType: 'vm',
+ lastBackup: 0,
+ backupInProgress: true,
+ }),
+ visibleColumnIds: ['name'],
+ });
+
+ const indicator = container.querySelector(
+ '[aria-label="Backup running now · no completed backup found"]',
+ );
+ expect(indicator).toBeTruthy();
+ expect(indicator?.classList.contains('text-blue-600')).toBe(true);
+ });
+
it('does not infer a backup failure for a vSphere VM when the column is hidden', () => {
const { container } = renderGuestRow({
guest: makeGuest({