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
Govern threshold slider presentation helper
rcourtman0922685b01ff
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 4c6f6d7641..f2ed432fa2 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -290,12 +290,15 @@ reintroducing dashboard-local state, reset drift, or inline config assemblyinto the shell.The dashboard threshold slider now follows that same pattern: the shell staysin `frontend-modern/src/components/Dashboard/ThresholdSlider.tsx`, while+metric-type text and fill presentation live in+`frontend-modern/src/utils/thresholdSliderPresentation.ts`, whileslider bounds math, thumb-position transforms, and title/label derivationslive in `frontend-modern/src/components/Dashboard/thresholdSliderModel.ts`and drag scroll-lock lifecycle lives in`frontend-modern/src/components/Dashboard/useThresholdSliderState.ts`.Future slider runtime changes must extend through those owners instead of-reintroducing mixed drag state and formatting logic into the shell.+reintroducing mixed drag state, type-color formatting, and presentation logic+into the shell.The dashboard stacked disk bar now follows that same pattern: the shell staysin `frontend-modern/src/components/Dashboard/StackedDiskBar.tsx`, whiledisk-capacity math, segment and tooltip derivation, max-disk labeling, anddiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 0287e77426..26df33a929 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -3303,6 +3303,7 @@"frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts","frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts","frontend-modern/src/components/Workloads/WorkloadsSummary.tsx",+ "frontend-modern/src/utils/thresholdSliderPresentation.ts","frontend-modern/src/utils/throughputPresentation.ts","internal/api/router_bench_test.go","internal/api/slo.go",@@ -3429,7 +3430,8 @@"frontend-modern/src/components/Infrastructure/useInfrastructureSummaryState.ts","frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts","frontend-modern/src/components/Infrastructure/useUnifiedResourceTableViewportSync.ts",- "frontend-modern/src/components/Workloads/WorkloadsSummary.tsx"+ "frontend-modern/src/components/Workloads/WorkloadsSummary.tsx",+ "frontend-modern/src/utils/thresholdSliderPresentation.ts"],"allow_same_subsystem_tests": false,"test_prefixes": [],@@ -3463,7 +3465,8 @@"frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.ts","frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx","frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",- "frontend-modern/src/components/Workloads/WorkloadsSummary.test.tsx"+ "frontend-modern/src/components/Workloads/WorkloadsSummary.test.tsx",+ "frontend-modern/src/utils/__tests__/thresholdSliderPresentation.test.ts"]},{diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.pyindex cf0e10aab7..cac792ade4 100644--- a/scripts/release_control/canonical_completion_guard_test.py+++ b/scripts/release_control/canonical_completion_guard_test.py@@ -3008,6 +3008,69 @@ index 1111111..2222222 100644],)+ def test_threshold_slider_presentation_change_requires_performance_contract(self):+ required = infer_impacted_subsystems(+ ["frontend-modern/src/utils/thresholdSliderPresentation.ts"]+ )+ self.assertEqual(set(required), {"performance-and-scalability"})++ performance = required["performance-and-scalability"]+ self.assertEqual(+ performance["contract"],+ "docs/release-control/v6/internal/subsystems/performance-and-scalability.md",+ )+ self.assertEqual(+ performance["touched_runtime_files"],+ ["frontend-modern/src/utils/thresholdSliderPresentation.ts"],+ )+ self.assertEqual(+ performance["verification_requirements"],+ [+ {+ "id": "dashboard-workload-hot-path",+ "label": "dashboard workload selector proof",+ "touched_runtime_files": [+ "frontend-modern/src/utils/thresholdSliderPresentation.ts"+ ],+ "allow_same_subsystem_tests": False,+ "test_prefixes": [],+ "exact_files": [+ "frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/dashboardSelectionModel.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadFilterConfigModel.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadRouteModel.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadRouteStateModel.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/dashboardWorkloadUrlSyncModel.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/DiskList.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/EnhancedCPUBar.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/StackedDiskBar.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useDashboardFilterState.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/useDashboardSelectionState.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/useDashboardWorkloadViewportSync.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useEnhancedCPUBarState.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useGroupedTableWindowing.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/useMetricBarState.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useStackedDiskBarState.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useStackedMemoryBarState.test.tsx",+ "frontend-modern/src/components/Dashboard/__tests__/useThresholdSliderState.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/workloadSelectors.test.ts",+ "frontend-modern/src/components/Dashboard/__tests__/workloadTopology.test.ts",+ "frontend-modern/src/components/Dashboard/GuestDrawer.test.tsx",+ "frontend-modern/src/components/Dashboard/MetricBar.test.tsx",+ "frontend-modern/src/components/Dashboard/StackedMemoryBar.test.tsx",+ "frontend-modern/src/components/Dashboard/ThresholdSlider.test.tsx",+ "frontend-modern/src/components/Infrastructure/__tests__/infrastructureSummaryModel.test.ts",+ "frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx",+ "frontend-modern/src/components/Infrastructure/__tests__/unifiedResourceTableStateModel.test.ts",+ "frontend-modern/src/components/Workloads/WorkloadsSummary.test.tsx",+ "frontend-modern/src/utils/__tests__/thresholdSliderPresentation.test.ts",+ ],+ }+ ],+ )+def test_monitoring_metrics_hot_path_uses_specific_proof_policy(self):monitoring_rule = next(rule for rule in load_subsystem_rules() if rule["id"] == "monitoring")requirements = build_verification_requirements(diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex 2f30a5b3c1..aff16ca8be 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -2837,6 +2837,32 @@ class SubsystemLookupTest(unittest.TestCase):"dashboard-workload-hot-path",)+ def test_lookup_paths_assigns_threshold_slider_presentation_to_performance_and_scalability(+ self,+ ) -> None:+ result = lookup_paths(["frontend-modern/src/utils/thresholdSliderPresentation.ts"])+ self.assertEqual(result["unowned_runtime_files"], [])+ self.assertEqual(+ {item["subsystem"] for item in result["impacted_subsystems"]},+ {"performance-and-scalability"},+ )+ file_entry = result["files"][0]+ self.assertEqual(file_entry["classification"], "runtime")+ self.assertEqual(+ {match["subsystem"] for match in file_entry["matches"]},+ {"performance-and-scalability"},+ )+ match = file_entry["matches"][0]+ self.assertEqual(+ match["contract"],+ "docs/release-control/v6/internal/subsystems/performance-and-scalability.md",+ )+ self.assertEqual(match["lane_context"]["lane_id"], "L10")+ self.assertEqual(+ match["verification_requirement"]["id"],+ "dashboard-workload-hot-path",+ )+def test_lookup_paths_assigns_dashboard_stacked_disk_bar_runtime_to_performance_and_scalability(self) -> None:result = lookup_paths([