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
Unify summary hover and sticky behavior
rcourtman92f1007ed4d3
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex cb31743023..2cba459cb8 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -134,6 +134,7 @@ management, and fleet control surfaces.10. Preserve shipped security-doc guidance in shared lifecycle setup helpers so `internal/api/config_setup_handlers.go` and adjacent install/setup runtime paths point operators at the running build's local security documentation route rather than GitHub `main` links.11. Keep shared `internal/api/router.go` workload-chart downsampling presentation-only: when that router caps mixed-cadence workload history into equal-time buckets for operator-facing cards, lifecycle-adjacent setup and fleet surfaces must not reuse the shaped chart samples as heartbeat, enrollment, or last-seen authority.That same presentation-only boundary must preserve canonical millisecond timestamps when it serializes chart points, so lifecycle-adjacent first-host and fleet surfaces do not misread rounded chart samples as duplicate or restarted heartbeat evidence.+ The same rule now applies to storage summary interaction. Shared sticky-card or row-hover focus behavior on infrastructure, workloads, and storage may reuse the canonical chart transport, but lifecycle-adjacent install, enrollment, and fleet surfaces must not treat highlighted summary series or sticky-shell state as agent freshness or setup progress.## Forbidden Pathsdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 5a4b73d4f9..287255d791 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -176,6 +176,7 @@ Own canonical runtime payload shapes between backend and frontend.23. Keep infrastructure summary chart transport contract-backed on the shared API surface: `internal/api/router.go`, `internal/api/contract_test.go`, and frontend infrastructure summary consumers must normalize long-range mixed-cadence history into equal-time summary buckets before shipping the infrastructure charts API payload, so 7-day and 30-day summary cards do not expose compressed right-edge tails just because recent samples arrive at a finer storage resolution.24. Keep long-range workload chart transport time-proportional on the shared API surface: `internal/api/router.go`, `internal/api/contract_test.go`, and workload chart consumers must cap mixed-cadence workload history by equal-time buckets rather than raw point index for the per-workload and aggregate workload chart APIs, so 7-day and 30-day workload cards do not bunch recent samples at the right edge just because recent telemetry is stored more densely.25. Keep chart timestamp precision canonical on that same shared API surface: when `internal/api/router.go` serializes monitoring history into infrastructure or workload chart payloads, it must preserve canonical millisecond timestamps from the shared monitoring timeline instead of rounding through whole-second conversion, so seeded mock history and live appends collapse onto one operator-visible timeline instead of appearing as duplicated tail samples.+26. Keep storage chart identity canonical on that same shared API surface: the shared storage charts endpoint must key pool and physical-disk series by the resolved unified-resource `MetricsTarget.ResourceID`, not by canonical resource IDs or page-local aliases, so storage rows, focused summary cards, sticky summary shells, and detail charts all address the same history series in live and mock mode.## Forbidden Pathsdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex bd9b9d56b9..13ab18600d 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -144,6 +144,7 @@ work extends shared components instead of creating new local variants.4. Add guardrail tests when a new shared pattern is introduced5. Keep shared platform-connections shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts`, `frontend-modern/src/components/Settings/InfrastructurePlatformConnectionsSummaryCard.tsx`, and `frontend-modern/src/components/Settings/PlatformConnectionsWorkspace.tsx` must continue to derive provider counts, availability, and shared subtab copy from one infrastructure-settings source instead of creating provider-local summary fetches or VMware-only shell vocabulary.6. 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.+7. 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.## Forbidden Paths@@ -468,10 +469,11 @@ Those supporting cards must also keep their content factual and count-based:active findings, critical findings, warnings, and fixes are valid secondaryreadouts, while labels such as `Issues detected` or `Partial verification`belong only to the primary Patrol assessment and verification surfaces.-The same applies to the Patrol activity strip during active execution: the-shared feature surface may add an explicit run-in-progress badge, but the main-status-strip label remains factual activity copy rather than shifting into a-second Patrol verdict label while a run is underway.+The same applies to Patrol operational context during active execution: the+shared feature surface may add an explicit run-in-progress badge, but any+activity support surface or integrated summary panel must remain factual+activity copy rather than shifting into a second Patrol verdict label while a+run is underway.`frontend-modern/src/components/shared/TagBadges.tsx` is now also thecanonical tag-badge primitive. Dashboard workload rows and the unified-resourcedetail drawer must import that shared owner instead of keeping a dashboard-local@@ -1175,11 +1177,11 @@ whether recent activity was limited to scoped/erroring patrol runs.When the same governed run-history contract shows a recent full patrol plussame-day scoped follow-up work, that summary shell should also carry a compactactivity-mix explanation rather than forcing operators to infer why Patrol-looked busy from a separate activity strip alone.+looked busy from a second competing status band.That explanation belongs on the verification surface itself when operators arereconciling `Recently verified` copy against same-day scoped Patrol bursts; the-status strip may support the readout, but it is not sufficient as the only-explanation path.+supporting activity context may complement the readout, but it is not+sufficient as the only explanation path.That same shell rule also owns Patrol recency labels. Shared Patrol header andstatus-shell surfaces must keep `Last full patrol` tied only to the full-sweeptransport fact and use `Last activity` for scoped or verification work insteaddiff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.mdindex 53d564b912..5ae4ba1c0f 100644--- a/docs/release-control/v6/internal/subsystems/monitoring.md+++ b/docs/release-control/v6/internal/subsystems/monitoring.md@@ -127,6 +127,12 @@ window instead of stitching a second live tail onto the end of seededsparklines. Monitoring must not let provider-owned mock resources receive aduplicate generic unified-resource writer that appends a divergent recent tailafter the canonical mock sampler has already seeded and extended that series.+That same chart boundary also owns storage-series identity. Monitoring and+`ReadState` consumers must address storage pool and physical-disk history+through the resolved unified-resource metrics target, so seeded history,+runtime writes, storage summary hover selection, and detail charts all extend+one series instead of splitting between canonical resource IDs and+source-native metric IDs.That same summary owner also owns VMware partial-success classification.Optional VI JSON or Automation enrichment reads that fail after basehost/VM/datastore inventory succeeds must not collapse the whole poll into adiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 8b77daee5d..049c78991c 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -166,6 +166,7 @@ regression protection.24. Extend dashboard shell rendering through `frontend-modern/src/components/Dashboard/DashboardStateCards.tsx`, `frontend-modern/src/components/Dashboard/DashboardWorkloadTable.tsx`, and `frontend-modern/src/components/Dashboard/DashboardStatsStrip.tsx` rather than accreting loading cards, workload table markup, or stats-strip presentation back into `frontend-modern/src/components/Dashboard/Dashboard.tsx`25. Extend dashboard workload table shell ownership through `frontend-modern/src/components/Dashboard/WorkloadTableHeader.tsx` and `frontend-modern/src/components/Dashboard/WorkloadPanel.tsx` rather than rebuilding sortable header markup, grouped node rows, row expansion, or guest-drawer rendering inside `frontend-modern/src/components/Dashboard/DashboardWorkloadTable.tsx`26. Keep long-range workload chart capping time-proportional across `frontend-modern/src/components/Workloads/WorkloadsSummary.tsx`, `frontend-modern/src/api/charts.ts`, and `internal/api/router.go`: when the workload hot path caps mixed-cadence history for top cards, it must bucket by time window rather than raw point index so 7-day and 30-day workload cards stay visually even without relaxing the protected payload budget.+27. Keep summary hover/focus and sticky-card behavior on shared hot paths: infrastructure, workloads, and storage summary shells must reuse one focused-series 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 without multiplying render or scroll work.## Forbidden Pathsdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex ec41eebdb4..0790c34fd1 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -157,6 +157,11 @@ querying, and the operator-facing storage health presentation layer.snapshot-backed platforms, provider-backed fixtures, unified inventory,and recovery/storage context stay aligned instead of drifting throughrecovery-local fixture assembly or partial mock helper APIs.+12. Keep storage summary chart identity and sticky-shell behavior on the+ shared storage path. Pool rows, disk rows, storage summary cards, and+ storage detail charts must all address history through the canonical+ unified-resource metrics-target IDs, and the storage page must reuse the+ shared sticky summary primitive instead of a storage-local scroll wrapper.## Current State@@ -221,6 +226,11 @@ used-capacity, and available-space cards may consume shaped chart payloads forpresentation, but those payloads must still reflect one canonical mock metrictimeline instead of a seeded seven-day sparkline with a second live tailstitched on afterward.+That same chart boundary now also owns row-hover summary filtering. Storage+pool and disk rows may focus the summary cards, but the shared storage summary+must filter every supported card through the same canonical metrics-target+identity rather than letting temperature, capacity, or detail cards drift onto+page-local row identifiers.That same shared `internal/api/` dependency also assumes auth-persistenceteardown is synchronous when recovery-adjacent runtimes reinitialize. Session,CSRF, and recovery-token workers may not leave stale background goroutines ordiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex e51af530da..4ca19bb6bb 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -222,6 +222,13 @@ must preserve the canonical `MetricsTarget` already attached to provider-backedagents or app-containers, and typed views must expose that stored targetunchanged so shared chart routes keep using canonical IDs across live and demoprojections.+That same registry/view boundary now also applies to provider-backed storage.+`internal/unifiedresources/registry.go` must attach the resolved+`MetricsTarget` onto cached view clones before `ReadState` exposes+`StoragePoolView` or `PhysicalDiskView`, so `/api/resources`, storage summary+selection, and `/api/storage-charts` all see the same canonical history+identity instead of splitting between view-cache resource IDs and API+serialization-time metric IDs.That same VMware contract now also includes the identity rule. VMware managedobject identifiers are phase-1 provider identities, but they must be scoped bythe owning `vCenter` connection or discovered vCenter identity so bare objectdiff --git a/frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx b/frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsxindex 513379701a..f4b8653e68 100644--- a/frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx+++ b/frontend-modern/src/components/Infrastructure/InfrastructureSummary.tsx@@ -99,6 +99,7 @@ export const InfrastructureSummary: Component<InfrastructureSummaryProps> = (prorangeLabel={rangeLabel()}timeRange={props.timeRange}formatValue={formatThroughputRate}+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard>@@ -138,10 +139,7 @@ export const InfrastructureSummary: Component<InfrastructureSummaryProps> = (pro<span>{state.workloadStats().vms} VMs</span></Show><Show- when={- state.workloadStats().vms > 0 &&- state.workloadStats().containers > 0- }+ when={state.workloadStats().vms > 0 && state.workloadStats().containers > 0}><span class="mx-0.5">·</span></Show>@@ -171,6 +169,7 @@ export const InfrastructureSummary: Component<InfrastructureSummaryProps> = (prorangeLabel={rangeLabel()}timeRange={props.timeRange}formatValue={formatThroughputRate}+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard></Show>diff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsxindex 0769c03207..34f9c04fa4 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx@@ -190,9 +190,7 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCarconst statusIndicator = createMemo(() =>getAgentStatusIndicator({ status: resource.status }),);- const metricsKey = createMemo(() =>- buildMetricKeyForUnifiedResource(resource),- );+ const metricsKey = createMemo(() => buildMetricKeyForUnifiedResource(resource));const cpuPercentValue = createMemo(() =>resource.cpu ? Math.round(getCpuPercent(resource)) : null,@@ -258,16 +256,12 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCarreturn className;});- const platformBadge = createMemo(() =>- getPlatformBadge(resource.platformType),- );+ const platformBadge = createMemo(() => getPlatformBadge(resource.platformType));const sourceBadge = createMemo(() => getSourceBadge(resource.sourceType));const unifiedSourceBadges = createMemo(() =>getUnifiedSourceBadges(table.getUnifiedSources(resource)),);- const hasUnifiedSources = createMemo(- () => unifiedSourceBadges().length > 0,- );+ const hasUnifiedSources = createMemo(() => unifiedSourceBadges().length > 0);const policyBadges = createMemo(() =>getResourcePolicyTableBadges(resource.policy),);@@ -277,6 +271,7 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar<><TableRowref={(el) => table.registerRowRef(resource.id, el)}+ data-row-id={resource.id}class={rowClass()}style={{ 'min-height': '32px' }}onClick={() => table.toggleExpand(resource.id)}@@ -444,7 +439,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar</Show></TableCell>- <TableCell classList={{ hidden: table.isMobile() || !table.isVisible('secondary') }}>+ <TableCell+ classList={{ hidden: table.isMobile() || !table.isVisible('secondary') }}+ ><Showwhen={resource.network}fallback={@@ -481,7 +478,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar</TableCell><TableCell- classList={{ hidden: table.isMobile() || !table.isVisible('supplementary') }}+ classList={{+ hidden: table.isMobile() || !table.isVisible('supplementary'),+ }}><Showwhen={resource.diskIO}@@ -522,7 +521,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar</Show></TableCell>- <TableCell classList={{ hidden: table.isMobile() || !table.isVisible('secondary') }}>+ <TableCell+ classList={{ hidden: table.isMobile() || !table.isVisible('secondary') }}+ ><div class="flex items-center justify-center gap-1"><Showwhen={hasUnifiedSources()}@@ -557,7 +558,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar</TableCell><TableCell- classList={{ hidden: table.isMobile() || !table.isVisible('supplementary') }}+ classList={{+ hidden: table.isMobile() || !table.isVisible('supplementary'),+ }}><div class="flex justify-center"><Show@@ -572,7 +575,9 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar</TableCell><TableCell- classList={{ hidden: table.isMobile() || !table.isVisible('supplementary') }}+ classList={{+ hidden: table.isMobile() || !table.isVisible('supplementary'),+ }}><div class="flex justify-center"><Showdiff --git a/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.tsindex a8f9d4368a..bd024ad28e 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.ts+++ b/frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.ts@@ -115,6 +115,31 @@ describe('infrastructureSummaryModel', () => {expect(buildInfrastructureEmptyMessage(false, 'No history yet')).toBe('No history yet');});+ it('keeps network and diskio series on canonical ids when focused summary selection narrows the view', () => {+ const displayedSeries = buildInfrastructureDisplaySeries(+ [+ makeSeries('host-1', {+ name: 'Host 1',+ network: [{ timestamp: 1, value: 120 }],+ diskio: [{ timestamp: 1, value: 45 }],+ }),+ makeSeries('host-2', {+ name: 'Host 2',+ network: [{ timestamp: 2, value: 240 }],+ diskio: [{ timestamp: 2, value: 90 }],+ }),+ ],+ 'host-2',+ );++ expect(buildInfrastructureMetricSeries(displayedSeries, 'network')).toEqual([+ { id: 'host-2', data: [{ timestamp: 2, value: 240 }], color: '#00aaff', name: 'Host 2' },+ ]);+ expect(buildInfrastructureMetricSeries(displayedSeries, 'diskio')).toEqual([+ { id: 'host-2', data: [{ timestamp: 2, value: 90 }], color: '#00aaff', name: 'Host 2' },+ ]);+ });+it('shows the network card when either data or network capability exists', () => {expect(shouldShowInfrastructureNetworkCard(false, [diff --git a/frontend-modern/src/components/Storage/DiskList.tsx b/frontend-modern/src/components/Storage/DiskList.tsxindex 0671e9983a..de882feaa3 100644--- a/frontend-modern/src/components/Storage/DiskList.tsx+++ b/frontend-modern/src/components/Storage/DiskList.tsx@@ -1,5 +1,6 @@import { Component, For, Show } from 'solid-js';import { Card } from '@/components/shared/Card';+import { resolvePhysicalDiskMetricResourceId } from '@/features/storageBackups/storageMetricsIdentity';import {Table,TableBody,@@ -75,6 +76,9 @@ interface DiskListProps {nodes: Resource[];selectedNode: string | null;searchTerm: string;+ selectedDiskId: string | null;+ onSelectedDiskChange: (diskId: string | null) => void;+ onHoverChange?: (diskId: string | null) => void;}export const DiskList: Component<DiskListProps> = (props) => {@@ -83,6 +87,8 @@ export const DiskList: Component<DiskListProps> = (props) => {nodes: () => props.nodes,selectedNode: () => props.selectedNode,searchTerm: () => props.searchTerm,+ selectedDiskId: () => props.selectedDiskId,+ setSelectedDiskId: props.onSelectedDiskChange,});const emptyState = () =>getPhysicalDiskEmptyStatePresentation({@@ -110,7 +116,9 @@ export const DiskList: Component<DiskListProps> = (props) => {when={emptyState().showRequirements}fallback={<div class={PHYSICAL_DISK_EMPTY_FALLBACK_CLASS}>- <p class={PHYSICAL_DISK_EMPTY_FALLBACK_TEXT_CLASS}>{emptyState().fallbackMessage}</p>+ <p class={PHYSICAL_DISK_EMPTY_FALLBACK_TEXT_CLASS}>+ {emptyState().fallbackMessage}+ </p></div>}>@@ -132,7 +140,10 @@ export const DiskList: Component<DiskListProps> = (props) => {<Show when={model.filteredDisks().length > 0}><Card padding="none" tone="card" class="overflow-hidden">- <div class={PHYSICAL_DISK_TABLE_SCROLL_CLASS} style={{ '-webkit-overflow-scrolling': 'touch' }}>+ <div+ class={PHYSICAL_DISK_TABLE_SCROLL_CLASS}+ style={{ '-webkit-overflow-scrolling': 'touch' }}+ ><Table class={PHYSICAL_DISK_TABLE_CLASS}><TableHeader><TableRow class={PHYSICAL_DISK_TABLE_HEADER_ROW_CLASS}>@@ -160,10 +171,16 @@ export const DiskList: Component<DiskListProps> = (props) => {return (<><TableRow+ data-row-id={disk.id}+ data-summary-series-id={resolvePhysicalDiskMetricResourceId(disk)}class={`${PHYSICAL_DISK_TABLE_ROW_CLASS} ${- isSelected() ? PHYSICAL_DISK_TABLE_ROW_SELECTED_CLASS : PHYSICAL_DISK_TABLE_ROW_HOVER_CLASS+ isSelected()+ ? PHYSICAL_DISK_TABLE_ROW_SELECTED_CLASS+ : PHYSICAL_DISK_TABLE_ROW_HOVER_CLASS}`}style={PHYSICAL_DISK_TABLE_ROW_STYLE}+ onMouseEnter={() => props.onHoverChange?.(disk.id)}+ onMouseLeave={() => props.onHoverChange?.(null)}onClick={() => model.toggleSelectedDisk(disk)}><TableCell class={PHYSICAL_DISK_CELL_DISK_CLASS}>@@ -182,7 +199,12 @@ export const DiskList: Component<DiskListProps> = (props) => {</TableCell><TableCell class={PHYSICAL_DISK_CELL_HOST_CLASS}>- <Show when={hostLabel} fallback={<span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>}>+ <Show+ when={hostLabel}+ fallback={+ <span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>+ }+ ><span class={PHYSICAL_DISK_VALUE_TEXT_CLASS} title={hostLabel}>{hostLabel}</span>@@ -192,9 +214,14 @@ export const DiskList: Component<DiskListProps> = (props) => {<TableCell class={PHYSICAL_DISK_CELL_ROLE_CLASS}><Showwhen={getPhysicalDiskRoleLabel(data)}- fallback={<span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>}+ fallback={+ <span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>+ }>- <span class={PHYSICAL_DISK_VALUE_TEXT_CLASS} title={getPhysicalDiskRoleLabel(data)}>+ <span+ class={PHYSICAL_DISK_VALUE_TEXT_CLASS}+ title={getPhysicalDiskRoleLabel(data)}+ >{getPhysicalDiskRoleLabel(data)}</span></Show>@@ -203,9 +230,14 @@ export const DiskList: Component<DiskListProps> = (props) => {<TableCell class={PHYSICAL_DISK_CELL_PARENT_CLASS}><Showwhen={getPhysicalDiskParentLabel(data)}- fallback={<span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>}+ fallback={+ <span class={PHYSICAL_DISK_MUTED_PLACEHOLDER_CLASS}>—</span>+ }>- <span class={PHYSICAL_DISK_VALUE_TEXT_CLASS} title={getPhysicalDiskParentLabel(data)}>+ <span+ class={PHYSICAL_DISK_VALUE_TEXT_CLASS}+ title={getPhysicalDiskParentLabel(data)}+ >{getPhysicalDiskParentLabel(data)}</span></Show>@@ -217,7 +249,10 @@ export const DiskList: Component<DiskListProps> = (props) => {{status.label}</span><Show when={healthSummary}>- <span class={PHYSICAL_DISK_HEALTH_SUMMARY_CLASS} title={healthSummary}>+ <span+ class={PHYSICAL_DISK_HEALTH_SUMMARY_CLASS}+ title={healthSummary}+ >{healthSummary}</span></Show>@@ -225,13 +260,17 @@ export const DiskList: Component<DiskListProps> = (props) => {</TableCell><TableCell class={PHYSICAL_DISK_CELL_TEMP_CLASS}>- <span class={`${PHYSICAL_DISK_TEMPERATURE_CLASS} ${getTemperatureTextClass(data.temperature)}`}>+ <span+ class={`${PHYSICAL_DISK_TEMPERATURE_CLASS} ${getTemperatureTextClass(data.temperature)}`}+ >{data.temperature > 0 ? formatTemperature(data.temperature) : '—'}</span></TableCell><TableCell class={PHYSICAL_DISK_CELL_SIZE_CLASS}>- <span class={PHYSICAL_DISK_SIZE_VALUE_CLASS}>{formatBytes(data.size)}</span>+ <span class={PHYSICAL_DISK_SIZE_VALUE_CLASS}>+ {formatBytes(data.size)}+ </span></TableCell><TableCell class={PHYSICAL_DISK_CELL_EXPAND_CLASS}>@@ -262,10 +301,7 @@ export const DiskList: Component<DiskListProps> = (props) => {</TableRow><Show when={isSelected()}><TableRow>- <TableCell- colSpan={9}- class={PHYSICAL_DISK_DETAIL_ROW_CELL_CLASS}- >+ <TableCell colSpan={9} class={PHYSICAL_DISK_DETAIL_ROW_CELL_CLASS}><DiskDetail disk={disk} nodes={props.nodes} /></TableCell></TableRow>diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsxindex 23cbd0785e..2956a542d8 100644--- a/frontend-modern/src/components/Storage/Storage.tsx+++ b/frontend-modern/src/components/Storage/Storage.tsx@@ -4,6 +4,7 @@ import StorageContentCard from '@/components/Storage/StorageContentCard';import StoragePageBanners from '@/components/Storage/StoragePageBanners';import StoragePageControls from '@/components/Storage/StoragePageControls';import StoragePageSummary from '@/components/Storage/StoragePageSummary';+import { StickySummarySection } from '@/components/shared/StickySummarySection';import { isStorageRecordCeph } from './storagePageState';import { useStoragePageModel } from './useStoragePageModel';@@ -44,17 +45,26 @@ const Storage: Component = () => {nodeOnlineByLabel,highlightedRecordId,getRecordAlertState,+ hoveredStorageResourceId,isLoadingPools,+ focusedStorageResourceId,+ selectedDiskId,+ setHoveredStorageResourceId,+ setSelectedDiskId,} = useStoragePageModel();return (<div class="space-y-4">- <StoragePageSummary- filteredRecordCount={() => filteredRecords().length}- selectedNodeId={selectedNodeId}- nodeOptions={nodeOptions}- physicalDisks={physicalDisks}- />+ <StickySummarySection desktopOnly={false}>+ <StoragePageSummary+ filteredRecordCount={() => filteredRecords().length}+ selectedNodeId={selectedNodeId}+ nodeOptions={nodeOptions}+ physicalDisks={physicalDisks}+ hoveredResourceId={hoveredStorageResourceId}+ focusedResourceId={focusedStorageResourceId}+ />+ </StickySummarySection><StorageCephSectionview={view}@@ -104,6 +114,10 @@ const Storage: Component = () => {highlightedRecordId={highlightedRecordId}getRecordAlertState={getRecordAlertState}isLoadingPools={isLoadingPools}+ hoveredStorageResourceId={hoveredStorageResourceId}+ setHoveredStorageResourceId={setHoveredStorageResourceId}+ selectedDiskId={selectedDiskId}+ setSelectedDiskId={setSelectedDiskId}/></div>);diff --git a/frontend-modern/src/components/Storage/StorageContentCard.tsx b/frontend-modern/src/components/Storage/StorageContentCard.tsxindex f35e985110..3f8720b561 100644--- a/frontend-modern/src/components/Storage/StorageContentCard.tsx+++ b/frontend-modern/src/components/Storage/StorageContentCard.tsx@@ -28,6 +28,10 @@ type StorageContentCardProps = {highlightedRecordId: () => string | null;getRecordAlertState: (recordId: string) => StorageAlertRowState;isLoadingPools: () => boolean;+ hoveredStorageResourceId: () => string | null;+ setHoveredStorageResourceId: (value: string | null) => void;+ selectedDiskId: () => string | null;+ setSelectedDiskId: (value: string | null) => void;};export const StorageContentCard: Component<StorageContentCardProps> = (props) => {@@ -38,9 +42,7 @@ export const StorageContentCard: Component<StorageContentCardProps> = (props) =>return (<Card padding="none" tone="card" class="overflow-hidden">- <div class={STORAGE_CONTENT_CARD_HEADER_CLASS}>- {model.heading()}- </div>+ <div class={STORAGE_CONTENT_CARD_HEADER_CLASS}>{model.heading()}</div><Show when={model.showDisks()}><div class={STORAGE_CONTENT_CARD_BODY_CLASS}><DiskList@@ -48,6 +50,9 @@ export const StorageContentCard: Component<StorageContentCardProps> = (props) =>nodes={props.nodes()}selectedNode={model.selectedDiskNodeId()}searchTerm={props.search()}+ selectedDiskId={props.selectedDiskId()}+ onSelectedDiskChange={props.setSelectedDiskId}+ onHoverChange={props.setHoveredStorageResourceId}/></div></Show>@@ -64,6 +69,7 @@ export const StorageContentCard: Component<StorageContentCardProps> = (props) =>highlightedRecordId={props.highlightedRecordId()}getRecordAlertState={props.getRecordAlertState}isLoading={props.isLoadingPools()}+ onHoverChange={props.setHoveredStorageResourceId}/></Show></Card>diff --git a/frontend-modern/src/components/Storage/StoragePageSummary.tsx b/frontend-modern/src/components/Storage/StoragePageSummary.tsxindex 17423391d1..bbbda86d2f 100644--- a/frontend-modern/src/components/Storage/StoragePageSummary.tsx+++ b/frontend-modern/src/components/Storage/StoragePageSummary.tsx@@ -9,6 +9,8 @@ type StoragePageSummaryProps = {selectedNodeId: () => string;nodeOptions: () => StoragePageNodeOption[];physicalDisks: () => Resource[];+ hoveredResourceId: () => string | null;+ focusedResourceId: () => string | null;};export const StoragePageSummary: Component<StoragePageSummaryProps> = (props) => {@@ -26,6 +28,8 @@ export const StoragePageSummary: Component<StoragePageSummaryProps> = (props) =>timeRange={summaryTimeRange()}onTimeRangeChange={setSummaryTimeRange}nodeId={props.selectedNodeId()}+ hoveredResourceId={props.hoveredResourceId()}+ focusedResourceId={props.focusedResourceId()}/>);};diff --git a/frontend-modern/src/components/Storage/StoragePoolRow.tsx b/frontend-modern/src/components/Storage/StoragePoolRow.tsxindex 2d3fdf9f3c..d9608d4130 100644--- a/frontend-modern/src/components/Storage/StoragePoolRow.tsx+++ b/frontend-modern/src/components/Storage/StoragePoolRow.tsx@@ -37,8 +37,10 @@ import { StoragePoolDetail } from './StoragePoolDetail';interface StoragePoolRowProps {record: StorageRecord;+ summarySeriesId: string;expanded: boolean;onToggleExpand: () => void;+ onHoverChange?: (recordId: string | null) => void;rowClass: string;rowStyle: Record<string, string>;physicalDisks: Resource[];@@ -59,6 +61,9 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {class={`${STORAGE_POOL_ROW_CLASS} ${props.rowClass} ${props.expanded ? STORAGE_POOL_ROW_EXPANDED_CLASS : ''}`}style={{ ...props.rowStyle, ...STORAGE_POOL_ROW_STYLE }}onClick={props.onToggleExpand}+ onMouseEnter={() => props.onHoverChange?.(props.record.id)}+ onMouseLeave={() => props.onHoverChange?.(null)}+ data-summary-series-id={props.summarySeriesId}{...props.alertDataAttrs}><td class={STORAGE_POOL_ROW_NAME_CELL_CLASS}>@@ -68,9 +73,7 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td class={STORAGE_POOL_ROW_SOURCE_CELL_CLASS}>- <span- class={`${row().platformToneClass} ${STORAGE_POOL_ROW_SOURCE_BADGE_CLASS}`}- >+ <span class={`${row().platformToneClass} ${STORAGE_POOL_ROW_SOURCE_BADGE_CLASS}`}>{row().platformLabel}</span></td>@@ -88,7 +91,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td class={STORAGE_POOL_ROW_PROTECTION_CELL_CLASS}>- <Show when={row().compactProtection !== '—'} fallback={<span class={STORAGE_POOL_ROW_PLACEHOLDER_CLASS}>—</span>}>+ <Show+ when={row().compactProtection !== '—'}+ fallback={<span class={STORAGE_POOL_ROW_PLACEHOLDER_CLASS}>—</span>}+ ><spanclass={`${STORAGE_POOL_ROW_PROTECTION_TEXT_CLASS} ${getStoragePoolProtectionTextClass(props.record)}`}title={row().compactProtectionTitle || row().compactProtection}@@ -99,7 +105,10 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td class={STORAGE_POOL_ROW_USAGE_CELL_CLASS}>- <Show when={row().totalBytes > 0} fallback={<span class={STORAGE_POOL_ROW_USAGE_FALLBACK_CLASS}>n/a</span>}>+ <Show+ when={row().totalBytes > 0}+ fallback={<span class={STORAGE_POOL_ROW_USAGE_FALLBACK_CLASS}>n/a</span>}+ ><div class={STORAGE_POOL_ROW_USAGE_WRAP_CLASS}><div class={STORAGE_POOL_ROW_USAGE_BAR_WRAP_CLASS}><EnhancedStorageBar@@ -114,13 +123,19 @@ export const StoragePoolRow: Component<StoragePoolRowProps> = (props) => {</td><td class={STORAGE_POOL_ROW_IMPACT_CELL_CLASS}>- <span class={getStoragePoolImpactTextClass(row().compactImpact)} title={row().compactImpact}>+ <span+ class={getStoragePoolImpactTextClass(row().compactImpact)}+ title={row().compactImpact}+ >{row().compactImpact}</span></td><td class={STORAGE_POOL_ROW_ISSUE_CELL_CLASS}>- <Show when={row().compactIssue !== '—'} fallback={<span class={STORAGE_POOL_ROW_PLACEHOLDER_CLASS}>—</span>}>+ <Show+ when={row().compactIssue !== '—'}+ fallback={<span class={STORAGE_POOL_ROW_PLACEHOLDER_CLASS}>—</span>}+ ><spanclass={`${STORAGE_POOL_ROW_ISSUE_TEXT_CLASS} ${getStoragePoolIssueTextClass(props.record)}`}title={row().compactIssueSummary || row().compactIssue}diff --git a/frontend-modern/src/components/Storage/StoragePoolsTable.tsx b/frontend-modern/src/components/Storage/StoragePoolsTable.tsxindex 6274bcd0e3..a8cfa8ad24 100644--- a/frontend-modern/src/components/Storage/StoragePoolsTable.tsx+++ b/frontend-modern/src/components/Storage/StoragePoolsTable.tsx@@ -11,6 +11,7 @@ import {STORAGE_POOLS_TABLE_CLASS,STORAGE_POOL_TABLE_COLUMNS,} from '@/features/storageBackups/storagePagePresentation';+import { resolveStorageRecordMetricResourceId } from '@/features/storageBackups/storageMetricsIdentity';import type { StorageAlertRowState } from '@/features/storageBackups/storageAlertState';import type { Resource } from '@/types/resource';import { StorageGroupRow } from './StorageGroupRow';@@ -30,6 +31,7 @@ type StoragePoolsTableProps = {highlightedRecordId: string | null;getRecordAlertState: (recordId: string) => StorageAlertRowState;isLoading: boolean;+ onHoverChange?: (recordId: string | null) => void;};export const StoragePoolsTable: Component<StoragePoolsTableProps> = (props) => {@@ -50,7 +52,9 @@ export const StoragePoolsTable: Component<StoragePoolsTableProps> = (props) => {fallback={<Showwhen={props.groupedRecords.length > 0}- fallback={<div class={STORAGE_POOLS_EMPTY_STATE_CLASS}>{getStorageEmptyStateMessage()}</div>}+ fallback={+ <div class={STORAGE_POOLS_EMPTY_STATE_CLASS}>{getStorageEmptyStateMessage()}</div>+ }><div class={STORAGE_POOLS_SCROLL_WRAP_CLASS}><Table class={STORAGE_POOLS_TABLE_CLASS}>@@ -81,8 +85,10 @@ export const StoragePoolsTable: Component<StoragePoolsTableProps> = (props) => {return (<StoragePoolRowrecord={record()}+ summarySeriesId={resolveStorageRecordMetricResourceId(record())}expanded={rowModel().expanded}onToggleExpand={() => model.togglePool(record().id)}+ onHoverChange={props.onHoverChange}rowClass={rowModel().rowClass}rowStyle={rowModel().rowStyle}physicalDisks={props.physicalDisks}diff --git a/frontend-modern/src/components/Storage/StorageSummary.tsx b/frontend-modern/src/components/Storage/StorageSummary.tsxindex b17fb7d98d..1afe2a779e 100644--- a/frontend-modern/src/components/Storage/StorageSummary.tsx+++ b/frontend-modern/src/components/Storage/StorageSummary.tsx@@ -51,6 +51,8 @@ interface StorageSummaryProps {timeRange: SummaryTimeRange;onTimeRangeChange?: (range: SummaryTimeRange) => void;nodeId?: string;+ hoveredResourceId?: string | null;+ focusedResourceId?: string | null;}// ---------------------------------------------------------------------------@@ -165,6 +167,21 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {// Series builders// ---------------------------------------------------------------------------+ const filterFocusedSeries = (+ series: InteractiveSparklineSeries[],+ ): InteractiveSparklineSeries[] => {+ const focusedId = props.focusedResourceId;+ if (!focusedId) return series;+ const match = series.find((entry) => entry.id === focusedId);+ return match ? [match] : series;+ };++ const getFocusedSeriesName = (series: InteractiveSparklineSeries[]): string | null => {+ const focusedId = props.focusedResourceId;+ if (!focusedId) return null;+ return series.find((entry) => entry.id === focusedId)?.name ?? null;+ };+const poolUsageSeries = createMemo((): InteractiveSparklineSeries[] => {const d = data();if (!d?.pools) return [];@@ -178,6 +195,7 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {data: pool.usage as MetricPoint[],}));});+ const displayedPoolUsageSeries = createMemo(() => filterFocusedSeries(poolUsageSeries()));const poolUsedSeries = createMemo((): InteractiveSparklineSeries[] => {const d = data();@@ -192,6 +210,7 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {data: pool.used as MetricPoint[],}));});+ const displayedPoolUsedSeries = createMemo(() => filterFocusedSeries(poolUsedSeries()));const poolAvailSeries = createMemo((): InteractiveSparklineSeries[] => {const d = data();@@ -206,6 +225,7 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {data: pool.avail as MetricPoint[],}));});+ const displayedPoolAvailSeries = createMemo(() => filterFocusedSeries(poolAvailSeries()));const diskTempSeries = createMemo((): InteractiveSparklineSeries[] => {const d = data();@@ -220,11 +240,12 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {data: disk.temperature as MetricPoint[],}));});+ const displayedDiskTempSeries = createMemo(() => filterFocusedSeries(diskTempSeries()));- const hasPoolUsage = () => poolUsageSeries().length > 0;- const hasDiskTemp = () => diskTempSeries().length > 0;- const hasPoolUsed = () => poolUsedSeries().length > 0;- const hasPoolAvail = () => poolAvailSeries().length > 0;+ const hasPoolUsage = () => displayedPoolUsageSeries().length > 0;+ const hasDiskTemp = () => displayedDiskTempSeries().length > 0;+ const hasPoolUsed = () => displayedPoolUsedSeries().length > 0;+ const hasPoolAvail = () => displayedPoolAvailSeries().length > 0;const emptyLabel = () => (fetchFailed() ? 'Trend data unavailable' : 'No history yet');@@ -233,6 +254,11 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {const formatTemp = (value: number) => `${value.toFixed(0)}°C`;const showComponent = () => props.poolCount > 0 || props.diskCount > 0;+ const focusedLabel = (series: InteractiveSparklineSeries[]) => {+ const name = getFocusedSeriesName(series);+ if (!name) return undefined;+ return <span class="text-xs text-muted ml-1.5 truncate">— {name}</span>;+ };return (<Show when={showComponent()}>@@ -256,67 +282,75 @@ const StorageSummary: Component<StorageSummaryProps> = (props) => {><SummaryMetricCardlabel="Pool Usage"+ secondaryLabel={focusedLabel(poolUsageSeries())}loaded={loaded()}hasData={hasPoolUsage()}emptyMessage={emptyLabel()}><InteractiveSparkline- series={poolUsageSeries()}+ series={displayedPoolUsageSeries()}rangeLabel={rangeLabel()}timeRange={props.timeRange as TimeRange}yMode="percent"highlightNearestSeriesOnHover+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard><SummaryMetricCardlabel="Disk Temperature"+ secondaryLabel={focusedLabel(diskTempSeries())}loaded={loaded()}hasData={hasDiskTemp()}emptyMessage={emptyLabel()}><InteractiveSparkline- series={diskTempSeries()}+ series={displayedDiskTempSeries()}rangeLabel={rangeLabel()}timeRange={props.timeRange as TimeRange}yMode="auto"formatValue={formatTemp}formatTopLabel={(max) => `${max.toFixed(0)}°C`}highlightNearestSeriesOnHover+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard><SummaryMetricCardlabel="Used Capacity"+ secondaryLabel={focusedLabel(poolUsedSeries())}loaded={loaded()}hasData={hasPoolUsed()}emptyMessage={emptyLabel()}><InteractiveSparkline- series={poolUsedSeries()}+ series={displayedPoolUsedSeries()}rangeLabel={rangeLabel()}timeRange={props.timeRange as TimeRange}yMode="auto"formatValue={(v) => formatBytes(v)}formatTopLabel={(max) => formatBytes(max)}highlightNearestSeriesOnHover+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard><SummaryMetricCardlabel="Available Space"+ secondaryLabel={focusedLabel(poolAvailSeries())}loaded={loaded()}hasData={hasPoolAvail()}emptyMessage={emptyLabel()}><InteractiveSparkline- series={poolAvailSeries()}+ series={displayedPoolAvailSeries()}rangeLabel={rangeLabel()}timeRange={props.timeRange as TimeRange}yMode="auto"formatValue={(v) => formatBytes(v)}formatTopLabel={(max) => formatBytes(max)}highlightNearestSeriesOnHover+ highlightSeriesId={props.hoveredResourceId}/></SummaryMetricCard></SummaryPanel>diff --git a/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx b/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsxindex b26e2bc7de..7b092bb60d 100644--- a/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/DiskList.test.tsx@@ -1,4 +1,5 @@import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';+import { createSignal } from 'solid-js';import { afterEach, describe, expect, it, vi } from 'vitest';import type { Resource } from '@/types/resource';import { DiskList } from '@/components/Storage/DiskList';@@ -58,32 +59,50 @@ const buildDisk = (}) as unknown as Resource;describe('DiskList', () => {+ const renderDiskList = (props: {+ disks: Resource[];+ nodes: Resource[];+ selectedNode: string | null;+ searchTerm: string;+ }) =>+ render(() => {+ const [selectedDiskId, setSelectedDiskId] = createSignal<string | null>(null);+ return (+ <DiskList+ disks={props.disks}+ nodes={props.nodes}+ selectedNode={props.selectedNode}+ searchTerm={props.searchTerm}+ selectedDiskId={selectedDiskId()}+ onSelectedDiskChange={setSelectedDiskId}+ />+ );+ });+afterEach(() => {cleanup();});it('renders physical disks in a single-line operational grid', () => {- render(() => (- <DiskList- disks={[- buildDisk('sda', 'tower', {- risk: {- level: 'warning',- reasons: [- {- code: 'pending-sectors',- severity: 'warning',- summary: 'Pending sectors detected.',- },- ],- },- }),- ]}- nodes={[buildNode('node-tower', 'tower')]}- selectedNode={null}- searchTerm=""- />- ));+ renderDiskList({+ disks: [+ buildDisk('sda', 'tower', {+ risk: {+ level: 'warning',+ reasons: [+ {+ code: 'pending-sectors',+ severity: 'warning',+ summary: 'Pending sectors detected.',+ },+ ],+ },+ }),+ ],+ nodes: [buildNode('node-tower', 'tower')],+ selectedNode: null,+ searchTerm: "",+ });expect(screen.getByRole('columnheader', { name: 'Disk' })).toBeInTheDocument();expect(screen.getByRole('columnheader', { name: 'Source' })).toBeInTheDocument();@@ -98,14 +117,12 @@ describe('DiskList', () => {});it('filters disks by search term and supports row expansion', () => {- render(() => (- <DiskList- disks={[buildDisk('sda', 'tower'), buildDisk('sdb', 'tower', { model: 'Cache SSD' })]}- nodes={[buildNode('node-tower', 'tower')]}- selectedNode={null}- searchTerm="cache"- />- ));+ renderDiskList({+ disks: [buildDisk('sda', 'tower'), buildDisk('sdb', 'tower', { model: 'Cache SSD' })],+ nodes: [buildNode('node-tower', 'tower')],+ selectedNode: null,+ searchTerm: 'cache',+ });expect(screen.queryByText('Disk sda')).not.toBeInTheDocument();expect(screen.getByText('Cache SSD')).toBeInTheDocument();@@ -115,9 +132,8 @@ describe('DiskList', () => {});it('keeps api-backed TrueNAS disks on the canonical physical-disk surface even without hardware ids', () => {- render(() => (- <DiskList- disks={[+ renderDiskList({+ disks: [({...buildDisk('sda', 'truenas-main', {model: 'Seagate IronWolf',@@ -137,17 +153,16 @@ describe('DiskList', () => {},},}) as Resource,- ]}- nodes={[+ ],+ nodes: [({...buildNode('truenas-main', 'truenas-main'),platformType: 'truenas',}) as Resource,- ]}- selectedNode={null}- searchTerm=""- />- ));+ ],+ selectedNode: null,+ searchTerm: '',+ });expect(screen.getByText('TrueNAS')).toBeInTheDocument();fireEvent.click(screen.getByText('Seagate IronWolf'));diff --git a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsxindex c0d0e182cf..9603174d6a 100644--- a/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx+++ b/frontend-modern/src/components/Storage/__tests__/Storage.test.tsx@@ -4,6 +4,7 @@ import { ChartsAPI } from '@/api/charts';import type { Alert } from '@/types/api';import type { Resource, ResourceType } from '@/types/resource';import Storage from '@/components/Storage/Storage';+import { ROUTE_STATE_REPLACE_OPTIONS } from '@/utils/routeStateNavigation';// Stub ResizeObserver for jsdom (used by HistoryChart in pool detail panels)if (typeof globalThis.ResizeObserver === 'undefined') {@@ -59,7 +60,8 @@ let hookLoading = false;let hookError: unknown = undefined;let alertsActivationState: 'active' | 'pending_review' | 'snoozed' | null = 'active';const fetchMock = vi.fn(async (input: RequestInfo | URL) => {- const url = typeof input === 'string' ? input : input instanceof URL ? input.toString() : input.url;+ const url =+ typeof input === 'string' ? input : input instanceof URL ? input.toString() : input.url;if (url.includes('/api/license/entitlements')) {return new Response(JSON.stringify({ entitlements: [] }), {status: 200,@@ -376,6 +378,88 @@ describe('Storage', () => {expect(screen.queryByText('Local-LVM-PVE2')).not.toBeInTheDocument();});+ it('routes hovered pool rows into the shared summary highlight contract and keeps the summary sticky', async () => {+ const storageSummarySpy = vi.spyOn(ChartsAPI, 'getStorageSummaryCharts').mockResolvedValue({+ pools: {+ 'pool:alpha': {+ name: 'Alpha-Store',+ usage: [+ { timestamp: Date.now() - 60_000, value: 45 },+ { timestamp: Date.now(), value: 47 },+ ],+ used: [+ { timestamp: Date.now() - 60_000, value: 450 },+ { timestamp: Date.now(), value: 470 },+ ],+ avail: [+ { timestamp: Date.now() - 60_000, value: 550 },+ { timestamp: Date.now(), value: 530 },+ ],+ },+ 'pool:beta': {+ name: 'Beta-Store',+ usage: [+ { timestamp: Date.now() - 60_000, value: 68 },+ { timestamp: Date.now(), value: 70 },+ ],+ used: [+ { timestamp: Date.now() - 60_000, value: 680 },+ { timestamp: Date.now(), value: 700 },+ ],+ avail: [+ { timestamp: Date.now() - 60_000, value: 320 },+ { timestamp: Date.now(), value: 300 },+ ],+ },+ },+ disks: {},+ });++ hookResources = [+ buildStorageResource('storage-display-alpha', 'Alpha-Store', 'pve1', {+ metricsTarget: {+ resourceType: 'storage',+ resourceId: 'pool:alpha',+ },+ }),+ buildStorageResource('storage-display-beta', 'Beta-Store', 'pve2', {+ metricsTarget: {+ resourceType: 'storage',+ resourceId: 'pool:beta',+ },+ }),+ ];++ render(() => <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?.className).toContain('top-0');++ const alphaRow = screen.getByText('Alpha-Store').closest('tr')!;+ expect(alphaRow).toHaveAttribute('data-summary-series-id', 'pool:alpha');++ fireEvent.mouseEnter(alphaRow);++ await waitFor(() => {+ expect(+ summary.querySelectorAll(+ '[data-highlight-series-active="true"][data-highlight-series-id="pool:alpha"]',+ ).length,+ ).toBe(3);+ });++ fireEvent.mouseLeave(alphaRow);++ await waitFor(() => {+ expect(summary.querySelectorAll('[data-highlight-series-active="true"]').length).toBe(0);+ });++ storageSummarySpy.mockRestore();+ });+it('renders compact table columns and supports sort/group controls', async () => {hookResources = [buildStorageResource('storage-1', 'Alpha-Store', 'pve1', {@@ -539,7 +623,10 @@ describe('Storage', () => {expect(navigateSpy).toHaveBeenCalled();});- const [nextPath, nextOptions] = navigateSpy.mock.calls.at(-1) as [string, { replace?: boolean }];+ const [nextPath, nextOptions] = navigateSpy.mock.calls.at(-1) as [+ string,+ { replace?: boolean; scroll?: boolean },+ ];const nextParams = new URLSearchParams(nextPath.split('?')[1] || '');expect(nextParams.get('tab')).toBe('disks');expect(nextParams.get('node')).toBe('node-2');@@ -550,6 +637,7 @@ describe('Storage', () => {expect(nextParams.get('order')).toBe('asc');expect(nextParams.get('status')).toBe('available');expect(nextOptions?.replace).toBe(true);+ expect(nextOptions?.scroll).toBe(false);expect(screen.getByRole('tab', { name: 'Physical Disks' })).toHaveAttribute('aria-selected',@@ -568,7 +656,10 @@ describe('Storage', () => {render(() => <Storage />);await waitFor(() => {- expect(navigateSpy).toHaveBeenCalledWith('/storage?source=proxmox-pve', { replace: true });+ expect(navigateSpy).toHaveBeenCalledWith(+ '/storage?source=proxmox-pve',+ ROUTE_STATE_REPLACE_OPTIONS,+ );});expect((screen.getByLabelText('Source') as HTMLSelectElement).value).toBe('proxmox-pve');@@ -581,7 +672,7 @@ describe('Storage', () => {render(() => <Storage />);await waitFor(() => {- expect(navigateSpy).toHaveBeenCalledWith('/storage', { replace: true });+ expect(navigateSpy).toHaveBeenCalledWith('/storage', ROUTE_STATE_REPLACE_OPTIONS);});expect((screen.getByLabelText('Node') as HTMLSelectElement).value).toBe('all');@@ -847,7 +938,10 @@ describe('Storage', () => {expect(navigateSpy).toHaveBeenCalled();});- const [nextPath, nextOptions] = navigateSpy.mock.calls.at(-1) as [string, { replace?: boolean }];+ const [nextPath, nextOptions] = navigateSpy.mock.calls.at(-1) as [+ string,+ { replace?: boolean },+ ];const nextParams = new URLSearchParams(nextPath.split('?')[1] || '');expect(nextParams.get('resource')).toBe('storage-ceph-link');expect(nextParams.get('from')).toBe('proxmox-overview');@@ -1048,7 +1142,10 @@ describe('Storage', () => {render(() => <Storage />);expect(screen.getAllByRole('tablist', { name: 'Storage view' })[0]).toBeInTheDocument();- expect(screen.getAllByRole('tab', { name: 'Pools' })[0]).toHaveAttribute('aria-selected', 'true');+ expect(screen.getAllByRole('tab', { name: 'Pools' })[0]).toHaveAttribute(+ 'aria-selected',+ 'true',+ );expect(screen.getAllByRole('tab', { name: 'Physical Disks' })[0]).toHaveAttribute('aria-selected','false',diff --git a/frontend-modern/src/components/Storage/__tests__/diskResourceUtils.test.ts b/frontend-modern/src/components/Storage/__tests__/diskResourceUtils.test.tsindex b867b2dc0b..86d42681a9 100644--- a/frontend-modern/src/components/Storage/__tests__/diskResourceUtils.test.ts+++ b/frontend-modern/src/components/Storage/__tests__/diskResourceUtils.test.ts@@ -106,5 +106,18 @@ describe('diskResourceUtils', () => {}),),).toBe('WWN-1');++ expect(+ resolvePhysicalDiskHistoryResourceId(+ buildDisk({+ metricsTarget: undefined,+ physicalDisk: { serial: '', wwn: '' } as any,+ platformData: {+ proxmox: { nodeName: 'tower', instance: 'cluster-main' },+ physicalDisk: { serial: '', wwn: '' },+ } as any,+ }),+ ),+ ).toBe('disk-1');});});diff --git a/frontend-modern/src/components/Storage/diskResourceUtils.ts b/frontend-modern/src/components/Storage/diskResourceUtils.tsindex b39c199f11..5746550d27 100644--- a/frontend-modern/src/components/Storage/diskResourceUtils.ts+++ b/frontend-modern/src/components/Storage/diskResourceUtils.ts@@ -1,4 +1,5 @@import type { Resource } from '@/types/resource';+import { resolvePhysicalDiskMetricResourceId as resolveCanonicalPhysicalDiskMetricResourceId } from '@/features/storageBackups/storageMetricsIdentity';import { getLinkedAgentId, getProxmoxData } from '@/utils/resourcePlatformData';type DiskPlatformData = {@@ -79,16 +80,5 @@ export const resolvePhysicalDiskMetricResourceId = (};export const resolvePhysicalDiskHistoryResourceId = (disk: Resource): string | null => {- const metricsTargetType = normalize(disk.metricsTarget?.resourceType);- const metricsTargetId = trim(disk.metricsTarget?.resourceId);- if (metricsTargetId && (!metricsTargetType || metricsTargetType === 'disk')) {- return metricsTargetId;- }-- const platformData = ((disk.platformData as DiskPlatformData | undefined) || {}) as DiskPlatformData;- const serial = trim(disk.physicalDisk?.serial || platformData.physicalDisk?.serial);- if (serial) return serial;-- const wwn = trim(disk.physicalDisk?.wwn || platformData.physicalDisk?.wwn);- return wwn || null;+ return resolveCanonicalPhysicalDiskMetricResourceId(disk);};diff --git a/frontend-modern/src/components/Storage/useDiskListModel.ts b/frontend-modern/src/components/Storage/useDiskListModel.tsindex 56245ef5d5..a90631eb16 100644--- a/frontend-modern/src/components/Storage/useDiskListModel.ts+++ b/frontend-modern/src/components/Storage/useDiskListModel.ts@@ -1,4 +1,4 @@-import { createMemo, createSignal } from 'solid-js';+import { createMemo } from 'solid-js';import type { Resource } from '@/types/resource';import {buildPhysicalDiskPresentationDataMap,@@ -13,11 +13,11 @@ type UseDiskListModelOptions = {nodes: () => Resource[];selectedNode: () => string | null;searchTerm: () => string;+ selectedDiskId: () => string | null;+ setSelectedDiskId: (diskId: string | null) => void;};export const useDiskListModel = (options: UseDiskListModelOptions) => {- const [selectedDisk, setSelectedDisk] = createSignal<Resource | null>(null);-const hasPVENodes = createMemo(() => options.nodes().length > 0);const diskDataById = createMemo(() => buildPhysicalDiskPresentationDataMap(options.disks()));@@ -39,9 +39,12 @@ export const useDiskListModel = (options: UseDiskListModelOptions) => {);const selectedNodeName = createMemo(() => selectedNodeResource()?.name || null);+ const selectedDisk = createMemo(+ () => options.disks().find((disk) => disk.id === options.selectedDiskId()) ?? null,+ );const toggleSelectedDisk = (disk: Resource) => {- setSelectedDisk((current) => (current?.id === disk.id ? null : disk));+ options.setSelectedDiskId(selectedDisk()?.id === disk.id ? null : disk.id);};return {diff --git a/frontend-modern/src/components/Storage/useStoragePageModel.ts b/frontend-modern/src/components/Storage/useStoragePageModel.tsindex e1b1a5453d..014c638c5a 100644--- a/frontend-modern/src/components/Storage/useStoragePageModel.ts+++ b/frontend-modern/src/components/Storage/useStoragePageModel.ts@@ -1,5 +1,9 @@-import { createMemo } from 'solid-js';+import { createEffect, createMemo, createSignal } from 'solid-js';import { useLocation, useNavigate } from '@solidjs/router';+import {+ resolvePhysicalDiskMetricResourceId,+ resolveStorageRecordMetricResourceId,+} from '@/features/storageBackups/storageMetricsIdentity';import { useKioskMode } from '@/hooks/useKioskMode';import { useStorageExpansionState } from './useStorageExpansionState';import { useStorageFilterState } from './useStorageFilterState';@@ -14,6 +18,8 @@ export const useStoragePageModel = () => {const navigate = useNavigate();const location = useLocation();const kioskMode = useKioskMode();+ const [hoveredStorageRowId, setHoveredStorageResourceId] = createSignal<string | null>(null);+ const [selectedDiskId, setSelectedDiskId] = createSignal<string | null>(null);const {state,activeAlerts,@@ -97,6 +103,43 @@ export const useStoragePageModel = () => {groupedKeys: () => groupedRecords().map((group) => group.key),view,});+ const storageRecordMetricIds = createMemo(() => {+ const ids = new Map<string, string>();+ for (const record of records()) {+ ids.set(record.id, resolveStorageRecordMetricResourceId(record));+ }+ return ids;+ });+ const physicalDiskMetricIds = createMemo(() => {+ const ids = new Map<string, string>();+ for (const disk of physicalDisks()) {+ ids.set(disk.id, resolvePhysicalDiskMetricResourceId(disk));+ }+ return ids;+ });+ const hoveredStorageResourceId = createMemo(() => {+ const hoveredId = hoveredStorageRowId();+ if (!hoveredId) return null;+ if (view() === 'disks') {+ return physicalDiskMetricIds().get(hoveredId) ?? hoveredId;+ }+ return storageRecordMetricIds().get(hoveredId) ?? hoveredId;+ });+ const focusedStorageResourceId = createMemo(() => {+ if (view() === 'disks') {+ const selectedId = selectedDiskId();+ if (!selectedId) return null;+ return physicalDiskMetricIds().get(selectedId) ?? selectedId;+ }+ const expandedId = expandedPoolId();+ if (!expandedId) return null;+ return storageRecordMetricIds().get(expandedId) ?? expandedId;+ });++ createEffect(() => {+ view();+ setHoveredStorageResourceId(null);+ });const {nodeFilterOptions,@@ -170,9 +213,14 @@ export const useStoragePageModel = () => {toggleGroup,expandedPoolId,setExpandedPoolId,+ focusedStorageResourceId,nodeOnlineByLabel,highlightedRecordId,getRecordAlertState,+ hoveredStorageResourceId,isLoadingPools,+ selectedDiskId,+ setHoveredStorageResourceId,+ setSelectedDiskId,};};diff --git a/frontend-modern/src/components/Workloads/WorkloadsSummary.tsx b/frontend-modern/src/components/Workloads/WorkloadsSummary.tsxindex 9733d6a360..e7061ca032 100644--- a/frontend-modern/src/components/Workloads/WorkloadsSummary.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadsSummary.tsx@@ -785,6 +785,7 @@ export const WorkloadsSummary: Component<WorkloadsSummaryProps> = (props) => {rangeLabel={selectedRange()}timeRange={selectedRange()}formatValue={formatThroughputRate}+ highlightSeriesId={props.hoveredWorkloadId}/></SummaryMetricCard>@@ -800,6 +801,7 @@ export const WorkloadsSummary: Component<WorkloadsSummaryProps> = (props) => {rangeLabel={selectedRange()}timeRange={selectedRange()}formatValue={formatThroughputRate}+ highlightSeriesId={props.hoveredWorkloadId}/></SummaryMetricCard></SummaryPanel>diff --git a/frontend-modern/src/components/shared/DensityMap.tsx b/frontend-modern/src/components/shared/DensityMap.tsxindex ef8d044cbf..281c85172b 100644--- a/frontend-modern/src/components/shared/DensityMap.tsx+++ b/frontend-modern/src/components/shared/DensityMap.tsx@@ -1,9 +1,6 @@import { Component, Show } from 'solid-js';import { Portal } from 'solid-js/web';-import {- formatDensityMapHoverTime,- type DensityMapProps,-} from './densityMapModel';+import { formatDensityMapHoverTime, type DensityMapProps } from './densityMapModel';import { useDensityMapState } from './useDensityMapState';export type { DensityMapProps } from './densityMapModel';@@ -12,7 +9,11 @@ export const DensityMap: Component<DensityMapProps> = (props) => {const densityMap = useDensityMapState(props);return (- <div class="relative w-full h-full flex flex-col group">+ <div+ class="relative w-full h-full flex flex-col group"+ data-highlight-series-id={props.highlightSeriesId ?? ''}+ data-highlight-series-active={densityMap.externalSeriesIndex() !== null ? 'true' : 'false'}+ ><div class="flex-1 relative min-h-0 bg-transparent flex">{/* Y-axis: typically in a density map we might just show "Top Nodes" */}<div class="absolute left-0 top-0 h-full w-full pointer-events-none flex flex-col justify-between py-1 opacity-0 group-hover:opacity-100 transition-opacity">diff --git a/frontend-modern/src/components/shared/InteractiveSparkline.tsx b/frontend-modern/src/components/shared/InteractiveSparkline.tsxindex fdfbfa61f6..9adae3e4a0 100644--- a/frontend-modern/src/components/shared/InteractiveSparkline.tsx+++ b/frontend-modern/src/components/shared/InteractiveSparkline.tsx@@ -1,6 +1,9 @@import { Component, For, Show } from 'solid-js';import { Portal } from 'solid-js/web';-import { formatInteractiveSparklineHoverTime, type InteractiveSparklineProps } from './interactiveSparklineModel';+import {+ formatInteractiveSparklineHoverTime,+ type InteractiveSparklineProps,+} from './interactiveSparklineModel';import { useInteractiveSparklineState } from './useInteractiveSparklineState';export type {@@ -20,7 +23,11 @@ export const InteractiveSparkline: Component<InteractiveSparklineProps> = (props});return (- <div class="w-full h-full min-h-[88px] flex flex-col">+ <div+ class="w-full h-full min-h-[88px] flex flex-col"+ data-highlight-series-id={props.highlightSeriesId ?? ''}+ data-highlight-series-active={sparkline.externalSeriesIndex() !== null ? 'true' : 'false'}+ ><div class="relative flex-1 min-h-0"><div class="absolute inset-y-0 left-0 w-7 pointer-events-none"><For each={sparkline.axisTicks()}>diff --git a/frontend-modern/src/components/shared/StickySummarySection.tsx b/frontend-modern/src/components/shared/StickySummarySection.tsxnew file mode 100644index 0000000000..73eef10150--- /dev/null+++ b/frontend-modern/src/components/shared/StickySummarySection.tsx@@ -0,0 +1,25 @@+import type { Component, JSX } from 'solid-js';++interface StickySummarySectionProps {+ children: JSX.Element;+ class?: string;+ desktopOnly?: boolean;+}++export const StickySummarySection: Component<StickySummarySectionProps> = (props) => {+ const desktopOnly = () => props.desktopOnly !== false;++ return (+ <div+ data-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 ${+ props.class ?? ''+ }`.trim()}+ >+ {props.children}+ </div>+ );+};++export default StickySummarySection;diff --git a/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx b/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsxindex 9fe6f45339..7a594e187c 100644--- a/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/DensityMap.test.tsx@@ -4,6 +4,10 @@ import densityMapSource from '@/components/shared/DensityMap.tsx?raw';import densityMapModelSource from '@/components/shared/densityMapModel.ts?raw';import densityMapStateSource from '@/components/shared/useDensityMapState.ts?raw';import { DensityMap } from '@/components/shared/DensityMap';+import {+ buildDensityMapChartData,+ getDensityMapExternalSeriesIndex,+} from '@/components/shared/densityMapModel';HTMLCanvasElement.prototype.getContext = vi.fn(() => ({clearRect: vi.fn(),@@ -31,6 +35,7 @@ describe('DensityMap', () => {expect(densityMapModelSource).toContain('buildDensityMapChartData');expect(densityMapModelSource).toContain('buildDensityMapHoveredState');+ expect(densityMapModelSource).toContain('getDensityMapExternalSeriesIndex');expect(densityMapModelSource).toContain('getDensityMapCellOpacity');});@@ -76,4 +81,30 @@ describe('DensityMap', () => {expect(await screen.findByText('CPU')).toBeInTheDocument();});++ it('keeps an externally highlighted series visible when it falls outside the default density top set', () => {+ const now = Date.now();+ const series = Array.from({ length: 24 }, (_, index) => ({+ id: `series-${index + 1}`,+ name: `Series ${index + 1}`,+ color: '#10b981',+ data:+ index === 23+ ? []+ : [+ { timestamp: now - 30_000, value: 100 - index },+ { timestamp: now - 10_000, value: 100 - index },+ ],+ }));++ const chartData = buildDensityMapChartData({+ series,+ timeRange: '1h',+ now,+ highlightSeriesId: 'series-24',+ });++ expect(chartData.series.map((entry) => entry.id)).toContain('series-24');+ expect(getDensityMapExternalSeriesIndex(chartData, 'series-24')).not.toBeNull();+ });});diff --git a/frontend-modern/src/components/shared/densityMapModel.ts b/frontend-modern/src/components/shared/densityMapModel.tsindex 1b24fe2538..110d5898ef 100644--- a/frontend-modern/src/components/shared/densityMapModel.ts+++ b/frontend-modern/src/components/shared/densityMapModel.ts@@ -7,6 +7,7 @@ export interface DensityMapProps {rangeLabel?: string;timeRange?: TimeRange;formatValue?: (value: number) => string;+ highlightSeriesId?: string | null;}export interface DensityMapHoveredState {@@ -16,6 +17,7 @@ export interface DensityMapHoveredState {value: number;seriesName: string;seriesColor: string;+ seriesIndex: number;}export interface DensityMapChartData {@@ -56,6 +58,7 @@ export function buildDensityMapChartData(options: {series: InteractiveSparklineSeries[];timeRange?: TimeRange;now?: number;+ highlightSeriesId?: string | null;}): DensityMapChartData {const range = options.timeRange || '1h';const rangeMs = timeRangeToMs(range);@@ -63,7 +66,9 @@ export function buildDensityMapChartData(options: {const windowStart = windowEnd - rangeMs;const bucketDuration = rangeMs / DENSITY_MAP_COLUMNS;- const activeSeries = options.series.filter((series) => series.data.length > 0);+ const activeSeries = options.series.filter(+ (series) => series.data.length > 0 || series.id === options.highlightSeriesId,+ );const seriesWithVolume = activeSeries.map((series) => {let total = 0;for (const point of series.data) {@@ -73,7 +78,23 @@ export function buildDensityMapChartData(options: {});seriesWithVolume.sort((left, right) => right.total - left.total);- const topSeries = seriesWithVolume.slice(0, 20).map((entry) => entry.series);+ const topSeriesEntries = seriesWithVolume.slice(0, 20);+ const highlightedEntry = options.highlightSeriesId+ ? seriesWithVolume.find((entry) => entry.series.id === options.highlightSeriesId)+ : undefined;++ if (+ highlightedEntry &&+ !topSeriesEntries.some((entry) => entry.series.id === highlightedEntry.series.id)+ ) {+ if (topSeriesEntries.length >= 20) {+ topSeriesEntries[topSeriesEntries.length - 1] = highlightedEntry;+ } else {+ topSeriesEntries.push(highlightedEntry);+ }+ }++ const topSeries = topSeriesEntries.map((entry) => entry.series);let globalMax = 0;const grid: { sum: number; count: number; max: number }[][] = topSeries.map(() =>Array(DENSITY_MAP_COLUMNS)@@ -118,6 +139,15 @@ export function getDensityMapCellOpacity(value: number, globalMax: number): numbreturn clampDensityMapValue(normalized, 0.15, 1.0);}+export function getDensityMapExternalSeriesIndex(+ data: DensityMapChartData,+ highlightSeriesId?: string | null,+): number | null {+ if (!highlightSeriesId) return null;+ const index = data.series.findIndex((series) => series.id === highlightSeriesId);+ return index >= 0 ? index : null;+}+export function buildDensityMapHoveredState(options: {clientX: number;clientY: number;@@ -146,5 +176,6 @@ export function buildDensityMapHoveredState(options: {value: data.grid[row][column],seriesName: data.series[row].name || 'Unknown',seriesColor: data.series[row].color,+ seriesIndex: row,};}diff --git a/frontend-modern/src/components/shared/useDensityMapState.ts b/frontend-modern/src/components/shared/useDensityMapState.tsindex d3e54fcda9..4fe9a3905c 100644--- a/frontend-modern/src/components/shared/useDensityMapState.ts+++ b/frontend-modern/src/components/shared/useDensityMapState.ts@@ -1,6 +1,7 @@import { createEffect, createMemo, createSignal, onCleanup } from 'solid-js';import {buildDensityMapChartData,+ getDensityMapExternalSeriesIndex,buildDensityMapHoveredState,formatDensityMapValue,getDensityMapCellOpacity,@@ -19,8 +20,12 @@ export function useDensityMapState(props: DensityMapProps) {buildDensityMapChartData({series: props.series,timeRange: props.timeRange,+ highlightSeriesId: props.highlightSeriesId,}),);+ const externalSeriesIndex = createMemo(() =>+ getDensityMapExternalSeriesIndex(chartData(), props.highlightSeriesId),+ );const formatValue = (value: number) => formatDensityMapValue(value, props.formatValue);@@ -49,14 +54,17 @@ export function useDensityMapState(props: DensityMapProps) {const rows = data.series.length;const cellWidth = width / DENSITY_MAP_COLUMNS;const cellHeight = height / rows;+ const activeSeriesIndex = hoveredState()?.seriesIndex ?? externalSeriesIndex();for (let row = 0; row < rows; row += 1) {const cellY = row * cellHeight;+ const isDimmed = activeSeriesIndex !== null && row !== activeSeriesIndex;for (let column = 0; column < DENSITY_MAP_COLUMNS; column += 1) {const cellX = column * cellWidth;const value = data.grid[row][column];if (value <= 0) {+ context.globalAlpha = isDimmed ? 0.45 : 1;context.fillStyle = 'rgba(128, 128, 128, 0.05)';context.fillRect(cellX + DENSITY_MAP_PADDING_X / 2,@@ -67,7 +75,8 @@ export function useDensityMapState(props: DensityMapProps) {continue;}- context.globalAlpha = getDensityMapCellOpacity(value, data.globalMax);+ context.globalAlpha =+ getDensityMapCellOpacity(value, data.globalMax) * (isDimmed ? 0.18 : 1);context.fillStyle = data.series[row].color;if (context.roundRect) {context.beginPath();@@ -125,6 +134,7 @@ export function useDensityMapState(props: DensityMapProps) {return {chartData,+ externalSeriesIndex,formatValue,handleMouseLeave,handleMouseMove,diff --git a/frontend-modern/src/components/shared/useInteractiveSparklineState.ts b/frontend-modern/src/components/shared/useInteractiveSparklineState.tsindex 426a0b5221..1d15835548 100644--- a/frontend-modern/src/components/shared/useInteractiveSparklineState.ts+++ b/frontend-modern/src/components/shared/useInteractiveSparklineState.ts@@ -361,6 +361,7 @@ export function useInteractiveSparklineState(activeEmphasisSeriesIndex,axisTicks,chartData,+ externalSeriesIndex,formatValue,gridLineX,gridLineY,diff --git a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsxindex d08bd7dda5..965d9b5800 100644--- a/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx+++ b/frontend-modern/src/features/infrastructure/InfrastructurePageSurface.tsx@@ -6,6 +6,7 @@ import { Card } from '@/components/shared/Card';import { FilterSegmentedControl, LabeledFilterSelect } from '@/components/shared/FilterToolbar';import { PageControls } from '@/components/shared/PageControls';import { SearchInput } from '@/components/shared/SearchInput';+import { StickySummarySection } from '@/components/shared/StickySummarySection';import { UnifiedResourceTable } from '@/components/Infrastructure/UnifiedResourceTable';import { InfrastructureSummary } from '@/components/Infrastructure/InfrastructureSummary';import ServerIcon from 'lucide-solid/icons/server';@@ -130,7 +131,7 @@ export function InfrastructurePageSurface() {><div class="space-y-3"><Show when={!summaryCollapsed()}>- <div class="hidden lg:block sticky-shield sticky top-0 z-20 bg-surface">+ <StickySummarySection><InfrastructureSummaryresources={filteredResources()}timeRange={infrastructureSummaryRange()}@@ -138,7 +139,7 @@ export function InfrastructurePageSurface() {hoveredResourceId={hoveredResourceId()}focusedResourceId={expandedResourceId()}/>- </div>+ </StickySummarySection></Show><Show when={!kioskMode()}>diff --git a/frontend-modern/src/features/storageBackups/storageMetricsIdentity.ts b/frontend-modern/src/features/storageBackups/storageMetricsIdentity.tsnew file mode 100644index 0000000000..10eef97375--- /dev/null+++ b/frontend-modern/src/features/storageBackups/storageMetricsIdentity.ts@@ -0,0 +1,30 @@+import type { Resource } from '@/types/resource';+import type { StorageRecord } from './models';++type DiskPlatformData = {+ physicalDisk?: {+ serial?: string;+ wwn?: string;+ };+};++const trim = (value: string | null | undefined): string => value?.trim() || '';+const normalize = (value: string | null | undefined): string => value?.trim().toLowerCase() || '';++export const resolveStorageRecordMetricResourceId = (record: StorageRecord): string =>+ trim(record.metricsTarget?.resourceId) || trim(record.refs?.resourceId) || trim(record.id);++export const resolvePhysicalDiskMetricResourceId = (disk: Resource): string => {+ const metricsTargetType = normalize(disk.metricsTarget?.resourceType);+ const metricsTargetId = trim(disk.metricsTarget?.resourceId);+ if (metricsTargetId && (!metricsTargetType || metricsTargetType === 'disk')) {+ return metricsTargetId;+ }++ const platformData = ((disk.platformData as DiskPlatformData | undefined) || {}) as DiskPlatformData;+ const serial = trim(disk.physicalDisk?.serial || platformData.physicalDisk?.serial);+ if (serial) return serial;++ const wwn = trim(disk.physicalDisk?.wwn || platformData.physicalDisk?.wwn);+ return wwn || trim(disk.id);+};diff --git a/frontend-modern/src/features/storageBackups/storagePoolDetailPresentation.ts b/frontend-modern/src/features/storageBackups/storagePoolDetailPresentation.tsindex 9ba7159523..99322ce3f2 100644--- a/frontend-modern/src/features/storageBackups/storagePoolDetailPresentation.ts+++ b/frontend-modern/src/features/storageBackups/storagePoolDetailPresentation.ts@@ -9,6 +9,7 @@ import {getStorageRecordUsagePercent,getStorageRecordZfsPool,} from '@/features/storageBackups/recordPresentation';+import { resolveStorageRecordMetricResourceId } from '@/features/storageBackups/storageMetricsIdentity';import type { Resource } from '@/types/resource';import { formatBytes, formatPercent } from '@/utils/format';@@ -67,7 +68,7 @@ export function resolveStoragePoolDetailChartTarget(): StoragePoolDetailChartTarget {return {resourceType: (record.metricsTarget?.resourceType as HistoryChartResourceType) || 'storage',- resourceId: record.metricsTarget?.resourceId || record.refs?.resourceId || record.id,+ resourceId: resolveStorageRecordMetricResourceId(record),};}diff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex d122b7aa31..196dacffc2 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -103,6 +103,91 @@ func TestContract_ChartMetricPointsPreserveMillisecondPrecision(t *testing.T) {}}+func TestContract_StorageChartsUseCanonicalMetricsTargetIDs(t *testing.T) {+ monitor, state, metricsHistory := newTestMonitor(t)+ now := time.Date(2026, time.April, 1, 12, 0, 0, 0, time.UTC)++ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "usage", 0.25, now)+ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "used", 3.57*1024*1024*1024*1024, now)+ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "avail", 11.03*1024*1024*1024*1024, now)+ metricsHistory.AddStorageMetric("pool:archive", "usage", 0.36, now)+ metricsHistory.AddStorageMetric("pool:archive", "used", 5.49*1024*1024*1024*1024, now)+ metricsHistory.AddStorageMetric("pool:archive", "avail", 4.51*1024*1024*1024*1024, now)++ adapter := unifiedresources.NewMonitorAdapter(nil)+ adapter.PopulateSnapshotAndSupplemental(state.GetSnapshot(), map[unifiedresources.DataSource][]unifiedresources.IngestRecord{+ unifiedresources.SourceVMware: {+ {+ SourceID: "vc-1:datastore:datastore-202",+ Resource: unifiedresources.Resource{+ ID: "storage-vmware-1",+ Type: unifiedresources.ResourceTypeStorage,+ Name: "archive-tier",+ Status: unifiedresources.StatusOnline,+ LastSeen: now,+ Storage: &unifiedresources.StorageMeta{+ Type: "datastore",+ Platform: "vmware",+ Nodes: []string{"esxi-01.lab.local"},+ },+ VMware: &unifiedresources.VMwareData{+ ConnectionID: "vc-1",+ EntityType: "datastore",+ ManagedObjectID: "datastore-202",+ RuntimeHostName: "esxi-01.lab.local",+ },+ },+ },+ },+ unifiedresources.SourceTrueNAS: {+ {+ SourceID: "pool:archive",+ Resource: unifiedresources.Resource{+ ID: "storage-truenas-1",+ Type: unifiedresources.ResourceTypeStorage,+ Name: "archive",+ Status: unifiedresources.StatusOnline,+ LastSeen: now,+ Storage: &unifiedresources.StorageMeta{+ Type: "zfs-pool",+ Platform: "truenas",+ },+ TrueNAS: &unifiedresources.TrueNASData{+ Hostname: "truenas-main",+ },+ },+ },+ },+ })+ setTestUnexportedField(t, monitor, "resourceStore", monitoring.ResourceStoreInterface(adapter))++ router := &Router{monitor: monitor}+ req := httptest.NewRequest(http.MethodGet, "/api/storage-charts?range=60", nil)+ rec := httptest.NewRecorder()+ router.handleStorageCharts(rec, req)++ if rec.Code != http.StatusOK {+ t.Fatalf("expected 200, got %d: %s", rec.Code, rec.Body.String())+ }++ var decoded StorageChartsResponse+ if err := json.Unmarshal(rec.Body.Bytes(), &decoded); err != nil {+ t.Fatalf("unmarshal storage charts response: %v", err)+ }+ if _, ok := decoded.Pools["vc-1:datastore:datastore-202"]; !ok {+ t.Fatalf("expected VMware datastore chart keyed by canonical metrics target, got %v", decoded.Pools)+ }+ if _, ok := decoded.Pools["pool:archive"]; !ok {+ t.Fatalf("expected TrueNAS pool chart keyed by canonical metrics target, got %v", decoded.Pools)+ }+ if _, ok := decoded.Pools["storage-vmware-1"]; ok {+ t.Fatalf("expected raw VMware resource id to stay out of chart payload, got %v", decoded.Pools)+ }+ if _, ok := decoded.Pools["storage-truenas-1"]; ok {+ t.Fatalf("expected raw TrueNAS resource id to stay out of chart payload, got %v", decoded.Pools)+ }+}+func TestContract_TrueNASConnectionsDisabledMessageIsExplicit(t *testing.T) {setTrueNASFeatureForTest(t, false)handler, _, _ := newTrueNASHandlersForTest(t, nil)diff --git a/internal/api/router.go b/internal/api/router.goindex 3c70693661..a58015653d 100644--- a/internal/api/router.go+++ b/internal/api/router.go@@ -153,6 +153,30 @@ func pulseBinDir() string {return "/opt/pulse/bin"}+func storageChartsSelectedNodeName(resource unifiedresources.Resource) string {+ if name := strings.TrimSpace(resource.Name); name != "" {+ return name+ }+ if resource.TrueNAS != nil {+ if hostname := strings.TrimSpace(resource.TrueNAS.Hostname); hostname != "" {+ return hostname+ }+ }+ for _, hostname := range resource.Identity.Hostnames {+ if hostname = strings.TrimSpace(hostname); hostname != "" {+ return hostname+ }+ }+ return ""+}++func storageChartsSelectedNodeInstance(resource unifiedresources.Resource) string {+ if resource.Proxmox == nil {+ return ""+ }+ return strings.TrimSpace(resource.Proxmox.Instance)+}+func isDirectLoopbackRequest(req *http.Request) bool {if req == nil {return false@@ -7626,19 +7650,32 @@ func (r *Router) handleStorageCharts(w http.ResponseWriter, req *http.Request) {return}- // Resolve node filter — look up node name+instance from ID to disambiguate- // nodes with the same name across different Proxmox instances.+ // Resolve node filter from canonical unified resources so storage charts use+ // the same node identity model as the frontend storage page.var selectedNodeName, selectedNodeInstance stringif selectedNodeID != "" {found := false- for _, n := range monitor.NodesSnapshot() {- if n.ID == selectedNodeID {- selectedNodeName = n.Name- selectedNodeInstance = n.Instance+ for _, resource := range monitor.GetUnifiedResources() {+ if strings.TrimSpace(resource.ID) != selectedNodeID {+ continue+ }+ selectedNodeName = storageChartsSelectedNodeName(resource)+ selectedNodeInstance = storageChartsSelectedNodeInstance(resource)+ if selectedNodeName != "" || selectedNodeInstance != "" {found = truebreak}}+ if !found {+ for _, n := range monitor.NodesSnapshot() {+ if n.ID == selectedNodeID {+ selectedNodeName = n.Name+ selectedNodeInstance = n.Instance+ found = true+ break+ }+ }+ }if !found {log.Debug().Str("selectedNodeID", selectedNodeID).diff --git a/internal/api/router_misc_additional_test.go b/internal/api/router_misc_additional_test.goindex a402cc3836..a54de93fe8 100644--- a/internal/api/router_misc_additional_test.go+++ b/internal/api/router_misc_additional_test.go@@ -1068,6 +1068,138 @@ func TestHandleStorageCharts_Success(t *testing.T) {}}+func TestHandleStorageCharts_IncludesSupplementalStorageAndResolvesUnifiedNodeFilter(t *testing.T) {+ monitor, state, metricsHistory := newTestMonitor(t)+ now := time.Now()+ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "usage", 0.25, now)+ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "used", 3.57*1024*1024*1024*1024, now)+ metricsHistory.AddStorageMetric("vc-1:datastore:datastore-202", "avail", 11.03*1024*1024*1024*1024, now)+ metricsHistory.AddStorageMetric("pool:archive", "usage", 0.36, now)++ adapter := unifiedresources.NewMonitorAdapter(nil)+ adapter.PopulateSnapshotAndSupplemental(state.GetSnapshot(), map[unifiedresources.DataSource][]unifiedresources.IngestRecord{+ unifiedresources.SourceVMware: {+ {+ SourceID: "vc-1:host:host-101",+ Resource: unifiedresources.Resource{+ ID: "agent-vmware-1",+ Type: unifiedresources.ResourceTypeAgent,+ Name: "esxi-01.lab.local",+ Identity: unifiedresources.ResourceIdentity{+ Hostnames: []string{"esxi-01.lab.local"},+ },+ MetricsTarget: &unifiedresources.MetricsTarget{+ ResourceType: "agent",+ ResourceID: "vc-1:host:host-101",+ },+ VMware: &unifiedresources.VMwareData{+ ConnectionID: "vc-1",+ EntityType: "host",+ ManagedObjectID: "host-101",+ },+ },+ },+ {+ SourceID: "vc-1:datastore:datastore-202",+ ParentSourceID: "vc-1:host:host-101",+ Resource: unifiedresources.Resource{+ ID: "storage-vmware-1",+ Type: unifiedresources.ResourceTypeStorage,+ Name: "archive-tier",+ ParentName: "esxi-01.lab.local",+ MetricsTarget: &unifiedresources.MetricsTarget{+ ResourceType: "storage",+ ResourceID: "vc-1:datastore:datastore-202",+ },+ Storage: &unifiedresources.StorageMeta{+ Type: "datastore",+ Platform: "vmware",+ Nodes: []string{"esxi-01.lab.local", "esxi-02.lab.local"},+ },+ VMware: &unifiedresources.VMwareData{+ ConnectionID: "vc-1",+ EntityType: "datastore",+ ManagedObjectID: "datastore-202",+ RuntimeHostName: "esxi-01.lab.local",+ },+ },+ },+ },+ unifiedresources.SourceTrueNAS: {+ {+ SourceID: "system:truenas-main",+ Resource: unifiedresources.Resource{+ ID: "agent-truenas-1",+ Type: unifiedresources.ResourceTypeAgent,+ Name: "truenas-main",+ Identity: unifiedresources.ResourceIdentity{+ Hostnames: []string{"truenas-main"},+ },+ TrueNAS: &unifiedresources.TrueNASData{+ Hostname: "truenas-main",+ },+ },+ },+ {+ SourceID: "pool:archive",+ ParentSourceID: "system:truenas-main",+ Resource: unifiedresources.Resource{+ ID: "storage-truenas-1",+ Type: unifiedresources.ResourceTypeStorage,+ Name: "archive",+ ParentName: "truenas-main",+ MetricsTarget: &unifiedresources.MetricsTarget{+ ResourceType: "storage",+ ResourceID: "pool:archive",+ },+ Storage: &unifiedresources.StorageMeta{+ Type: "zfs-pool",+ Platform: "truenas",+ },+ TrueNAS: &unifiedresources.TrueNASData{+ Hostname: "truenas-main",+ },+ },+ },+ },+ })+ selectedNodeID := ""+ for _, resource := range adapter.GetAll() {+ if resource.Type == unifiedresources.ResourceTypeAgent && resource.Name == "esxi-01.lab.local" {+ selectedNodeID = resource.ID+ break+ }+ }+ if selectedNodeID == "" {+ t.Fatal("expected canonical VMware host resource id in adapter")+ }+ setUnexportedField(t, monitor, "resourceStore", monitoring.ResourceStoreInterface(adapter))++ router := &Router{monitor: monitor}+ req := httptest.NewRequest(http.MethodGet, "/api/storage-charts?range=30&node="+selectedNodeID, nil)+ rec := httptest.NewRecorder()++ router.handleStorageCharts(rec, req)++ if rec.Code != http.StatusOK {+ t.Fatalf("expected status %d, got %d", http.StatusOK, rec.Code)+ }++ var decoded StorageChartsResponse+ if err := json.Unmarshal(rec.Body.Bytes(), &decoded); err != nil {+ t.Fatalf("unmarshal StorageChartsResponse: %v", err)+ }+ if len(decoded.Pools) != 1 {+ t.Fatalf("expected unified node filter to keep 1 VMware pool, got %d (%v)", len(decoded.Pools), decoded.Pools)+ }+ if _, ok := decoded.Pools["vc-1:datastore:datastore-202"]; !ok {+ t.Fatalf("expected VMware datastore chart keyed by canonical metrics target, got %v", decoded.Pools)+ }+ if _, ok := decoded.Pools["pool:archive"]; ok {+ t.Fatalf("expected TrueNAS pool to be filtered out by VMware host selection, got %v", decoded.Pools)+ }+}+func TestEstablishSession(t *testing.T) {router := &Router{}req := httptest.NewRequest(http.MethodGet, "/", nil)diff --git a/internal/unifiedresources/monitor_adapter_read_state_test.go b/internal/unifiedresources/monitor_adapter_read_state_test.goindex ed5e6d7427..4c849671ad 100644--- a/internal/unifiedresources/monitor_adapter_read_state_test.go+++ b/internal/unifiedresources/monitor_adapter_read_state_test.go@@ -150,6 +150,43 @@ func TestMonitorAdapterReadStateReturnsClonedIncidents(t *testing.T) {}}+func TestMonitorAdapterStoragePoolViewsAttachCanonicalMetricsTarget(t *testing.T) {+ adapter := NewMonitorAdapter(NewRegistry(nil))+ now := time.Date(2026, 4, 1, 0, 0, 0, 0, time.UTC)++ adapter.PopulateSupplementalRecords(SourceVMware, []IngestRecord{+ {+ SourceID: "vc-1:datastore:datastore-202",+ Resource: Resource{+ ID: "storage-vmware-1",+ Type: ResourceTypeStorage,+ Name: "archive-tier",+ Status: StatusOnline,+ LastSeen: now,+ Storage: &StorageMeta{+ Type: "datastore",+ Platform: "vmware",+ Nodes: []string{"esxi-01.lab.local"},+ },+ VMware: &VMwareData{+ ConnectionID: "vc-1",+ EntityType: "datastore",+ ManagedObjectID: "datastore-202",+ RuntimeHostName: "esxi-01.lab.local",+ },+ },+ },+ })++ pools := adapter.StoragePools()+ if len(pools) != 1 {+ t.Fatalf("expected 1 storage pool view, got %d", len(pools))+ }+ if got := pools[0].SourceID(); got != "vc-1:datastore:datastore-202" {+ t.Fatalf("expected canonical metrics target on storage pool view, got %q", got)+ }+}+func TestMonitorAdapterRecordsSupplementalChangeTimeline(t *testing.T) {store := NewMemoryStore()adapter := NewMonitorAdapter(NewRegistry(store))diff --git a/internal/unifiedresources/registry.go b/internal/unifiedresources/registry.goindex 901c385de1..f24303b081 100644--- a/internal/unifiedresources/registry.go+++ b/internal/unifiedresources/registry.go@@ -403,6 +403,14 @@ func BuildMetricsTargetForRegistry(rr *ResourceRegistry, resourceID string) *Metrr.mu.RLock()defer rr.mu.RUnlock()+ return rr.metricsTargetForResourceLocked(resourceID)+}++func (rr *ResourceRegistry) metricsTargetForResourceLocked(resourceID string) *MetricsTarget {+ if rr == nil {+ return nil+ }+resourceID = CanonicalResourceID(resourceID)resource := rr.resources[resourceID]if resource == nil {@@ -1902,6 +1910,7 @@ func (rr *ResourceRegistry) rebuildViews() {for _, r := range rr.resources {viewResource := cloneResourcePtr(r)+ viewResource.MetricsTarget = rr.metricsTargetForResourceLocked(r.ID)switch r.Type {case ResourceTypeVM:v := NewVMView(viewResource)diff --git a/internal/unifiedresources/registry_test.go b/internal/unifiedresources/registry_test.goindex 1de798b095..43c6e9ee18 100644--- a/internal/unifiedresources/registry_test.go+++ b/internal/unifiedresources/registry_test.go@@ -236,6 +236,54 @@ func TestBuildMetricsTargetForRegistryFallsBackToStoredMetricsTarget(t *testing.}}+func TestResourceRegistryStoragePoolViewsCarryResolvedMetricsTarget(t *testing.T) {+ rr := NewRegistry(nil)+ now := time.Date(2026, 4, 1, 11, 0, 0, 0, time.UTC)++ rr.IngestRecords(SourceVMware, []IngestRecord{+ {+ SourceID: "vc-1:datastore:datastore-202",+ Resource: Resource{+ ID: "storage-vmware-1",+ Type: ResourceTypeStorage,+ Name: "archive-tier",+ Status: StatusOnline,+ LastSeen: now,+ Storage: &StorageMeta{+ Type: "datastore",+ Platform: "vmware",+ Nodes: []string{"esxi-01.lab.local"},+ },+ VMware: &VMwareData{+ ConnectionID: "vc-1",+ EntityType: "datastore",+ ManagedObjectID: "datastore-202",+ RuntimeHostName: "esxi-01.lab.local",+ },+ },+ },+ })++ pools := rr.StoragePools()+ if len(pools) != 1 {+ t.Fatalf("expected 1 storage pool view, got %d", len(pools))+ }+ if got := pools[0].SourceID(); got != "vc-1:datastore:datastore-202" {+ t.Fatalf("expected storage pool view to expose resolved metrics target, got %q", got)+ }+ if got := pools[0].Node(); got != "esxi-01.lab.local" {+ t.Fatalf("expected storage pool view node hint to remain VMware runtime host, got %q", got)+ }++ stored, ok := rr.Get(pools[0].ID())+ if !ok || stored == nil {+ t.Fatalf("expected stored storage resource, got %+v", stored)+ }+ if stored.MetricsTarget != nil {+ t.Fatalf("expected registry storage record to remain raw without persisted metrics target, got %+v", stored.MetricsTarget)+ }+}+func TestMergeVMwareDataMergesSignalFieldsWithoutDroppingExistingIdentity(t *testing.T) {existing := &VMwareData{ConnectionID: "vc-1",diff --git a/internal/unifiedresources/views.go b/internal/unifiedresources/views.goindex 4296a7adb0..e5db9a4c12 100644--- a/internal/unifiedresources/views.go+++ b/internal/unifiedresources/views.go@@ -1760,10 +1760,31 @@ func (v StoragePoolView) IncidentAction() string {}func (v StoragePoolView) Node() string {- if v.r == nil || v.r.Proxmox == nil {+ if v.r == nil {return ""}- return strings.TrimSpace(v.r.Proxmox.NodeName)+ if v.r.Proxmox != nil && strings.TrimSpace(v.r.Proxmox.NodeName) != "" {+ return strings.TrimSpace(v.r.Proxmox.NodeName)+ }+ if v.r.Storage != nil {+ for _, node := range v.r.Storage.Nodes {+ if node = strings.TrimSpace(node); node != "" {+ return node+ }+ }+ }+ if parentName := strings.TrimSpace(v.r.ParentName); parentName != "" {+ return parentName+ }+ if v.r.TrueNAS != nil && strings.TrimSpace(v.r.TrueNAS.Hostname) != "" {+ return strings.TrimSpace(v.r.TrueNAS.Hostname)+ }+ for _, hostname := range v.r.Identity.Hostnames {+ if hostname = strings.TrimSpace(hostname); hostname != "" {+ return hostname+ }+ }+ return ""}func (v StoragePoolView) Instance() string {@@ -1773,12 +1794,20 @@ func (v StoragePoolView) Instance() string {return strings.TrimSpace(v.r.Proxmox.Instance)}-// SourceID returns the original Proxmox-level storage ID (e.g. "local-lvm").+// SourceID returns the canonical storage identity used by charts and provider+// lookups. It prefers the resolved metrics target and falls back to+// source-native identifiers when needed.func (v StoragePoolView) SourceID() string {- if v.r == nil || v.r.Proxmox == nil {+ if v.r == nil {return ""}- return strings.TrimSpace(v.r.Proxmox.SourceID)+ if v.r.MetricsTarget != nil && strings.TrimSpace(v.r.MetricsTarget.ResourceID) != "" {+ return strings.TrimSpace(v.r.MetricsTarget.ResourceID)+ }+ if v.r.Proxmox != nil && strings.TrimSpace(v.r.Proxmox.SourceID) != "" {+ return strings.TrimSpace(v.r.Proxmox.SourceID)+ }+ return strings.TrimSpace(v.r.ID)}func (v StoragePoolView) StorageType() string {diff --git a/internal/unifiedresources/views_test.go b/internal/unifiedresources/views_test.goindex 983140b8d3..a4f2dc442f 100644--- a/internal/unifiedresources/views_test.go+++ b/internal/unifiedresources/views_test.go@@ -1053,6 +1053,44 @@ func TestView_StoragePoolViewAccessors(t *testing.T) {}}+func TestView_StoragePoolViewUsesCanonicalMetricsTargetAndGenericNodeHints(t *testing.T) {+ r := &Resource{+ ID: "storage-vmware-1",+ Type: ResourceTypeStorage,+ Name: "archive-tier",+ MetricsTarget: &MetricsTarget{+ ResourceType: "storage",+ ResourceID: "vc-1:datastore:datastore-202",+ },+ ParentName: "esxi-01.lab.local",+ Identity: ResourceIdentity{+ Hostnames: []string{"esxi-01.lab.local"},+ },+ Storage: &StorageMeta{+ Type: "datastore",+ Platform: "vmware",+ Nodes: []string{"esxi-01.lab.local", "esxi-02.lab.local"},+ },+ VMware: &VMwareData{+ ConnectionID: "vc-1",+ EntityType: "datastore",+ ManagedObjectID: "datastore-202",+ RuntimeHostName: "esxi-01.lab.local",+ },+ }++ v := NewStoragePoolView(r)+ if v.SourceID() != "vc-1:datastore:datastore-202" {+ t.Fatalf("expected canonical source id, got %q", v.SourceID())+ }+ if v.Node() != "esxi-01.lab.local" {+ t.Fatalf("expected generic node hint to resolve VMware host, got %q", v.Node())+ }+ if v.Instance() != "" {+ t.Fatalf("expected non-Proxmox storage instance to remain empty, got %q", v.Instance())+ }+}+func TestView_DockerContainerViewMetricsTargetAccessor(t *testing.T) {now := time.Date(2026, 3, 31, 12, 0, 0, 0, time.UTC)parentID := "host-1"diff --git a/tests/integration/tests/48-summary-hover-selection.spec.ts b/tests/integration/tests/48-summary-hover-selection.spec.tsnew file mode 100644index 0000000000..78d3d68179--- /dev/null+++ b/tests/integration/tests/48-summary-hover-selection.spec.ts@@ -0,0 +1,194 @@+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { expect, test as base } from "@playwright/test";++import {+ createAuthenticatedStorageState,+ getMockMode,+ setMockMode,+} from "./helpers";++const __dirname = path.dirname(fileURLToPath(import.meta.url));++type WorkerFixtures = {+ authStorageStatePath: string;+};++let mockModeWasEnabled: boolean | null = null;++const test = base.extend<{}, WorkerFixtures>({+ storageState: async ({ authStorageStatePath }, use) => {+ await use(authStorageStatePath);+ },+ authStorageStatePath: [+ async ({ browser }, use, workerInfo) => {+ const storageStatePath = path.resolve(+ __dirname,+ "..",+ "..",+ "tmp",+ "playwright-auth",+ `summary-hover-selection-${workerInfo.project.name}.json`,+ );+ fs.mkdirSync(path.dirname(storageStatePath), { recursive: true });+ await createAuthenticatedStorageState(browser, storageStatePath);+ try {+ await use(storageStatePath);+ } finally {+ fs.rmSync(storageStatePath, { force: true });+ }+ },+ { scope: "worker" },+ ],+});++async function ensureMockModeEnabled(+ page: import("@playwright/test").Page,+): Promise<void> {+ const state = await getMockMode(page);+ if (mockModeWasEnabled === null) {+ mockModeWasEnabled = state.enabled;+ }+ if (!state.enabled) {+ await setMockMode(page, true);+ }+}++async function expectSummaryHighlightCount(+ summary: import("@playwright/test").Locator,+ resourceId: string,+ expectedCount: number,+): Promise<void> {+ await expect+ .poll(async () =>+ summary.locator("[data-highlight-series-id]").evaluateAll((nodes, expectedId) =>+ nodes.filter(+ (node) =>+ node.getAttribute("data-highlight-series-id") === expectedId &&+ node.getAttribute("data-highlight-series-active") === "true",+ ).length,+ resourceId),+ )+ .toBe(expectedCount);+}++async function readSummarySeriesId(+ row: import("@playwright/test").Locator,+ fallbackAttribute: string,+): Promise<string> {+ return (+ (await row.getAttribute("data-summary-series-id")) ??+ (await row.getAttribute(fallbackAttribute)) ??+ ""+ );+}++async function scrollPrimaryViewportToBottom(+ page: import("@playwright/test").Page,+): Promise<void> {+ await page.evaluate(() => {+ const shell = document.querySelector<HTMLElement>(".app-scroll-shell");+ if (shell) {+ shell.scrollTo({ top: shell.scrollHeight });+ return;+ }+ window.scrollTo(0, document.body.scrollHeight);+ });+}++test.describe.serial("Summary hover selection", () => {+ test.setTimeout(180_000);++ test.afterAll(async ({ browser }) => {+ if (mockModeWasEnabled === null) return;++ const context = await browser.newContext();+ const page = await context.newPage();+ try {+ const current = await getMockMode(page);+ if (current.enabled !== mockModeWasEnabled) {+ await setMockMode(page, mockModeWasEnabled);+ }+ } finally {+ await context.close();+ }+ });++ test("keeps summary chart hover selection coherent across infrastructure, workloads, and storage", async ({+ page,+ }, testInfo) => {+ test.skip(+ testInfo.project.name.startsWith("mobile-"),+ "Desktop runtime proof",+ );++ await ensureMockModeEnabled(page);++ await page.goto("/infrastructure", { waitUntil: "domcontentloaded" });+ const infrastructureSummary = page.getByTestId("infrastructure-summary");+ await expect(infrastructureSummary).toBeVisible();+ const infrastructureRow = page+ .locator('[data-testid="infrastructure-page"] tr[data-row-id]')+ .first();+ await expect(infrastructureRow).toBeVisible();+ const infrastructureRowId =+ (await infrastructureRow.getAttribute("data-row-id")) ?? "";+ expect(infrastructureRowId).not.toBe("");+ await infrastructureRow.hover();+ await expectSummaryHighlightCount(+ infrastructureSummary,+ infrastructureRowId,+ 4,+ );++ await page.goto("/workloads", { waitUntil: "domcontentloaded" });+ const workloadsSummary = page.getByTestId("workloads-summary");+ await expect(workloadsSummary).toBeVisible();+ const workloadRow = page.locator("tr[data-guest-id]").first();+ await expect(workloadRow).toBeVisible();+ const workloadRowId =+ (await workloadRow.getAttribute("data-guest-id")) ?? "";+ expect(workloadRowId).not.toBe("");+ await workloadRow.hover();+ await expectSummaryHighlightCount(workloadsSummary, workloadRowId, 4);++ await page.goto("/storage", { waitUntil: "domcontentloaded" });+ const storageSummary = page.getByTestId("storage-summary");+ await expect(storageSummary).toBeVisible();+ const stickyStorageSummary = storageSummary.locator(+ 'xpath=ancestor::*[@data-sticky-summary="true"][1]',+ );+ await expect(stickyStorageSummary).toHaveAttribute(+ "data-sticky-summary-desktop-only",+ "false",+ );++ const storagePoolRow = page.locator("tr[data-row-id]").first();+ await expect(storagePoolRow).toBeVisible();+ const storagePoolRowId = await readSummarySeriesId(+ storagePoolRow,+ "data-row-id",+ );+ expect(storagePoolRowId).not.toBe("");+ await storagePoolRow.hover();+ await expectSummaryHighlightCount(storageSummary, storagePoolRowId, 3);++ await page.getByRole("tab", { name: "Physical Disks" }).click();+ const storageDiskRow = page.locator("tr[data-row-id]").first();+ await expect(storageDiskRow).toBeVisible();+ const storageDiskRowId = await readSummarySeriesId(+ storageDiskRow,+ "data-row-id",+ );+ expect(storageDiskRowId).not.toBe("");+ await storageDiskRow.hover();+ await expectSummaryHighlightCount(storageSummary, storageDiskRowId, 1);++ await scrollPrimaryViewportToBottom(page);+ await page.waitForTimeout(250);+ const stickyBox = await stickyStorageSummary.boundingBox();+ expect(stickyBox).not.toBeNull();+ expect(stickyBox?.y ?? Number.POSITIVE_INFINITY).toBeLessThanOrEqual(24);+ });+});