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
Remove exports orphaned by the summary component deletions
rcourtman61c639223d6d
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 978b841439..ff1007b5d0 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -3721,6 +3721,10 @@ a new API state machine, queue contract, or verification-accounting field.requested metric filters through the shared guest-chart batch loader in`internal/monitoring/monitor_metrics.go` instead of fetching the full guestmetric set and trimming after the API payload is already assembled.+ `ChartsAPI.getInfrastructureSummaryCharts` is the only frontend client for+ `/api/charts/infrastructure`; the deprecated `getInfrastructureCharts`+ alias, which could not pass `metrics`, is removed and must not return as a+ second unfiltered entry point.39. Keep the retired compact dashboard overview route absent from that sameshared API surface. `internal/api/resourceapi/resources.go`,`internal/api/router_routes_monitoring.go`, anddiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 5984480441..df8ce38dec 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -3002,9 +3002,9 @@ Agent`), with the plain-language source phrase available through accessiblethan receiving an unfiltered copy of the estate. Opaque unified-resource idsare not part of that visible search vocabulary and must not retain a nodewhen the normalized guest table has no corresponding match.-8. Keep summary chart interaction identity on one shared helper. Summary surfaces that expose row-hover, group-hover, chart-hover, or route-focus-driven chart emphasis must derive page/group/entity scope through `frontend-modern/src/components/shared/summaryCardInteraction.ts` and pass that same resolved scope into card-state, sparkline, and density-map primitives, rather than letting cards read `hovered || focused` while charts listen to a different page-local ID source. Hovering one summary chart must promote that series into the shared active entity so sibling cards highlight the same object instead of keeping chart-local hover islands, and hovering or pinning a workload group header, infrastructure cluster header, or storage pool-group header must scope the matching summary cards through that same shared contract instead of forking a page-local summary filter path. Sibling cards should surface that synchronized hover as one compact header readout through the shared summary-card contract, while the chart under the pointer keeps the only floating tooltip. Recovery is explicitly outside this interaction dialect: its retired posture-card strip must not return with row/group/chart hover behavior without a separate governed product decision.-9. Keep page summaries page-scoped when table rows enter contextual focus. Route-backed row selection may add a focused label and shared series emphasis, but infrastructure, workloads, and storage summary cards must continue to render the page-level series set instead of collapsing the summary down to the selected row or replacing the global trend view with row-local empty states.-10. Keep contextual row focus on the shared summary primitive. Summary surfaces and same-route table drill-ins must reuse `frontend-modern/src/components/shared/contextualFocus.ts` for interactive-series filtering, focused-name lookup, active-series derivation, local scroll preservation, and deliberate inline-detail reveal instead of rebuilding page-local `Set` filters, focused-label scans, drawer-aware scroll math, or ad hoc scroll restoration in each surface.+8. Keep summary interaction identity on one shared helper. Pages that expose row-hover, group-hover, or route-focus-driven summary emphasis, today the Workloads and Storage tables through `useSummaryPageInteractionState` in `frontend-modern/src/components/shared/summaryTableFocus.ts`, must derive page/group/entity scope through `frontend-modern/src/components/shared/summaryCardInteraction.ts` rather than letting each surface read `hovered || focused` from its own page-local ID source. Hovering or pinning a storage pool-group header, or a workload group header on a surface that enables inline group drawers (the Proxmox and VMware surfaces pass `groupNodeDrawerMode="disabled"` today), must scope the matching rows through that same shared contract instead of forking a page-local summary filter path. No summary card or chart strip renders today; one that returns must consume that same resolved scope, and the chart under the pointer must promote its series into the shared active entity through the bridge's `setChartHoverSync` input instead of keeping a chart-local hover island. Recovery is explicitly outside this interaction dialect: its retired posture-card strip must not return with row/group/chart hover behavior without a separate governed product decision.+9. Keep any page summary page-scoped when table rows enter contextual focus. No infrastructure, workloads, or storage summary cards render today. If one returns, route-backed row selection may add a focused label and shared series emphasis, but the summary must continue to render the page-level series set instead of collapsing down to the selected row or replacing the global trend view with row-local empty states.+10. Keep contextual row focus on the shared primitives. Same-route table drill-ins must reuse `frontend-modern/src/components/shared/contextualFocus.ts` for local scroll preservation, off-screen reveal, inline-detail lookup, and deliberate inline-detail reveal, and must resolve the active series through `frontend-modern/src/components/shared/summaryCardInteraction.ts` behind `frontend-modern/src/components/shared/summaryTableFocus.ts`, instead of rebuilding page-local `Set` filters, focused-label scans, drawer-aware scroll math, or ad hoc scroll restoration in each surface.11. Keep summary-linked table row emphasis on the shared primitive contract. Workloads, infrastructure, and storage rows that mirror the active summary entity must expose that state through `data-summary-row-active` and let the shared presentation in `frontend-modern/src/index.css` render the row emphasis, rather than carrying page-local sky or blue fill classes inside each row renderer. Group-scoped preview and pin must use that same shared presentation boundary: child rows that belong to a hovered or pinned summary group should expose `data-summary-group-member-active="preview|pinned"` so the block-level emphasis stays subtle, consistent, and reversible instead of each table inventing its own outline, badge, or full-strength fill treatment. Static grouped row headers on workloads, infrastructure, storage, recovery, and future grouped tables must use `frontend-modern/src/components/shared/groupedTableRowPresentation.ts` plus the `.grouped-table-row` CSS contract in `frontend-modern/src/index.css`, rather than rebuilding local `bg-surface-alt` variants with subtly different light/dark behavior or page-local left-accent markers. That shared grouped-table primitive owns the subgroup cell padding, typography, small metadata, and badge treatment as well as the row background token, so a future adjustment to the subgroup visual language changes every grouped product table from one owner. Inline table detail rows on platform, workload, and infrastructure tables must compose `frontend-modern/src/components/shared/InlineDetailTableRow.tsx` for the full-width row, surface-alt cell, detail padding, and row-click containment instead of rebuilding page-local `TableRow` / `TableCell` / `div` shells around each drawer. Storage-backed reusable row presenters under `frontend-modern/src/features/storageBackups/` must also keep row height and alert accents on class/data-attribute presentation instead of runtime inline style maps, so the shared table contract stays CSP-safe on both steady-state and alert-highlighted routes.12. Keep retained-value data loading honest at the ownership boundary. Helpersthat prevent a feature surface from falling through the app-level Suspense@@ -3860,15 +3860,12 @@ production table, router and styles; it does not qualify full-app scrolling.UI surfaces must not duplicate the `patrolControlStarter` query string orwrite Patrol control or legacy entry-point starter telemetry from localclick handlers.-19. Keep shared summary-card emphasis coherent. When shared summary primitives enter an `inactive` state, `SummaryMetricCard`, `InteractiveSparkline`, and `DensityMap` must all demote background context together so storage, infrastructure, and workloads read as one interaction model instead of mixing page-local opacity, sticky-shell, or highlight rules.-20. Keep density-map summaries overview-first. When a shared summary density map receives row focus or chart-hover emphasis, `frontend-modern/src/components/shared/DensityMap.tsx`, `frontend-modern/src/components/shared/useDensityMapState.ts`, and `frontend-modern/src/components/shared/densityMapModel.ts` must preserve the multi-entity overview rows and keep focused-entity detail in the hover tooltip instead of swapping the card into a single-series chart, dimming the rest of the map into unusable background noise, duplicating cursor-value tooltip copy, or adding persistent card chrome that steals heatmap space. The card body must stay overview-first; the tooltip may carry the active entity identity, current value, and peak, shared tooltip shells must follow semantic surface tokens instead of forcing a dark palette in light mode, the tooltip header must let long entity names consume the available width before truncating rather than clipping against an arbitrary fixed label cap, numeric metric readouts such as `16.9 MB/s` or `37.4 MB/s` must stay single-line instead of wrapping the unit onto a second row, and density-map detail that cannot fit cleanly inside the canonical tooltip shell must be omitted rather than introducing tooltip-specific chrome or a secondary chart inside the hover surface.21. Keep retired self-hosted hosted-model and trial acquisition surfaces out ofnormal v6 GA runtime. Shared shells and helper-driven badges may continue toparse legacy payload fields, but ordinary self-hosted Assistant, Patrol, andsettings flows must present provider setup as BYOK/local/self-managed andmust not surface hosted-model credits, in-app trial starts, or genericmanaged-model claims.-22. Keep sparkline scrubbing source-local and sibling-sync timestamp-based. The chart a user is actively scrubbing in `frontend-modern/src/components/shared/InteractiveSparkline.tsx` and `frontend-modern/src/components/shared/useInteractiveSparklineState.ts` must keep its dashed hover cursor on the real local mouse `x`, while sibling cards may map the shared hover timestamp onto their own timelines. Shared cursor sync must not snap the source chart back onto the nearest sample timestamp, the rendered SVG/canvas hover cursor must bind to the actual numeric cursor coordinate rather than a boolean guard state, the time cursor must span the chart viewport instead of collapsing to the series height, and the hover tooltip must track the pointer instead of anchoring to the chart top edge while following the active theme rather than a hardcoded dark shell. The hover tooltip must stay side-offset from the active scrub cursor and flip to the available side near viewport edges so it does not cover the highlighted guide or graph point.23. Keep shared contextual focus canonical after adoption. Once a summary or table surface enters route-backed contextual focus, future additions must extend `frontend-modern/src/components/shared/contextualFocus.ts` and its guardrail tests rather than forking another helper for workload IDs, resource IDs, or scroll-preserving same-route selection.24. Keep shared infrastructure/resource selectors on the canonical agent-facettruth. Shared primitives and settings-facing selector helpers must treat@@ -3898,12 +3895,14 @@ production table, router and styles; it does not qualify full-app scrolling.26. Keep the authenticated app root aligned with that same first-session path.That same shared-primitive ownership now includes contextual row focus.`frontend-modern/src/components/shared/contextualFocus.ts` is the canonical- owner for interactive-series filtering, focused-label lookup, active-series- resolution, and nearest-scrollable-ancestor preservation across page-scoped- summary surfaces. Dashboard row focus, infrastructure summary emphasis,- storage summary emphasis, and workloads summary emphasis must all route through- that helper instead of maintaining page-local copies of the same hover/focus- rules.+ owner for nearest-scrollable-ancestor preservation, off-screen element+ reveal, and inline-detail lookup and reveal, while page/group/entity scope+ resolution belongs to+ `frontend-modern/src/components/shared/summaryCardInteraction.ts` behind+ `frontend-modern/src/components/shared/summaryTableFocus.ts`. Workloads and+ Storage row focus and the Proxmox page's node-to-guests reveal must route+ through those helpers instead of maintaining page-local copies of the same+ hover/focus rules.`frontend-modern/src/App.tsx` must land authenticated `/` and `/login`handoffs through this subsystem's provider-first platform landing contract:the first visible provider/runtime platform wins, and the Machines surface@@ -5103,28 +5102,12 @@ Enter/Space work through the native button, and lifecycle actions do not bubbleinto collapse. Generic `Ask Assistant` and `Copy context` actions do not belongin object drawer headers: Assistant remains available through the global shell,and raw context export must not compete with the operational reading path.-The shared interactive sparkline now follows that same split.-`frontend-modern/src/components/shared/InteractiveSparkline.tsx` stays the-render shell, `frontend-modern/src/components/shared/useInteractiveSparklineState.ts`-owns hover state, RAF throttling, canvas draw scheduling, and resize lifecycle,-and `frontend-modern/src/components/shared/interactiveSparklineModel.ts` owns-sparkline downsampling, gap segmentation, axis-tick math, and hover-selection-policy. Future sparkline work should extend those owners instead of pushing-canvas scheduling or chart-shape math back into the shared component shell.-That same sparkline boundary now also owns floating tooltip shell routing:-local hover tooltips must derive viewport anchor coordinates from the shared-runtime/model path, keep the tooltip beside rather than on top of the scrub-cursor, and render through-`frontend-modern/src/components/shared/TooltipPortal.tsx`, not as HTML-`foreignObject` shells inside the `preserveAspectRatio="none"` chart SVG where-cross-browser scaling can stretch the tooltip surface or drop its semantic-shell styling.-That same shared sparkline boundary now also owns active-series isolation-metadata. The shell may expose `data-active-series-display` and-`data-rendered-series-count` for proof and inspection, but only the shared-runtime/model owners may decide whether a hovered or focused series is merely-emphasized or fully isolated; feature shells must not fork their own row-hover-line filtering.+`frontend-modern/src/components/Workloads/MetricMiniSparkline.tsx` and+`frontend-modern/src/features/proxmox/BackupActivityChart.tsx` render their+hover tooltips through `frontend-modern/src/components/shared/TooltipPortal.tsx`+rather than as HTML `foreignObject` shells inside the chart SVG; the mini+sparkline's SVG uses `preserveAspectRatio="none"`, where cross-browser scaling+can stretch an embedded tooltip surface or drop its semantic shell styling.The retired dashboard overview route must not regain feature-local trend,KPI, problem-resource, or card shells. Workload-table and guest-row fallbackcopy that lives under `frontend-modern/src/components/Workloads/` must keep@@ -5140,15 +5123,6 @@ empty or error copy only after they have a governed owner, and they must notreintroduce route-local metrics-history fetch loops for CPU and memorysparklines; the infrastructure and workloads summary chart routes already ownthat chart contract.-The shared density map now follows that same owner split.-`frontend-modern/src/components/shared/DensityMap.tsx` stays the render shell,-`frontend-modern/src/components/shared/useDensityMapState.ts` owns hover-signals, canvas draw lifecycle, and resize handling, and-`frontend-modern/src/components/shared/densityMapModel.ts` owns bucket/window-math, hover target selection, focused-series tooltip detail, and density-cell-opacity rules. Future density-map work should extend those owners instead of-pushing canvas lifecycle, tooltip shaping, or chart math back into the shared-shell.The shared trial banner is retired for self-hosted v6 GA. Future commercialnotification work must start from the explicit Plans, hosted, activation,recovery, or support surfaces rather than reviving a global authenticated-shell@@ -6155,14 +6129,6 @@ when local login is hidden behind SSO, and the `/docs/...` public-route contractkeeps that destination readable without an authenticated session. The loginsurface must remain guidance-only: it may not expose secrets, imply an emailreset flow, or create a browser-side authentication bypass.-The shared summary strip primitives now follow that same owner split.-`frontend-modern/src/components/shared/SummaryPanel.tsx` and-`frontend-modern/src/components/shared/SummaryMetricCard.tsx` stay the render-shells for summary-frame spacing and card density, while monitoring surfaces-such as recovery, infrastructure, workloads, and storage only choose from the-owned shared density modes instead of forking summary spacing with feature--local padding hacks. Future summary-density work should extend those shared-primitives rather than hard-coding compact card chrome inside one surface.The shared tooltip now follows that same owner split.`frontend-modern/src/components/shared/Tooltip.tsx` stays the render shell andsingleton API boundary, `frontend-modern/src/components/shared/useTooltipState.ts`@@ -6361,11 +6327,6 @@ That same shared table boundary now owns CSP-safe fill rendering for metricbars: `frontend-modern/src/components/shared/ProgressBar.tsx` must render fillwidth through DOM attributes rather than inline width styles that break thepublic demo CSP.-That same shared-boundary rule applies to summary density. The shared compact-mode on `SummaryPanel.tsx` and `SummaryMetricCard.tsx` exists for genuinely-dense monitoring surfaces, but pages that are trying to align with the normal-Pulse monitoring scan path should stay on the default shared density instead of-using page-local compact overrides by habit.That same recovery shell boundary now also owns one canonical top-level filtercontroller in`frontend-modern/src/features/recovery/useRecoverySurfaceState.ts`. Route-backeddiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 7792342909..cc814f1812 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -1507,7 +1507,6 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.default filter-option labels must flow through the shared all-optionpresentation helper via the workload filter config model instead of thehot-path shell hard-coding local `All ...` strings.-28. Keep summary-card hover emphasis on one bounded rendering budget: when a summary row is active, shared sparkline and density-map primitives must promote the selected series and demote background series through the same active-series ID rather than layering a second page-local highlight pass, so zoom-range and hover scrubbing stay visually coherent without reintroducing multi-series overdraw on the hot summary cards. Density maps on that hot path must stay overview-first under focus: preserve the multi-entity heatmap rows, layer focused-entity detail inside the card, and avoid swapping transient hover into a separate single-series chart path.29. Keep public self-hosted checkout handoff endpoints on the adjacentcommercial/router boundary, not the summary-chart hot path. When`internal/api/router.go`, `internal/api/router_routes_cloud.go`, or@@ -1529,7 +1528,8 @@ them with new hot-path fetches. Node rows that draw infrastructure historymust read the canonical infrastructure-summary route owned by`internal/api/router_routes_monitoring.go` and `internal/api/router.go`, todaythrough `frontend-modern/src/components/Workloads/useWorkloadTableMetricHistory.ts`;-storage summary cards must use the storage summary cache owners. The authenticated+the storage pool Growth column must read through the storage summary cache+owners (`useStorageSummaryCharts.ts` and `storageSummaryCache.ts`). The authenticatedroot path in `frontend-modern/src/App.tsx` must not prewarm a deleteddashboard-specific overview, trend, or summary transport.The same hot path must keep mock/demo chart identity on the canonical@@ -2262,22 +2262,11 @@ Route-backed workload `resource` focus on that hot path is contextual stateonly, not inferred filter state: opening or closing an inline drawer must notinvent, retain, or clear `agent` or node-scope filters unless those filterswere already explicit in the managed workload URL.-That same hot-path ownership now covers top-of-page summary emphasis: infrastructure-and workloads summary cards must treat row hover, chart hover, and route focus-as one shared active-series contract so time-range switches, row scrubbing, and-chart cross-highlighting reuse one existing chart path instead of repainting-page-local “selected row” overlays on top of already downsampled summary-history. Hovering a sparkline or density map for one entity must promote that-entity into the shared active series so sibling cards highlight the same object-at once rather than maintaining chart-local hover state, and the synchronized-hover timestamp must remain visible across those sibling cards even when the-active entity has no samples for one metric in the current range. Those-sibling cards should expose the synchronized value through one compact-header-level readout, not by spawning duplicate floating tooltips on every-chart.-Infrastructure cluster-header hover now belongs to that same bounded hot path:-hovering a grouped infrastructure header must scope the top cards to that-cluster's unified-resource members through the shared group/entity interaction+That same hot-path ownership covers summary emphasis. No top-of-page summary+cards render on infrastructure or workloads today; if they return, row hover,+chart hover, and route focus must stay one shared active-series contract that+reuses one existing chart path instead of repainting page-local “selected row”+overlays on top of already downsampled summary history.That same hot path now also owns dashboard freshness discipline. Supportedunified-resource dashboard reads may hydrate from REST for first paint, butonce websocket `state.resources` is available they must consume that canonical@@ -2414,21 +2403,14 @@ must not tighten physical retention until the durable downgrade state reachesits governed day-60 purge timestamp. Re-upgrade clears that ceiling before thenext retention run. The ceiling may only reduce configured retention; it mustnever expand an operator's shorter storage policy.-contract instead of inventing an infrastructure-local summary filter branch.-For shared line charts on that hot path, the shared sparkline primitive may-isolate the selected series inside the existing render budget, but that-isolation must still reuse the same summary series set and timeline data rather-than triggering a second page-local chart recomputation.-That same hot-path rule now covers contextual row focus on those pages.-That same hot-path ownership now also forbids hover-driven table movement.-When a summary chart promotes one active entity, the matching row may highlight-in place if it is already mounted and visible, but the hot path must not-auto-scroll the page or rebuild the table into a one-row filtered view on-transient hover. Off-screen reveal must stay behind an explicit `Jump to row`-action routed through the shared summary-table focus bridge.-That same hot-path contract also owns the row-emphasis paint. Dashboard guest-rows and infrastructure resource rows must expose summary-linked activity-through the shared `data-summary-row-active` marker and let the shared frontend+That same hot-path ownership forbids hover-driven table movement on the+workloads and storage tables. Row hover may highlight the matching row in+place, but the hot path must not auto-scroll the page or rebuild the table+into a one-row filtered view on transient hover; only a deliberate row focus+may reveal an off-screen row, through the shared summary-table focus bridge.+That same hot-path contract also owns the row-emphasis paint. Workload guest+and group rows and storage pool, group, and disk rows must expose+summary-linked activity through the shared `data-summary-row-active` marker and let the shared frontendprimitive render the emphasis, instead of layering lane-local row-fill classesthat diverge across pages or wash out inline metric bars.`frontend-modern/src/components/Workloads/useWorkloadSelectionState.ts` must@@ -2436,14 +2418,7 @@ write workload selection back into the workloads route through the sharedsame-path route-state scheduler, but the actual shell-position handoff forquery-only row focus must go through `frontend-modern/src/utils/appShellScrollRestoration.ts`plus the root `frontend-modern/src/App.tsx` shell so opening a focused-workload does not look like a full page reload, and the governed infrastructure and-workloads summary surfaces must keep the summary page-scoped while that focus-reuses the shared highlight contract; density maps may retain page-level-context, but they must now also surface focused-entity detail inside the same-card instead of dimming the rest of the map into unusable background noise or-swapping the hot path into a transient single-series chart. Line-card-isolation must still flow through the shared sparkline runtime instead of a-page-local focus overlay. The shared same-path scheduler must also own cleanup+workload does not look like a full page reload. The shared same-path scheduler must also own cleanupfor every deferred scroll-restore timeout and animation frame it creates, soroute-state cleanup cannot leave hot-path replay work running after the owningsurface unmounts.@@ -2452,12 +2427,13 @@ focus may mount drawer-local facet and intelligence fetches, but thoserequests must retain the mounted page shell through the shared non-suspendingquery helper instead of bubbling a transient `Loading view...` fallback through`AppLayout.tsx` when an inline infrastructure drawer opens.-That same hot-path rule now has one shared runtime boundary. Interactive-series-filtering, active-series derivation, focused-label lookup, and local-scroll-preserving row focus must extend-`frontend-modern/src/components/shared/contextualFocus.ts` instead of-rebuilding page-local `Set` scans or scroll repair logic in dashboard,-infrastructure, or workloads hot paths.+That same hot-path rule now has one shared runtime boundary. Local+scroll-preserving row focus and inline-detail reveal must extend+`frontend-modern/src/components/shared/contextualFocus.ts`, and active-series+derivation must stay in+`frontend-modern/src/components/shared/summaryCardInteraction.ts` behind+`summaryTableFocus.ts`, instead of rebuilding page-local `Set` scans or scroll+repair logic in workloads, storage, or platform-table hot paths.That same hot-path ownership now also covers deliberate inline-detail reveal.When a focused workload or infrastructure row opens its inline detail, the hotpath may preserve scroll across same-route state writes, but the actual reveal@@ -2471,8 +2447,9 @@ fold, marking that movement as deliberate so route-state restore does notreplay over it and then scrolling only enough to keep the row header plus thetop of the detail visible instead of hard-centering every expansion.That same hot-path ownership now includes summary cache invalidation. A-summary chart cache that hydrates charts for fast remounts, today the storage-page's module-scoped `frontend-modern/src/utils/storageSummaryCache.ts`, must+summary history cache that hydrates fast remounts, today the storage page's+module-scoped `frontend-modern/src/utils/storageSummaryCache.ts` behind the+pool Growth column and its sort, mustcarry the chart contract version in its key and advance it when the summarychart timeline contract changes, so a hot-reloaded or long-lived browser tabcannot rehydrate an older series set before the next live fetch completes.@@ -2767,7 +2744,7 @@ the filter and presentation rails wrap-capable instead of forcing a singleno-wrap row that clips trailing actions. The workload shell leaves Type,Status, dynamic scope, and contextual `Clear filters` actions onthe primary filter rail. Durable presentation choices — grouped/list mode,-bars/trends, chart visibility, Guest/Host memory basis, and Columns — pass+bars/trends, Guest/Host memory basis, and Columns — passtheir panel content through `FilterBar.viewOptions` instead of importing orwrapping `ViewOptionsDisclosure` in the workload feature or rendering asequally prominent filter toggles. The shared FilterBar owns the inline View@@ -2790,10 +2767,13 @@ label so the values are not an orphaned set of durations. Columns must expandas a full-width responsive checkbox row inside the View disclosure instead ofopening a nested absolute panel or a tall single-column desktop list. OnProxmox, the non-default Host basis must remain visible in the workload memory-column header after the View disclosure closes. Workload chart-visibility remains a display preference: its menu action must expose explicit-`Show charts` / `Hide charts` pressed state, and hiding charts must remove the-summary section rather than leaving an empty collapsed summary band on screen.+column header after the View disclosure closes. No workload summary chart+section renders today, so the chart-visibility control in+`frontend-modern/src/components/Workloads/WorkloadsFilter.tsx` stays hidden+(no surface passes `onChartsToggle`). If a summary section returns, that+control must expose explicit `Show charts` / `Hide charts` pressed state, and+hiding charts must remove the summary section rather than leaving an empty+collapsed summary band on screen.The Workloads-owned filter-config assembly now lives in`frontend-modern/src/components/Workloads/useWorkloadsState.ts`, so futurefilter runtime changes must extend through those owners instead ofdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 53b6bd3c34..3f90bc5886 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -2770,11 +2770,9 @@ canonical pre-handler authorization proof covering both transfer routes.top-level GitHub install.sh SERVER installer, so a correct local script(signed or not) is always preferred over a wrong-identity proxied one on theunverified curl-piped-into-bash agent path (issue #1470).-15. 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.+15. Keep storage chart identity on the shared storage path. Pool rows, disk+ rows, the pool Growth column, and storage detail charts must all address+ history through the canonical unified-resource metrics-target IDs.Expanded pool and physical-disk details must also follow the canonicalobject-detail information architecture: current configuration, topology,health, and SMART facts land on `Overview`; stored capacity and I/O charts@@ -2820,10 +2818,9 @@ canonical pre-handler authorization proof covering both transfer routes.likewise native Assistant tool-visibility plumbing, not MCP transportstate and not storage/recovery execution authority.When operators hover or focus pools versus physical disks, the storage- summary must reuse one resolved active-series ID across card state and- chart highlighting so pool-only cards demote cleanly during disk focus and- disk-temperature cards demote cleanly during pool focus, instead of- leaving stale row-local IDs or storage-local hover branches on the page.+ page must reuse one resolved active-series ID for row emphasis in both+ views instead of leaving stale row-local IDs or storage-local hover+ branches on the page.Any page, group, or entity scope that becomes pinned through storageinteraction must stay row-first: the pinned row or group remains thevisible scoped state, and explicit clearing belongs to the shared storage@@ -2836,16 +2833,15 @@ canonical pre-handler authorization proof covering both transfer routes.`data-summary-group-member-active="preview|pinned"` state so the groupedblock reads as one scoped set without adding storage-local outlines, pillbuttons, or heavy full-row fills.-18. Keep storage summary remount caches versioned with the chart contract.- `frontend-modern/src/components/Storage/StorageSummary.tsx` may keep a- bounded in-memory cache for same-tab remounts, but its cache key must carry- an explicit summary contract version so long-lived demo sessions do not- rehydrate stale pool or disk sparkline shapes after the storage summary- chart model changes. The shared storage history owner at- `frontend-modern/src/utils/storageSummaryCache.ts` must likewise remain- bounded to 20 recent node/range summaries, use LRU replacement, and abort- in-flight requests when organization ownership changes so a late response- cannot recreate an old-scope cache entry.+18. Keep the storage summary history cache versioned with the chart contract.+ `frontend-modern/src/utils/storageSummaryCache.ts`, which+ `frontend-modern/src/components/Storage/useStorageSummaryCharts.ts` reads+ for the pool Growth column, must carry an explicit summary contract version+ in its cache key so long-lived demo sessions do not rehydrate stale pool or+ disk series shapes after the storage summary chart model changes. It must+ also remain bounded to 20 recent node/range summaries, use LRU replacement,+ and abort in-flight requests when organization ownership changes so a late+ response cannot recreate an old-scope cache entry.19. Keep cross-surface workload handoffs on canonical IDs too. Shared workloadchart transport may look up provider-backed VM history through unifiedmetrics targets, but infrastructure/workloads/storage/recovery navigation@@ -3686,11 +3682,6 @@ live wire-up and persistence resync so a finding the operatormanually closed before a restart still reads as "Resolved by you"afterward, instead of being misattributed to Pulse's auto-detection.-`StorageSummary.tsx`, `StoragePageSummary.tsx`, and `useStoragePageSummary.ts`-now surface `poolsDegraded` and `disksFailing` health indicators alongside-pool/disk counts. These additions project from existing websocket pool/disk-state; they must not introduce new API polling or widen the storage-fetch-boundary.Agentless availability endpoints are adjacent infrastructure context only, notstorage or recovery inventory. Storage/recovery consumers may receive`network-endpoint` resources through shared unified-resource snapshots, but@@ -3703,9 +3694,9 @@ not Standalone Machines membership, storage ownership, repository membership,backup coverage, or restore authority.That same owned summary path now also runs through`useStorageSummaryCharts.ts`: the storage page owns one page-scoped summary-range and one shared storage-summary history fetch, and both the sticky-summary cards and per-pool growth column reuse that payload instead of-forking separate row-local history reads or duplicate polling loops.+range and one shared storage-summary history fetch, and the per-pool Growth+column and its growth sort reuse that payload instead of forking separate+row-local history reads or duplicate polling loops.The storage table's default `priority` order is a risk list: records with anopen, unacknowledged alert sort first by severity (fed into`sortStorageRecords` through `StorageSortContext.alertWeightByRecordId` from@@ -4343,38 +4334,23 @@ split: storage derives the health semantics throughStorage components and `features/storageBackups` presentation helpers must notrecreate raw green/yellow rounded-dot classes locally.That same storage page ownership now also includes contextual focus behavior-for pools and disks. Expanding a storage row may set a focused metrics-target-ID for shared summary emphasis, but `frontend-modern/src/components/Storage/StorageSummary.tsx`-must keep the storage summary page-scoped instead of collapsing its sparklines-to the single expanded row or replacing the page overview with row-local empty-states.-That same page-scoped summary contract now also owns canonical hover-isolation-behavior. Pool and disk rows must publish the resolved metrics-target ID into-the shared summary contract so pool usage, used capacity, and available space-cards can isolate the active row through the shared sparkline primitive while-non-matching cards such as disk temperature demote to inactive context instead-of rebuilding a row-local summary surface.-That same shared summary contract now also owns chart-driven emphasis.-Hovering one storage summary chart must promote the same canonical metrics-target ID through sibling cards, so pool charts cross-highlight the same pool-while non-matching cards such as disk temperature demote to inactive context-instead of keeping chart-local hover state. When a sibling storage card can map-that same entity into its own series set, it must also surface the synchronized-value as a compact card-header readout instead of opening a second floating-tooltip away from the pointer.-That same storage summary contract now uses the shared contextual-focus owner.-`frontend-modern/src/components/Storage/StorageSummary.tsx` must route-interactive-series filtering, focused-label lookup, and active-series-resolution through `frontend-modern/src/components/shared/contextualFocus.ts`-so storage keeps the same page-scoped focus semantics as infrastructure and-workloads instead of preserving a storage-local hover/focus branch.-That same storage ownership now also governs summary-to-table reveal. Hovering-pool or disk charts may highlight the matching row when the active view already-shows it, but storage hover must not auto-filter or auto-scroll the table.-When the active chart entity is off-screen or hidden behind the other storage-view, the page must use the shared summary-table focus bridge and reveal the-target row only through an explicit `Jump to row` action, switching views or-expanding the owning group only for that deliberate reveal path.+for pools and disks. Expanding a pool row or selecting a disk row sets the+focused summary series ID and row hover sets the hovered one;+`frontend-modern/src/components/Storage/useStoragePageModel.ts` must resolve+both through the shared `useSummaryPageInteractionState` bridge in+`frontend-modern/src/components/shared/summaryTableFocus.ts`, so pool, disk,+and pool-group row emphasis keeps the same page/group/entity semantics as+workloads instead of preserving a storage-local hover/focus branch. The+storage summary history that `useStorageSummaryCharts.ts` loads feeds only the+pool Growth column and its sort; no storage summary card strip renders, and+one that returns must stay page-scoped instead of collapsing to the expanded+row or replacing the page overview with row-local empty states.+That same storage ownership now also governs reveal. Row hover may highlight+the matching row in place, but storage hover must not auto-filter or+auto-scroll the table. Reveal belongs only to deliberate focus: a focused+pool or disk row may switch to the owning view or expand the owning group+through the bridge's `revealActiveSeries` callback, and a pinned pool-group+header that sits off-screen scrolls into view through the same bridge.That same reveal contract now also owns inline-detail expansion. When a pool ordisk row is deliberately focused and its inline detail opens on the storagepage, the detail row must publish the same canonical summary series ID through@@ -4397,8 +4373,8 @@ instead of a separate hardcoded recovery cache, so recovery filters, rollups,and shared route handoffs see the same platform set as settings andinfrastructure.That same graph-owned mock boundary also owns demo-readiness for storage and-recovery surfaces. Mock summary cards, seeded history, and provider-backed-storage/recovery counts must come from the same canonical fixture graph so+recovery surfaces. Mock seeded history and provider-backed storage/recovery+counts must come from the same canonical fixture graph sostorage and recovery demos show realistic healthy-versus-attention balanceinstead of blank history, stale provider context, or page-local fixture drift.That same recovery-facing demo contract also owns subject readability. When@@ -4407,16 +4383,11 @@ subject identity shown to operators must stay human-readable`<cluster>/<namespace>/<pvc>` context from the canonical graph instead ofopaque hash-like IDs that break demo trust and cross-surface recognition.That same adjacent chart boundary now also assumes seeded and live mock-storage timelines are one continuous series. Disk-temperature, pool-usage,-used-capacity, and available-space cards may consume shaped chart payloads for-presentation, but those payloads must still reflect one canonical mock metric-timeline instead of a seeded seven-day sparkline with a second live tail-stitched 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.+storage timelines are one continuous series. Storage chart consumers such as+the pool Growth column and the pool and disk History charts may consume shaped+chart payloads for presentation, but those payloads must still reflect one+canonical mock metric timeline instead of a seeded seven-day series with a+second live tail stitched on afterward.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 or@@ -4854,8 +4825,8 @@ the cloud-summary decision is derived from scope rather than stored as aseparate boolean flag.The same storage-facing runtime paths now also normalize org scope through`frontend-modern/src/utils/orgScope.ts` before building cache keys or-multi-tenant fetch state, so Dashboard, StorageSummary, and other storage-adjacent consumers do not each keep a local `getOrgID() || 'default'`+multi-tenant fetch state, so `storageSummaryCache.ts` and other+storage-adjacent consumers do not each keep a local `getOrgID() || 'default'`fallback.The frontend storage and recovery surfaces are also first-class embedded@@ -4897,10 +4868,10 @@ small table chrome to return to the primary page. It must not return as anequal-weight subtab or a top-level posture-card action strip without a separategoverned product decision.Recovery is also intentionally outside the interactive page/group/entity-summary-card contract used by workloads, infrastructure, and storage. The-recovery route must not adopt `summaryCardInteraction.ts`, synchronized card-hover, row-driven summary scope, or shared `SummaryPanel` card framing simply-because adjacent monitoring pages use those primitives. Recovery may still show+summary-scope contract that the workloads and storage tables use. The recovery+route must not adopt `summaryCardInteraction.ts`, `summaryTableFocus.ts`,+row-driven summary scope, or a summary card strip simply because adjacent+monitoring pages use those primitives. Recovery may still showcoverage breadth and platform context inside the Protection coverage table andevent filters, but the page must read item-first so the unified recovery modelis not visually anchored to one platform family.@@ -5191,8 +5162,8 @@ recovery-local grid overrides or width hacks. Protected-items controls shouldalso use the same shared `Reset all` page-controls action pattern as storageand workloads when visible filters are active, instead of forcing operators toclear each inventory filter manually.-That same handoff should keep Recovery out of shared summary-card density-tuning unless a new governed product decision reintroduces a first-viewport+That same handoff should keep Recovery free of a first-viewport summary card+strip unless a new governed product decision reintroduces a first-viewportsummary owner. The current route should spend its top-level density budget onthe activity section, compact controls, and one primary data card.That same shell rule applies to the recovery-events workspace.diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 52d0ed8144..9e557430f7 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -5380,8 +5380,11 @@ should extend these unified-resource owners instead of rebuilding status orbadge logic inside PMG, recovery, dashboard, or infrastructure-local views.The shared resource-runtime adapter boundary is also owned here now.`frontend-modern/src/utils/agentResources.ts` owns canonical actionable-resource identities, agent-facet detection, cluster-name fallbacks, and-resource-derived chart-key candidates. `frontend-modern/src/utils/resourcePlatformData.ts`+resource identities, agent-facet detection, and cluster-name fallbacks. It no+longer carries a resource-wide chart-key candidate list: workload table+sparklines match chart series to rows through the chart-key candidates in+`frontend-modern/src/components/Workloads/workloadMetricHistoryModel.ts`.+`frontend-modern/src/utils/resourcePlatformData.ts`owns the typed extraction of platform-data fragments from unified resources,and `frontend-modern/src/utils/resourceStateAdapters.ts` owns canonicalprojection from unified resources into node/PBS/PMG runtime view models.diff --git a/frontend-modern/browser-verification/232e5c23490f8cd4.json b/frontend-modern/browser-verification/232e5c23490f8cd4.jsonnew file mode 100644index 0000000000..c1ba6a0495--- /dev/null+++ b/frontend-modern/browser-verification/232e5c23490f8cd4.json@@ -0,0 +1,51 @@+{+ "version": 1,+ "base_sha": "19558f955d2d17c88e97358ac9c78a23387b8ce3",+ "verified_at": "2026-10-07T13:11:00Z",+ "result": "passed",+ "changed_paths": [+ "frontend-modern/src/api/charts.ts",+ "frontend-modern/src/components/shared/contextualFocus.ts",+ "frontend-modern/src/components/shared/summaryCardInteraction.ts",+ "frontend-modern/src/utils/agentResources.ts",+ "frontend-modern/src/utils/resourceIdentity.ts",+ "frontend-modern/src/utils/status.ts"+ ],+ "content_sha256": {+ "frontend-modern/src/api/charts.ts": "1d38ecb88f6266d6376ff1299f1ef6ce9e113a88507672a926cfb7475876f77e",+ "frontend-modern/src/components/shared/contextualFocus.ts": "d86a4bdcb0474a64451b665f2f07517f2537bc5904c6b22fc5c883563b97a9fc",+ "frontend-modern/src/components/shared/summaryCardInteraction.ts": "f5ff8561513b192f1c5b7dc11d7072f007cc0ddf9ba6467960a0541170b864c7",+ "frontend-modern/src/utils/agentResources.ts": "bd94b247f8afc025f169bf06c30526681488b15146be6e6debbbd25a4aedf076",+ "frontend-modern/src/utils/resourceIdentity.ts": "f1ece68877a3a8e2eb7319471e76c02e753b1aff239cefde4db539d80515f189",+ "frontend-modern/src/utils/status.ts": "a4f2ebf9ee6a3d6ab53438a0222fa23f590be28f00f99e9c823112c6b2bb7c1e"+ },+ "routes": [+ "/proxmox",+ "/proxmox/storage",+ "/proxmox/storage?group=node"+ ],+ "viewports": [+ {+ "width": 1440,+ "height": 900+ },+ {+ "width": 390,+ "height": 844+ }+ ],+ "states": [+ "Production vite build of this tree compared with the build of its parent 19558f955d: after normalising chunk-name hashes, SRI hashes and 1-3 character minified identifiers, every dist file is identical except the shared chunk carrying ChartsAPI, which differs only by the removed never-called getInfrastructureCharts static method (99 bytes); the other removed exports were already tree-shaken. Served embedded by a private DEMO_MODE mock backend on port 7763",+ "Proxmox overview at 1440: node table plus grouped guests table; clicking the Analytics A node name focuses the \"Guests on Analytics A\" heading inside the viewport and the node row carries data-summary-row-active=true",+ "Guest row hover sets data-summary-row-active=true; workload group header hover stays inert (Proxmox mounts WorkloadsSurface with groupNodeDrawerMode disabled, unchanged)",+ "Guest inline detail ([data-inline-detail-for]) opens with its top inside the viewport at 1440 and 390 without moving the page scroll",+ "Proxmox storage pools at 1440: Growth (24h) column renders values on 72 pool rows from the storage summary history cache; pool row hover sets data-summary-row-active=true; pool inline detail opens in view at 1440 and 390",+ "Storage grouped by node: pool-group header hover marks 2 member pools data-summary-group-member-active=preview; header click pins the group scope (header stays active after the pointer leaves) and Escape clears it",+ "No page errors; the only failed request is the Pro-gated /api/usage/workload-history (403 on this community-tier stack), which no file in this change touches"+ ],+ "interactions": [+ "Demo auto sign-in, then direct navigation to /proxmox, /proxmox/storage and /proxmox/storage?group=node",+ "Clicked a node name in the Proxmox node table, hovered and clicked a guest row, hovered a workload group header",+ "Hovered and clicked a storage pool row, hovered and clicked a pool-group header, moved the pointer away, pressed Escape"+ ]+}diff --git a/frontend-modern/src/api/__tests__/charts.branchcov0718.test.ts b/frontend-modern/src/api/__tests__/charts.branchcov0718.test.tsindex 31478bd5d1..fa73f09f1e 100644--- a/frontend-modern/src/api/__tests__/charts.branchcov0718.test.ts+++ b/frontend-modern/src/api/__tests__/charts.branchcov0718.test.ts@@ -1,6 +1,6 @@/*** Branch-coverage tests for the currently-uncovered ChartsAPI methods:- * - ChartsAPI.getInfrastructureCharts (deprecated delegate -> getInfrastructureSummaryCharts)+ * - ChartsAPI.getInfrastructureSummaryCharts range/node/signal request shaping* - ChartsAPI.getStorageSummaryTrend** These tests assert request shaping (final path + query string + signal) and@@ -40,7 +40,7 @@ import { apiFetchJSON } from '@/utils/apiClient';const ALL_TIME_RANGES: TimeRange[] = ['5m', '15m', '30m', '1h', '4h', '12h', '24h', '7d', '30d'];-describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {+describe('ChartsAPI.getInfrastructureSummaryCharts — branch coverage', () => {const apiFetchJSONMock = vi.mocked(apiFetchJSON);beforeEach(() => {@@ -50,7 +50,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('routes to /charts/infrastructure with default range=1h and signal undefined when called with no args', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts();+ await ChartsAPI.getInfrastructureSummaryCharts();expect(apiFetchJSONMock).toHaveBeenCalledTimes(1);expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h', {@@ -61,7 +61,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('passes an explicit range token through to the URL without transformation', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('24h');+ await ChartsAPI.getInfrastructureSummaryCharts('24h');expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=24h', {signal: undefined,@@ -73,7 +73,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {async (range) => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts(range);+ await ChartsAPI.getInfrastructureSummaryCharts(range);expect(apiFetchJSONMock).toHaveBeenCalledWith(`/api/charts/infrastructure?range=${range}`, {signal: undefined,@@ -85,7 +85,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);const controller = new AbortController();- await ChartsAPI.getInfrastructureCharts('1h', controller.signal);+ await ChartsAPI.getInfrastructureSummaryCharts('1h', controller.signal);expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h', {signal: controller.signal,@@ -95,7 +95,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('appends node=<id> when options.nodeId is a non-empty string', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('1h', undefined, { nodeId: 'cluster-a-node-1' });+ await ChartsAPI.getInfrastructureSummaryCharts('1h', undefined, { nodeId: 'cluster-a-node-1' });expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h&node=cluster-a-node-1',@@ -106,7 +106,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('omits the node query param when options.nodeId is explicitly null (falsy branch)', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('1h', undefined, { nodeId: null });+ await ChartsAPI.getInfrastructureSummaryCharts('1h', undefined, { nodeId: null });expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h', {signal: undefined,@@ -116,7 +116,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('omits the node query param when options.nodeId is an empty string (falsy branch)', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('1h', undefined, { nodeId: '' });+ await ChartsAPI.getInfrastructureSummaryCharts('1h', undefined, { nodeId: '' });expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h', {signal: undefined,@@ -126,7 +126,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('omits the node query param when options is undefined entirely', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('1h', undefined, undefined);+ await ChartsAPI.getInfrastructureSummaryCharts('1h', undefined, undefined);expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=1h', {signal: undefined,@@ -136,7 +136,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {it('URL-encodes special characters in the node id (URLSearchParams.toString)', async () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);- await ChartsAPI.getInfrastructureCharts('1h', undefined, { nodeId: 'node a/b' });+ await ChartsAPI.getInfrastructureSummaryCharts('1h', undefined, { nodeId: 'node a/b' });// space -> '+', '/' -> '%2F'expect(apiFetchJSONMock).toHaveBeenCalledWith(@@ -149,7 +149,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {apiFetchJSONMock.mockResolvedValueOnce({} as never);const controller = new AbortController();- await ChartsAPI.getInfrastructureCharts('4h', controller.signal, { nodeId: 'pve1' });+ await ChartsAPI.getInfrastructureSummaryCharts('4h', controller.signal, { nodeId: 'pve1' });expect(apiFetchJSONMock).toHaveBeenCalledWith('/api/charts/infrastructure?range=4h&node=pve1', {signal: controller.signal,@@ -173,7 +173,7 @@ describe('ChartsAPI.getInfrastructureCharts — branch coverage', () => {};apiFetchJSONMock.mockResolvedValueOnce(payload as never);- const result = await ChartsAPI.getInfrastructureCharts('1h');+ const result = await ChartsAPI.getInfrastructureSummaryCharts('1h');expect(result).toBe(payload);});diff --git a/frontend-modern/src/api/charts.ts b/frontend-modern/src/api/charts.tsindex 931d9712b7..86425a4062 100644--- a/frontend-modern/src/api/charts.ts+++ b/frontend-modern/src/api/charts.ts@@ -439,17 +439,6 @@ export class ChartsAPI {return apiFetchJSON(url, { signal });}- /**- * @deprecated Use getInfrastructureSummaryCharts.- */- static async getInfrastructureCharts(- range: TimeRange = '1h',- signal?: AbortSignal,- options?: { nodeId?: string | null },- ): Promise<InfrastructureChartsResponse> {- return this.getInfrastructureSummaryCharts(range, signal, options);- }-/*** Fetch persistent metrics history for a specific resource* This uses the SQLite-backed store with longer retention (up to 90 days)diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex f330a47371..d0f28a031d 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -1348,10 +1348,6 @@ describe('shared primitive guardrails', () => {);expect(contextualFocusSource).toContain('export const findInlineDetailElement');expect(contextualFocusSource).toContain('export const revealInlineDetailInViewport');- expect(contextualFocusSource).toContain('export function useSummaryContextualFocusState');- expect(contextualFocusSource).toContain('chartHoveredSeriesId');- expect(contextualFocusSource).toContain('hoveredGroupScope');- expect(contextualFocusSource).toContain('filterSeriesForActiveScope');expect(contextualFocusSource).toContain('markRouteStateDeliberateScroll');expect(contextualFocusSource).toContain('data-inline-detail-for');expect(summaryCardInteractionSource).toContain('chartHoveredSeriesId');diff --git a/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.branchcov0724pm.test.ts b/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.branchcov0724pm.test.tsindex 6be35c0ec1..33283ace20 100644--- a/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.branchcov0724pm.test.ts+++ b/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.branchcov0724pm.test.ts@@ -1,7 +1,6 @@import { describe, expect, it } from 'vitest';import {- filterSummarySeriesByGroupScope,isSummarySeriesInGroupScope,normalizeSummarySeriesGroupScope,resolveSummaryGroupMemberInteractionState,@@ -13,7 +12,7 @@ import {// summaryCardInteraction.ts. The existing spec (summaryCardInteraction.test.ts)// exercises the precedence/happy paths; this file targets the null/empty/// malformed-input arms that never fire there. A scoped v8 coverage run against-// the existing spec alone leaves exactly 8 of 56 branch arms cold (0 functions):+// the existing spec alone leaves these branch arms cold:// b6 normalizeSummarySeriesGroupScope: `scope.seriesIds ?? []` nullish-fallback// b8 normalizeSummarySeriesGroupScope: valid id but `seriesIds.length === 0` -> null// b10 normalizeSummarySeriesGroupScope: `typeof scope.label !== 'string'` else arm@@ -21,7 +20,6 @@ import {// b14 isSummarySeriesInGroupScope: valid scope but empty seriesId -> false// b19 resolveSummaryGroupMemberInteractionState: empty seriesId -> 'default'// b37 resolveSummaryScopeState: hoveredGroupScope truthy -> group/preview return-// b43 filterSummarySeriesByGroupScope: null/invalid scope -> `[...series]`// Every asserted value below is hand-computed against the source in// src/components/shared/summaryCardInteraction.ts — no snapshots, no// constant-equals-itself tautologies. Deliberately-malformed inputs (missing@@ -203,52 +201,4 @@ describe('summaryCardInteraction.branchcov0724pm', () => {});});});-- // -------------------------------------------------------------------------- // filterSummarySeriesByGroupScope — the no-scope -> shallow-copy arm. The- // existing spec only calls this with a valid scope (the .filter path).- // -------------------------------------------------------------------------- describe('filterSummarySeriesByGroupScope', () => {- it('returns a copy of every series when the scope is null/undefined (b43)', () => {- const series = [{ id: 'alpha' }, { id: 'beta' }, { id: 'gamma' }];- // null scope -> normalizedScope null -> `return [...series]` (b43).- const fromNull = filterSummarySeriesByGroupScope(series, null);- expect(fromNull.map((s) => s.id)).toEqual(['alpha', 'beta', 'gamma']);- // Must be a NEW array reference (shallow copy), not the input identity.- expect(fromNull).not.toBe(series);- expect(fromNull).toEqual(series);-- const fromUndefined = filterSummarySeriesByGroupScope(series, undefined);- expect(fromUndefined.map((s) => s.id)).toEqual(['alpha', 'beta', 'gamma']);- expect(fromUndefined).not.toBe(series);- });-- it('returns a copy of every series when the scope normalizes to null because its id is blank (b43 via invalid id)', () => {- const series = [{ id: 'alpha' }];- // id '' -> normalizeSummarySeriesGroupScope returns null -> b43.- const result = filterSummarySeriesByGroupScope(series, {- id: '',- seriesIds: ['alpha'],- });- expect(result.map((s) => s.id)).toEqual(['alpha']);- expect(result).not.toBe(series);- });-- it('returns a copy of every series when the scope normalizes to null because its seriesIds are empty (b43 via empty list)', () => {- const series = [{ id: 'alpha' }, { id: 'beta' }];- // valid id but empty seriesIds -> normalize returns null -> b43.- const result = filterSummarySeriesByGroupScope(series, {- id: 'cluster-a',- seriesIds: [],- });- expect(result.map((s) => s.id)).toEqual(['alpha', 'beta']);- expect(result).not.toBe(series);- });-- it('still filters down to in-scope series for a valid scope so the b43 copy path is proven not to over-include', () => {- const series = [{ id: 'alpha' }, { id: 'beta' }, { id: 'gamma' }];- const result = filterSummarySeriesByGroupScope(series, validScope);- expect(result.map((s) => s.id)).toEqual(['alpha', 'beta']);- });- });});diff --git a/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.test.ts b/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.test.tsindex e53781ed81..a1fe5684e5 100644--- a/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.test.ts+++ b/frontend-modern/src/components/shared/__tests__/summaryCardInteraction.test.ts@@ -1,14 +1,8 @@-import { cleanup, renderHook } from '@solidjs/testing-library';-import { createSignal } from 'solid-js';+import { cleanup } from '@solidjs/testing-library';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { preserveScrollableAncestorVerticalOffset } from '@/components/shared/contextualFocus';import {- preserveScrollableAncestorVerticalOffset,- useSummaryContextualFocusState,-} from '@/components/shared/contextualFocus';-import {- filterSummarySeriesByGroupScope,resolveSummaryActiveSeriesId,- resolveSummaryCardInteractionState,resolveSummaryGroupMemberInteractionState,resolveSummaryScopeState,type SummarySeriesGroupScope,@@ -52,35 +46,6 @@ describe('summaryCardInteraction', () => {).toBe('alpha');});- it('returns default without an active hover or focus context', () => {- expect(- resolveSummaryCardInteractionState({- series: [{ id: 'alpha' }],- }),- ).toBe('default');- });-- it('marks cards active when the hovered series is present', () => {- expect(- resolveSummaryCardInteractionState({- series: [{ id: 'alpha' }, { id: 'beta' }],- chartHoveredSeriesId: 'beta',- hoveredSeriesId: 'beta',- focusedSeriesId: 'alpha',- }),- ).toBe('active');- });-- it('marks cards inactive when another summary series owns the current interaction', () => {- expect(- resolveSummaryCardInteractionState({- series: [{ id: 'pool:alpha' }, { id: 'pool:beta' }],- hoveredSeriesId: 'SERIAL-123',- focusedSeriesId: 'pool:alpha',- }),- ).toBe('inactive');- });-it('keeps group scope separate from active entity focus', () => {const groupScope: SummarySeriesGroupScope = {id: 'cluster-a',@@ -95,27 +60,6 @@ describe('summaryCardInteraction', () => {groupScope,}),).toBe('alpha');-- expect(- resolveSummaryCardInteractionState({- series: [{ id: 'alpha' }, { id: 'beta' }],- hoveredGroupScope: groupScope,- }),- ).toBe('active');-- expect(- resolveSummaryCardInteractionState({- series: [{ id: 'gamma' }],- hoveredGroupScope: groupScope,- }),- ).toBe('inactive');-- expect(- filterSummarySeriesByGroupScope(- [{ id: 'alpha' }, { id: 'beta' }, { id: 'gamma' }],- groupScope,- ).map((series) => series.id),- ).toEqual(['alpha', 'beta']);});it('resolves preview and pinned scope state through one shared precedence helper', () => {@@ -201,74 +145,6 @@ describe('summaryCardInteraction', () => {).toBe('default');});- it('filters contextual focus down to interactive series ids through one shared hook', () => {- const [hoveredSeriesId] = createSignal<string | null>('gamma');- const [focusedSeriesId] = createSignal<string | null>('alpha');- const [chartHoveredSeriesId, setChartHoveredSeriesId] = createSignal<string | null>(null);- const [hoveredGroupScope, setHoveredGroupScope] = createSignal<SummarySeriesGroupScope | null>({- id: 'cluster-a',- label: 'Cluster A (2 workloads)',- seriesIds: ['alpha', 'beta'],- });-- const { result } = renderHook(() =>- useSummaryContextualFocusState({- chartHoveredSeriesId,- interactiveSeries: () => [- { id: 'alpha', name: 'Alpha', interactive: true },- { id: 'beta', name: 'Beta', interactive: false },- ],- hoveredGroupScope,- hoveredSeriesId,- focusedSeriesId,- isSeriesInteractive: (series) => series.interactive,- }),- );-- expect(result.hasInteractiveSeriesId('alpha')).toBe(true);- expect(result.hasInteractiveSeriesId('beta')).toBe(false);- expect(result.activeGroupScope()).toEqual({- id: 'cluster-a',- label: 'Cluster A (2 workloads)',- seriesIds: ['alpha'],- });- expect(result.effectiveHoveredSeriesId()).toBeNull();- expect(result.effectiveFocusedSeriesId()).toBe('alpha');- expect(result.activeSeriesId()).toBe('alpha');- expect(- result.getFocusedSeriesName([- { id: 'alpha', name: 'Alpha', interactive: true },- { id: 'beta', name: 'Beta', interactive: false },- ]),- ).toBe('Alpha');- expect(result.interactionStateFor([{ id: 'alpha' }])).toBe('active');- expect(result.interactionStateFor([{ id: 'beta' }])).toBe('inactive');-- setChartHoveredSeriesId('alpha');- expect(result.effectiveChartHoveredSeriesId()).toBe('alpha');- expect(result.activeSeriesId()).toBe('alpha');- expect(result.getActiveSeriesName([{ id: 'alpha', name: 'Alpha', interactive: true }])).toBe(- 'Alpha',- );-- setChartHoveredSeriesId(null);- setHoveredGroupScope({- id: 'cluster-a',- label: 'Cluster A (2 workloads)',- seriesIds: ['alpha'],- });- expect(result.activeGroupScope()?.id).toBe('cluster-a');- expect(result.activeSeriesId()).toBe('alpha');- expect(- result.filterSeriesForActiveScope([- { id: 'alpha', name: 'Alpha', interactive: true },- { id: 'gamma', name: 'Gamma', interactive: true },- ]),- ).toEqual([{ id: 'alpha', name: 'Alpha', interactive: true }]);- expect(result.isSeriesIdVisibleInActiveScope('alpha')).toBe(true);- expect(result.isSeriesIdVisibleInActiveScope('gamma')).toBe(false);- });-it('preserves the nearest scrollable ancestor when contextual focus changes locally', () => {const scroller = document.createElement('div');scroller.style.overflowY = 'auto';diff --git a/frontend-modern/src/components/shared/contextualFocus.ts b/frontend-modern/src/components/shared/contextualFocus.tsindex fcb5fb9eb5..ad063d931b 100644--- a/frontend-modern/src/components/shared/contextualFocus.ts+++ b/frontend-modern/src/components/shared/contextualFocus.ts@@ -1,18 +1,4 @@-import { createMemo, type Accessor } from 'solid-js';import { markRouteStateDeliberateScroll } from '@/utils/routeStateNavigation';-import {- filterSummarySeriesByGroupScope,- resolveSummaryActiveSeriesId,- resolveSummaryCardInteractionState,- resolveSummaryGroupScope,- type SummarySeriesGroupScope,- type SummaryCardInteractionState,-} from './summaryCardInteraction';--type ContextualFocusSeries = {- id?: string | null;- name?: string | null;-};const INLINE_DETAIL_TARGET_TOP_RATIO = 0.28;const INLINE_DETAIL_MIN_TOP_MARGIN = 72;@@ -24,19 +10,6 @@ export interface SummaryChartHoverSync {timestamp: number;}-export interface UseSummaryContextualFocusStateOptions<T extends ContextualFocusSeries> {- chartHoveredSeriesId?: Accessor<string | null | undefined>;- focusedSeriesId?: Accessor<string | null | undefined>;- focusedGroupScope?: Accessor<SummarySeriesGroupScope | null | undefined>;- getSeriesName?: (series: T) => string | null | undefined;- hoveredSeriesId?: Accessor<string | null | undefined>;- hoveredGroupScope?: Accessor<SummarySeriesGroupScope | null | undefined>;- interactiveSeries: Accessor<readonly T[]>;- isSeriesInteractive?: (series: T) => boolean;-}--const normalizeSeriesId = (value: string | null | undefined): string => value?.trim() || '';-const resolveScrollableAncestor = (element: Element | null | undefined): HTMLElement | null => {let scroller = element instanceof HTMLElement ? element : null;while (scroller) {@@ -217,157 +190,3 @@ export const preserveScrollableAncestorVerticalOffset = (}});};--export function useSummaryContextualFocusState<T extends ContextualFocusSeries>(- options: UseSummaryContextualFocusStateOptions<T>,-) {- const chartHoveredSeriesId = options.chartHoveredSeriesId ?? (() => null);- const hoveredSeriesId = options.hoveredSeriesId ?? (() => null);- const focusedSeriesId = options.focusedSeriesId ?? (() => null);- const hoveredGroupScope = options.hoveredGroupScope ?? (() => null);- const focusedGroupScope = options.focusedGroupScope ?? (() => null);- const getSeriesName =- options.getSeriesName ??- ((series: T) => (typeof series.name === 'string' ? series.name : null));- const isSeriesInteractive =- options.isSeriesInteractive ?? ((series: T) => normalizeSeriesId(series.id) !== '');-- const interactiveSeriesIds = createMemo(() => {- const ids = new Set<string>();- for (const series of options.interactiveSeries()) {- if (!isSeriesInteractive(series)) {- continue;- }- const id = normalizeSeriesId(series.id);- if (id) {- ids.add(id);- }- }- return ids;- });-- const hasInteractiveSeriesId = (value: string | null | undefined): value is string => {- const normalized = normalizeSeriesId(value);- return normalized !== '' && interactiveSeriesIds().has(normalized);- };-- const effectiveHoveredSeriesId = createMemo<string | null>(() => {- return hasInteractiveSeriesId(hoveredSeriesId()) ? normalizeSeriesId(hoveredSeriesId()) : null;- });-- const effectiveChartHoveredSeriesId = createMemo<string | null>(() => {- return hasInteractiveSeriesId(chartHoveredSeriesId())- ? normalizeSeriesId(chartHoveredSeriesId())- : null;- });-- const effectiveFocusedSeriesId = createMemo<string | null>(() => {- return hasInteractiveSeriesId(focusedSeriesId()) ? normalizeSeriesId(focusedSeriesId()) : null;- });-- const normalizeGroupScope = (- scope: SummarySeriesGroupScope | null | undefined,- ): SummarySeriesGroupScope | null => {- const resolvedScope = resolveSummaryGroupScope({- hoveredGroupScope: scope,- });- if (!resolvedScope) {- return null;- }- const scopedSeriesIds = resolvedScope.seriesIds.filter((id) => interactiveSeriesIds().has(id));- if (scopedSeriesIds.length === 0) {- return null;- }- return {- ...resolvedScope,- seriesIds: scopedSeriesIds,- };- };-- const effectiveHoveredGroupScope = createMemo<SummarySeriesGroupScope | null>(() =>- normalizeGroupScope(hoveredGroupScope()),- );-- const effectiveFocusedGroupScope = createMemo<SummarySeriesGroupScope | null>(() =>- normalizeGroupScope(focusedGroupScope()),- );-- const activeGroupScope = createMemo<SummarySeriesGroupScope | null>(() =>- resolveSummaryGroupScope({- hoveredGroupScope: effectiveHoveredGroupScope(),- focusedGroupScope: effectiveFocusedGroupScope(),- }),- );-- const activeSeriesId = createMemo<string | null>(() => {- return resolveSummaryActiveSeriesId({- chartHoveredSeriesId: effectiveChartHoveredSeriesId(),- hoveredSeriesId: effectiveHoveredSeriesId(),- focusedSeriesId: effectiveFocusedSeriesId(),- groupScope: activeGroupScope(),- });- });-- const getFocusedSeriesName = (series: readonly T[]): string | null => {- const focusedId = effectiveFocusedSeriesId();- if (!focusedId) {- return null;- }- const match = series.find((entry) => normalizeSeriesId(entry.id) === focusedId);- return match ? getSeriesName(match) || null : null;- };-- const getActiveSeriesName = (series: readonly T[]): string | null => {- const currentActiveId = activeSeriesId();- if (currentActiveId) {- const match = series.find((entry) => normalizeSeriesId(entry.id) === currentActiveId);- return match ? getSeriesName(match) || null : null;- }- return activeGroupScope()?.label || null;- };-- const interactionStateFor = (- series: ReadonlyArray<{ id?: string | null }>,- ): SummaryCardInteractionState =>- resolveSummaryCardInteractionState({- series,- chartHoveredSeriesId: effectiveChartHoveredSeriesId(),- hoveredSeriesId: effectiveHoveredSeriesId(),- focusedSeriesId: effectiveFocusedSeriesId(),- groupScope: activeGroupScope(),- });-- const filterSeriesForActiveScope = <S extends { id?: string | null }>(- series: readonly S[],- ): S[] => {- return filterSummarySeriesByGroupScope(series, activeGroupScope());- };-- const isSeriesIdVisibleInActiveScope = (value: string | null | undefined): value is string => {- const normalized = normalizeSeriesId(value);- if (!normalized || !interactiveSeriesIds().has(normalized)) {- return false;- }- const groupScope = activeGroupScope();- if (!groupScope) {- return true;- }- return groupScope.seriesIds.includes(normalized);- };-- return {- activeGroupScope,- activeSeriesId,- effectiveChartHoveredSeriesId,- effectiveFocusedSeriesId,- effectiveFocusedGroupScope,- effectiveHoveredSeriesId,- effectiveHoveredGroupScope,- filterSeriesForActiveScope,- getActiveSeriesName,- getFocusedSeriesName,- hasInteractiveSeriesId,- isSeriesIdVisibleInActiveScope,- interactionStateFor,- } as const;-}diff --git a/frontend-modern/src/components/shared/summaryCardInteraction.ts b/frontend-modern/src/components/shared/summaryCardInteraction.tsindex 7a5e596d3e..bce85138b4 100644--- a/frontend-modern/src/components/shared/summaryCardInteraction.ts+++ b/frontend-modern/src/components/shared/summaryCardInteraction.ts@@ -1,12 +1,7 @@-export type SummaryCardInteractionState = 'default' | 'active' | 'inactive';export type SummaryGroupMemberInteractionState = 'default' | 'preview' | 'pinned';export type SummaryScopeKind = 'page' | 'group' | 'entity';export type SummaryScopeSource = 'page' | 'preview' | 'pinned';-type SummarySeriesIdentity = {- id?: string | null;-};-export interface SummarySeriesGroupScope {id: string;label?: string | null;@@ -182,56 +177,3 @@ export function resolveSummaryActiveSeriesId(options: {}): string | null {return resolveSummaryScopeState(options).seriesId;}--export function filterSummarySeriesByGroupScope<T extends SummarySeriesIdentity>(- series: readonly T[],- groupScope?: SummarySeriesGroupScope | null,-): T[] {- const normalizedScope = normalizeSummarySeriesGroupScope(groupScope);- if (!normalizedScope) {- return [...series];- }- return series.filter((entry) => isSummarySeriesInGroupScope(normalizedScope, entry.id));-}--export function resolveSummaryCardInteractionState(options: {- series: readonly SummarySeriesIdentity[];- chartHoveredSeriesId?: string | null;- hoveredSeriesId?: string | null;- focusedSeriesId?: string | null;- hoveredGroupScope?: SummarySeriesGroupScope | null;- focusedGroupScope?: SummarySeriesGroupScope | null;- groupScope?: SummarySeriesGroupScope | null;-}): SummaryCardInteractionState {- const groupScope =- normalizeSummarySeriesGroupScope(options.groupScope) ??- resolveSummaryGroupScope({- hoveredGroupScope: options.hoveredGroupScope,- focusedGroupScope: options.focusedGroupScope,- });- const activeSeriesId = resolveSummaryActiveSeriesId({- chartHoveredSeriesId: options.chartHoveredSeriesId,- hoveredSeriesId: options.hoveredSeriesId,- focusedSeriesId: options.focusedSeriesId,- groupScope,- });- if (!activeSeriesId) {- if (groupScope) {- for (const series of options.series) {- if (isSummarySeriesInGroupScope(groupScope, series.id)) {- return 'active';- }- }- return 'inactive';- }- return 'default';- }-- for (const series of options.series) {- if (normalizeSeriesId(series.id) === activeSeriesId) {- return 'active';- }- }-- return 'inactive';-}diff --git a/frontend-modern/src/utils/__tests__/agentResources.test.ts b/frontend-modern/src/utils/__tests__/agentResources.test.tsindex ad5e124c76..85ba245c0d 100644--- a/frontend-modern/src/utils/__tests__/agentResources.test.ts+++ b/frontend-modern/src/utils/__tests__/agentResources.test.ts@@ -6,7 +6,6 @@ import {getActionableKubernetesClusterIdFromResource,getExplicitAgentIdFromResource,getExplicitResourceClusterName,- getMetricsChartKeyCandidatesFromResource,getPreferredResourceClusterName,hasDockerWorkloadsScope,hasAgentFacet,@@ -250,38 +249,6 @@ describe('agentResources', () => {).toBe(false);});- it('builds canonical metrics chart key candidates for host-family resources', () => {- expect(- getMetricsChartKeyCandidatesFromResource(- makeResource({- id: 'hash-resource',- type: 'docker-host',- name: 'tower',- platformId: 'tower',- metricsTarget: { resourceType: 'docker-host', resourceId: 'docker-host-1' },- platformData: {- docker: { hostSourceId: 'docker-host-1' },- agent: { agentId: 'agent-host-1' },- },- }),- ),- ).toEqual(['docker-host-1', 'agent-host-1', 'hash-resource', 'tower']);-- expect(- getMetricsChartKeyCandidatesFromResource(- makeResource({- id: 'hash-resource-2',- type: 'agent',- name: 'pve1',- platformId: 'pve1',- platformData: {- linkedAgentId: 'agent-linked',- },- }),- ),- ).toEqual(['agent-linked', 'hash-resource-2', 'pve1']);- });-it('detects agent facets without relying on node-only typing', () => {expect(hasAgentFacet(diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 99c4583106..f99f2c6b14 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -2213,7 +2213,6 @@ describe('frontend resource type boundaries', () => {expect(aiChatSource).not.toContain('const normalizeMentionKeyPart =');expect(chatIdentifiersSource).toContain('normalizeChatMentionKeyPart');expect(chatIdentifiersSource).toContain('normalizeChatToolName');- expect(resourceIdentitySource).toContain('getNormalizedIdentityLookupVariants');expect(stringUtilsSource).toContain('export const asTrimmedString');expect(resourceIdentitySource).not.toContain('const asTrimmedString = (value: unknown): string | undefined => {',diff --git a/frontend-modern/src/utils/__tests__/resourceIdentity.test.ts b/frontend-modern/src/utils/__tests__/resourceIdentity.test.tsindex a6430ac888..b1f20aeb1b 100644--- a/frontend-modern/src/utils/__tests__/resourceIdentity.test.ts+++ b/frontend-modern/src/utils/__tests__/resourceIdentity.test.ts@@ -2,12 +2,10 @@ import { describe, expect, it } from 'vitest';import type { Resource } from '@/types/resource';import {- getAgentLikeIdentityAliases,getAgentLikeMetadataIds,getPreferredConfiguredNodeLabel,getPreferredNamedEntityLabel,getPreferredNormalizedPlatformId,- getNormalizedIdentityLookupVariants,getInfrastructureDiscoveryHostname,getInfrastructureMetadataId,getPreferredResourceClusterName,@@ -293,41 +291,6 @@ describe('resourceIdentity', () => {).toBe(true);});- it('builds agent-like aliases for legacy summary/detail surfaces', () => {- const agent = {- id: 'agent-explicit',- hostname: 'tower.local',- displayName: 'Tower',- status: 'online',- lastSeen: Date.now(),- canonicalIdentity: {- hostname: 'tower.canonical',- },- platformData: {- linkedAgentId: 'agent-linked',- agent: {- agentId: 'agent-platform',- hostname: 'tower.internal',- },- },- discoveryTarget: {- resourceType: 'agent',- resourceId: 'agent-discovery',- agentId: 'agent-discovery',- },- } as unknown as Agent;-- expect(getAgentLikeIdentityAliases(agent)).toEqual([- 'agent-discovery',- 'agent-platform',- 'agent-linked',- 'agent-explicit',- 'tower.canonical',- 'tower.local',- 'tower.internal',- ]);- });-it('builds agent-like metadata ids without hostnames', () => {const agent = {id: 'agent-explicit',@@ -356,14 +319,6 @@ describe('resourceIdentity', () => {]);});- it('builds normalized identity lookup variants for host-like values', () => {- expect(getNormalizedIdentityLookupVariants('tower.local')).toEqual(['tower.local', 'tower']);- expect(getNormalizedIdentityLookupVariants('Tower.Local')).toEqual(['tower.local', 'tower']);- expect(getNormalizedIdentityLookupVariants('tower')).toEqual(['tower']);- expect(getNormalizedIdentityLookupVariants('')).toEqual([]);- expect(getNormalizedIdentityLookupVariants(undefined)).toEqual([]);- });-it('resolves infrastructure metadata ids and discovery hostnames', () => {const node = {id: 'node-1',diff --git a/frontend-modern/src/utils/__tests__/status.branchcov2.test.ts b/frontend-modern/src/utils/__tests__/status.branchcov2.test.tsindex 309065bec2..54458a3235 100644--- a/frontend-modern/src/utils/__tests__/status.branchcov2.test.ts+++ b/frontend-modern/src/utils/__tests__/status.branchcov2.test.ts@@ -23,7 +23,6 @@ import {getDockerContainerStatusIndicator,getDockerServiceStatusIndicator,getAgentStatusIndicator,- getPBSStatusIndicator,getReplicationJobStatusIndicator,} from '@/utils/status';@@ -324,34 +323,6 @@ describe('getAgentStatusIndicator (branch coverage)', () => {});});-describe('getPBSStatusIndicator (branch coverage)', () => {- it('flags warning from a degraded connectionHealth with a non-canonical status', () => {- // DEGRADED arm driven by connection alone (status 'paused' is not healthy/- // online and not in the degraded set, so without connection it would fall- // through to defaultIndicator). Label prefers connection.- expect(getPBSStatusIndicator({ status: 'paused', connectionHealth: 'maintenance' })).toEqual({- variant: 'warning',- label: 'Maintenance',- });- });-- it('prefers connection over status when both are degraded for the warning label', () => {- // `formatStatusLabel(connection || status, 'Degraded')` — connection wins.- expect(getPBSStatusIndicator({ status: 'degraded', connectionHealth: 'recovering' })).toEqual({- variant: 'warning',- label: 'Recovering',- });- });-- it('returns the muted default indicator for a status that is neither offline, healthy/online, nor degraded', () => {- // Final `return defaultIndicator` arm.- expect(getPBSStatusIndicator({ status: 'paused' })).toEqual({- variant: 'muted',- label: 'Unknown',- });- });-});-describe('getReplicationJobStatusIndicator (branch coverage)', () => {it('coalesces status from the state field when status is absent', () => {// `job.status || job.state` arm — status undefined falls through to state.diff --git a/frontend-modern/src/utils/__tests__/status.test.ts b/frontend-modern/src/utils/__tests__/status.test.tsindex 9db1c3470b..5baeba4339 100644--- a/frontend-modern/src/utils/__tests__/status.test.ts+++ b/frontend-modern/src/utils/__tests__/status.test.ts@@ -16,7 +16,6 @@ import {getDockerHostStatusIndicator,getDockerContainerStatusIndicator,getDockerServiceStatusIndicator,- getPBSStatusIndicator,getReplicationJobStatusIndicator,isConnectedHealthStatus,getSimpleStatusIndicator,@@ -407,55 +406,6 @@ describe('Status sets', () => {});});-describe('getPBSStatusIndicator', () => {- it('returns muted for null/undefined', () => {- expect(getPBSStatusIndicator(null)).toEqual({ variant: 'muted', label: 'Unknown' });- expect(getPBSStatusIndicator(undefined)).toEqual({ variant: 'muted', label: 'Unknown' });- });-- it('returns danger for offline connection', () => {- const result = getPBSStatusIndicator({ connectionHealth: 'offline', status: 'online' });- expect(result.variant).toBe('danger');- });-- it('returns danger for offline status', () => {- const result = getPBSStatusIndicator({ status: 'offline' });- expect(result.variant).toBe('danger');- });-- it('returns success for healthy status', () => {- const result = getPBSStatusIndicator({ status: 'healthy' });- expect(result.variant).toBe('success');- expect(result.label).toBe('Healthy');- });-- it('returns success for online status', () => {- const result = getPBSStatusIndicator({ status: 'online' });- expect(result.variant).toBe('success');- expect(result.label).toBe('Online');- });-- it('returns success for online status even with degraded connection', () => {- const result = getPBSStatusIndicator({ connectionHealth: 'degraded', status: 'online' });- expect(result.variant).toBe('success');- });-- it('returns warning for degraded status', () => {- const result = getPBSStatusIndicator({ status: 'degraded' });- expect(result.variant).toBe('warning');- });-- it('returns warning for syncing status', () => {- const result = getPBSStatusIndicator({ status: 'syncing' });- expect(result.variant).toBe('warning');- });-- it('returns warning for unknown status (in degraded set)', () => {- const result = getPBSStatusIndicator({ status: 'unknown' });- expect(result.variant).toBe('warning');- });-});-describe('getReplicationJobStatusIndicator', () => {it('returns muted for null/undefined', () => {expect(getReplicationJobStatusIndicator(null)).toEqual({ variant: 'muted', label: 'Unknown' });diff --git a/frontend-modern/src/utils/agentResources.ts b/frontend-modern/src/utils/agentResources.tsindex 61cbfcc310..d0996dd5f6 100644--- a/frontend-modern/src/utils/agentResources.ts+++ b/frontend-modern/src/utils/agentResources.ts@@ -278,22 +278,6 @@ export const getPreferredResourceClusterName = (resource: ResourceClusterNameLike,): string | undefined => getExplicitResourceClusterName(resource) || asTrimmedString(resource.name);-export const getMetricsChartKeyCandidatesFromResource = (resource: Resource): string[] => {- const candidates = [- asTrimmedString(resource.metricsTarget?.resourceId),- getActionableDockerRuntimeIdFromResource(resource),- getActionableKubernetesClusterIdFromResource(resource),- getActionableAgentIdFromResource(resource),- asTrimmedString(resource.discoveryTarget?.resourceId),- asTrimmedString(resource.discoveryTarget?.agentId),- asTrimmedString(resource.id),- asTrimmedString(resource.name),- asTrimmedString(resource.platformId),- ].filter((value): value is string => Boolean(value));-- return Array.from(new Set(candidates));-};-export const hasAgentFacet = (resource: Resource): boolean => {const discoveryTarget = resource.discoveryTarget;return Boolean(diff --git a/frontend-modern/src/utils/resourceIdentity.ts b/frontend-modern/src/utils/resourceIdentity.tsindex 49ddad0f20..bcc8693aa5 100644--- a/frontend-modern/src/utils/resourceIdentity.ts+++ b/frontend-modern/src/utils/resourceIdentity.ts@@ -60,18 +60,6 @@ const dedupeTrimmedValues = (values: Array<string | undefined>): string[] => {return deduped;};-export const getNormalizedIdentityLookupVariants = (value?: string | null): string[] => {- if (!value) return [];- const normalized = value.trim().toLowerCase();- if (!normalized) return [];- const variants = new Set<string>([normalized]);- const dotIndex = normalized.indexOf('.');- if (dotIndex > 0) {- variants.add(normalized.slice(0, dotIndex));- }- return Array.from(variants);-};-const formatIdentityTarget = (resourceType?: string, resourceId?: string): string | null => {const type = asTrimmedString(resourceType);const id = asTrimmedString(resourceId);@@ -170,26 +158,6 @@ export const getResourceIdentityAliases = (resource: Resource): string[] => {return dedupeTrimmedValues(raw);};-export const getAgentLikeIdentityAliases = (agent: Agent): string[] => {- const agentRecord = agent as unknown as Record<string, unknown>;- const discoveryTarget = agentRecord.discoveryTarget as Record<string, unknown> | undefined;- const platformData = agentRecord.platformData as Record<string, unknown> | undefined;- const platformAgent = platformData?.agent as Record<string, unknown> | undefined;- const canonical = agentRecord.canonicalIdentity as Record<string, unknown> | undefined;-- return dedupeTrimmedValues([- asTrimmedString(discoveryTarget?.resourceId),- asTrimmedString(discoveryTarget?.agentId),- asTrimmedString(platformAgent?.agentId),- asTrimmedString(platformData?.agentId),- asTrimmedString(platformData?.linkedAgentId),- asTrimmedString(agent.id),- asTrimmedString(canonical?.hostname),- asTrimmedString(agent.hostname),- asTrimmedString(platformAgent?.hostname),- ]);-};-export const getAgentLikeMetadataIds = (agent: Agent): string[] => {const agentRecord = agent as unknown as Record<string, unknown>;const discoveryTarget = agentRecord.discoveryTarget as Record<string, unknown> | undefined;diff --git a/frontend-modern/src/utils/status.ts b/frontend-modern/src/utils/status.tsindex 0c74302094..c166c7d6f2 100644--- a/frontend-modern/src/utils/status.ts+++ b/frontend-modern/src/utils/status.ts@@ -2,7 +2,6 @@ import type {Node,VM,Container,- PBSInstance,Agent,DockerRuntime,DockerContainer,@@ -172,29 +171,6 @@ export function getNodeStatusIndicator(node: Partial<Node> | undefined | null):return defaultIndicator;}-export function getPBSStatusIndicator(- instance: Partial<PBSInstance> | undefined | null,-): StatusIndicator {- if (!instance) return defaultIndicator;-- const connection = normalize(instance.connectionHealth);- const status = normalize(instance.status);-- if (OFFLINE_HEALTH_STATUSES.has(connection) || OFFLINE_HEALTH_STATUSES.has(status)) {- return { variant: 'danger', label: formatStatusLabel(connection || status, 'Offline') };- }-- if (status === 'healthy' || status === ONLINE_STATUS) {- return { variant: 'success', label: formatStatusLabel(status, 'Online') };- }-- if (DEGRADED_HEALTH_STATUSES.has(connection) || DEGRADED_HEALTH_STATUSES.has(status)) {- return { variant: 'warning', label: formatStatusLabel(connection || status, 'Degraded') };- }-- return defaultIndicator;-}-export function getGuestPowerIndicator(guest: Partial<VM | Container> | undefined | null,parentNodeOnline = true,