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
frontend(platform-first): drop alerts/findings/drawer cross-jump chips and dead resourceLinks helpers
rcourtmanedc8bd5df0c1
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex b8b49974f8..3a21c57041 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -142,6 +142,17 @@ operator-facing alert routing behavior for live runtime alerts.## Current State+The alert resource-incident panel+(`frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx`)+dropped its "Open in Infrastructure / Workloads / Storage / Recovery"+cross-jump chip strip on 2026-05-16 when the surrounding platform-first+migration retired the underlying top-level routes. The panel now keeps+investigation flow in-place through `IncidentAssistantHandoffButton` and the+shared incident-timeline cards; it must not reintroduce a chip strip that+links to the retired top-level routes, and the supporting+`buildResolvedResourceSurfaceLinks` helper was deleted from+`frontend-modern/src/routing/resourceLinks.ts` as part of the same pass.+Alert browser surfaces no longer manage their own runtime-capabilities fetch or`hasAIAlertsFeature` prop chain. `frontend-modern/src/pages/Alerts.tsx` and theshared alert overview surfaces (`OverviewTab.tsx`, `HistoryTab.tsx`,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex ee9f0b7f48..1322b762d2 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1354,6 +1354,16 @@ AI runtime.## Current State+Cross-jump chip strips on alert and Patrol surfaces were retired on+2026-05-16 alongside the platform-first migration. The+`buildResolvedResourceSurfaceLinks` and `buildResourceSurfaceLinksForResource`+helpers (and the per-surface builders for Infrastructure / Workloads /+Storage / Recovery hrefs) were deleted from+`frontend-modern/src/routing/resourceLinks.ts`; the alert resource-incidents+panel and Patrol findings panel that consumed them now keep investigation+in-place through their existing handoff buttons and inline actions. Future+cross-surface drilldown chips must not reanimate the legacy helpers.+Command palette and keyboard shortcuts moved to platform-first on 2026-05-16(`frontend-modern/src/components/shared/commandPaletteModel.ts`,`frontend-modern/src/components/shared/useCommandPaletteState.ts`,diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 698446d6c1..20bd79018c 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -425,6 +425,19 @@ Patrol-specific presentation helpers.## Current State+The Patrol findings panel+(`frontend-modern/src/components/AI/FindingsPanel.tsx`) dropped its "Open+related infrastructure / workloads / storage / recovery" cross-jump chip+strip on 2026-05-16 alongside the platform-first migration. The+`useResources` lookup that fed those chips and the supporting+`buildResolvedResourceSurfaceLinks` helper from+`frontend-modern/src/routing/resourceLinks.ts` were retired in the same+pass; the expanded finding body now keeps investigation in-place through+`getFindingPrimaryActionPresentation` (the canonical action href) plus the+shared manual-controls helper. New finding-detail affordances must not+reanimate the legacy chip strip or build URLs against the retired top-level+routes.+The Patrol page, store, findings UI, and run-history presentation had beenoutside the governed subsystem map even though they are the top-level runtimesurface for Patrol intelligence. This contract now owns that orchestration anddiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex abcfa6696f..78c15506c5 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1075,6 +1075,17 @@ bypass the API fail-closed execution gate.## Current State+The Storage and Recovery cross-jump builders+(`buildStorageHrefForResource`, `buildRecoveryHrefForResource`) were deleted+from `frontend-modern/src/routing/resourceLinks.ts` on 2026-05-16 alongside+the platform-first migration. The chip strips that previously rendered them+inside the alert resource-incidents panel and Patrol findings panel were+retired in the same pass; storage and recovery drilldowns now stay inside+the platform-page sub-tabs rather than offering external surface jumps.+Future cross-surface storage or recovery affordances must compose against+the embedded `StorageSurface` / `RecoverySurface` consumers rather than+reintroducing top-level URL builders.+Storage and Recovery can now be embedded by a platform page in table-only modewith a forced Proxmox source/platform filter. The embedded mode suppressesstandalone page chrome, summary charts, and full filter chrome, but thediff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 828890192a..684b8283b4 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -701,6 +701,19 @@ AI-only summary payloads, or page-local heuristics.## Current State+The resource detail drawer's "Open in Workloads / Storage / Recovery"+related-links injection+(`frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts`'s+`buildRelatedLinks`) was retired on 2026-05-16 alongside the platform-first+migration: the function now returns only service-detail links (PMG+thresholds). The supporting+`buildResourceSurfaceLinksForResource` /+`buildWorkloadsHrefForResource` / `buildStorageHrefForResource` /+`buildRecoveryHrefForResource` helpers were deleted from+`frontend-modern/src/routing/resourceLinks.ts`. New drawer affordances must+compose against the embedded platform-page sub-tabs rather than rebuilding+cross-jump URLs.+Cross-resource drilldown affordances were retired on 2026-05-16 alongside theplatform-first primary nav. The default `buildResourceHref` in`frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsxindex 158bf37954..bd9165c45e 100644--- a/frontend-modern/src/components/AI/FindingsPanel.tsx+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx@@ -11,7 +11,7 @@*/import { Component, createSignal, createEffect, Show, For, createMemo } from 'solid-js';-import { A, useLocation } from '@solidjs/router';+import { useLocation } from '@solidjs/router';import { Card } from '@/components/shared/Card';import { FormSelect } from '@/components/shared/FormSelect';import { aiIntelligenceStore, type UnifiedFinding } from '@/stores/aiIntelligence';@@ -27,12 +27,10 @@ import {type PatrolAssistantApprovalBriefingInput,type PatrolAssistantProposedFixBriefingInput,} from '@/features/patrol/patrolInvestigationContextModel';-import { useResources } from '@/hooks/useResources';import { InvestigationSection, ApprovalSection } from '@/components/patrol';import { AIAPI, type ApprovalRequest, type RemediationPlan } from '@/api/ai';import { createSuppressionRuleFromFinding } from '@/api/patrol';import type { PatrolRunRecord, PatrolRuntimeState } from '@/api/patrol';-import { buildResolvedResourceSurfaceLinks } from '@/routing/resourceLinks';import { formatRelativeTime } from '@/utils/format';import { getFindingAlertIdentifier, hasTriggeringAlert } from '@/utils/findingAlertIdentity';import { segmentedButtonClass } from '@/utils/segmentedButton';@@ -124,7 +122,6 @@ function getFindingSuppressionRuleScope(finding: UnifiedFinding) {export const FindingsPanel: Component<FindingsPanelProps> = (props) => {const location = useLocation();- const { get: getResource } = useResources();const [filter, setFilter] = createSignal<'all' | 'active' | 'resolved' | 'approvals' | 'attention' | 'overdue'>(props.filterOverride ?? 'active');@@ -781,11 +778,6 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {const title = getFindingTitlePresentation(finding);const manualControls = getFindingManualControlsPresentation(finding);const severityPresentation = getFindingSeverityPresentation(finding);- const surfaceLinks = buildResolvedResourceSurfaceLinks({- resourceId: finding.resourceId,- displayName: String(finding.resourceName || '').trim() || subject.label,- resource: getResource(finding.resourceId),- });const toggleExpanded = () => {if (expandedId() === finding.id) {@@ -1093,17 +1085,14 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {{/* Expanded content */}<Show when={expandedId() === finding.id}>- {renderExpandedContent(finding, surfaceLinks)}+ {renderExpandedContent(finding)}</Show></div>);};// Render expanded content for a finding- const renderExpandedContent = (- finding: UnifiedFinding,- surfaceLinks: ReturnType<typeof buildResolvedResourceSurfaceLinks>,- ) => {+ const renderExpandedContent = (finding: UnifiedFinding) => {const primaryAction = getFindingPrimaryActionPresentation(finding);const manualControls = getFindingManualControlsPresentation(finding);@@ -1122,22 +1111,6 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {</div>)}</Show>- <Show when={surfaceLinks.length > 0}>- <div class="mb-3 flex flex-wrap gap-2">- <For each={surfaceLinks}>- {(link) => (- <A- href={link.href}- aria-label={link.ariaLabel}- onClick={(e) => e.stopPropagation()}- class="inline-flex items-center rounded-md border border-border px-2 py-1 text-xs text-muted transition-colors hover:bg-surface-hover hover:text-base-content"- >- {link.compactLabel}- </A>- )}- </For>- </div>- </Show><Show when={hasTriggeringAlert(finding)}><div class="text-xs text-amber-700 dark:text-amber-300 mb-2">Triggered by alert{finding.alertType ? ` (${finding.alertType})` : ''} • Identifier{' '}diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsxindex f5e7801f47..16b9650ce8 100644--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx@@ -196,7 +196,7 @@ describe('FindingsPanel resource links', () => {}});- it('surfaces canonical handoff links for TrueNAS workload findings', async () => {+ it('renders the finding body without legacy surface cross-jump links', async () => {render(() => <FindingsPanel />);await waitFor(() => expect(mockState.loadFindings).toHaveBeenCalled());@@ -206,15 +206,15 @@ describe('FindingsPanel resource links', () => {expect(screen.getByText('Nextcloud is unreachable for users until readiness recovers.'),).toBeInTheDocument();+ // The cross-jump chips to /infrastructure?resource=... and+ // /workloads?... were retired with the platform-first migration;+ // Patrol findings now stay in place inside the panel.expect(- screen.getByRole('link', { name: 'Open related infrastructure for Nextcloud' }),- ).toHaveAttribute('href', '/infrastructure?resource=app-container%3Atruenas-main%3Anextcloud');+ screen.queryByRole('link', { name: 'Open related infrastructure for Nextcloud' }),+ ).toBeNull();expect(- screen.getByRole('link', { name: 'Open related workloads for Nextcloud' }),- ).toHaveAttribute(- 'href',- '/workloads?type=app-container&platform=truenas&agent=truenas-main&resource=app-container%3Atruenas-main%3Anextcloud',- );+ screen.queryByRole('link', { name: 'Open related workloads for Nextcloud' }),+ ).toBeNull();});it('keeps finding disclosure separate from inline manual controls', async () => {diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.tsindex 336e3b417e..58b11cc33d 100644--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts@@ -661,15 +661,15 @@ describe('aiFindingPresentation', () => {expect(findingsPanelSource).toContain('href={action().href}');});- it('resolves unified resources and shared route links for expanded finding handoffs', () => {- expect(findingsPanelSource).toContain("import { useResources } from '@/hooks/useResources';");- expect(findingsPanelSource).toContain(- "import { buildResolvedResourceSurfaceLinks } from '@/routing/resourceLinks';",- );- expect(findingsPanelSource).toContain('const { get: getResource } = useResources();');- expect(findingsPanelSource).toContain('buildResolvedResourceSurfaceLinks({');- expect(findingsPanelSource).toContain('resource: getResource(finding.resourceId)');- expect(findingsPanelSource).toContain('{link.compactLabel}');+ it('does not cross-jump expanded findings to the retired top-level Infrastructure/Workloads/Storage/Recovery routes', () => {+ // The platform-first migration retired buildResolvedResourceSurfaceLinks+ // alongside the standalone /infrastructure, /workloads, /storage, and+ // /recovery routes; Patrol findings now stay in place rather than+ // offering external surface jumps.+ expect(findingsPanelSource).not.toContain("from '@/hooks/useResources'");+ expect(findingsPanelSource).not.toContain('buildResolvedResourceSurfaceLinks');+ expect(findingsPanelSource).not.toContain('useResources()');+ expect(findingsPanelSource).not.toContain('{link.compactLabel}');});it('routes generic finding controls through the shared manual-controls helper', () => {diff --git a/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.tsindex 9950b92444..c5a57b6de0 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts+++ b/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts@@ -122,7 +122,10 @@ describe('resourceDetailDrawerOperationalModel', () => {expect(hasRuntimeOperationalContext([])).toBe(false);});- it('builds canonical related links from workloads and service detail surfaces', () => {+ it('returns no cross-jump links for docker-host resources after the platform-first migration', () => {+ // Surface link injection through buildResourceSurfaceLinksForResource was+ // retired with the standalone /workloads, /storage, /recovery routes;+ // only service-detail links (PMG thresholds) remain.expect(buildRelatedLinks(baseResource({@@ -132,17 +135,10 @@ describe('resourceDetailDrawerOperationalModel', () => {}),'Host 1',),- ).toEqual([- {- href: '/workloads?type=app-container&platform=docker&agent=agent-1',- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: 'Open related workloads for Host 1',- },- ]);+ ).toEqual([]);});- it('builds canonical workloads and storage links for top-level truenas systems', () => {+ it('returns no cross-jump links for top-level truenas systems', () => {expect(buildRelatedLinks(baseResource({@@ -155,29 +151,10 @@ describe('resourceDetailDrawerOperationalModel', () => {}),'TrueNAS Main',),- ).toEqual([- {- href: '/workloads?type=app-container&platform=truenas&agent=truenas-main',- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: 'Open related workloads for TrueNAS Main',- },- {- href: '/storage?source=truenas&node=truenas-main',- label: 'Open in Storage',- compactLabel: 'Storage',- ariaLabel: 'Open related storage for TrueNAS Main',- },- {- href: '/recovery?platform=truenas&node=truenas-main',- label: 'Open in Recovery',- compactLabel: 'Recovery',- ariaLabel: 'Open related recovery for TrueNAS Main',- },- ]);+ ).toEqual([]);});- it('builds canonical workloads and storage links for hybrid agent resources with merged truenas sources', () => {+ it('returns no cross-jump links for hybrid agent resources with merged truenas sources', () => {expect(buildRelatedLinks(baseResource({@@ -191,26 +168,7 @@ describe('resourceDetailDrawerOperationalModel', () => {}),'TrueNAS Main',),- ).toEqual([- {- href: '/workloads?type=app-container&platform=truenas&agent=truenas-main',- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: 'Open related workloads for TrueNAS Main',- },- {- href: '/storage?source=truenas&node=truenas-main',- label: 'Open in Storage',- compactLabel: 'Storage',- ariaLabel: 'Open related storage for TrueNAS Main',- },- {- href: '/recovery?platform=truenas&node=truenas-main',- label: 'Open in Recovery',- compactLabel: 'Recovery',- ariaLabel: 'Open related recovery for TrueNAS Main',- },- ]);+ ).toEqual([]);});it('omits generic host-wide workloads links from drawer quick links', () => {diff --git a/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts b/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.tsindex d61156581c..5784ad3493 100644--- a/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts+++ b/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts@@ -1,7 +1,6 @@import type { Resource } from '@/types/resource';import type { KubernetesMetricCapabilities, PlatformData } from './resourceDetailMappers';import { buildServiceDetailLinks, type ServiceDetailLink } from './serviceDetailLinks';-import { buildResourceSurfaceLinksForResource } from '@/routing/resourceLinks';export type ResourceDetailDrawerOperationalBadge = {label: string;@@ -195,11 +194,9 @@ export const buildAccessSummary = (options: {export const buildRelatedLinks = (resource: Resource,- displayName: string,+ _displayName: string,): ResourceDetailDrawerOperationalLink[] => {- const links: ResourceDetailDrawerOperationalLink[] = [- ...buildResourceSurfaceLinksForResource(resource, displayName),- ];+ const links: ResourceDetailDrawerOperationalLink[] = [];links.push(...buildServiceDetailLinks(resource));const seen = new Set<string>();diff --git a/frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx b/frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsxindex 745c30b29f..8ae2cc16e0 100644--- a/frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx+++ b/frontend-modern/src/features/alerts/AlertResourceIncidentsPanel.tsx@@ -1,14 +1,9 @@-import { A } from '@solidjs/router';import { For, Show } from 'solid-js';import { IncidentEventFilters } from '@/components/Alerts/IncidentEventFilters';import { IncidentAssistantHandoffButton } from '@/components/Alerts/IncidentAssistantHandoffButton';import { IncidentTimelineEventCard } from '@/components/Alerts/IncidentTimelineEventCard';import { Card } from '@/components/shared/Card';-import {- buildResolvedResourceSurfaceLinks,- type ResourceSurfaceLink,-} from '@/routing/resourceLinks';import type { Resource } from '@/types/resource';import { getPreferredInfrastructureDisplayName } from '@/utils/resourceIdentity';import {@@ -56,14 +51,6 @@ export function AlertResourceIncidentsPanel(props: AlertResourceIncidentsPanelPr}return selection().resourceName;};- const links = (): ResourceSurfaceLink[] => {- return buildResolvedResourceSurfaceLinks({- resourceId,- displayName: resourceDisplayName(),- resource: resource(),- allowInfrastructureFallback: true,- });- };return (<Card padding="md">@@ -78,21 +65,6 @@ export function AlertResourceIncidentsPanel(props: AlertResourceIncidentsPanelPr<span> · {getAlertResourceIncidentCountLabel(incidents().length)}</span></Show></p>- <Show when={links().length > 0}>- <div class="mt-2 flex flex-wrap gap-2">- <For each={links()}>- {(link) => (- <A- href={link.href}- aria-label={link.ariaLabel}- class="inline-flex items-center rounded-md border border-border px-2 py-1 text-xs text-muted transition-colors hover:bg-surface-hover hover:text-base-content"- >- {link.compactLabel}- </A>- )}- </For>- </div>- </Show></div><div class="flex items-center gap-2"><buttondiff --git a/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx b/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsxindex 1789b04fb2..209a1ab045 100644--- a/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx+++ b/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx@@ -22,7 +22,10 @@ describe('AlertResourceIncidentsPanel', () => {vi.restoreAllMocks();});- it('surfaces canonical investigation handoff links for TrueNAS resources', () => {+ it('does not surface cross-jump links to the retired top-level routes', () => {+ // Surface link chips to /infrastructure?resource=...,+ // /workloads?type=...&platform=..., /storage?source=..., and+ // /recovery?platform=... were retired with the platform-first migration.render(() => (<AlertResourceIncidentsPanelstate={@@ -74,17 +77,17 @@ describe('AlertResourceIncidentsPanel', () => {));expect(- screen.getByRole('link', { name: 'Open related infrastructure for TrueNAS Main' }),- ).toHaveAttribute('href', '/infrastructure?resource=truenas-main');+ screen.queryByRole('link', { name: 'Open related infrastructure for TrueNAS Main' }),+ ).toBeNull();expect(- screen.getByRole('link', { name: 'Open related workloads for TrueNAS Main' }),- ).toHaveAttribute('href', '/workloads?type=app-container&platform=truenas&agent=truenas-main');+ screen.queryByRole('link', { name: 'Open related workloads for TrueNAS Main' }),+ ).toBeNull();expect(- screen.getByRole('link', { name: 'Open related storage for TrueNAS Main' }),- ).toHaveAttribute('href', '/storage?source=truenas&node=truenas-main');+ screen.queryByRole('link', { name: 'Open related storage for TrueNAS Main' }),+ ).toBeNull();expect(- screen.getByRole('link', { name: 'Open related recovery for TrueNAS Main' }),- ).toHaveAttribute('href', '/recovery?platform=truenas&node=truenas-main');+ screen.queryByRole('link', { name: 'Open related recovery for TrueNAS Main' }),+ ).toBeNull();});it('opens Assistant from a resource incident without carrying raw command details', () => {diff --git a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.tsindex a179cd2c01..934e0c7d35 100644--- a/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts+++ b/frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts@@ -470,11 +470,14 @@ describe('tab path helpers', () => {);expect(alertResourceIncidentsPanelSource).toContain('IncidentEventFilters');expect(alertResourceIncidentsPanelSource).toContain('IncidentTimelineEventCard');- expect(alertResourceIncidentsPanelSource).toContain('buildResolvedResourceSurfaceLinks');- expect(alertResourceIncidentsPanelSource).toContain('allowInfrastructureFallback: true');+ // Cross-jump links to the legacy top-level Infrastructure / Workloads /+ // Storage / Recovery routes were retired with the platform-first+ // migration; the incidents panel no longer renders surface-link chips.+ expect(alertResourceIncidentsPanelSource).not.toContain('buildResolvedResourceSurfaceLinks');+ expect(alertResourceIncidentsPanelSource).not.toContain('allowInfrastructureFallback');expect(alertResourceIncidentsPanelSource).not.toContain('buildInfrastructureResourceLink');expect(alertResourceIncidentsPanelSource).not.toContain('buildResourceSurfaceLinksForResource');- expect(alertResourceIncidentsPanelSource).toContain('{link.compactLabel}');+ expect(alertResourceIncidentsPanelSource).not.toContain('{link.compactLabel}');expect(alertResourceIncidentsPanelSource).toContain('IncidentAssistantHandoffButton');expect(incidentTimelinePanelSource).toContain('IncidentAssistantHandoffButton');expect(incidentAssistantHandoffButtonSource).toContain('buildAlertIncidentAssistantHandoff');diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.tsindex 2b6f78c237..3ac0c6369e 100644--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts@@ -1,5 +1,4 @@import { describe, expect, it } from 'vitest';-import type { WorkloadGuest } from '@/types/workloads';import {AI_PATROL_PATH,DOCKER_PATH,@@ -12,21 +11,13 @@ import {TRUENAS_PATH,VMWARE_PATH,buildDockerPath,- buildInfrastructureResourceLink,- buildInfrastructureHrefForWorkload,buildKubernetesPath,buildRecoveryPath,- buildRecoveryHrefForResource,buildInfrastructurePath,- buildInfrastructureResourceHref,buildProxmoxPath,- buildResolvedResourceSurfaceLinks,- buildResourceSurfaceLinksForResource,- buildStorageHrefForResource,buildStoragePath,buildTrueNASPath,buildVmwarePath,- buildWorkloadsHrefForResource,buildWorkloadsPath,parseRecoveryLinkSearch,INFRASTRUCTURE_QUERY_PARAMS,@@ -37,31 +28,6 @@ import {WORKLOADS_QUERY_PARAMS,} from '@/routing/resourceLinks';-const baseGuest = (overrides: Partial<WorkloadGuest>): WorkloadGuest => ({- id: 'guest-1',- vmid: 101,- name: 'guest-1',- node: 'node-1',- instance: 'cluster-a',- status: 'running',- type: 'vm',- cpu: 0,- cpus: 2,- memory: { total: 0, used: 0, free: 0, usage: 0 },- disk: { total: 0, used: 0, free: 0, usage: 0 },- networkIn: 0,- networkOut: 0,- diskRead: 0,- diskWrite: 0,- uptime: 0,- template: false,- lastBackup: 0,- tags: [],- lock: '',- lastSeen: new Date().toISOString(),- ...overrides,-});-describe('resource link routing contract', () => {it('keeps Patrol links on the canonical Patrol route', () => {expect(PATROL_PATH).toBe('/patrol');@@ -172,138 +138,6 @@ describe('resource link routing contract', () => {});});- it('builds canonical infrastructure resource links', () => {- expect(buildInfrastructureResourceHref(' resource-123 ')).toBe(- '/infrastructure?resource=resource-123',- );- expect(buildInfrastructureResourceHref('')).toBeNull();- });-- it('builds canonical infrastructure resource link metadata', () => {- expect(buildInfrastructureResourceLink(' truenas-main ', 'TrueNAS Main')).toEqual({- href: '/infrastructure?resource=truenas-main',- label: 'Open in Infrastructure',- compactLabel: 'Infrastructure',- ariaLabel: 'Open related infrastructure for TrueNAS Main',- });- });-- it('maps vm workloads to proxmox infrastructure source with node query', () => {- const href = buildInfrastructureHrefForWorkload(- baseGuest({- type: 'vm',- workloadType: 'vm',- node: 'pve1',- instance: 'cluster-main',- }),- );- expect(href).toBe('/infrastructure?source=proxmox-pve&q=pve1');- });-- it('maps app-container workloads to docker infrastructure source with context query', () => {- const href = buildInfrastructureHrefForWorkload(- baseGuest({- type: 'app-container',- workloadType: 'app-container',- platformType: 'docker',- contextLabel: 'docker-host-1',- }),- );- expect(href).toBe('/infrastructure?source=docker&q=docker-host-1');- });-- it('maps TrueNAS app-container workloads to the TrueNAS infrastructure source', () => {- const href = buildInfrastructureHrefForWorkload(- baseGuest({- type: 'app-container',- workloadType: 'app-container',- platformType: 'truenas',- contextLabel: 'truenas-main',- }),- );- expect(href).toBe('/infrastructure?source=truenas&q=truenas-main');- });-- it('builds TrueNAS workloads links from canonical unified resources', () => {- expect(- buildWorkloadsHrefForResource({- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- } as any),- ).toBe('/workloads?type=app-container&platform=truenas&agent=truenas-main');- });-- it('builds exact workloads links for TrueNAS app-container resources', () => {- expect(- buildWorkloadsHrefForResource({- id: 'app-container:truenas-main:nextcloud',- type: 'app-container',- name: 'nextcloud',- displayName: 'Nextcloud',- parentId: 'truenas-main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'api',- status: 'running',- lastSeen: Date.now(),- } as any),- ).toBe(- '/workloads?type=app-container&platform=truenas&agent=truenas-main&resource=app-container%3Atruenas-main%3Anextcloud',- );- });-- it('builds exact workloads links for Proxmox system-container resources using canonical guest ids', () => {- expect(- buildWorkloadsHrefForResource({- id: 'system-container-45cf61f16a6e2c16',- type: 'system-container',- name: 'artifact-cache-01',- displayName: 'Artifact Cache 01',- platformId: 'pve2',- platformType: 'proxmox-pve',- sourceType: 'api',- status: 'online',- lastSeen: Date.now(),- clusterId: 'Core Fabric',- proxmox: {- node: 'pve2',- instance: 'Core Fabric',- vmid: 112,- },- } as any),- ).toBe(- '/workloads?type=system-container&platform=proxmox-pve&agent=pve2&resource=Core+Fabric%3Apve2%3A112',- );- });-- it('maps pod workloads to kubernetes infrastructure source with cluster query', () => {- const href = buildInfrastructureHrefForWorkload(- baseGuest({- type: 'pod',- workloadType: 'pod',- contextLabel: 'cluster-a',- }),- );- expect(href).toBe('/infrastructure?source=kubernetes&q=cluster-a');- });-- it('defaults unknown workload types to proxmox infrastructure compatibility mapping', () => {- const href = buildInfrastructureHrefForWorkload(- baseGuest({- type: 'unknown',- workloadType: undefined,- }),- );- expect(href).toBe('/infrastructure?source=proxmox-pve&q=node-1');- });-it('builds and parses storage query params', () => {const href = buildStoragePath({tab: 'disks',@@ -349,188 +183,6 @@ describe('resource link routing contract', () => {expect(STORAGE_QUERY_PARAMS.summaryGroup).toBe('summaryGroup');});- it('builds storage deep links for exact TrueNAS storage resources', () => {- const href = buildStorageHrefForResource({- id: 'storage-truenas-display',- type: 'storage',- name: 'tank',- displayName: 'tank',- platformId: 'truenas-1',- platformType: 'truenas',- sourceType: 'api',- status: 'online',- lastSeen: Date.now(),- storage: { platform: 'truenas', type: 'zfs-pool' },- } as any);-- expect(href).toBe('/storage?source=truenas&resource=storage-truenas-display');- });-- it('builds storage deep links for TrueNAS physical disks on the disks tab', () => {- const href = buildStorageHrefForResource({- id: 'disk:truenas-main:sda',- type: 'physical_disk',- name: 'sda',- displayName: 'Seagate IronWolf',- parentId: 'truenas-main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'api',- status: 'online',- lastSeen: Date.now(),- physicalDisk: {- serial: '',- },- } as any);-- expect(href).toBe(- '/storage?tab=disks&source=truenas&node=truenas-main&resource=disk%3Atruenas-main%3Asda',- );- });-- it('builds storage deep links for top-level TrueNAS systems', () => {- const href = buildStorageHrefForResource({- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- } as any);-- expect(href).toBe('/storage?source=truenas&node=truenas-main');- });-- it('builds storage deep links for hybrid agent resources with merged truenas sources', () => {- const href = buildStorageHrefForResource({- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'agent',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- platformData: {- sources: ['agent', 'truenas'],- },- } as any);-- expect(href).toBe('/storage?source=truenas&node=truenas-main');- });-- it('builds recovery deep links for top-level TrueNAS systems', () => {- const href = buildRecoveryHrefForResource({- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- } as any);-- expect(href).toBe('/recovery?platform=truenas&node=truenas-main');- });-- it('builds recovery deep links for hybrid agent resources with merged truenas sources', () => {- const href = buildRecoveryHrefForResource({- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'agent',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- platformData: {- sources: ['agent', 'truenas'],- },- } as any);-- expect(href).toBe('/recovery?platform=truenas&node=truenas-main');- });-- it('builds canonical shared surface links for top-level truenas systems', () => {- expect(- buildResourceSurfaceLinksForResource(- {- id: 'truenas-main',- type: 'agent',- name: 'truenas-main',- displayName: 'TrueNAS Main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'hybrid',- status: 'online',- lastSeen: Date.now(),- platformData: { sources: ['truenas'] },- } as any,- 'TrueNAS Main',- ),- ).toEqual([- {- href: '/workloads?type=app-container&platform=truenas&agent=truenas-main',- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: 'Open related workloads for TrueNAS Main',- },- {- href: '/storage?source=truenas&node=truenas-main',- label: 'Open in Storage',- compactLabel: 'Storage',- ariaLabel: 'Open related storage for TrueNAS Main',- },- {- href: '/recovery?platform=truenas&node=truenas-main',- label: 'Open in Recovery',- compactLabel: 'Recovery',- ariaLabel: 'Open related recovery for TrueNAS Main',- },- ]);- });-- it('builds canonical surface links for exact TrueNAS app-container resources', () => {- expect(- buildResolvedResourceSurfaceLinks({- resourceId: 'app-container:truenas-main:nextcloud',- displayName: 'Nextcloud',- resource: {- id: 'app-container:truenas-main:nextcloud',- type: 'app-container',- name: 'nextcloud',- displayName: 'Nextcloud',- parentId: 'truenas-main',- platformId: 'truenas-main',- platformType: 'truenas',- sourceType: 'api',- status: 'running',- lastSeen: Date.now(),- } as any,- }),- ).toEqual([- {- href: '/infrastructure?resource=app-container%3Atruenas-main%3Anextcloud',- label: 'Open in Infrastructure',- compactLabel: 'Infrastructure',- ariaLabel: 'Open related infrastructure for Nextcloud',- },- {- href: '/workloads?type=app-container&platform=truenas&agent=truenas-main&resource=app-container%3Atruenas-main%3Anextcloud',- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: 'Open related workloads for Nextcloud',- },- ]);- });-it('canonicalizes legacy storage source aliases when parsing links', () => {expect(parseStorageLinkSearch('?source=pbs')).toMatchObject({ source: 'proxmox-pbs' });expect(parseStorageLinkSearch('?source=proxmox')).toMatchObject({ source: 'proxmox-pve' });diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.tsindex 8e03c1b93a..94ba1d2fa1 100644--- a/frontend-modern/src/routing/resourceLinks.ts+++ b/frontend-modern/src/routing/resourceLinks.ts@@ -1,29 +1,9 @@import {- normalizeSourcePlatformKey,normalizeSourcePlatformQueryValue,- resolvePlatformTypeFromSources,} from '@/utils/sourcePlatforms';import { normalizeStorageSourceKey } from '@/utils/storageSources';import { normalizeRecoveryItemTypeQueryValue } from '@/utils/recoveryItemTypePresentation';-import {- canonicalizeWorkloadFilterType,- getCanonicalWorkloadIdForResource,- resolveWorkloadType,-} from '@/utils/workloads';-import type { WorkloadGuest } from '@/types/workloads';-import type { Resource } from '@/types/resource';-import {- getActionableDockerRuntimeIdFromResource,- getPlatformDataRecord,- hasDockerWorkloadsScope,- isTrueNASSystemResource,-} from '@/utils/agentResources';-import {- getPreferredInfrastructureDisplayName,- getPreferredResourceKubernetesContext,- getPreferredWorkloadsAgentHint,-} from '@/utils/resourceIdentity';-import { requiresGovernedResourceDisplay } from '@/types/resource';+import { canonicalizeWorkloadFilterType } from '@/utils/workloads';export const WORKLOADS_QUERY_PARAMS = {type: 'type',@@ -119,15 +99,6 @@ const firstNonEmpty = (values: Array<string | undefined | null>): string | undefreturn undefined;};-const dedupeResourceSurfaceLinks = (links: ResourceSurfaceLink[]): ResourceSurfaceLink[] => {- const seen = new Set<string>();- return links.filter((link) => {- if (seen.has(link.href)) return false;- seen.add(link.href);- return true;- });-};-type WorkloadsLinkOptions = {type?: string | null;platform?: string | null;@@ -180,20 +151,6 @@ type RecoveryLinkOptions = {query?: string | null;};-export type ResourceSurfaceLink = {- href: string;- label: string;- compactLabel: string;- ariaLabel: string;-};--type ResolvedResourceSurfaceLinkOptions = {- resourceId: string;- displayName: string;- resource?: Resource | null;- allowInfrastructureFallback?: boolean;-};-const RECOVERY_LEGACY_PLATFORM_QUERY_PARAM = 'provider';export const parseWorkloadsLinkSearch = (search: string) => {@@ -281,293 +238,6 @@ export const buildInfrastructurePath = (options: InfrastructureLinkOptions = {})return serialized ? `${INFRASTRUCTURE_PATH}?${serialized}` : INFRASTRUCTURE_PATH;};-export const buildInfrastructureResourceHref = (resourceId: string): string | null => {- const trimmed = resourceId.trim();- return trimmed ? buildInfrastructurePath({ resource: trimmed }) : null;-};--export const buildInfrastructureResourceLink = (- resourceId: string,- displayName: string,-): ResourceSurfaceLink | null => {- const href = buildInfrastructureResourceHref(resourceId);- if (!href) return null;- return {- href,- label: 'Open in Infrastructure',- compactLabel: 'Infrastructure',- ariaLabel: `Open related infrastructure for ${displayName}`,- };-};--export const buildInfrastructureHrefForWorkload = (guest: WorkloadGuest): string => {- const type = resolveWorkloadType(guest);-- if (type === 'vm' || type === 'system-container') {- const query = firstNonEmpty([guest.node, guest.instance, guest.name]);- return buildInfrastructurePath({ source: 'proxmox-pve', query });- }-- if (type === 'app-container') {- const query = firstNonEmpty([guest.contextLabel, guest.node, guest.instance, guest.name]);- return buildInfrastructurePath({- source: guest.platformType === 'truenas' ? 'truenas' : 'docker',- query,- });- }-- if (type === 'pod') {- const query = firstNonEmpty([- guest.contextLabel,- guest.instance,- guest.namespace,- guest.node,- guest.name,- ]);- return buildInfrastructurePath({ source: 'kubernetes', query });- }-- return buildInfrastructurePath();-};--const resolveKubernetesContextForResource = (resource: Resource): string | undefined => {- const kubernetesContext = getPreferredResourceKubernetesContext(resource);- if (resource.type === 'k8s-cluster') {- const displayLabel = requiresGovernedResourceDisplay(resource.policy)- ? getPreferredInfrastructureDisplayName(resource)- : resource.displayName?.trim() || resource.name?.trim() || undefined;- return firstNonEmpty([kubernetesContext, displayLabel]);- }- if (resource.type === 'k8s-node') {- return kubernetesContext;- }- if (resource.type === 'pod') {- return kubernetesContext;- }- return undefined;-};--const resolveHostHintForResource = (resource: Resource): string | undefined =>- getPreferredWorkloadsAgentHint(resource);--const resolveDockerWorkloadsHintForResource = (resource: Resource): string | undefined =>- getActionableDockerRuntimeIdFromResource(resource) || resolveHostHintForResource(resource);--const hasMergedSource = (resource: Resource, source: string): boolean => {- const platformData = getPlatformDataRecord(resource);- const mergedSources = Array.isArray(platformData?.sources) ? platformData.sources : [];- return mergedSources.some((value) => normalizeSourcePlatformKey(value) === source);-};--export const buildWorkloadsHrefForResource = (resource: Resource): string | null => {- if (resource.type === 'k8s-cluster' || resource.type === 'k8s-node') {- const context = resolveKubernetesContextForResource(resource);- return buildWorkloadsPath({ type: 'pod', platform: 'kubernetes', context });- }-- if (resource.type === 'docker-host') {- const agent = resolveDockerWorkloadsHintForResource(resource);- return buildWorkloadsPath({ type: 'app-container', platform: 'docker', agent });- }-- if (resource.type === 'agent') {- const agent = resolveHostHintForResource(resource);- if (resource.platformType === 'truenas' || hasMergedSource(resource, 'truenas')) {- return buildWorkloadsPath({ type: 'app-container', platform: 'truenas', agent });- }- if (hasDockerWorkloadsScope(resource)) {- return buildWorkloadsPath({- type: 'app-container',- platform: 'docker',- agent: resolveDockerWorkloadsHintForResource(resource),- });- }- return buildWorkloadsPath({ agent });- }-- if (- resource.type === 'vm' ||- resource.type === 'system-container' ||- resource.type === 'oci-container' ||- resource.type === 'jail'- ) {- return buildWorkloadsPath({- type: resource.type,- platform: resource.platformType,- agent: firstNonEmpty([resource.parentId, resource.platformId]),- resource: getCanonicalWorkloadIdForResource(resource),- });- }-- if (resource.type === 'app-container') {- const isTrueNAS = resource.platformType === 'truenas' || hasMergedSource(resource, 'truenas');- const isDocker = resource.platformType === 'docker' || hasMergedSource(resource, 'docker');- return buildWorkloadsPath({- type: 'app-container',- platform: isTrueNAS ? 'truenas' : isDocker ? 'docker' : resource.platformType,- agent: isDocker- ? firstNonEmpty([- getActionableDockerRuntimeIdFromResource(resource),- resource.parentId,- resource.platformId,- ])- : firstNonEmpty([resource.parentId, resource.platformId]),- resource: resource.id,- });- }-- if (resource.type === 'pod') {- return buildWorkloadsPath({- type: 'pod',- platform: 'kubernetes',- context: resolveKubernetesContextForResource(resource),- namespace: firstNonEmpty([resource.kubernetes?.namespace, resource.labels?.namespace]),- resource: resource.id,- });- }-- return null;-};--export const buildResourceSurfaceLinksForResource = (- resource: Resource,- displayName: string,-): ResourceSurfaceLink[] => {- const links: ResourceSurfaceLink[] = [];- const workloads = buildWorkloadsHrefForResource(resource);- const workloadSearch = workloads ? new URLSearchParams(workloads.split('?')[1] ?? '') : null;- const scopedWorkloadType = workloadSearch?.get('type')?.trim() ?? '';-- if (workloads && scopedWorkloadType) {- links.push({- href: workloads,- label: 'Open in Workloads',- compactLabel: 'Workloads',- ariaLabel: `Open related workloads for ${displayName}`,- });- }-- const storage = buildStorageHrefForResource(resource);- if (storage) {- links.push({- href: storage,- label: 'Open in Storage',- compactLabel: 'Storage',- ariaLabel: `Open related storage for ${displayName}`,- });- }-- const recovery = buildRecoveryHrefForResource(resource);- if (recovery) {- links.push({- href: recovery,- label: 'Open in Recovery',- compactLabel: 'Recovery',- ariaLabel: `Open related recovery for ${displayName}`,- });- }-- return dedupeResourceSurfaceLinks(links);-};--const resolveStorageRouteSource = (resource: Resource): string => {- const mergedPlatform = Array.isArray(resource.platformData?.sources)- ? resolvePlatformTypeFromSources(resource.platformData.sources)- : undefined;-- return normalizeStorageSourceKey(- resource.storage?.platform || mergedPlatform || resource.platformType || resource.type,- );-};--export const buildStorageHrefForResource = (resource: Resource): string | null => {- const source = resolveStorageRouteSource(resource);- if (!source || source === 'all') return null;-- if (- resource.type === 'storage' ||- resource.type === 'datastore' ||- resource.type === 'pool' ||- resource.type === 'dataset' ||- resource.type === 'ceph'- ) {- return buildStoragePath({- source,- resource: resource.id,- });- }-- if (resource.type === 'physical_disk') {- return buildStoragePath({- tab: 'disks',- source,- node: firstNonEmpty([resource.parentId, resource.platformId]),- resource: resource.id,- });- }-- if (resource.type === 'pbs') {- return buildStoragePath({- source,- node: resource.id,- });- }-- if (isTrueNASSystemResource(resource)) {- return buildStoragePath({- source,- node: resource.id,- });- }-- return null;-};--export const buildResolvedResourceSurfaceLinks = ({- resourceId,- displayName,- resource,- allowInfrastructureFallback = false,-}: ResolvedResourceSurfaceLinkOptions): ResourceSurfaceLink[] => {- const links: ResourceSurfaceLink[] = [];-- if (resource) {- const infrastructure = buildInfrastructureResourceLink(resource.id, displayName);- if (infrastructure) {- links.push(infrastructure);- }- links.push(...buildResourceSurfaceLinksForResource(resource, displayName));- return dedupeResourceSurfaceLinks(links);- }-- if (allowInfrastructureFallback) {- const infrastructure = buildInfrastructureResourceLink(resourceId, displayName);- if (infrastructure) {- links.push(infrastructure);- }- }-- return dedupeResourceSurfaceLinks(links);-};--export const buildRecoveryHrefForResource = (resource: Resource): string | null => {- const mergedPlatform = Array.isArray(resource.platformData?.sources)- ? resolvePlatformTypeFromSources(resource.platformData.sources)- : undefined;- const platform = normalizeSourcePlatformQueryValue(- resource.storage?.platform || mergedPlatform || resource.platformType || resource.type,- );-- if (platform === 'truenas' && isTrueNASSystemResource(resource)) {- return buildRecoveryPath({- platform: 'truenas',- node: resource.id,- });- }-- return null;-};-export const parseStorageLinkSearch = (search: string) => {const params = new URLSearchParams(search);return {diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 6577fb2aa7..d34e9923a4 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -630,7 +630,10 @@ describe('frontend resource type boundaries', () => {it('keeps compatibility handling centralized in shared adapters and edge translators', () => {expect(resourceLinksSource).toContain('canonicalizeWorkloadFilterType');expect(resourceLinksSource).toContain('normalizeSourcePlatformQueryValue');- expect(resourceLinksSource).toContain('export const buildInfrastructureHrefForWorkload');+ // buildInfrastructureHrefForWorkload was retired with the legacy+ // /infrastructure route; the workload row no longer cross-jumps to a+ // separate top-level surface.+ expect(resourceLinksSource).not.toContain('buildInfrastructureHrefForWorkload');expect(resourceLinksSource).not.toContain("normalized === 'docker'");expect(resourceLinksSource).not.toContain("normalized === 'k8s'");expect(sourcePlatformsSource).toContain('export const normalizeSourcePlatformQueryValue');