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
Keep backup evidence stable through native scrolling and polling
pulse-triage[bot]bc3599f18937
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex c07d7c5925..2b40dd5a88 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -10185,3 +10185,42 @@ unmount, archive compatibility and cleanup. `BackupTransferDialogs.test.tsx`checks target/error disclosure and pending input/action states. Browser evidencemust exercise the production flow and consuming dialogs at desktop and narrowwidths with safe responses, not a replacement transfer implementation.++### Backup evidence retains its measured native scroll extent++Proxmox Coverage and By date use the shared `PlatformWindowedRows` renderer,+not a fixed-height backup-specific runway. An expanded evidence panel belongs+to its keyed summary item: scrolling inside it must not unmount that item or+replace the panel with unrelated workload rows. Group headings count as their+own items; measured offscreen panels retain their scroll extent. Live+inventory replacements retain the mounted row, its disclosure focus and its+expanded state. Spacer cells span only the currently visible columns, while+the shared desktop/phone mounted-item budgets remain bounded.++`ProxmoxCoverageTable.test.tsx` exercises both consuming tables, grouped+dates, desktop/phone budgets, tall panels, snapshot replacement, scroll-away+and return, and spacer spans. Browser proof must scroll actual production+evidence panels at desktop and narrow widths and inspect pixels. This changes+only presentation: posture, identity matching, history, permissions and native+backup/guest/recovery operations remain unchanged.++### Backup table extent survives measured-detail retirement++Coverage and By date opt into `PlatformWindowedRows.reserveScrollExtent`. The+shared measurement owner reserves the natural table height on its outer scroll+shell before a tall inline panel leaves the row window. This prevents a+transient shrink from clamping native page or app-container scrolling. It does+not set the table's own height or move the native scroll position. Natural+remeasurement releases the reserve on disclosure close or responsive layout;+leaving windowed mode and unmount restore the shell's previous minimum height.+Other table consumers keep their existing lifecycle by default.++`PlatformWindowedRows.test.tsx` checks opt-in extent retention, bounded rows,+return, close and small-result filtering; consuming backup proof must exercise+real desktop/narrow app scrolling and inventory polling, including the last+visible workload. Posture, keys, authority and native recovery are unchanged.++The reserve derives from the full keyed measured-height map plus table chrome,+not a DOM height sampled while a window retires. Offscreen detail measurements+remain in that map until the owning item is remeasured or removed, so a transient+DOM extent cannot lower the reserve before its compensating spacer settles.diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 68292a6b0b..acf31ff234 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -3122,7 +3122,7 @@ the mounted-row threshold while retaining the hook's 140-row desktop andcuration integration proof must assert both the 800-plus guest total and thebounded mounted-row count. That same default estate produces more than 500backup coverage targets and recoverable artifacts; the coverage and By date-tables must route through `useProxmoxBackupTableWindowing.ts`, retain full-set+tables must route through `PlatformWindowedRows`, retain full-setfilter/sort/count semantics, and mount at most 140 desktop or 36 phone row or day-header itemswithout pagination chrome. `internal/mock/demo_scenarios_benchmark_test.go`records the corresponding graph-build, recurring sampler-update, and unified@@ -4541,3 +4541,36 @@ The registered API CLI and installtest workflow controls execute syntheticchildren/telemetry and the actual evidence/writer shells, not a latencyworkload. See `workload-chart-reporting-completion-2026-10-21.md` in `../records/`for the source proposal, adverse governance result and available hosted sample.++### Measured backup evidence windows++The Coverage and By date tables now share the canonical measured row renderer.+Their stable workload and artifact/day keys preserve an open evidence panel+through live inventory replacements. A tall inline panel contributes to its+summary item's extent, both in the scroll-to-index mapping and in offscreen+spacers, so reading its lower sections does not replace it with unrelated rows.+The existing 140 desktop / 36 phone item budgets and full-result counts, filters+and sorts remain unchanged. `ProxmoxCoverageTable.test.tsx` exercises both+consumers' measurement, poll identity, departure/return and column spans;+consuming desktop/narrow browser proof must check real geometry and native scroll.++### Backup table extent survives measured-detail retirement++Coverage and By date opt into `PlatformWindowedRows.reserveScrollExtent`. The+shared measurement owner reserves the natural table height on its outer scroll+shell before a tall inline panel leaves the row window. This prevents a+transient shrink from clamping native page or app-container scrolling. It does+not set the table's own height or move the native scroll position. Natural+remeasurement releases the reserve on disclosure close or responsive layout;+leaving windowed mode and unmount restore the shell's previous minimum height.+Other table consumers keep their existing lifecycle by default.++`PlatformWindowedRows.test.tsx` checks opt-in extent retention, bounded rows,+return, close and small-result filtering; consuming backup proof must exercise+real desktop/narrow app scrolling and inventory polling, including the last+visible workload. Posture, keys, authority and native recovery are unchanged.++The reserve derives from the full keyed measured-height map plus table chrome,+not a DOM height sampled while a window retires. Offscreen detail measurements+remain in that map until the owning item is remeasured or removed, so a transient+DOM extent cannot lower the reserve before its compensating spacer settles.diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 681d923444..fa675c0b76 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -8351,7 +8351,6 @@"frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx","frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx","frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",- "frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.ts","frontend-modern/src/hooks/useProtectionPostures.ts","frontend-modern/src/hooks/useRecoveryPoints.ts","frontend-modern/src/types/recovery.ts",@@ -8462,8 +8461,7 @@"frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx","frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx","frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",- "frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.ts"+ "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx"],"allow_same_subsystem_tests": false,"test_prefixes": [],diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 9149d21db2..b1af5ba3f0 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1019,7 +1019,6 @@ Compact Coverage age cells use the existing metadata-size text and reclaim numer29. `frontend-modern/src/hooks/useProtectionPostures.ts`30. `frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx`31. `internal/mock/recovery_points.go`-32. `frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.ts`33. `frontend-modern/src/components/Storage/useStoragePoolsTableWindowing.ts`## Shared Boundaries@@ -1591,8 +1590,8 @@ into PVE archive or snapshot semantics. Workload coverage posture must bederived from real recovery evidence and recent task outcomes, includingexplicit uncovered and failed-latest-task states, rather than from source-detailrow counts alone. Large-estate rendering must preserve that same full result-set without mounting every row. `useProxmoxBackupTableWindowing.ts` routes both-the coverage table and dated artifact feed through the shared table-window math+set without mounting every row. `PlatformWindowedRows` routes both+the coverage table and dated artifact feed through measured shared table-window mathonce the result set exceeds the mounted budget, keeps at most 140 desktop or 36phone row/header items mounted, and preserves continuous scroll height withtable spacers. Filtering,@@ -7564,3 +7563,42 @@ minute and requires exact development mode plus a valid bounded override.admission. This changes no storage history, backup, restore, migration orrecovery contract. Request admission does not qualify stored-data preservationor a successful upgrade/recovery operation.++### Backup evidence retains its measured native scroll extent++Proxmox Coverage and By date use the shared `PlatformWindowedRows` renderer,+not a fixed-height backup-specific runway. An expanded evidence panel belongs+to its keyed summary item: scrolling inside it must not unmount that item or+replace the panel with unrelated workload rows. Group headings count as their+own items; measured offscreen panels retain their scroll extent. Live+inventory replacements retain the mounted row, its disclosure focus and its+expanded state. Spacer cells span only the currently visible columns, while+the shared desktop/phone mounted-item budgets remain bounded.++`ProxmoxCoverageTable.test.tsx` exercises both consuming tables, grouped+dates, desktop/phone budgets, tall panels, snapshot replacement, scroll-away+and return, and spacer spans. Browser proof must scroll actual production+evidence panels at desktop and narrow widths and inspect pixels. This changes+only presentation: posture, identity matching, history, permissions and native+backup/guest/recovery operations remain unchanged.++### Backup table extent survives measured-detail retirement++Coverage and By date opt into `PlatformWindowedRows.reserveScrollExtent`. The+shared measurement owner reserves the natural table height on its outer scroll+shell before a tall inline panel leaves the row window. This prevents a+transient shrink from clamping native page or app-container scrolling. It does+not set the table's own height or move the native scroll position. Natural+remeasurement releases the reserve on disclosure close or responsive layout;+leaving windowed mode and unmount restore the shell's previous minimum height.+Other table consumers keep their existing lifecycle by default.++`PlatformWindowedRows.test.tsx` checks opt-in extent retention, bounded rows,+return, close and small-result filtering; consuming backup proof must exercise+real desktop/narrow app scrolling and inventory polling, including the last+visible workload. Posture, keys, authority and native recovery are unchanged.++The reserve derives from the full keyed measured-height map plus table chrome,+not a DOM height sampled while a window retires. Offscreen detail measurements+remain in that map until the owning item is remeasured or removed, so a transient+DOM extent cannot lower the reserve before its compensating spacer settles.diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 2ad4add604..b794865afe 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -8772,3 +8772,37 @@ Assistant context models are gone, the operator lock copy in`frontend-modern/src/stores/aiAvailability.ts`. The external-agent setup hashin `frontend-modern/src/routing/resourceLinks.ts` moved to the Agents route.Resource identity, policy, and drawer focus state are unchanged.++### Backup evidence panels retain their owning rows++Proxmox Coverage and By date consume `PlatformWindowedRows` with stable workload+and artifact/group keys. The shared renderer measures inline detail rows as+part of their summary item; it preserves a mounted disclosure through live+resource snapshots and accounts for measured panels when they leave the+runway. Native scrolling inside evidence must not substitute a different+resource. `ProxmoxCoverageTable.test.tsx` exercises both consumers at desktop+and phone budgets, with grouped dates, live snapshots, scroll-away/return+and exact visible-column spacer spans. Browser proof covers actual production+panels at both widths. This changes no unified identity, matching, provider+evidence or recovery authority.++### Backup table extent survives measured-detail retirement++Coverage and By date opt into `PlatformWindowedRows.reserveScrollExtent`. The+shared measurement owner reserves the natural table height on its outer scroll+shell before a tall inline panel leaves the row window. This prevents a+transient shrink from clamping native page or app-container scrolling. It does+not set the table's own height or move the native scroll position. Natural+remeasurement releases the reserve on disclosure close or responsive layout;+leaving windowed mode and unmount restore the shell's previous minimum height.+Other table consumers keep their existing lifecycle by default.++`PlatformWindowedRows.test.tsx` checks opt-in extent retention, bounded rows,+return, close and small-result filtering; consuming backup proof must exercise+real desktop/narrow app scrolling and inventory polling, including the last+visible workload. Posture, keys, authority and native recovery are unchanged.++The reserve derives from the full keyed measured-height map plus table chrome,+not a DOM height sampled while a window retires. Offscreen detail measurements+remain in that map until the owning item is remeasured or removed, so a transient+DOM extent cannot lower the reserve before its compensating spacer settles.diff --git a/frontend-modern/src/features/platformPage/PlatformWindowedRows.tsx b/frontend-modern/src/features/platformPage/PlatformWindowedRows.tsxindex 975b8f4b13..437182c44e 100644--- a/frontend-modern/src/features/platformPage/PlatformWindowedRows.tsx+++ b/frontend-modern/src/features/platformPage/PlatformWindowedRows.tsx@@ -26,6 +26,8 @@ export interface PlatformWindowedRowsProps<Row> {estimatedRowHeight?: number;enableThreshold?: number;windowSize?: number;+ /** Keep the table's outer native extent stable during tall-row retirement. */+ reserveScrollExtent?: boolean;}type StablePlatformRow<Row> = {@@ -130,6 +132,7 @@ export function PlatformWindowedRows<Row>(props: PlatformWindowedRowsProps<Row>)const windowing = usePlatformWindowedItems({items: renderItems,measureTableRows: true,+ reserveScrollExtent: props.reserveScrollExtent,estimatedItemHeight: props.estimatedRowHeight,enableThreshold: props.enableThreshold,windowSize: props.windowSize,diff --git a/frontend-modern/src/features/platformPage/__tests__/PlatformWindowedRows.test.tsx b/frontend-modern/src/features/platformPage/__tests__/PlatformWindowedRows.test.tsxindex eb35b539b8..3607bd88b4 100644--- a/frontend-modern/src/features/platformPage/__tests__/PlatformWindowedRows.test.tsx+++ b/frontend-modern/src/features/platformPage/__tests__/PlatformWindowedRows.test.tsx@@ -437,3 +437,104 @@ describe('PlatformWindowedRows', () => {}});});++describe('opt-in measured table extent reservation', () => {+ afterEach(() => {+ cleanup();+ vi.restoreAllMocks();+ });+ it.each([true, false])(+ 'keeps native extent through retirement and releases it on close/filter (enabled: %s)',+ async (reserve) => {+ let scrollTop = 0;+ let reportedTableTruncated = false;+ const rowHeight = (element: Element): number =>+ element.hasAttribute('data-platform-window-spacer')+ ? parseFloat((element as HTMLElement).style.height) || 0+ : element.hasAttribute('data-inline-detail-row')+ ? 4_800+ : 32;+ vi.spyOn(Element.prototype, 'getBoundingClientRect').mockImplementation(function (+ this: Element,+ ) {+ const height =+ this.tagName === 'TABLE' && reportedTableTruncated+ ? 6_432+ : this.tagName === 'TABLE'+ ? 32 ++ [...this.querySelectorAll('tbody > tr')].reduce(+ (sum, row) => sum + rowHeight(row),+ 0,+ )+ : rowHeight(this);+ const top = this.getAttribute('data-platform-window-spacer') === 'top' ? -scrollTop : 0;+ return {+ x: 0,+ y: top,+ top,+ left: 0,+ right: 390,+ bottom: top + height,+ width: 390,+ height,+ toJSON: () => ({}),+ } as DOMRect;+ });+ const [items, setItems] = createSignal(Array.from({ length: 200 }, (_, id) => ({ id })));+ const [expanded, setExpanded] = createSignal(true);+ const { container } = render(() => (+ <div class="table-scroll-shell" style={{ 'min-height': '12px' }}>+ <table>+ <thead>+ <tr>+ <th>Name</th>+ </tr>+ </thead>+ <tbody>+ <PlatformWindowedRows+ items={items}+ windowSize={8}+ enableThreshold={8}+ estimatedRowHeight={32}+ reserveScrollExtent={reserve}+ >+ {(item) => (+ <>+ <tr data-row={item.id}>+ <td>Row {item.id}</td>+ </tr>+ <Show when={item.id === 0 && expanded()}>+ <InlineDetailTableRow>+ <span>Tall evidence</span>+ </InlineDetailTableRow>+ </Show>+ </>+ )}+ </PlatformWindowedRows>+ </tbody>+ </table>+ </div>+ ));+ const shell = container.querySelector<HTMLElement>('.table-scroll-shell')!;+ await waitFor(() => expect(shell.style.minHeight).toBe(reserve ? '11232px' : '12px'));+ scrollTop = 8_000;+ reportedTableTruncated = true;+ await fireEvent.scroll(window);+ await waitFor(() => expect(container.querySelector('[data-row="0"]')).toBeNull());+ expect(shell.style.minHeight).toBe(reserve ? '11232px' : '12px');+ expect(container.querySelectorAll('[data-row]')).toHaveLength(8);+ scrollTop = 0;+ reportedTableTruncated = false;+ await fireEvent.scroll(window);+ await waitFor(() =>+ expect(container.querySelector('[data-inline-detail-row]')).toBeInTheDocument(),+ );+ setExpanded(false);+ await waitFor(() => expect(shell.style.minHeight).toBe(reserve ? '6432px' : '12px'));+ setItems(items().slice(0, 3));+ await waitFor(() => expect(container.querySelectorAll('[data-row]')).toHaveLength(3));+ expect(container.querySelector('[data-platform-window-spacer]')).toBeNull();+ expect(shell.style.minHeight).toBe('12px');+ },+ );+});diff --git a/frontend-modern/src/features/platformPage/usePlatformWindowedItems.ts b/frontend-modern/src/features/platformPage/usePlatformWindowedItems.tsindex 0f64408842..e6909558d5 100644--- a/frontend-modern/src/features/platformPage/usePlatformWindowedItems.ts+++ b/frontend-modern/src/features/platformPage/usePlatformWindowedItems.ts@@ -30,6 +30,8 @@ export interface PlatformWindowedItemsOptions<Item> {windowSize?: number;/** Native table items may include a variable-height inline detail row. */measureTableRows?: boolean;+ /** Reserve the natural table extent while retiring variable-height rows. */+ reserveScrollExtent?: boolean;}/**@@ -99,10 +101,40 @@ export function usePlatformWindowedItems<Item>(options: PlatformWindowedItemsOpt: 0,);+ const [tableChromeHeight, setTableChromeHeight] = createSignal(0);+ createEffect(() => {+ const anchor = anchorRef();+ if (!options.reserveScrollExtent || !anchor || !windowing.isWindowed()) return;+ const shell = anchor.closest<HTMLElement>('.table-scroll-shell');+ if (!shell) return;+ const previousMinHeight = shell.style.minHeight;+ // Reserving the outer shell, not the table itself, leaves natural table+ // layout free to shrink on disclosure close, filtering and width changes.+ createEffect(() => {+ const offsets = measuredLayout()?.offsets;+ const bodyHeight = offsets?.[offsets.length - 1] ?? 0;+ shell.style.minHeight = `${bodyHeight + tableChromeHeight()}px`;+ });+ onCleanup(() => {+ shell.style.minHeight = previousMinHeight;+ });+ });+const measureTableRows = () => {if (!options.measureTableRows) return;const anchor = anchorRef();if (!anchor || isWindowedSurfaceHidden(anchor)) return;+ if (options.reserveScrollExtent) {+ const table = anchor.closest('table');+ if (table) {+ setTableChromeHeight(+ [table.tHead, table.tFoot, table.caption].reduce(+ (height, section) => height + (section?.getBoundingClientRect().height ?? 0),+ 0,+ ),+ );+ }+ }const items = visibleItems();const measurements = new Map<Item, number>();let index = -1;diff --git a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsxindex 415afc013b..06da8d653f 100644--- a/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx@@ -1,6 +1,4 @@-import { For, Show, createEffect, createMemo, type Accessor, type JSX } from 'solid-js';--import { createStore, reconcile } from 'solid-js/store';+import { For, Show, createMemo, type Accessor, type JSX } from 'solid-js';import {InlineDetailPanel,@@ -55,7 +53,7 @@ import {selectCoverageRestoreEvidence,type CoverageColumnId,} from './proxmoxBackupsTablePresentation';-import { useProxmoxBackupTableWindowing } from './useProxmoxBackupTableWindowing';+import { PlatformWindowedRows } from '@/features/platformPage/PlatformWindowedRows';// Each evidence column is already named by its header, so an empty cell says// "None" instead of restating the source ("No PVE backup file"). The long form@@ -274,11 +272,6 @@ export function ProxmoxCoverageTable(props: {// ages were short enough for the usual gutters; compact ages use that space.const ageCellClass = (kind: 'text' | 'numeric-value') =>`${layoutMode() === 'compact' ? `px-0.5 py-1 ${kind === 'numeric-value' ? 'text-right' : ''}` : getPlatformTableCellClassForKind(kind)} text-base-content`;- // Polling rebuilds recovery-model objects. Preserve logical row identity so- // Solid does not replace the focused toggle (or the browser's scroll anchor).- const [stableRows, setStableRows] = createStore<WorkloadCoverageRow[]>([]);- createEffect(() => setStableRows(reconcile([...props.rows], { key: 'key' })));- const tableWindow = useProxmoxBackupTableWindowing(() => [...stableRows]);return (<Show@@ -298,13 +291,9 @@ export function ProxmoxCoverageTable(props: {}><div- ref={(element) => {- observedWidth.setElement(element);- tableWindow.setRootRef(element);- }}+ ref={observedWidth.setElement}data-proxmox-backups-table="coverage"data-proxmox-backups-layout={layoutMode()}- data-proxmox-backups-windowed={tableWindow.isWindowed()}><PlatformTableShelltableClass="min-w-0 table-fixed text-xs"@@ -381,16 +370,13 @@ export function ProxmoxCoverageTable(props: {}body={<>- <Show when={tableWindow.topSpacerHeight() > 0}>- <TableRow aria-hidden="true">- <TableCell- colspan={columnCount()}- class="border-0 p-0"- height={tableWindow.topSpacerHeight()}- />- </TableRow>- </Show>- <For each={tableWindow.visibleItems()}>+ <PlatformWindowedRows+ items={() => props.rows}+ keyExtractor={(row) => row.key}+ colSpan={columnCount()}+ estimatedRowHeight={32}+ reserveScrollExtent+ >{(row) => {const isExpanded = () => props.expandedKey === row.key;const evidence = () => selectCoverageRestoreEvidence(row.artifacts);@@ -742,16 +728,7 @@ export function ProxmoxCoverageTable(props: {</>);}}- </For>- <Show when={tableWindow.bottomSpacerHeight() > 0}>- <TableRow aria-hidden="true">- <TableCell- colspan={columnCount()}- class="border-0 p-0"- height={tableWindow.bottomSpacerHeight()}- />- </TableRow>- </Show>+ </PlatformWindowedRows></>}/>diff --git a/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsxindex 92567f1a51..52f1604f3f 100644--- a/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx@@ -51,7 +51,7 @@ import {} from './proxmoxBackupsTablePresentation';import { getProxmoxBackupSourcePresentation } from './proxmoxBackupSourcePresentation';import { proxmoxBackupWorkloadSubject } from './proxmoxBackupWorkloadSubject';-import { useProxmoxBackupTableWindowing } from './useProxmoxBackupTableWindowing';+import { PlatformWindowedRows } from '@/features/platformPage/PlatformWindowedRows';// Flat recoverable-artifact table. Parent state owns filtering, sorting, and// date/source facets; optional day grouping is presentation only.@@ -218,7 +218,6 @@ export function ProxmoxRecoverableTable(props: {})),]);});- const tableWindow = useProxmoxBackupTableWindowing(tableItems);const drawer = createPlatformResourceDetailState({ idPrefix: 'proxmox-recoverable-detail' });const renderRow = (artifact: RecoverableArtifact): JSX.Element => (@@ -353,13 +352,9 @@ export function ProxmoxRecoverableTable(props: {}><div- ref={(element) => {- observedWidth.setElement(element);- tableWindow.setRootRef(element);- }}+ ref={observedWidth.setElement}data-proxmox-backups-table="recoverable"data-proxmox-backups-layout={layoutMode()}- data-proxmox-backups-windowed={tableWindow.isWindowed()}><PlatformTableShelltableClass="min-w-0 table-fixed text-xs"@@ -452,16 +447,13 @@ export function ProxmoxRecoverableTable(props: {}body={<>- <Show when={tableWindow.topSpacerHeight() > 0}>- <TableRow aria-hidden="true">- <TableCell- colspan={visibleColumns().length}- class="border-0 p-0"- height={tableWindow.topSpacerHeight()}- />- </TableRow>- </Show>- <For each={tableWindow.visibleItems()}>+ <PlatformWindowedRows+ items={tableItems}+ keyExtractor={(item) => `${item.kind}:${item.key}`}+ colSpan={visibleColumns().length}+ estimatedRowHeight={32}+ reserveScrollExtent+ >{(item) => (<Showwhen={item.kind === 'artifact' ? item.artifact : undefined}@@ -484,16 +476,7 @@ export function ProxmoxRecoverableTable(props: {{(artifact) => renderRow(artifact())}</Show>)}- </For>- <Show when={tableWindow.bottomSpacerHeight() > 0}>- <TableRow aria-hidden="true">- <TableCell- colspan={visibleColumns().length}- class="border-0 p-0"- height={tableWindow.bottomSpacerHeight()}- />- </TableRow>- </Show>+ </PlatformWindowedRows></>}/>diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsxindex 048910684e..87ff4a3884 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxCoverageTable.test.tsx@@ -1,9 +1,16 @@-import { cleanup, fireEvent, render, screen, within } from '@solidjs/testing-library';+import { cleanup, fireEvent, render, screen, waitFor, within } from '@solidjs/testing-library';import { Route, Router } from '@solidjs/router';import { afterEach, describe, expect, it, vi } from 'vitest';-import type { Accessor, JSX } from 'solid-js';+import { createSignal, type Accessor, type JSX } from 'solid-js';import { ProxmoxCoverageTable } from '../ProxmoxCoverageTable';+import { ProxmoxRecoverableTable } from '../ProxmoxRecoverableTable';+import { buildProxmoxBackupRecoveryModel } from '../proxmoxBackupRecoveryModel';+import {+ BACKUP_IDENTITY_NOW,+ identityArchive,+ identityGuest,+} from '../__fixtures__/backupIdentity';import type { WorkloadCoverageRow } from '../proxmoxBackupRecoveryModel';import type { CoverageSortKey } from '../proxmoxBackupsTableModel';@@ -403,10 +410,11 @@ describe('ProxmoxCoverageTable column visibility', () => {/>));- expect(document.querySelector('[data-proxmox-backups-table="coverage"]')).toHaveAttribute(- 'data-proxmox-backups-windowed',- 'true',- );+ expect(+ document.querySelectorAll(+ '[data-proxmox-backups-table="coverage"] [data-platform-window-spacer]',+ ),+ ).toHaveLength(2);expect(document.querySelectorAll('[data-proxmox-backup-row="coverage"]')).toHaveLength(140);expect(document.body.textContent).toContain('workload-0');expect(document.body.textContent).not.toContain('workload-599');@@ -631,3 +639,163 @@ describe('Coverage absence requires readable, complete history', () => {},);});++const scrollingModel = () =>+ buildProxmoxBackupRecoveryModel({+ workloads: Array.from({ length: 170 }, (_, i) =>+ identityGuest(`guest-${i}`, 'east', 'pve-1', { vmid: 100 + i }),+ ),+ archives: Array.from({ length: 170 }, (_, i) =>+ identityArchive({+ id: `archive-${i}`,+ vmid: 100 + i,+ ctime: BACKUP_IDENTITY_NOW / 1000 - i * 60,+ }),+ ),+ snapshots: [],+ pbsBackups: [],+ tasks: [],+ nowMs: BACKUP_IDENTITY_NOW,+ });++describe('backup evidence native scrolling', () => {+ afterEach(() => {+ vi.restoreAllMocks();+ vi.unstubAllGlobals();+ });+ it.each([+ ['coverage', 390],+ ['coverage', 1365],+ ['date', 390],+ ['date', 1365],+ ] as const)(+ 'keeps a tall %s drawer and its scroll extent at %ipx, including after a live snapshot',+ async (view, width) => {+ let scrollTop = 0;+ const drawerHeight = 4800;+ vi.stubGlobal('innerWidth', width);+ vi.stubGlobal('innerHeight', 120);+ vi.spyOn(Element.prototype, 'getBoundingClientRect').mockImplementation(function (+ this: Element,+ ) {+ const top =+ this.getAttribute('data-platform-window-spacer') === 'top' ||+ this.hasAttribute('data-proxmox-backups-table')+ ? -scrollTop+ : 0;+ const height = this.hasAttribute('data-inline-detail-row') ? drawerHeight : 32;+ return {+ x: 0,+ y: top,+ top,+ left: 0,+ right: width,+ bottom: top + height,+ width,+ height,+ toJSON: () => ({}),+ } as DOMRect;+ });+ const initial = scrollingModel();+ const [rows, setRows] = createSignal(initial.coverageRows);+ const [artifacts, setArtifacts] = createSignal(initial.recoverableArtifacts);+ const [expanded, setExpanded] = createSignal<string | null>(null);+ const { container } = renderInRouter(() =>+ view === 'coverage' ? (+ <ProxmoxCoverageTable+ rows={rows()}+ hasAnyRows+ emptyIcon={<span />}+ emptyTitle="No guests"+ emptyDescription="No guests"+ sortKey={() => 'workload'}+ sortDirection={() => 'asc'}+ onSort={() => {}}+ expandedKey={expanded()}+ onToggleExpand={(key) => setExpanded((current) => (current === key ? null : key))}+ showTaskColumn={false}+ layoutWidth={() => width}+ />+ ) : (+ <ProxmoxRecoverableTable+ artifacts={artifacts()}+ hasAnyArtifacts+ emptyIcon={<span />}+ emptyTitle="No backups"+ emptyDescription="No backups"+ sortKey={() => 'created'}+ sortDirection={() => 'desc'}+ onSort={() => {}}+ sizeMaxBytes={1024}+ groupByDay+ layoutWidth={() => width}+ />+ ),+ );+ const rowSelector = `[data-proxmox-backup-row="${view === 'coverage' ? 'coverage' : 'recoverable'}"]`;+ const mountedCount = () => container.querySelectorAll(rowSelector).length;+ const budget = width < 640 ? 36 : 140;+ expect(mountedCount()).toBeLessThanOrEqual(budget);+ expect(mountedCount()).toBeGreaterThan(0);+ const first = container.querySelector(rowSelector)!;+ const disclosure = first.querySelector<HTMLButtonElement>('button[aria-controls]')!;+ await fireEvent.click(disclosure);+ const detail = await screen.findByTestId(+ view === 'coverage' ? 'proxmox-coverage-detail' : 'proxmox-recoverable-detail',+ );+ disclosure.focus();+ // The whole logical row includes the expanded panel. Scrolling inside+ // it must not advance the runway as if its pixels were 118 summary rows.+ scrollTop = 3800;+ await fireEvent.scroll(window);+ expect(detail).toBeInTheDocument();+ expect(disclosure).toHaveFocus();++ const refreshed = scrollingModel();+ refreshed.coverageRows[0]!.workload.name = 'refreshed-guest';+ refreshed.recoverableArtifacts[0]!.workload.name = 'refreshed-guest';+ setRows(refreshed.coverageRows);+ setArtifacts(refreshed.recoverableArtifacts);+ await waitFor(() => {+ expect(container.querySelector(rowSelector)?.querySelector('button')).toBe(disclosure);+ expect(disclosure).toHaveFocus();+ expect(detail).toBeInTheDocument();+ expect(first).toHaveTextContent('refreshed-guest');+ });++ scrollTop = drawerHeight + 3200;+ await fireEvent.scroll(window);+ await waitFor(() => expect(first).not.toBeInTheDocument());+ const spacer = container.querySelector<HTMLElement>('[data-platform-window-spacer="top"]')!;+ expect(parseFloat(spacer.style.height)).toBeGreaterThan(drawerHeight);+ expect(mountedCount()).toBeLessThanOrEqual(budget);++ scrollTop = 0;+ await fireEvent.scroll(window);+ await waitFor(() =>+ expect(+ screen.getByTestId(+ view === 'coverage' ? 'proxmox-coverage-detail' : 'proxmox-recoverable-detail',+ ),+ ).toBeInTheDocument(),+ );+ const table = container.querySelector('table')!;+ const columns = table.querySelectorAll(':scope > thead th').length;+ for (const cell of table.querySelectorAll<HTMLTableCellElement>(+ '[data-platform-window-spacer] > td',+ )) {+ expect(cell.colSpan).toBe(columns);+ }++ // Full-result filtering can shrink a previously scrolled estate below+ // the mounted budget. No old spacers or stale selected panel survive.+ setRows(refreshed.coverageRows.slice(-1));+ setArtifacts(refreshed.recoverableArtifacts.slice(-1));+ await waitFor(() => {+ expect(mountedCount()).toBe(1);+ expect(container.querySelector('[data-platform-window-spacer]')).toBeNull();+ expect(detail).not.toBeInTheDocument();+ });+ },+ );+});diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxRecoverableTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxRecoverableTable.test.tsxindex 7ec2d39023..ebbf9f91fb 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxRecoverableTable.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxRecoverableTable.test.tsx@@ -178,10 +178,11 @@ describe('ProxmoxRecoverableTable responsive columns', () => {/>));- expect(document.querySelector('[data-proxmox-backups-table="recoverable"]')).toHaveAttribute(- 'data-proxmox-backups-windowed',- 'true',- );+ expect(+ document.querySelectorAll(+ '[data-proxmox-backups-table="recoverable"] [data-platform-window-spacer]',+ ),+ ).toHaveLength(2);expect(document.querySelectorAll('[data-proxmox-backup-row]')).toHaveLength(140);expect(document.body.textContent).toContain('workload-0');expect(document.body.textContent).not.toContain('workload-599');diff --git a/frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.ts b/frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.tsdeleted file mode 100644index a8795f8258..0000000000--- a/frontend-modern/src/features/proxmox/useProxmoxBackupTableWindowing.ts+++ /dev/null@@ -1,20 +0,0 @@-import type { Accessor } from 'solid-js';--import { usePlatformWindowedItems } from '@/features/platformPage/usePlatformWindowedItems';--const BACKUP_TABLE_ESTIMATED_ROW_HEIGHT = 32;--export function useProxmoxBackupTableWindowing<T>(items: Accessor<readonly T[]>) {- const windowing = usePlatformWindowedItems({- items,- estimatedItemHeight: BACKUP_TABLE_ESTIMATED_ROW_HEIGHT,- });-- return {- isWindowed: windowing.isWindowed,- visibleItems: windowing.visibleItems,- topSpacerHeight: windowing.topSpacerHeight,- bottomSpacerHeight: windowing.bottomSpacerHeight,- setRootRef: windowing.setAnchorRef,- };-}