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
Move dashboard alerts panel into alerts owners
rcourtman41da1a64e94a
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex f323138c83..5c1f08b73b 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -25,6 +25,8 @@ operator-facing alert routing behavior for live runtime alerts.3. `internal/alerts/canonical_metric.go`4. `internal/alerts/canonical_lifecycle.go`5. `internal/alerts/unified_incidents.go`+6. `frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx`+7. `frontend-modern/src/utils/alertOverviewPresentation.ts`## Shared Boundaries@@ -154,6 +156,11 @@ Active alert card state, acknowledged badge, and primary/secondary actionbutton presentation now route through`frontend-modern/src/utils/alertOverviewPresentation.ts` instead of remaininginline in `frontend-modern/src/features/alerts/OverviewTab.tsx`.+Dashboard recent-alert rendering and dashboard alert summary/tone copy now+route through that same alert overview presentation owner and the alert-owned+`frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx` surface instead+of living as a dashboard-page-local panel plus a second dashboard-only alert+presentation helper.Alert threshold and schedule surfaces must now also treat`discoveryTarget` as optional frontend input and keep grouping-card state ondiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 0b198ffbde..b65604d392 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -335,11 +335,6 @@ must now keep both values routed through the same exported presentation helper.Feature cards such as RAID status may not call shadow local aliases that driftfrom the canonical shared class/variant helpers.-Active alert card state and action-button presentation must also route through-`frontend-modern/src/utils/alertOverviewPresentation.ts` instead of leaving-feature-local alert card styling inside-`frontend-modern/src/features/alerts/OverviewTab.tsx`.-Alert resource display labels used by the thresholds editor and alerts pagemust now route through the shared helper in`frontend-modern/src/features/alerts/helpers.ts` instead of rebuildingdiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex aaaf848a6f..4e4994c4e0 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -800,7 +800,8 @@"internal/alerts/"],"owned_files": [- "frontend-modern/src/pages/Alerts.tsx"+ "frontend-modern/src/pages/Alerts.tsx",+ "frontend-modern/src/utils/alertOverviewPresentation.ts"],"verification": {"allow_same_subsystem_tests": true,@@ -855,13 +856,15 @@"frontend-modern/src/features/alerts/"],"match_files": [- "frontend-modern/src/pages/Alerts.tsx"+ "frontend-modern/src/pages/Alerts.tsx",+ "frontend-modern/src/utils/alertOverviewPresentation.ts"],"allow_same_subsystem_tests": false,"test_prefixes": [],"exact_files": ["frontend-modern/src/components/Alerts/__tests__/BulkEditDialog.test.tsx","frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsx",+ "frontend-modern/src/components/Alerts/__tests__/RecentAlertsPanel.test.tsx","frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx","frontend-modern/src/components/Alerts/EmailProviderSelect.test.tsx","frontend-modern/src/components/Alerts/ResourceTable.test.tsx",@@ -874,7 +877,8 @@"frontend-modern/src/features/alerts/__tests__/OverviewTab.total24h.test.tsx","frontend-modern/src/features/alerts/identity.test.ts","frontend-modern/src/features/alerts/thresholds/__tests__/helpers.test.ts",- "frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts"+ "frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts",+ "frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts"]},{diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex fa320bef2d..d9c59942ca 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -232,6 +232,11 @@ side: `frontend-modern/src/pages/Dashboard.tsx`,`frontend-modern/src/pages/DashboardPanels/StoragePanel.tsx` must stay onexplicit direct dashboard/storage proof routing instead of borrowing release-control coverage only from the broader storage page and model surfaces.+That route shell now also composes the recent-alerts widget directly from the+alert-owned `frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx`+surface instead of via a dashboard-panels-local alert implementation, so the+dashboard route stays storage/recovery-owned while alert widget runtime remains+owned by the alerts subsystem.The shared recovery type contract must be pinned the same way:`frontend-modern/src/types/recovery.ts` must stay on the explicit`recovery-product-surface` proof path instead of riding indirectly on route ordiff --git a/frontend-modern/src/pages/DashboardPanels/RecentAlertsPanel.tsx b/frontend-modern/src/components/Alerts/RecentAlertsPanel.tsxsimilarity index 91%rename from frontend-modern/src/pages/DashboardPanels/RecentAlertsPanel.tsxrename to frontend-modern/src/components/Alerts/RecentAlertsPanel.tsxindex e8b16a3b7b..51488610cc 100644--- a/frontend-modern/src/pages/DashboardPanels/RecentAlertsPanel.tsx+++ b/frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx@@ -5,12 +5,12 @@ import { AlertsAPI } from '@/api/alerts';import { formatRelativeTime } from '@/utils/format';import { notificationStore } from '@/stores/notifications';import {- DASHBOARD_ALERTS_EMPTY_STATE,-} from '@/utils/dashboardAlertPresentation';+ ALERTS_EMPTY_STATE,+ getDashboardAlertSummaryText,+} from '@/utils/alertOverviewPresentation';import {getAlertSeverityBadgeClass,getAlertSeverityCompactLabel,- getAlertSeverityTextClass,} from '@/utils/alertSeverityPresentation';import type { Alert } from '@/types/api';import BellIcon from 'lucide-solid/icons/bell';@@ -41,6 +41,12 @@ export function RecentAlertsPanel(props: RecentAlertsPanelProps) {const [ackAllLoading, setAckAllLoading] = createSignal(false);const unackedAlerts = createMemo(() => props.alerts.filter((a) => !a.acknowledged));+ const alertSummaryText = createMemo(() =>+ getDashboardAlertSummaryText({+ activeCritical: props.criticalCount,+ activeWarning: props.warningCount,+ }),+ );const handleAck = async (alert: Alert) => {setAckLoading(alert.id);@@ -113,20 +119,11 @@ export function RecentAlertsPanel(props: RecentAlertsPanelProps) {when={props.alerts.length > 0}fallback={<p class="text-xs font-medium text-emerald-700 dark:text-emerald-300 pt-0.5">- {DASHBOARD_ALERTS_EMPTY_STATE}+ {ALERTS_EMPTY_STATE}</p>}>- <p class="text-xs text-muted mb-1.5">- <span class={`font-mono font-semibold ${getAlertSeverityTextClass('critical')}`}>- {props.criticalCount}- </span>{' '}- critical ·{' '}- <span class={`font-mono font-semibold ${getAlertSeverityTextClass('warning')}`}>- {props.warningCount}- </span>{' '}- warning- </p>+ <p class="text-xs text-muted mb-1.5">{alertSummaryText()}</p><ul class="space-y-0.5" role="list"><For each={recent()}>diff --git a/frontend-modern/src/pages/DashboardPanels/__tests__/RecentAlertsPanel.test.tsx b/frontend-modern/src/components/Alerts/__tests__/RecentAlertsPanel.test.tsxsimilarity index 100%rename from frontend-modern/src/pages/DashboardPanels/__tests__/RecentAlertsPanel.test.tsxrename to frontend-modern/src/components/Alerts/__tests__/RecentAlertsPanel.test.tsxdiff --git a/frontend-modern/src/pages/Dashboard.tsx b/frontend-modern/src/pages/Dashboard.tsxindex 50891bf190..0ec6c75322 100644--- a/frontend-modern/src/pages/Dashboard.tsx+++ b/frontend-modern/src/pages/Dashboard.tsx@@ -26,12 +26,12 @@ import {ActionRequiredPanel,ProblemResourcesTable,KPIStrip,- RecentAlertsPanel,RecoveryStatusPanel,StoragePanel,TrendCharts,DashboardCustomizer,} from './DashboardPanels';+import { RecentAlertsPanel } from '@/components/Alerts/RecentAlertsPanel';import type { DashboardWidgetDef, DashboardWidgetId } from './DashboardPanels/dashboardWidgets';export default function Dashboard() {const { connected, reconnecting, reconnect, activeAlerts } = useWebSocket();diff --git a/frontend-modern/src/pages/DashboardPanels/KPIStrip.tsx b/frontend-modern/src/pages/DashboardPanels/KPIStrip.tsxindex 80cd0d2744..af3877c917 100644--- a/frontend-modern/src/pages/DashboardPanels/KPIStrip.tsx+++ b/frontend-modern/src/pages/DashboardPanels/KPIStrip.tsx@@ -5,7 +5,7 @@ import {WORKLOADS_PATH,buildStoragePath,} from '@/routing/resourceLinks';-import { getDashboardAlertTone } from '@/utils/dashboardAlertPresentation';+import { getDashboardAlertTone } from '@/utils/alertOverviewPresentation';import { getDashboardKpiPresentation } from '@/utils/dashboardKpiPresentation';import { getAlertSeverityTextClass } from '@/utils/alertSeverityPresentation';import { formatBytes } from '@/utils/format';diff --git a/frontend-modern/src/pages/DashboardPanels/index.ts b/frontend-modern/src/pages/DashboardPanels/index.tsindex 9e035b9ee2..ec2a638c23 100644--- a/frontend-modern/src/pages/DashboardPanels/index.ts+++ b/frontend-modern/src/pages/DashboardPanels/index.ts@@ -5,5 +5,4 @@ export { TrendCharts } from './TrendCharts';export { CompositionPanel } from './CompositionPanel';export { RecoveryStatusPanel } from './RecoveryStatusPanel';export { StoragePanel } from './StoragePanel';-export { RecentAlertsPanel } from './RecentAlertsPanel';export { DashboardCustomizer } from './DashboardCustomizer';diff --git a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsxindex 764e3f55bf..dec716dd7a 100644--- a/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx+++ b/frontend-modern/src/pages/__tests__/DashboardPage.test.tsx@@ -3,6 +3,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';import type { DashboardOverview } from '@/hooks/useDashboardOverview';import type { DashboardRecoverySummary } from '@/hooks/useDashboardRecovery';import DashboardPage from '@/pages/Dashboard';+import dashboardPageSource from '@/pages/Dashboard.tsx?raw';let unifiedLoading = false;let unifiedResources: any[] = [];@@ -124,6 +125,10 @@ describe('Dashboard page module contract', () => {expect(typeof DashboardPage).toBe('function');});+ it('routes the alerts dashboard widget through the alert-owned surface', () => {+ expect(dashboardPageSource).toContain("from '@/components/Alerts/RecentAlertsPanel'");+ });+it('renders loading skeleton blocks when resources are loading', () => {unifiedLoading = true;diff --git a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.tsindex d99bc1c066..0e291d4508 100644--- a/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts@@ -25,6 +25,8 @@ import {ALERT_TIMELINE_RETRY_LABEL,ALERT_TIMELINE_UNAVAILABLE_STATE,ALERTS_THRESHOLD_HINT,+ getDashboardAlertSummaryText,+ getDashboardAlertTone,getAlertOverviewAcknowledgedBadgeClass,getAlertOverviewCardPresentation,getAlertOverviewPrimaryActionClass,@@ -44,6 +46,15 @@ import {} from '@/utils/alertOverviewPresentation';describe('alertOverviewPresentation', () => {+ it('returns canonical dashboard alert tone and summary helpers', () => {+ expect(getDashboardAlertTone({ activeCritical: 2, activeWarning: 5 })).toBe('danger');+ expect(getDashboardAlertTone({ activeCritical: 0, activeWarning: 3 })).toBe('warning');+ expect(getDashboardAlertTone({ activeCritical: 0, activeWarning: 0 })).toBe('default');+ expect(getDashboardAlertSummaryText({ activeCritical: 2, activeWarning: 3 })).toBe(+ '2 critical · 3 warning',+ );+ });+it('returns canonical alert overview empty-state copy', () => {expect(ALERTS_EMPTY_STATE).toBe('No active alerts');expect(ALERTS_THRESHOLD_HINT).toBe('Alerts will appear here when thresholds are exceeded');diff --git a/frontend-modern/src/utils/__tests__/dashboardAlertPresentation.test.ts b/frontend-modern/src/utils/__tests__/dashboardAlertPresentation.test.tsdeleted file mode 100644index 524b3d8743..0000000000--- a/frontend-modern/src/utils/__tests__/dashboardAlertPresentation.test.ts+++ /dev/null@@ -1,27 +0,0 @@-import { describe, expect, it } from 'vitest';-import {- DASHBOARD_ALERTS_EMPTY_STATE,- getDashboardAlertSummaryText,- getDashboardAlertTone,-} from '@/utils/dashboardAlertPresentation';--describe('dashboardAlertPresentation', () => {- it('prefers danger tone when critical alerts are active', () => {- expect(getDashboardAlertTone({ activeCritical: 2, activeWarning: 5 })).toBe('danger');- });-- it('uses warning tone when only warnings are active', () => {- expect(getDashboardAlertTone({ activeCritical: 0, activeWarning: 3 })).toBe('warning');- });-- it('falls back to default tone when no alerts are active', () => {- expect(getDashboardAlertTone({ activeCritical: 0, activeWarning: 0 })).toBe('default');- });-- it('returns canonical summary copy', () => {- expect(DASHBOARD_ALERTS_EMPTY_STATE).toBe('No active alerts');- expect(getDashboardAlertSummaryText({ activeCritical: 2, activeWarning: 3 })).toBe(- '2 critical · 3 warning',- );- });-});diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex fb7053c342..d4cbe5a6a3 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -110,7 +110,7 @@ import dashboardCompositionPresentationSource from '@/utils/dashboardCompositionimport problemResourcesTableSource from '@/pages/DashboardPanels/ProblemResourcesTable.tsx?raw';import problemResourcePresentationSource from '@/utils/problemResourcePresentation.ts?raw';import kpiStripSource from '@/pages/DashboardPanels/KPIStrip.tsx?raw';-import recentAlertsPanelSource from '@/pages/DashboardPanels/RecentAlertsPanel.tsx?raw';+import recentAlertsPanelSource from '@/components/Alerts/RecentAlertsPanel.tsx?raw';import storagePanelSource from '@/pages/DashboardPanels/StoragePanel.tsx?raw';import recoveryStatusPanelSource from '@/pages/DashboardPanels/RecoveryStatusPanel.tsx?raw';import guestRowSource from '@/components/Dashboard/GuestRow.tsx?raw';@@ -131,7 +131,6 @@ import dashboardGuestPresentationSource from '@/utils/dashboardGuestPresentationimport orgScopeSource from '@/utils/orgScope.ts?raw';import workloadsSource from '@/utils/workloads.ts?raw';import infrastructureSummaryCacheSource from '@/utils/infrastructureSummaryCache.ts?raw';-import dashboardAlertPresentationSource from '@/utils/dashboardAlertPresentation.ts?raw';import dashboardStoragePresentationSource from '@/utils/dashboardStoragePresentation.ts?raw';import dashboardRecoveryPresentationSource from '@/utils/dashboardRecoveryPresentation.ts?raw';import dashboardKpiPresentationSource from '@/utils/dashboardKpiPresentation.ts?raw';@@ -1269,16 +1268,15 @@ describe('frontend resource type boundaries', () => {expect(kpiStripSource).not.toContain('const alertsTone =');expect(kpiStripSource).not.toContain('border-l-[3px] border-l-blue-500');expect(dashboardKpiPresentationSource).toContain('export function getDashboardKpiPresentation');- expect(recentAlertsPanelSource).toContain('getAlertSeverityTextClass');expect(recentAlertsPanelSource).toContain('getAlertSeverityCompactLabel');- expect(recentAlertsPanelSource).toContain('@/utils/dashboardAlertPresentation');+ expect(recentAlertsPanelSource).toContain('@/utils/alertOverviewPresentation');+ expect(recentAlertsPanelSource).not.toContain('getAlertSeverityTextClass');expect(recentAlertsPanelSource).not.toContain("alert.level === 'critical' ? 'CRIT' : 'WARN'");expect(recentAlertsPanelSource).not.toContain('No active alerts');- expect(dashboardAlertPresentationSource).toContain('export function getDashboardAlertTone');- expect(dashboardAlertPresentationSource).toContain(+ expect(alertOverviewPresentationSource).toContain('export function getDashboardAlertTone');+ expect(alertOverviewPresentationSource).toContain('export function getDashboardAlertSummaryText',);- expect(dashboardAlertPresentationSource).toContain('export const DASHBOARD_ALERTS_EMPTY_STATE');expect(storagePanelSource).toContain('@/utils/dashboardStoragePresentation');expect(storagePanelSource).not.toContain('No storage resources');expect(recoveryStatusPanelSource).toContain('@/utils/dashboardRecoveryPresentation');diff --git a/frontend-modern/src/utils/alertOverviewPresentation.ts b/frontend-modern/src/utils/alertOverviewPresentation.tsindex 361e11c80f..68d2fbfc49 100644--- a/frontend-modern/src/utils/alertOverviewPresentation.ts+++ b/frontend-modern/src/utils/alertOverviewPresentation.ts@@ -30,6 +30,13 @@ export const ALERTS_PAGE_HISTORY_TITLE = 'Alert History';export const ALERTS_PAGE_HISTORY_DESCRIPTION ='Review previously triggered alerts and their resolution timeline.';+export type DashboardAlertTone = 'default' | 'warning' | 'danger';++export interface DashboardAlertOverview {+ activeCritical: number;+ activeWarning: number;+}+export interface AlertOverviewCardPresentation {cardClassName: string;iconClassName: string;@@ -69,6 +76,16 @@ export function getAlertListEmptyState(showAcknowledged: boolean): string {return showAcknowledged ? ALERTS_EMPTY_STATE : 'No unacknowledged alerts';}+export function getDashboardAlertTone(overview: DashboardAlertOverview): DashboardAlertTone {+ if (overview.activeCritical > 0) return 'danger';+ if (overview.activeWarning > 0) return 'warning';+ return 'default';+}++export function getDashboardAlertSummaryText(overview: DashboardAlertOverview): string {+ return `${overview.activeCritical} critical · ${overview.activeWarning} warning`;+}+export function getAlertTimelineLoadingState() {return {text: ALERT_TIMELINE_LOADING_STATE,diff --git a/frontend-modern/src/utils/dashboardAlertPresentation.ts b/frontend-modern/src/utils/dashboardAlertPresentation.tsdeleted file mode 100644index 13dffdc93a..0000000000--- a/frontend-modern/src/utils/dashboardAlertPresentation.ts+++ /dev/null@@ -1,20 +0,0 @@-import { ALERTS_EMPTY_STATE } from '@/utils/alertOverviewPresentation';--export type DashboardAlertTone = 'default' | 'warning' | 'danger';--export interface DashboardAlertOverview {- activeCritical: number;- activeWarning: number;-}--export const DASHBOARD_ALERTS_EMPTY_STATE = ALERTS_EMPTY_STATE;--export function getDashboardAlertTone(overview: DashboardAlertOverview): DashboardAlertTone {- if (overview.activeCritical > 0) return 'danger';- if (overview.activeWarning > 0) return 'warning';- return 'default';-}--export function getDashboardAlertSummaryText(overview: DashboardAlertOverview): string {- return `${overview.activeCritical} critical · ${overview.activeWarning} warning`;-}diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.pyindex 5a9c61dbec..597ba53728 100644--- a/scripts/release_control/canonical_completion_guard_test.py+++ b/scripts/release_control/canonical_completion_guard_test.py@@ -2766,6 +2766,7 @@ index 1111111..2222222 100644"frontend-modern/src/components/Alerts/WebhookConfig.test.tsx","frontend-modern/src/components/Alerts/__tests__/BulkEditDialog.test.tsx","frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsx",+ "frontend-modern/src/components/Alerts/__tests__/RecentAlertsPanel.test.tsx","frontend-modern/src/components/Alerts/__tests__/ThresholdsTable.test.tsx","frontend-modern/src/features/alerts/__tests__/OverviewTab.emptystate.test.tsx","frontend-modern/src/features/alerts/__tests__/OverviewTab.timelineerror.test.tsx",@@ -2774,6 +2775,7 @@ index 1111111..2222222 100644"frontend-modern/src/features/alerts/identity.test.ts","frontend-modern/src/features/alerts/thresholds/__tests__/helpers.test.ts","frontend-modern/src/pages/__tests__/Alerts.helpers.test.ts",+ "frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts",],}],diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex 11f3501033..626f973959 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -66,6 +66,44 @@ class SubsystemLookupTest(unittest.TestCase):"shared-component-guardrails",)+ 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"], [])+ self.assertEqual(+ {item["subsystem"] for item in result["impacted_subsystems"]},+ {"alerts"},+ )+ file_entry = result["files"][0]+ self.assertEqual(file_entry["classification"], "runtime")+ self.assertEqual({match["subsystem"] for match in file_entry["matches"]}, {"alerts"})+ match = file_entry["matches"][0]+ self.assertEqual(match["contract"], "docs/release-control/v6/internal/subsystems/alerts.md")+ self.assertEqual(match["lane_context"]["lane_id"], "L6")+ self.assertEqual(match["verification_requirement"]["id"], "alerts-frontend-surface")+ self.assertIn(+ "frontend-modern/src/components/Alerts/__tests__/RecentAlertsPanel.test.tsx",+ match["verification_requirement"]["exact_files"],+ )++ def test_lookup_paths_assigns_alert_overview_presentation_to_alerts(self) -> None:+ result = lookup_paths(["frontend-modern/src/utils/alertOverviewPresentation.ts"])+ self.assertEqual(result["unowned_runtime_files"], [])+ self.assertEqual(+ {item["subsystem"] for item in result["impacted_subsystems"]},+ {"alerts"},+ )+ file_entry = result["files"][0]+ self.assertEqual(file_entry["classification"], "runtime")+ self.assertEqual({match["subsystem"] for match in file_entry["matches"]}, {"alerts"})+ match = file_entry["matches"][0]+ self.assertEqual(match["contract"], "docs/release-control/v6/internal/subsystems/alerts.md")+ self.assertEqual(match["lane_context"]["lane_id"], "L6")+ self.assertEqual(match["verification_requirement"]["id"], "alerts-frontend-surface")+ self.assertIn(+ "frontend-modern/src/utils/__tests__/alertOverviewPresentation.test.ts",+ match["verification_requirement"]["exact_files"],+ )+def test_lookup_paths_assigns_organization_billing_panel_to_cloud_paid(self) -> None:result = lookup_paths(["frontend-modern/src/components/Settings/OrganizationBillingPanel.tsx"])self.assertEqual(result["unowned_runtime_files"], [])