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
Fix storage summary responsiveness
rcourtman694e746a3b58
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 70f45815a0..f4dc41395e 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -566,7 +566,7 @@ work extends shared components instead of creating new local variants.6. Keep Proxmox deep-link route selection on the shared settings-navigation boundary. `frontend-modern/src/components/Settings/settingsNavigationModel.ts` and `frontend-modern/src/components/Settings/useSettingsNavigation.ts` must treat the canonical PBS and PMG Proxmox deep links as agent-selection authority even though those URLs resolve to the shared `infrastructure-operations` tab. Reloading or remounting on a PBS or PMG deep link must not silently fall back to the PVE selector state.7. Keep shared storage feature presenters on canonical platform truth. When reusable storage presenters under `frontend-modern/src/features/storageBackups/` classify canonical resources for the shared storage route, API-backed virtualization datastores such as VMware must stay inventory-only datastores instead of inheriting PBS-specific backup-repository or protected-target copy from older fallback branches.8. Keep shared source/platform vocabulary on the governed manifest boundary. `frontend-modern/src/utils/platformSupportManifest.generated.ts` must be the tracked frontend projection of `docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json`, `frontend-modern/src/utils/platformSupportManifest.ts`, `frontend-modern/src/utils/sourcePlatforms.ts`, and `frontend-modern/src/utils/sourcePlatformOptions.ts` must consume that generated projection instead of embedding divergent future-label lists, setup/onboarding path allowlists, or presentation-only guesses, and `frontend-modern/scripts/canonical-platform-audit.mjs` must fail when the generated projection drifts from the governed manifest. The generic `docker` source-platform label is "Docker / Podman" in shared selectors, badges, and filter options so v5 Docker users can find the runtime surface while Podman-backed rows are not mislabeled as Docker-only; "Container runtime" remains the governed platform family, not the primary customer-facing label.-9. Keep top-of-page summary interaction on shared primitives. Infrastructure, workloads, and storage summary cards must route sticky-shell behavior through `frontend-modern/src/components/shared/StickySummarySection.tsx` and route row-hover or focused-series rendering through shared chart primitives such as `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/DensityMap.tsx`, rather than page-local sticky wrappers or metric-card-specific hover logic. The shared summary-card contract must also own stable summary-card geometry for chart-backed cards so row hover, focus, synchronized readouts, or idle header metadata cannot ratchet the sticky summary taller across rerenders.+9. Keep top-of-page summary interaction on shared primitives. Infrastructure, workloads, and storage summary cards must route sticky-shell behavior through `frontend-modern/src/components/shared/StickySummarySection.tsx` and route row-hover or focused-series rendering through shared chart primitives such as `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/DensityMap.tsx`, rather than page-local sticky wrappers or metric-card-specific hover logic. When a page keeps summary charts visible below the desktop breakpoint, it must use the shared `stickyDesktopOnly` mode instead of adding page-local media queries, so wrapped two-column summaries scroll as normal content and only become sticky once the large-screen layout is active. The shared summary-card contract must also own stable summary-card geometry for chart-backed cards so row hover, focus, synchronized readouts, or idle header metadata cannot ratchet the sticky summary taller across rerenders.10. Keep summary chart interaction identity on one shared helper. Summary surfaces that expose row-hover, group-hover, chart-hover, or route-focus-driven chart emphasis must derive page/group/entity scope through `frontend-modern/src/components/shared/summaryCardInteraction.ts` and pass that same resolved scope into card-state, sparkline, and density-map primitives, rather than letting cards read `hovered || focused` while charts listen to a different page-local ID source. Hovering one summary chart must promote that series into the shared active entity so sibling cards highlight the same object instead of keeping chart-local hover islands, and hovering or pinning a workload group header, infrastructure cluster header, or storage pool-group header must scope the matching summary cards through that same shared contract instead of forking a page-local summary filter path. Sibling cards should surface that synchronized hover as one compact header readout through the shared summary-card contract, while the chart under the pointer keeps the only floating tooltip. `frontend-modern/src/components/Recovery/RecoverySummary.tsx` is explicitly outside this interaction dialect: recovery posture cards may share summary framing, but they must not silently grow row/group/chart hover behavior without a separate governed product decision.11. Keep page summaries page-scoped when table rows enter contextual focus. Route-backed row selection may add a focused label and shared series emphasis, but infrastructure, workloads, and storage summary cards must continue to render the page-level series set instead of collapsing the summary down to the selected row or replacing the global trend view with row-local empty states.12. Keep contextual row focus on the shared summary primitive. Summary surfaces and same-route table drill-ins must reuse `frontend-modern/src/components/shared/contextualFocus.ts` for interactive-series filtering, focused-name lookup, active-series derivation, local scroll preservation, and deliberate inline-detail reveal instead of rebuilding page-local `Set` filters, focused-label scans, drawer-aware scroll math, or ad hoc scroll restoration in each surface.diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 57f7baba1f..30e064bac5 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -230,7 +230,7 @@ regression protection.`frontend-modern/src/useAppRuntimeState.ts` may warm the same cache afterauthenticated bootstrap without mounting the Workloads route or starting asecond polling loop.-27. Keep summary hover/focus and sticky-card behavior on shared hot paths: infrastructure, workloads, and storage summary shells must reuse one page/group/entity scope model plus `frontend-modern/src/components/shared/StickySummarySection.tsx` inside the app scroll shell instead of per-page scroll listeners or per-card hover derivations, so row scrubbing highlights all cards, workload group headers, infrastructure cluster headers, and storage pool-group headers scope the summary coherently, pinned group focus remains route-backed and reversible, and the hot path does not multiply render or scroll work. That hot path stays row-first rather than adding fallback chrome: the on-screen row or group header is the scoped state, and any explicit reset belongs to one compact shared table-header action plus the shared `Escape` path, not to page-level scope strips, search-row widgets, or filter-bar badges. Background whitespace clearing may exist as a convenience, but the hot path must not depend on brittle dead-space hit testing as the only reversible control. The same hot path must therefore keep one page-level reset owner for filters plus pinned summary selections, and it must keep chart-backed summary-card geometry explicit and stable so hover rerenders, synchronized readouts, or idle header metadata cannot feed layout loops that grow or shrink the top cards over time. Recovery’s summary rail is not part of this interactive hot path; it may share summary-card framing, but it must remain non-interactive until a separately governed model says otherwise.+27. Keep summary hover/focus and sticky-card behavior on shared hot paths: infrastructure, workloads, and storage summary shells must reuse one page/group/entity scope model plus `frontend-modern/src/components/shared/StickySummarySection.tsx` inside the app scroll shell instead of per-page scroll listeners or per-card hover derivations, so row scrubbing highlights all cards, workload group headers, infrastructure cluster headers, and storage pool-group headers scope the summary coherently, pinned group focus remains route-backed and reversible, and the hot path does not multiply render or scroll work. Pages that keep chart summaries visible below the desktop breakpoint must use the shared desktop-sticky mode on that primitive rather than page-local viewport listeners, so wrapped chart grids do not pin most of the scroll container on narrow screens. That hot path stays row-first rather than adding fallback chrome: the on-screen row or group header is the scoped state, and any explicit reset belongs to one compact shared table-header action plus the shared `Escape` path, not to page-level scope strips, search-row widgets, or filter-bar badges. Background whitespace clearing may exist as a convenience, but the hot path must not depend on brittle dead-space hit testing as the only reversible control. The same hot path must therefore keep one page-level reset owner for filters plus pinned summary selections, and it must keep chart-backed summary-card geometry explicit and stable so hover rerenders, synchronized readouts, or idle header metadata cannot feed layout loops that grow or shrink the top cards over time. Recovery’s summary rail is not part of this interactive hot path; it may share summary-card framing, but it must remain non-interactive until a separately governed model says otherwise.The input path for that hot summary contract must stay shared too:`frontend-modern/src/components/shared/summaryInteractionA11y.ts` ownsfine-pointer preview and focus-preview continuity, whilediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 700a0dccf0..486b17a4e7 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -125,7 +125,10 @@ state.controls. The charts toggle must read as an explicit `Show charts` /`Hide charts` pressed display action, and the off state must remove thesummary section fully instead of leaving a collapsed summary shell in the- interface.+ interface. When the storage summary remains visible below the desktop+ breakpoint, it must use the frontend-primitives-owned+ `StickySummarySection` desktop-sticky mode so the wrapped 2x2 chart grid+ scrolls with the page instead of pinning most of a narrow viewport.Ceph table shells on the storage route share the same frontend-primitivestable contract: `frontend-modern/src/pages/Ceph.tsx` may own Ceph-specificcolumns and rows, but horizontal overflow and scrollbar hiding must routediff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsxindex fb9709af27..bbfd5b6d9b 100644--- a/frontend-modern/src/components/Storage/Storage.tsx+++ b/frontend-modern/src/components/Storage/Storage.tsx@@ -92,7 +92,7 @@ const Storage: Component = () => {/><Show when={!storageSummaryCollapsed()}>- <StickySummarySection desktopOnly={false}>+ <StickySummarySection desktopOnly={false} stickyDesktopOnly><StoragePageSummaryfilteredRecords={filteredRecords}search={search}diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsxindex 6ea40ea523..b79c99f61b 100644--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx@@ -496,7 +496,7 @@ describe('Storage', () => {storageSummarySpy.mockRestore();});- it('routes hovered pool rows into the shared summary highlight contract and keeps the summary sticky', async () => {+ it('routes hovered pool rows into the shared summary highlight contract and keeps the summary sticky only on desktop widths', async () => {const storageSummarySpy = vi.spyOn(ChartsAPI, 'getStorageSummaryCharts').mockResolvedValue({pools: {'pool:alpha': {@@ -556,7 +556,9 @@ describe('Storage', () => {const summary = await screen.findByTestId('storage-summary');const stickyWrapper = summary.closest('[data-sticky-summary="true"]');expect(stickyWrapper).toHaveAttribute('data-sticky-summary-desktop-only', 'false');- expect(stickyWrapper?.className).toContain('sticky');+ expect(stickyWrapper).toHaveAttribute('data-sticky-summary-sticky-desktop-only', 'true');+ expect(stickyWrapper?.className).toContain('static');+ expect(stickyWrapper?.className).toContain('lg:sticky');expect(stickyWrapper?.className).toContain('top-0');const alphaRow = screen.getByText('Alpha-Store').closest('tr')!;diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 3a8344d72a..9fdbb72159 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -64,6 +64,7 @@ import summaryCardInteractionSource from '@/components/shared/summaryCardInteracimport summaryJumpToRowButtonSource from '@/components/shared/SummaryJumpToRowButton.tsx?raw';import summaryRowActionButtonSource from '@/components/shared/SummaryRowActionButton.tsx?raw';import summaryInteractionA11ySource from '@/components/shared/summaryInteractionA11y.ts?raw';+import stickySummarySectionSource from '@/components/shared/StickySummarySection.tsx?raw';import tableSource from '@/components/shared/Table.tsx?raw';import tableCardHeaderSource from '@/components/shared/TableCardHeader.tsx?raw';import summaryTableCardHeaderSource from '@/components/shared/SummaryTableCardHeader.tsx?raw';@@ -1471,6 +1472,16 @@ describe('shared primitive guardrails', () => {expect(summaryMetricCardSource).not.toContain('Freshness');});+ it('keeps sticky summary breakpoint behavior on the shared primitive', () => {+ expect(stickySummarySectionSource).toContain('stickyDesktopOnly?: boolean');+ expect(stickySummarySectionSource).toContain(+ "stickyDesktopOnly() ? 'static lg:sticky' : 'sticky'",+ );+ expect(stickySummarySectionSource).toContain(+ 'data-sticky-summary-sticky-desktop-only={stickyDesktopOnly() ?',+ );+ });+it('keeps tooltip on shell, runtime, and model owners', () => {expect(tooltipSource).toContain('useTooltipState');expect(tooltipSource).toContain('createTooltipSystemState');diff --git a/frontend-modern/src/components/shared/StickySummarySection.tsx b/frontend-modern/src/components/shared/StickySummarySection.tsxindex 73eef10150..a2573d9659 100644--- a/frontend-modern/src/components/shared/StickySummarySection.tsx+++ b/frontend-modern/src/components/shared/StickySummarySection.tsx@@ -4,16 +4,20 @@ interface StickySummarySectionProps {children: JSX.Element;class?: string;desktopOnly?: boolean;+ stickyDesktopOnly?: boolean;}export const StickySummarySection: Component<StickySummarySectionProps> = (props) => {const desktopOnly = () => props.desktopOnly !== false;+ const stickyDesktopOnly = () => props.stickyDesktopOnly === true;+ const stickyClass = () => (stickyDesktopOnly() ? 'static lg:sticky' : 'sticky');return (<divdata-sticky-summary="true"data-sticky-summary-desktop-only={desktopOnly() ? 'true' : 'false'}- class={`${desktopOnly() ? 'hidden lg:block ' : ''}sticky-shield sticky top-0 z-20 bg-surface ${+ data-sticky-summary-sticky-desktop-only={stickyDesktopOnly() ? 'true' : 'false'}+ class={`${desktopOnly() ? 'hidden lg:block ' : ''}sticky-shield ${stickyClass()} top-0 z-20 bg-surface ${props.class ?? ''}`.trim()}>diff --git a/frontend-modern/src/components/shared/__tests__/StickySummarySection.test.tsx b/frontend-modern/src/components/shared/__tests__/StickySummarySection.test.tsxnew file mode 100644index 0000000000..758ffaf840--- /dev/null+++ b/frontend-modern/src/components/shared/__tests__/StickySummarySection.test.tsx@@ -0,0 +1,35 @@+import { render, screen } from '@solidjs/testing-library';+import { describe, expect, it } from 'vitest';+import { StickySummarySection } from '@/components/shared/StickySummarySection';++describe('StickySummarySection', () => {+ it('keeps summaries sticky by default on desktop-only surfaces', () => {+ render(() => (+ <StickySummarySection>+ <div>Summary content</div>+ </StickySummarySection>+ ));++ const section = screen.getByText('Summary content').closest('[data-sticky-summary="true"]');+ expect(section).toHaveAttribute('data-sticky-summary-desktop-only', 'true');+ expect(section).toHaveAttribute('data-sticky-summary-sticky-desktop-only', 'false');+ expect(section?.className).toContain('hidden');+ expect(section?.className).toContain('lg:block');+ expect(section?.className).toContain('sticky');+ });++ it('can render below desktop while only becoming sticky at desktop width', () => {+ render(() => (+ <StickySummarySection desktopOnly={false} stickyDesktopOnly>+ <div>Storage charts</div>+ </StickySummarySection>+ ));++ const section = screen.getByText('Storage charts').closest('[data-sticky-summary="true"]');+ expect(section).toHaveAttribute('data-sticky-summary-desktop-only', 'false');+ expect(section).toHaveAttribute('data-sticky-summary-sticky-desktop-only', 'true');+ expect(section?.className).not.toContain('hidden');+ expect(section?.className).toContain('static');+ expect(section?.className).toContain('lg:sticky');+ });+});diff --git a/frontend-modern/src/pages/__tests__/Storage.helpers.test.ts b/frontend-modern/src/pages/__tests__/Storage.helpers.test.tsindex ddafd5f7a1..facd9df8db 100644--- a/frontend-modern/src/pages/__tests__/Storage.helpers.test.ts+++ b/frontend-modern/src/pages/__tests__/Storage.helpers.test.ts@@ -18,5 +18,8 @@ describe('storage page route shell', () => {expect(storageSurfaceSource).toContain('<PageHeader');expect(storageSurfaceSource).toContain('title="Storage"');expect(storageSurfaceSource).toContain('useStoragePageModel');+ expect(storageSurfaceSource).toContain(+ '<StickySummarySection desktopOnly={false} stickyDesktopOnly>',+ );});});