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
Extract resource drawer operational model owner
rcourtman7e121ab2c1ab
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 4ba9f93832..97c07990a7 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -3208,6 +3208,7 @@"frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx",+ "frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx","frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerSupportDisclosure.tsx",@@ -3234,6 +3235,7 @@"frontend-modern/src/pages/Infrastructure.tsx","frontend-modern/src/routing/resourceLinks.ts","frontend-modern/src/types/resource.ts",+ "frontend-modern/src/utils/resourceIdentity.ts","internal/api/resources.go"],"verification": {@@ -3250,6 +3252,7 @@"label": "canonical identity proof","match_prefixes": [],"match_files": [+ "frontend-modern/src/utils/resourceIdentity.ts","internal/unifiedresources/canonical_identity.go","internal/unifiedresources/identity.go","internal/unifiedresources/ids.go",@@ -3260,6 +3263,7 @@"allow_same_subsystem_tests": false,"test_prefixes": [],"exact_files": [+ "frontend-modern/src/utils/__tests__/resourceIdentity.test.ts","internal/unifiedresources/canonical_identity_test.go","internal/unifiedresources/canonical_ids_types_test.go","internal/unifiedresources/code_standards_test.go",@@ -3299,6 +3303,7 @@"frontend-modern/src/components/Infrastructure/infrastructureSummaryModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsx",+ "frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx","frontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.ts","frontend-modern/src/components/Infrastructure/ResourceDetailDrawerSupportDisclosure.tsx",@@ -3325,6 +3330,7 @@"frontend-modern/src/pages/Infrastructure.tsx","frontend-modern/src/routing/resourceLinks.ts","frontend-modern/src/types/resource.ts",+ "frontend-modern/src/utils/resourceIdentity.ts","internal/api/resources.go"],"allow_same_subsystem_tests": false,@@ -3332,6 +3338,7 @@"exact_files": ["frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts","frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx",+ "frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx",diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex d2a2afbd11..05c97196ec 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -401,7 +401,7 @@ Inside that summary, the operational and supporting context rows stay inlineinstead of sitting in a collapsed `Details` disclosure or nested borderedcards, so the first read stays like one linear sheet rather than a stack ofcards inside the summary.-Discovery support now also lives inside overview-only `Discovery context`+Discovery support now also lives inside an overview-only `Discovery`instead of a peer drawer tab, so supplemental discovery detail stays availablewithout claiming the same navigation weight as runtime, identity, orservice-specific operational views.@@ -409,6 +409,10 @@ That discovery surface is now a compact support row with a one-line summary andan on-demand metadata panel, so the actionable web-interface path stays primarywhile deeper discovery inspection remains available without reading like asecond peer overview surface.+For ordinary host discovery, that support row now stays even quieter: the+surface is titled `Discovery`, and the collapsed state does not repeat a+baseline `Host discovery via <hostname>` summary when the discovery target is+just the same host identity already shown elsewhere in the drawer.The discovery metadata panel now expands directly under the outer supportdisclosure instead of nesting a second bordered card, so the support surfacereads as one flattened reveal instead of a card inside a card.diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsxindex 5c8de5e4a0..89a7f1df27 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx@@ -1070,12 +1070,12 @@ export const ResourceDetailDrawerOverviewTab: Component<ResourceDetailDrawerOver/><SupportDisclosure- title="Discovery context"+ title="Discovery"summary={drawer.discoveryContextSummary()}expanded={drawer.showDiscoveryContext()}onToggle={() => drawer.setShowDiscoveryContext((value) => !value)}- showLabel="Show metadata"- hideLabel="Hide metadata"+ showLabel="Open discovery"+ hideLabel="Hide discovery"class="h-full"dataTestId="resource-discovery-context">diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex cf0e05d208..e83900aadc 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -309,11 +309,11 @@ describe('ResourceDetailDrawer change history section', () => {expect(screen.queryByText('Container Updates')).toBeNull();expect(screen.queryByText('Check Updates')).toBeNull();expect(screen.queryByText('Show update controls')).toBeNull();- expect(screen.getByText('Discovery context')).toBeInTheDocument();+ expect(screen.getByText('Discovery')).toBeInTheDocument();expect(screen.queryByText('Supporting metadata only. The web interface path above stays primary.'),).toBeNull();- expect(screen.getByRole('button', { name: 'Show metadata' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Open discovery' })).toBeInTheDocument();expect(screen.getByTestId('resource-discovery-context')diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsxindex 4c97ee947c..af09f2cd9e 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.identity-runtime.test.tsx@@ -143,8 +143,8 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {);expect(queryByRole('button', { name: 'Discovery' })).toBeNull();- expect(getByText('Discovery context')).toBeInTheDocument();- expect(getByText('Host discovery via host-1')).toBeInTheDocument();+ expect(getByText('Discovery')).toBeInTheDocument();+ expect(queryByText('Host discovery via host-1')).toBeNull();expect(queryByText('Supporting metadata only. The web interface path above stays primary.'),).toBeNull();@@ -155,9 +155,9 @@ describe('ResourceDetailDrawer runtime and identity cards', () => {),).toBeNull();- expect(getByRole('button', { name: 'Show metadata' })).toBeInTheDocument();+ expect(getByRole('button', { name: 'Open discovery' })).toBeInTheDocument();- fireEvent.click(getByRole('button', { name: 'Show metadata' }));+ fireEvent.click(getByRole('button', { name: 'Open discovery' }));await waitFor(() => {expect(queryByTestId('discovery-tab')).toBeInTheDocument();diff --git a/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.tsnew file mode 100644index 0000000000..f0dc4308d2--- /dev/null+++ b/frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts@@ -0,0 +1,141 @@+import { describe, expect, it } from 'vitest';++import {+ buildHostDetailCards,+ buildHostDetailSummary,+ buildKubernetesCapabilityBadges,+ buildRelatedLinks,+ buildSourceSummary,+ hasRuntimeOperationalContext,+} from '@/components/Infrastructure/resourceDetailDrawerOperationalModel';+import type { Resource } from '@/types/resource';++const baseResource = (overrides: Partial<Resource>): Resource => ({+ id: 'resource-1',+ type: 'agent',+ name: 'host-1',+ displayName: 'Host 1',+ platformId: 'host-1',+ platformType: 'agent',+ sourceType: 'hybrid',+ status: 'online',+ lastSeen: Date.now(),+ platformData: { sources: ['agent'] },+ ...overrides,+});++describe('resourceDetailDrawerOperationalModel', () => {+ it('builds kubernetes capability badges from canonical metric capabilities', () => {+ expect(+ buildKubernetesCapabilityBadges({+ nodeCpuMemory: true,+ nodeTelemetry: true,+ podCpuMemory: true,+ podNetwork: false,+ podEphemeralDisk: true,+ podDiskIo: false,+ }),+ ).toEqual([+ {+ label: 'K8s Node CPU/Memory',+ classes:+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400',+ title: 'Node CPU and memory metrics are available.',+ },+ {+ label: 'Node Telemetry (Agent)',+ classes:+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400',+ title:+ 'Linked Pulse agent provides node uptime, temperature, disk, network, and disk I/O.',+ },+ {+ label: 'Pod CPU/Memory',+ classes:+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400',+ title: 'Pod CPU and memory metrics are available.',+ },+ {+ label: 'Pod Ephemeral Disk',+ classes:+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400',+ title: 'Pod ephemeral storage usage is available.',+ },+ {+ label: 'Pod Disk I/O Unsupported',+ classes:+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-surface-alt text-muted',+ title:+ 'Pod disk read/write throughput is not collected by the Kubernetes integration path today.',+ },+ ]);+ });++ it('prefers source health summaries and falls back to merged source counts', () => {+ expect(+ buildSourceSummary(+ ['agent', 'docker'],+ {+ agent: { status: 'healthy' },+ docker: { status: 'degraded' },+ },+ ),+ ).toEqual({+ label: '1/2 degraded',+ className: 'text-amber-600 dark:text-amber-400',+ title: 'agent:healthy • docker:degraded',+ });++ expect(buildSourceSummary(['agent', 'docker'], {})).toEqual({+ label: '2 sources',+ className: 'text-base-content',+ title: 'agent • docker',+ });+ });++ it('keeps host detail coverage and runtime context on canonical operational inputs', () => {+ const cards = buildHostDetailCards({+ hasProxmoxNode: true,+ hasAgentDetails: true,+ networkInterfaceCount: 2,+ diskCount: 1,+ raidCount: 0,+ temperatureRowCount: 3,+ });++ expect(cards).toEqual([+ 'system',+ 'hardware',+ 'storage',+ 'system',+ 'hardware',+ 'network',+ 'disks',+ 'temperatures',+ ]);+ expect(buildHostDetailSummary(cards)).toBe(+ '8 detail cards covering system, hardware, storage, network, disks, and temperatures.',+ );+ expect(hasRuntimeOperationalContext([], [])).toBe(false);+ });++ it('builds canonical related links from workloads and service detail surfaces', () => {+ expect(+ buildRelatedLinks(+ baseResource({+ type: 'docker-host',+ platformType: 'docker',+ platformData: { sources: ['docker'], docker: { hostSourceId: 'agent-1' } },+ }),+ 'Host 1',+ ),+ ).toEqual([+ {+ href: '/workloads?type=app-container&agent=agent-1',+ label: 'Open in Workloads',+ compactLabel: 'Workloads',+ ariaLabel: 'Open related workloads for Host 1',+ },+ ]);+ });+});diff --git a/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts b/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.tsnew file mode 100644index 0000000000..decbdaf58b--- /dev/null+++ b/frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts@@ -0,0 +1,206 @@+import type { Resource } from '@/types/resource';+import type { KubernetesMetricCapabilities, PlatformData } from './resourceDetailMappers';+import { buildServiceDetailLinks, type ServiceDetailLink } from './serviceDetailLinks';+import { buildWorkloadsHref } from './workloadsLink';++export type ResourceDetailDrawerOperationalBadge = {+ label: string;+ classes: string;+ title: string;+};++export type ResourceDetailDrawerSummary = {+ label: string;+ className: string;+ title: string;+};++export type ResourceDetailDrawerOperationalLink = ServiceDetailLink;++type SourceStatusMap = NonNullable<PlatformData['sourceStatus']>;++const SUPPORTED_BADGE_CLASS =+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-cyan-100 text-cyan-700 dark:bg-cyan-900 dark:text-cyan-400';+const UNSUPPORTED_BADGE_CLASS =+ 'inline-flex items-center rounded px-2 py-0.5 text-[10px] font-medium whitespace-nowrap bg-surface-alt text-muted';++export const buildKubernetesCapabilityBadges = (+ capabilities?: KubernetesMetricCapabilities,+): ResourceDetailDrawerOperationalBadge[] => {+ if (!capabilities) return [];++ const badges: ResourceDetailDrawerOperationalBadge[] = [];++ if (capabilities.nodeCpuMemory) {+ badges.push({+ label: 'K8s Node CPU/Memory',+ classes: SUPPORTED_BADGE_CLASS,+ title: 'Node CPU and memory metrics are available.',+ });+ }+ if (capabilities.nodeTelemetry) {+ badges.push({+ label: 'Node Telemetry (Agent)',+ classes: SUPPORTED_BADGE_CLASS,+ title: 'Linked Pulse agent provides node uptime, temperature, disk, network, and disk I/O.',+ });+ }+ if (capabilities.podCpuMemory) {+ badges.push({+ label: 'Pod CPU/Memory',+ classes: SUPPORTED_BADGE_CLASS,+ title: 'Pod CPU and memory metrics are available.',+ });+ }+ if (capabilities.podNetwork) {+ badges.push({+ label: 'Pod Network',+ classes: SUPPORTED_BADGE_CLASS,+ title: 'Pod network throughput is available.',+ });+ }+ if (capabilities.podEphemeralDisk) {+ badges.push({+ label: 'Pod Ephemeral Disk',+ classes: SUPPORTED_BADGE_CLASS,+ title: 'Pod ephemeral storage usage is available.',+ });+ }+ if (!capabilities.podDiskIo) {+ badges.push({+ label: 'Pod Disk I/O Unsupported',+ classes: UNSUPPORTED_BADGE_CLASS,+ title:+ 'Pod disk read/write throughput is not collected by the Kubernetes integration path today.',+ });+ }++ return badges;+};++export const buildSourceHealthSummary = (+ sourceStatus: SourceStatusMap,+): ResourceDetailDrawerSummary | null => {+ const entries = Object.entries(sourceStatus);+ if (entries.length === 0) return null;++ let healthy = 0;+ let warning = 0;+ let unhealthy = 0;+ const parts: string[] = [];++ for (const [source, status] of entries) {+ const normalized = (status?.status || '').trim().toLowerCase();+ parts.push(`${source}:${normalized || 'unknown'}`);+ if (['online', 'running', 'healthy', 'connected', 'ok'].includes(normalized)) {+ healthy += 1;+ } else if (['degraded', 'warning', 'stale'].includes(normalized)) {+ warning += 1;+ } else {+ unhealthy += 1;+ }+ }++ const total = entries.length;+ if (unhealthy > 0) {+ return {+ label: `${unhealthy}/${total} unhealthy`,+ className: 'text-red-600 dark:text-red-400',+ title: parts.join(' • '),+ };+ }+ if (warning > 0) {+ return {+ label: `${warning}/${total} degraded`,+ className: 'text-amber-600 dark:text-amber-400',+ title: parts.join(' • '),+ };+ }+ return {+ label: `${healthy}/${total} healthy`,+ className: 'text-emerald-600 dark:text-emerald-400',+ title: parts.join(' • '),+ };+};++export const buildSourceSummary = (+ mergedSources: string[],+ sourceStatus: SourceStatusMap,+): ResourceDetailDrawerSummary | null => {+ const health = buildSourceHealthSummary(sourceStatus);+ if (health) return health;+ if (mergedSources.length === 0) return null;+ return {+ label: mergedSources.length === 1 ? mergedSources[0].toUpperCase() : `${mergedSources.length} sources`,+ className: 'text-base-content',+ title: mergedSources.join(' • '),+ };+};++export const buildHostDetailCards = (options: {+ hasProxmoxNode: boolean;+ hasAgentDetails: boolean;+ networkInterfaceCount: number;+ diskCount: number;+ raidCount: number;+ temperatureRowCount: number;+}): string[] => {+ const cards: string[] = [];++ if (options.hasProxmoxNode) {+ cards.push('system', 'hardware', 'storage');+ }++ if (options.hasAgentDetails) {+ cards.push('system', 'hardware');+ if (options.networkInterfaceCount > 0) cards.push('network');+ if (options.diskCount > 0) cards.push('disks');+ if (options.raidCount > 0) cards.push('raid');+ if (options.temperatureRowCount > 0) cards.push('temperatures');+ }++ return cards;+};++export const buildHostDetailSummary = (hostDetailCards: string[]): string | null => {+ const labels = Array.from(new Set(hostDetailCards));+ if (labels.length === 0) return null;++ const categories =+ labels.length === 1+ ? labels[0]+ : labels.length === 2+ ? `${labels[0]} and ${labels[1]}`+ : `${labels.slice(0, -1).join(', ')}, and ${labels[labels.length - 1]}`;++ return `${hostDetailCards.length} detail card${hostDetailCards.length === 1 ? '' : 's'} covering ${categories}.`;+};++export const buildRelatedLinks = (+ resource: Resource,+ displayName: string,+): ResourceDetailDrawerOperationalLink[] => {+ const links: ResourceDetailDrawerOperationalLink[] = [];+ const workloads = buildWorkloadsHref(resource);+ if (workloads) {+ links.push({+ href: workloads,+ label: 'Open in Workloads',+ compactLabel: 'Workloads',+ ariaLabel: `Open related workloads for ${displayName}`,+ });+ }+ links.push(...buildServiceDetailLinks(resource));++ const seen = new Set<string>();+ return links.filter((link) => {+ if (seen.has(link.href)) return false;+ seen.add(link.href);+ return true;+ });+};++export const hasRuntimeOperationalContext = (+ badges: ResourceDetailDrawerOperationalBadge[],+ links: ResourceDetailDrawerOperationalLink[],+): boolean => badges.length > 0 || links.length > 0;diff --git a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.tsindex a78f788b89..ee83e9cba6 100644--- a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts+++ b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts@@ -327,6 +327,10 @@ export const useResourceDetailDrawerDerivedState = (const config = discoveryConfig();if (!config) return null;+ if (config.resourceType === 'agent') {+ return null;+ }+const discoveryMode =config.resourceType === 'agent'? 'Host discovery'diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 85991726b9..723b20f1a3 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -988,7 +988,7 @@ describe('frontend resource type boundaries', () => {expect(resourceDetailDrawerStateSource).not.toContain('createResource(');expect(resourceDetailDrawerStateSource).not.toContain('MonitoringAPI.');expect(resourceDetailDrawerHistoryStateSource).toContain('createResource(');- expect(resourceDetailDrawerDerivedStateSource).toContain('buildWorkloadsHref');+ expect(resourceDetailDrawerDerivedStateSource).toContain('buildRelatedLinks');expect(resourceDetailDrawerDerivedStateSource).toContain("from './resourceDetailDrawerServiceModel'",);diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.pyindex 76a8f18585..2c0fbcac40 100644--- a/scripts/release_control/canonical_completion_guard_test.py+++ b/scripts/release_control/canonical_completion_guard_test.py@@ -503,6 +503,7 @@ class CanonicalCompletionGuardTest(unittest.TestCase):"frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts",+ "frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts","frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/hooks/__tests__/useDashboardTrends.test.ts",diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex cc8bbd2ce6..0e79dc75e5 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -126,6 +126,36 @@ class SubsystemLookupTest(unittest.TestCase):match["verification_requirement"]["exact_files"],)+ def test_lookup_paths_assigns_resource_detail_drawer_operational_model_to_unified_resources(self) -> None:+ result = lookup_paths(+ ["frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts"]+ )+ self.assertEqual(result["unowned_runtime_files"], [])+ self.assertEqual(+ {item["subsystem"] for item in result["impacted_subsystems"]},+ {"unified-resources"},+ )+ file_entry = result["files"][0]+ self.assertEqual(file_entry["classification"], "runtime")+ self.assertEqual(+ {match["subsystem"] for match in file_entry["matches"]},+ {"unified-resources"},+ )+ match = file_entry["matches"][0]+ self.assertEqual(+ match["contract"],+ "docs/release-control/v6/internal/subsystems/unified-resources.md",+ )+ self.assertEqual(match["lane_context"]["lane_id"], "L13")+ self.assertEqual(+ match["verification_requirement"]["id"],+ "resource-consumers",+ )+ self.assertIn(+ "frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx",+ match["verification_requirement"]["exact_files"],+ )+def test_lookup_paths_assigns_recent_alerts_panel_to_alerts(self) -> None:result = lookup_paths(["frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx"])self.assertEqual(result["unowned_runtime_files"], [])@@ -3968,6 +3998,7 @@ class SubsystemLookupTest(unittest.TestCase):"frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.workloads-link.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/infrastructureSelectors.test.ts",+ "frontend-modern/src/components/Infrastructure/__tests__/resourceDetailDrawerOperationalModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/resourceDetailMappers.test.ts","frontend-modern/src/features/infrastructure/__tests__/InfrastructurePageSurface.guardrails.test.ts","frontend-modern/src/hooks/__tests__/useDashboardTrends.test.ts",