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.

Fix vSphere backup status presentation

rcourtmand27abf6fdab8
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 01ce3f37d8..00218ab63a 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -561,7 +561,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.
+ 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,
+ 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
+ rows without platform metadata retain the Proxmox-compatible behavior at
+ the migration boundary.
11. Extend workload drawer derivations and runtime wiring through `frontend-modern/src/components/Workloads/guestDrawerModel.ts` and `frontend-modern/src/components/Workloads/useGuestDrawerState.ts`, and extend drawer overview rendering through `frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx`, rather than rebuilding canonical guest identity, discovery routing, or drawer-local normalization inside `frontend-modern/src/components/Workloads/GuestDrawer.tsx`
Drawer history charts belong to `frontend-modern/src/components/Workloads/GuestDrawerHistory.tsx`.
History cards must let the plot area stretch to the card height instead of
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 71e06d4c1d..e80d337d76 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,43 +1,36 @@
{
"version": 1,
- "base_sha": "8165eb1066893b0fd9900e11e837d7b50aa52d92",
- "verified_at": "2026-08-13T21:54:10Z",
+ "base_sha": "14a3b8b5af276dc6d33a18098d8b80d1a131340f",
+ "verified_at": "2026-08-13T22:14:37Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/Infrastructure/resourceDetailDrawerMetricsHistoryModel.ts",
- "frontend-modern/src/components/Workloads/nodeDrawerModel.ts",
- "frontend-modern/src/components/shared/hostMetricsHistoryModel.ts",
- "frontend-modern/src/features/docker/dockerHostDrawerModel.ts"
+ "frontend-modern/src/components/Workloads/useGuestRowState.ts"
],
"content_sha256": {
- "frontend-modern/src/components/Infrastructure/resourceDetailDrawerMetricsHistoryModel.ts": "042cf5d1d89777930a9e34e15601c6a12743e453e0910641b7be809447737026",
- "frontend-modern/src/components/Workloads/nodeDrawerModel.ts": "834acdaffc82c14cc1744284bd5353905caa69cf6293775f192f2c086daef232",
- "frontend-modern/src/components/shared/hostMetricsHistoryModel.ts": "ff383009e76ebe461c0a2169fc706016b718dabdb31263dbfe152f74391e7eeb",
- "frontend-modern/src/features/docker/dockerHostDrawerModel.ts": "ca67650d119f275d8eb584902a754342ab92dc79851187e500cb751d048e8a10"
+ "frontend-modern/src/components/Workloads/useGuestRowState.ts": "51a68fb1a49eabd172482ae2f3e3087763aa772ddfe4d183b74e41838628433a"
},
"routes": [
- "/standalone/machines"
+ "/vmware/overview"
],
"viewports": [
{
- "width": 1280,
- "height": 720
+ "width": 1440,
+ "height": 1000
},
{
- "width": 390,
- "height": 844
+ "width": 768,
+ "height": 900
}
],
"states": [
- "Machines list with agent-backed rows collapsed",
- "Apollo-114 resource drawer open on Overview",
- "History selected at 24 hours with populated utilization, network I/O, disk I/O, and CPU thermals charts",
- "History selected at 1 hour in the narrow layout with the thermal chart scrolled into view"
+ "vSphere overview with the provider-unsupported Backup column hidden",
+ "vSphere overview with the Backup column explicitly enabled",
+ "vSphere overview reloaded with the enabled Backup preference persisted"
],
"interactions": [
- "Navigated to Machines and expanded Apollo-114",
- "Selected the resource History tab",
- "Changed the history range from 24 hours to 1 hour",
- "Scrolled the narrow drawer through all four stacked charts and inspected the thermal chart pixels"
+ "Opened View preferences and expanded the column chooser",
+ "Enabled Backup and confirmed all 18 vSphere VM rows rendered an unavailable dash without a red warning",
+ "Reloaded the overview and confirmed the persisted Backup column retained unavailable rather than no-backup semantics",
+ "Restored the default hidden Backup column preference"
]
}
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 008fd44eae..475a3d3e54 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -1435,6 +1435,38 @@ describe('backup column', () => {
expect(badge?.classList.contains('text-red-700')).toBe(true);
});
+ it('does not infer a backup failure for a vSphere VM when the column is hidden', () => {
+ const { container } = renderGuestRow({
+ guest: makeGuest({
+ type: 'vm',
+ workloadType: 'vm',
+ platformType: 'vmware-vsphere',
+ platformScopes: ['vmware-vsphere'],
+ lastBackup: 0,
+ }),
+ visibleColumnIds: ['name'],
+ });
+
+ expect(container.querySelector('[title="No backup found"]')).toBeNull();
+ expect(container.querySelector('[aria-label^="Backup status:"]')).toBeNull();
+ });
+
+ it('renders backup status as unavailable for a vSphere VM when the column is visible', () => {
+ const { container } = renderGuestRow({
+ guest: makeGuest({
+ type: 'vm',
+ workloadType: 'vm',
+ platformType: 'vmware-vsphere',
+ platformScopes: ['vmware-vsphere'],
+ lastBackup: 0,
+ }),
+ visibleColumnIds: ['name', 'backup'],
+ });
+
+ expect(container.querySelector('[aria-label^="Backup status:"]')).toBeNull();
+ expect(screen.getAllByText('—').length).toBeGreaterThan(0);
+ });
+
it('shows dash for app-container workloads (no backup support)', () => {
renderGuestRow({
guest: makeGuest({ type: 'app-container', workloadType: 'app-container' }),
diff --git a/frontend-modern/src/components/Workloads/useGuestRowState.ts b/frontend-modern/src/components/Workloads/useGuestRowState.ts
index 288b86a8fd..5e62410950 100644
--- a/frontend-modern/src/components/Workloads/useGuestRowState.ts
+++ b/frontend-modern/src/components/Workloads/useGuestRowState.ts
@@ -11,6 +11,7 @@ import { getShortImageName, formatBytes } from '@/utils/format';
import { getContainerRuntimeBadgeForRuntime } from '@/utils/resourceBadgePresentation';
import {
getCanonicalWorkloadId,
+ getWorkloadPlatformScopes,
getWorkloadMetricsKind,
hasDiscoverySupportForWorkload,
isDockerManagedAppContainer,
@@ -121,7 +122,16 @@ export function useGuestRowState(props: GuestRowProps) {
const supportsBackup = createMemo(() => {
const type = workloadType();
- return type === 'vm' || type === 'system-container';
+ if (type !== 'vm' && type !== 'system-container') return false;
+
+ // The shared backup scalar is currently sourced only from Proxmox
+ // vzdump/PBS inventory. An API-backed VM from another provider (notably
+ // vSphere) has no value here because the provider does not expose that
+ // contract; absence must remain unknown rather than becoming "never".
+ // Rows without canonical platform metadata are the legacy Proxmox shape
+ // and retain their existing backup presentation during migration.
+ const platformScopes = getWorkloadPlatformScopes(props.guest);
+ return platformScopes.length === 0 || platformScopes.includes('proxmox-pve');
});
const appContainerRuntimeBadge = createMemo(() => {