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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Order the Backups page: health, backup servers, restore points
rcourtman7c566156d68a
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 3fc389f753..54264e156a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -523,6 +523,15 @@ desktop/narrow browser journeys cover the shared filter rail, keyboard/touchday selection, metric switching, empty matches and recovery. No shared-filter,route, navigation, access or backup operation changes.+### Backup view tabs head the restore points, not the page (2 November 2026)++On the Backups page the shared `PlatformSectionTabs` ("Backup views": By date,+Coverage) now sit at the top of the restore-point block, below the Backup+health and Backup jobs cards and the Backup servers table, so a tab reads as+switching the list it heads rather than the whole page. The tabs keep their+`nav` landmark and active-route state, so recovery focus that lands on the+active view still finds it inside the inspection region.+### Backup servers table drops its host columns (2 November 2026)`ProxmoxBackupServersTable` no longer renders Version, CPU, Memory or Uptimediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex ab264aad8c..5e04176f2b 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -5069,6 +5069,30 @@ observed daily growth. The page owns the live alert store and passes a lookupthrough `ProxmoxBackupsTable`'s `datastoreAlerts`, so the table renders withoutan alerts provider and shows no forecast when none is given.+### Backups page orders its answers: health, servers, restore points (2 November 2026)++The Backups page now reads in the order people ask: Backup health beside+Backup jobs (are my backups protected, did last night run), then the Backup+servers table (is my PBS reachable, is its datastore filling), then the+restore points: the By date / Coverage tabs, the activity chart, filters and+list. The view tabs head the restore points only; health and jobs belong to the+page and render the same in either view.++The Backup servers table stays mounted through inventory loading, failure and+retries, since it reads `/api/resources`, not either backup inventory. The+single loading or all-sources-failed state sits above it in the summary's place,+and the restore-point block appears only when an inventory is readable or a+source failure needs explaining. The posture-unavailable and unread-sources+notices stay with the health card they qualify; the unresolved saved-location+notice moves with the list it empties.++Tapping a health exception still lands on Coverage filtered to those guests.+Because the list now sits below the servers, a tap scrolls the restore points+into view when their top is below the fold (phones), honouring reduced motion,+and leaves the page where it is when the list already shows; clearing a filter+never scrolls. `ProxmoxBackupsTable.test.tsx` pins the section order and both+scroll cases.+### Backup jobs show 14 days of retained outcomes beside Backup health (2 November 2026)A Backup jobs card answers "did last night's backups run, and is thatdiff --git a/frontend-modern/browser-verification/36e02afb08c02394.json b/frontend-modern/browser-verification/36e02afb08c02394.jsonnew file mode 100644index 0000000000..85887cccae--- /dev/null+++ b/frontend-modern/browser-verification/36e02afb08c02394.json@@ -0,0 +1,39 @@+{+ "version": 1,+ "base_sha": "6dfcfed1e1541752938e23b5d6df8aa1aaa6cfd8",+ "verified_at": "2026-11-02T11:45:17Z",+ "result": "passed",+ "changed_paths": [+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx"+ ],+ "content_sha256": {+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx": "721a507e3f0b70fb5dff3b3d93bc3e0a733b7fb2ab80283b887ee20eadb96ccd"+ },+ "routes": [+ "/proxmox/backups/date",+ "/proxmox/backups/coverage"+ ],+ "viewports": [+ {+ "width": 1440,+ "height": 1000+ },+ {+ "width": 375,+ "height": 812+ }+ ],+ "states": [+ "private mock-mode backend built from this branch on pulse-dev",+ "By date page order at desktop and phone, and an exception tap on each",+ "dark theme, desktop and phone layouts"+ ],+ "interactions": [+ "signed in to the private mock backend built from this branch and opened Proxmox > Backups By date at 1440x1000 and 375x812",+ "desktop: Backup health (457 of 929 protected) beside Backup jobs at the top, the Backup servers table below them, then the By date / Coverage tabs, the activity chart and the search, all in order down the page",+ "phone: health, jobs, servers, then the restore points starting at the fold (811 px in an 812 px viewport)",+ "tapped '86 no successful backup' on phone: the page moved to Coverage filtered to reason=no-backup and the restore points scrolled up to 73 px from the top, showing the filtered list",+ "tapped the same exception on desktop: Coverage filtered and the page did not scroll because the list was already on screen",+ "no horizontal page overflow at either width"+ ]+}diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsxindex d8d5c5f95d..a7b19d47ec 100644--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx@@ -149,6 +149,7 @@ export const ProxmoxBackupsTable: Component<{datastoreAlerts?: (resourceIds: string[]) => Alert[];}> = (props) => {let inspection: HTMLDivElement | undefined;+ let restorePoints: HTMLDivElement | undefined;// Recovering a read removes its notice (or the whole-inventory error).// Hand off only focus owned by that retiring content, never focus the// operator has moved elsewhere or focus after leaving this surface.@@ -197,6 +198,9 @@ export const ProxmoxBackupsTable: Component<{const hasReadableInventory = () =>inventorySources.some(({ query }) => query.resolvedOnce() && !query.error());const allInventoriesFailed = () => inventorySources.every(({ query }) => Boolean(query.error()));+ // Something to show: a readable inventory, or a failure notice to explain.+ const inventoryShown = () =>+ hasReadableInventory() || inventorySources.some(({ query }) => Boolean(query.error()));const retryAllInventories = () => {if (inventorySources.some(({ query }) => query.loading())) return;void Promise.all([backups.refetch(), pbsBackups.refetch(), protectionPostures.refetch()]);@@ -575,8 +579,23 @@ export const ProxmoxBackupsTable: Component<{});const exceptionGroupPressed = (key: string): boolean =>view() === 'coverage' && exceptionFilter() === key;+ // Restore points sit below the summary and the backup servers. On a phone an+ // exception tap would otherwise filter a list the reader cannot see, so+ // bring it into view; when it already shows, leave the page where it is.+ const revealRestorePoints = (): void => {+ queueMicrotask(() => {+ const target = restorePoints;+ if (!target?.isConnected || typeof target.scrollIntoView !== 'function') return;+ if (target.getBoundingClientRect().top < window.innerHeight - 96) return;+ const reduceMotion =+ typeof window.matchMedia === 'function' &&+ window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ target.scrollIntoView({ block: 'start', behavior: reduceMotion ? 'auto' : 'smooth' });+ });+ };const selectExceptionGroup = (key: string): void => {const next = exceptionGroupPressed(key) ? null : key;+ if (next) revealRestorePoints();if (routeView() === 'coverage') {setSearchParams({@@ -829,18 +848,6 @@ export const ProxmoxBackupsTable: Component<{</Show>)}</For>- {/* Server health comes from /api/resources, not either backup inventory.- Keep this owner mounted through loading, failure and ordinary retries. */}- <Show when={(props.servers?.length ?? 0) > 0}>- <ProxmoxBackupServersTable- servers={props.servers ?? []}- backups={pbsArtifacts()}- datastoreAlerts={props.datastoreAlerts}- backupInventoryState={- pbsBackups.error() ? 'unavailable' : pbsBackups.resolvedOnce() ? 'available' : 'loading'- }- />- </Show><Showwhen={!allInventoriesFailed()}fallback={@@ -854,9 +861,7 @@ export const ProxmoxBackupsTable: Component<{}><Show- when={- hasReadableInventory() || inventorySources.some(({ query }) => Boolean(query.error()))- }+ when={inventoryShown()}fallback={<PlatformTableLoadingStatetitle="Loading Proxmox backup inventory"@@ -865,7 +870,6 @@ export const ProxmoxBackupsTable: Component<{}><div ref={retainEvidenceFocus} class="space-y-3">- <PlatformSectionTabs tabs={backupViewTabs()} active={view()} ariaLabel="Backup views" /><Show when={protectionPostures.response.error}><divref={retainRecoveryFocus}@@ -890,16 +894,11 @@ export const ProxmoxBackupsTable: Component<{</div></Show>- <Show when={locationSelection().unresolved}>- <div role="status" class={BACKUP_READ_NOTICE_CLASS}>- The saved backup location cannot be identified uniquely in the current inventory.- Choose a backup location again or clear the filter. No restore points are shown for- this filter.- </div>- </Show>-- {/* The health and backup-job cards render identically in both- route-backed views, side by side once there is room. */}+ {/* The page answers in the order people ask: are my backups+ protected and did last night run (health beside jobs once+ there is room), is my backup server OK, then the restore+ points themselves. Health and jobs belong to the page, not to+ either restore-point view. */}<div class="grid gap-3 xl:[&:has([data-backup-jobs])]:grid-cols-[minmax(0,3fr)_minmax(0,2fr)]"><ProxmoxBackupsCoverageStriptitle="Backup health"@@ -948,234 +947,269 @@ export const ProxmoxBackupsTable: Component<{</div>)}</Show>+ </div>+ </Show>+ </Show>+ {/* Server health comes from /api/resources, not either backup inventory.+ Keep this owner mounted through loading, failure and ordinary retries,+ between the summary above and the restore points below. */}+ <Show when={(props.servers?.length ?? 0) > 0}>+ <ProxmoxBackupServersTable+ servers={props.servers ?? []}+ backups={pbsArtifacts()}+ datastoreAlerts={props.datastoreAlerts}+ backupInventoryState={+ pbsBackups.error() ? 'unavailable' : pbsBackups.resolvedOnce() ? 'available' : 'loading'+ }+ />+ </Show>+ {/* Restore points come last: By date and Coverage, reached by search or+ by tapping an exception above. Same readiness as the summary, whose+ loading or failure state already stands in for both. */}+ <Show when={!allInventoriesFailed() && inventoryShown()}>+ <div+ ref={(element) => {+ restorePoints = element;+ retainEvidenceFocus(element);+ }}+ class="space-y-3"+ data-backup-restore-points+ >+ <PlatformSectionTabs tabs={backupViewTabs()} active={view()} ariaLabel="Backup views" />+ <Show when={locationSelection().unresolved}>+ <div role="status" class={BACKUP_READ_NOTICE_CLASS}>+ The saved backup location cannot be identified uniquely in the current inventory.+ Choose a backup location again or clear the filter. No restore points are shown for+ this filter.+ </div>+ </Show>- <Show when={view() === 'date' && recoveryModel().recoverableArtifacts.length > 0}>- <Show- when={scopedRecoverableArtifacts().some(- (artifact) => artifact.createdMs === undefined,- )}- >- <p class="text-xs text-amber-700 dark:text-amber-300" role="status">- Backup entries with unavailable or future dates remain listed. Their ages are- unknown. They are excluded from the activity chart and day filters.- </p>- </Show>- <Show- when={hasRecoverableActivityInRange()}- fallback={- <div- ref={retainEvidenceFocus}- class="flex flex-col gap-2 rounded-md border border-border-subtle px-3 py-3 text-xs text-muted sm:flex-row sm:items-center sm:justify-between"- >- <span>- No completed restore points with known dates in the selected {chartRange()}- -day window.- </span>- <div class="flex items-center gap-2">- <button- type="button"- class="font-medium text-blue-600 hover:underline dark:text-blue-300"- onClick={() => setChartRange(90)}- >- Show 90 days- </button>- <span aria-hidden="true">·</span>- <button- type="button"- class="font-medium text-blue-600 hover:underline dark:text-blue-300"- onClick={() => setChartRange(365)}- >- Show 1 year- </button>- </div>+ <Show when={view() === 'date' && recoveryModel().recoverableArtifacts.length > 0}>+ <Show+ when={scopedRecoverableArtifacts().some(+ (artifact) => artifact.createdMs === undefined,+ )}+ >+ <p class="text-xs text-amber-700 dark:text-amber-300" role="status">+ Backup entries with unavailable or future dates remain listed. Their ages are+ unknown. They are excluded from the activity chart and day filters.+ </p>+ </Show>+ <Show+ when={hasRecoverableActivityInRange()}+ fallback={+ <div+ ref={retainEvidenceFocus}+ class="flex flex-col gap-2 rounded-md border border-border-subtle px-3 py-3 text-xs text-muted sm:flex-row sm:items-center sm:justify-between"+ >+ <span>+ No completed restore points with known dates in the selected {chartRange()}+ -day window.+ </span>+ <div class="flex items-center gap-2">+ <button+ type="button"+ class="font-medium text-blue-600 hover:underline dark:text-blue-300"+ onClick={() => setChartRange(90)}+ >+ Show 90 days+ </button>+ <span aria-hidden="true">·</span>+ <button+ type="button"+ class="font-medium text-blue-600 hover:underline dark:text-blue-300"+ onClick={() => setChartRange(365)}+ >+ Show 1 year+ </button></div>- }- >- <div ref={retainEvidenceFocus} class="space-y-1">- <Show when={recoverableMetricMode() === 'volume' && unknownVolumeCount() > 0}>- <p class="text-xs text-amber-700 dark:text-amber-300" role="status">- Sizes are unavailable for {unknownVolumeCount()} completed restore{' '}- {unknownVolumeCount() === 1 ? 'point' : 'points'} in this window. Bars show- known volume only. Amber marks days with unknown sizes, not zero volume.- </p>- </Show>- <BackupActivityChart- title={- recoverableMetricMode() === 'volume'- ? 'Known restore volume per day'- : 'Completed restore points per day'- }- noun="restore point"- segmentKinds={RECOVERABLE_SEGMENT_KINDS}- range={chartRange}- onRangeChange={setChartRange}- timeline={recoverableTimeline}- selectedDateKey={selectedDateKey}- onToggleDay={toggleDay}- metricToggle={{- mode: recoverableMetricMode,- onChange: setRecoverableMetricMode,- }}- /></div>- </Show>- </Show>-- <FilterBar- role="group"- ariaLabel="Backups filters"- isMobile={isMobile}- search={{- value: search,- setValue: setSearch,- placeholder: 'Search backups by workload, node, source, or status',- }}- filters={buildBackupsFilters()}- showClearAll={hasActiveBackupsFilters}- onClearAll={resetBackupsFilters}- searchTrailing={- <Show when={view() === 'date' && selectedDateKey() !== null}>- <button- type="button"- onClick={() => setSelectedDateKey(null)}- class="inline-flex items-center gap-1 rounded-full border border-blue-300 bg-blue-50 px-2 py-0.5 text-[11px] font-medium text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900/30 dark:text-blue-200 dark:hover:bg-blue-900/50"- aria-label="Clear date filter"- >- <span class="uppercase tracking-wide text-[9px] text-blue-600 dark:text-blue-300">- Date- </span>- <span class="font-mono tabular-nums">- {getRecoveryFilterDateLabel(selectedDateKey()!)}- </span>- <span aria-hidden="true">×</span>- </button>- </Show>}- trailingControls={- <PlatformResourceCounter- visible={view() === 'date' ? visibleRecoverableCount() : visibleLiveCount()}- total={view() === 'date' ? totalRecoverableCount() : liveTotalCount()}- rowNoun={- view() === 'date'- ? inventoryIncomplete()- ? 'backup entries read'- : 'backup entries'- : 'targets'+ >+ <div ref={retainEvidenceFocus} class="space-y-1">+ <Show when={recoverableMetricMode() === 'volume' && unknownVolumeCount() > 0}>+ <p class="text-xs text-amber-700 dark:text-amber-300" role="status">+ Sizes are unavailable for {unknownVolumeCount()} completed restore{' '}+ {unknownVolumeCount() === 1 ? 'point' : 'points'} in this window. Bars show+ known volume only. Amber marks days with unknown sizes, not zero volume.+ </p>+ </Show>+ <BackupActivityChart+ title={+ recoverableMetricMode() === 'volume'+ ? 'Known restore volume per day'+ : 'Completed restore points per day'}+ noun="restore point"+ segmentKinds={RECOVERABLE_SEGMENT_KINDS}+ range={chartRange}+ onRangeChange={setChartRange}+ timeline={recoverableTimeline}+ selectedDateKey={selectedDateKey}+ onToggleDay={toggleDay}+ metricToggle={{+ mode: recoverableMetricMode,+ onChange: setRecoverableMetricMode,+ }}/>- }- />-- <Show when={view() === 'date'}>- <ProxmoxRecoverableTable- artifacts={filteredRecoverableArtifacts()}- hasAnyArtifacts={recoveryModel().recoverableArtifacts.length > 0}- emptyIcon={props.emptyIcon}- emptyTitle={- inventoryIncomplete() ? 'Backup inventory is incomplete' : 'No backups yet'- }- emptyDescription={- inventoryIncomplete()- ? 'Some backup sources are still loading or unavailable. Missing restore points do not mean no backups exist.'- : 'PBS snapshots, PVE backup files, and guest snapshots will appear here once backups run.'- }- sortKey={recoverableSortKey}- sortDirection={recoverableSortDirection}- onSort={handleRecoverableSort}- sizeMaxBytes={recoverableSizeMaxBytes()}- groupByDay- showWorkloadConnection={showWorkloadConnection()}- showSourceConnection={showSourceConnection()}- retainInspectionFocus={retainEvidenceFocus}- />+ </div></Show>+ </Show>- <Show when={view() === 'coverage'}>- <Show when={evidenceLocationLabel()}>- {(label) => (- <InlineNotice- tone="info"- role="note"- aria-label="Backup location scope"- class="text-xs whitespace-normal wrap-anywhere"- >- Backup ages and restore evidence below use {label()}. Protection assessments and- task history are workload-wide, not a rating of this location.- </InlineNotice>- )}+ <FilterBar+ role="group"+ ariaLabel="Backups filters"+ isMobile={isMobile}+ search={{+ value: search,+ setValue: setSearch,+ placeholder: 'Search backups by workload, node, source, or status',+ }}+ filters={buildBackupsFilters()}+ showClearAll={hasActiveBackupsFilters}+ onClearAll={resetBackupsFilters}+ searchTrailing={+ <Show when={view() === 'date' && selectedDateKey() !== null}>+ <button+ type="button"+ onClick={() => setSelectedDateKey(null)}+ class="inline-flex items-center gap-1 rounded-full border border-blue-300 bg-blue-50 px-2 py-0.5 text-[11px] font-medium text-blue-700 transition-colors hover:bg-blue-100 dark:border-blue-700 dark:bg-blue-900/30 dark:text-blue-200 dark:hover:bg-blue-900/50"+ aria-label="Clear date filter"+ >+ <span class="uppercase tracking-wide text-[9px] text-blue-600 dark:text-blue-300">+ Date+ </span>+ <span class="font-mono tabular-nums">+ {getRecoveryFilterDateLabel(selectedDateKey()!)}+ </span>+ <span aria-hidden="true">×</span>+ </button></Show>- <ProxmoxCoverageTable- rows={liveCoverageRows()}- hasAnyRows={liveTotalCount() > 0}- emptyIcon={props.emptyIcon}- emptyTitle="No backup target coverage"- emptyDescription="VM, container, and host restore posture will appear here once backup data exists."- sortKey={coverageSortKey}- sortDirection={coverageSortDirection}- onSort={handleCoverageSort}- expandedKey={expandedCoverageKey()}- onToggleExpand={toggleCoverageExpansion}- retainInspectionFocus={retainEvidenceFocus}- showTaskColumn={coverageHasTask()}- showWorkloadConnection={showWorkloadConnection()}- evidenceLocationLabel={evidenceLocationLabel()}- historyReadIncomplete={- inventoryIncomplete() ||- !protectionPostures.resolvedOnce() ||- Boolean(protectionPostures.response.error)+ }+ trailingControls={+ <PlatformResourceCounter+ visible={view() === 'date' ? visibleRecoverableCount() : visibleLiveCount()}+ total={view() === 'date' ? totalRecoverableCount() : liveTotalCount()}+ rowNoun={+ view() === 'date'+ ? inventoryIncomplete()+ ? 'backup entries read'+ : 'backup entries'+ : 'targets'}/>+ }+ />- <Show when={orphanedTotalCount() > 0}>- <div ref={retainEvidenceFocus} class="rounded-lg border border-border-subtle">- <button- type="button"- onClick={() => setShowOrphaned((v) => !v)}- class="flex w-full flex-wrap items-center justify-between gap-2 px-3 py-2 text-left"- aria-expanded={showOrphaned()}- >- <span class="flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted">- <ChevronRightIcon- class={`h-3.5 w-3.5 transition-transform ${showOrphaned() ? 'rotate-90' : ''}`}- aria-hidden="true"- />- {orphanedTotalCount()} unmatched{' '}- {orphanedTotalCount() === 1 ? 'backup' : 'backups'}- </span>- <span class="w-full text-[11px] text-muted sm:w-auto">- No unambiguous inventory match- </span>- </button>- <Show when={showOrphaned()}>- <div class="border-t border-border-subtle p-2">- <ProxmoxCoverageTable- rows={orphanedCoverageRows()}- hasAnyRows={orphanedTotalCount() > 0}- emptyIcon={props.emptyIcon}- emptyTitle="No unmatched backups"- emptyDescription="Backups without an unambiguous live guest match will appear here."- sortKey={coverageSortKey}- sortDirection={coverageSortDirection}- onSort={handleCoverageSort}- expandedKey={expandedCoverageKey()}- onToggleExpand={toggleCoverageExpansion}- retainInspectionFocus={retainEvidenceFocus}- showTaskColumn={coverageHasTask()}- showWorkloadConnection={showWorkloadConnection()}- evidenceLocationLabel={evidenceLocationLabel()}- historyReadIncomplete={- inventoryIncomplete() ||- !protectionPostures.resolvedOnce() ||- Boolean(protectionPostures.response.error)- }- />- </div>- </Show>- </div>- </Show>+ <Show when={view() === 'date'}>+ <ProxmoxRecoverableTable+ artifacts={filteredRecoverableArtifacts()}+ hasAnyArtifacts={recoveryModel().recoverableArtifacts.length > 0}+ emptyIcon={props.emptyIcon}+ emptyTitle={+ inventoryIncomplete() ? 'Backup inventory is incomplete' : 'No backups yet'+ }+ emptyDescription={+ inventoryIncomplete()+ ? 'Some backup sources are still loading or unavailable. Missing restore points do not mean no backups exist.'+ : 'PBS snapshots, PVE backup files, and guest snapshots will appear here once backups run.'+ }+ sortKey={recoverableSortKey}+ sortDirection={recoverableSortDirection}+ onSort={handleRecoverableSort}+ sizeMaxBytes={recoverableSizeMaxBytes()}+ groupByDay+ showWorkloadConnection={showWorkloadConnection()}+ showSourceConnection={showSourceConnection()}+ retainInspectionFocus={retainEvidenceFocus}+ />+ </Show>++ <Show when={view() === 'coverage'}>+ <Show when={evidenceLocationLabel()}>+ {(label) => (+ <InlineNotice+ tone="info"+ role="note"+ aria-label="Backup location scope"+ class="text-xs whitespace-normal wrap-anywhere"+ >+ Backup ages and restore evidence below use {label()}. Protection assessments and+ task history are workload-wide, not a rating of this location.+ </InlineNotice>+ )}</Show>- </div>- </Show>+ <ProxmoxCoverageTable+ rows={liveCoverageRows()}+ hasAnyRows={liveTotalCount() > 0}+ emptyIcon={props.emptyIcon}+ emptyTitle="No backup target coverage"+ emptyDescription="VM, container, and host restore posture will appear here once backup data exists."+ sortKey={coverageSortKey}+ sortDirection={coverageSortDirection}+ onSort={handleCoverageSort}+ expandedKey={expandedCoverageKey()}+ onToggleExpand={toggleCoverageExpansion}+ retainInspectionFocus={retainEvidenceFocus}+ showTaskColumn={coverageHasTask()}+ showWorkloadConnection={showWorkloadConnection()}+ evidenceLocationLabel={evidenceLocationLabel()}+ historyReadIncomplete={+ inventoryIncomplete() ||+ !protectionPostures.resolvedOnce() ||+ Boolean(protectionPostures.response.error)+ }+ />++ <Show when={orphanedTotalCount() > 0}>+ <div ref={retainEvidenceFocus} class="rounded-lg border border-border-subtle">+ <button+ type="button"+ onClick={() => setShowOrphaned((v) => !v)}+ class="flex w-full flex-wrap items-center justify-between gap-2 px-3 py-2 text-left"+ aria-expanded={showOrphaned()}+ >+ <span class="flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-muted">+ <ChevronRightIcon+ class={`h-3.5 w-3.5 transition-transform ${showOrphaned() ? 'rotate-90' : ''}`}+ aria-hidden="true"+ />+ {orphanedTotalCount()} unmatched{' '}+ {orphanedTotalCount() === 1 ? 'backup' : 'backups'}+ </span>+ <span class="w-full text-[11px] text-muted sm:w-auto">+ No unambiguous inventory match+ </span>+ </button>+ <Show when={showOrphaned()}>+ <div class="border-t border-border-subtle p-2">+ <ProxmoxCoverageTable+ rows={orphanedCoverageRows()}+ hasAnyRows={orphanedTotalCount() > 0}+ emptyIcon={props.emptyIcon}+ emptyTitle="No unmatched backups"+ emptyDescription="Backups without an unambiguous live guest match will appear here."+ sortKey={coverageSortKey}+ sortDirection={coverageSortDirection}+ onSort={handleCoverageSort}+ expandedKey={expandedCoverageKey()}+ onToggleExpand={toggleCoverageExpansion}+ retainInspectionFocus={retainEvidenceFocus}+ showTaskColumn={coverageHasTask()}+ showWorkloadConnection={showWorkloadConnection()}+ evidenceLocationLabel={evidenceLocationLabel()}+ historyReadIncomplete={+ inventoryIncomplete() ||+ !protectionPostures.resolvedOnce() ||+ Boolean(protectionPostures.response.error)+ }+ />+ </div>+ </Show>+ </div>+ </Show>+ </Show>+ </div></Show></div>);diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsxindex f3a5ddb045..3200f245aa 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx@@ -813,6 +813,102 @@ describe('ProxmoxBackupsTable', () => {expect(grid.className).toContain('xl:[&:has([data-backup-jobs])]:grid-cols-');});+ it('answers health first, then the backup servers, then the restore points', async () => {+ mockBackupAPIs('attention');+ window.history.replaceState({}, '', '/proxmox/backups/date');++ renderInRouter(() => (+ <ProxmoxBackupsTable+ emptyIcon={<span />}+ workloads={[workloadResource]}+ servers={[pbsServerResource]}+ />+ ));++ const verdict = await waitFor(() => {+ const element = document.querySelector('[data-backup-verdict]');+ expect(element).toHaveTextContent('0 of 1 protected');+ return element!;+ });+ const servers = document.querySelector('[data-proxmox-backups-table="servers"]')!;+ const restorePoints = document.querySelector<HTMLElement>('[data-backup-restore-points]')!;+ const follows = (first: Node, second: Node) =>+ Boolean(first.compareDocumentPosition(second) & Node.DOCUMENT_POSITION_FOLLOWING);+ expect(follows(verdict, servers)).toBe(true);+ expect(follows(servers, restorePoints)).toBe(true);+ // The view tabs head the restore points; health and jobs belong to the page.+ expect(within(restorePoints).getByRole('navigation', { name: 'Backup views' })).toBeTruthy();+ expect(restorePoints.contains(verdict)).toBe(false);+ expect(restorePoints.contains(servers)).toBe(false);+ });++ it('brings the restore points into view after an exception tap only when they are below the fold', async () => {+ mockBackupAPIs('attention');+ window.history.replaceState({}, '', '/proxmox/backups/date');+ const scrollIntoView = vi.fn();+ const prototype = HTMLElement.prototype as { scrollIntoView?: (arg?: unknown) => void };+ const original = prototype.scrollIntoView;+ prototype.scrollIntoView = scrollIntoView;+ try {+ renderInRouter(() => (+ <ProxmoxBackupsTable emptyIcon={<span />} workloads={[workloadResource]} />+ ));+ await waitFor(() =>+ expect(document.querySelector('[data-backup-verdict]')).toHaveTextContent(+ '0 of 1 protected',+ ),+ );+ const restorePoints = document.querySelector<HTMLElement>('[data-backup-restore-points]')!;+ const top = vi.spyOn(restorePoints, 'getBoundingClientRect');+ const group = () =>+ within(screen.getByRole('list', { name: 'Backups that are not protected' })).getByRole(+ 'button',+ { name: '1 backup source reported a failure' },+ );+ const reason = () => new URLSearchParams(window.location.search).get('reason');+ const settle = async () => {+ await Promise.resolve();+ await Promise.resolve();+ };+ const belowFold = { top: window.innerHeight + 300 } as DOMRect;++ // From By date, below the fold (phone): the tap lands on the filtered+ // Coverage list and brings the restore points into view.+ top.mockReturnValue(belowFold);+ await fireEvent.click(group());+ await waitFor(() => expect(window.location.pathname).toBe('/proxmox/backups/coverage'));+ expect(reason()).toBe('source-failed');+ await waitFor(() => expect(scrollIntoView).toHaveBeenCalledTimes(1));+ expect(scrollIntoView.mock.contexts[0]).toBe(restorePoints);+ expect(scrollIntoView).toHaveBeenCalledWith(expect.objectContaining({ block: 'start' }));++ // Clearing the filter never scrolls, even with the list below the fold.+ await fireEvent.click(group());+ await waitFor(() => expect(reason()).toBeNull());+ await settle();+ expect(scrollIntoView).toHaveBeenCalledTimes(1);++ // On Coverage with the list already on screen (desktop): no scroll.+ top.mockReturnValue({ top: 120 } as DOMRect);+ await fireEvent.click(group());+ await waitFor(() => expect(reason()).toBe('source-failed'));+ await settle();+ expect(scrollIntoView).toHaveBeenCalledTimes(1);++ // On Coverage below the fold: selecting again reveals the list.+ await fireEvent.click(group());+ await waitFor(() => expect(reason()).toBeNull());+ top.mockReturnValue(belowFold);+ await fireEvent.click(group());+ await waitFor(() => expect(reason()).toBe('source-failed'));+ await waitFor(() => expect(scrollIntoView).toHaveBeenCalledTimes(2));+ expect(scrollIntoView.mock.contexts[1]).toBe(restorePoints);+ } finally {+ if (original) prototype.scrollIntoView = original;+ else delete prototype.scrollIntoView;+ }+ });+it('lets a backup exception group filter Coverage to those workloads', async () => {// "17 attention" was text: finding which workloads it counted took the// Filters sheet on a phone. A group is one tap to exactly its workloads.