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
Separate Patrol runtime issues from findings copy
rcourtman80c061cd4515
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 937501c95f..b651f5dd3a 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -85,7 +85,9 @@ Patrol-specific presentation helpers.active Patrol findings or Patrol runtime issues are still present. Thecanonical summary helper owns that conflict resolution so the visibleassessment title, description, metrics, and recommended next step all speak- from the same current findings state.+ from the same current findings state. Patrol-owned runtime issues must stay+ distinct from infrastructure findings in assessment copy rather than being+ described as infrastructure warning findings about Patrol itself.3. Update this contract whenever a new Patrol-specific page, store, helper, or presentation component becomes canonical runtime surface area4. Keep retired hosted-model and trial-like Patrol acquisition copy out of thenormal self-hosted GA app. Patrol may parse legacy transport fields, butdiff --git a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.tsindex a8eea75638..9f409b006c 100644--- a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts@@ -174,6 +174,52 @@ describe('getPatrolSummaryPresentation', () => {});});+ it('keeps Patrol runtime issues distinct from infrastructure warning findings', () => {+ expect(+ getPatrolAssessmentPresentation({+ overallHealth: {+ score: 65,+ grade: 'C',+ trend: 'stable',+ factors: [+ {+ name: 'Patrol coverage incomplete',+ impact: -0.35,+ description: 'Patrol coverage is incomplete.',+ category: 'coverage',+ },+ ],+ prediction:+ 'Patrol coverage is incomplete: recent activity was limited to scoped runs and ended with errors, so overall health is not fully verified.',+ },+ warningFindings: 2,+ activeFindings: [+ {+ status: 'active',+ severity: 'warning',+ resourceId: 'ai-service',+ resourceName: 'Pulse Patrol Service',+ title: 'Pulse Patrol: Provider connection issue',+ },+ {+ status: 'active',+ severity: 'warning',+ resourceId: 'backup-1',+ resourceName: 'delly',+ title: 'Backup failed',+ },+ ] as never,+ }),+ ).toEqual({+ title: 'Issues detected',+ description:+ 'Patrol surfaced 1 active warning finding in your infrastructure and 1 active Patrol runtime issue. Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.',+ eyebrow: 'Patrol assessment',+ compactLabel: 'Issues detected',+ tone: 'warning',+ });+ });+it('classifies patrol-owned service failures as runtime issues instead of infrastructure issues', () => {expect(getPatrolAssessmentPresentation({diff --git a/frontend-modern/src/utils/patrolSummaryPresentation.ts b/frontend-modern/src/utils/patrolSummaryPresentation.tsindex 2f531728b2..a6f40a5131 100644--- a/frontend-modern/src/utils/patrolSummaryPresentation.ts+++ b/frontend-modern/src/utils/patrolSummaryPresentation.ts@@ -198,6 +198,11 @@ function formatFindingCount(count: number, severity: 'critical' | 'warning'): streturn `${count} active ${severity} finding${count === 1 ? '' : 's'}`;}+function formatRuntimeIssueCount(count: number, severity: 'critical' | 'warning'): string {+ const severityLabel = severity === 'critical' ? 'critical ' : '';+ return `${count} active ${severityLabel}Patrol runtime issue${count === 1 ? '' : 's'}`;+}+function getRuntimeFindingSummaryLabel(finding: PatrolAssessmentFinding | undefined): string {const title = String(finding?.title || '').trim();if (!title) {@@ -486,14 +491,10 @@ function getFindingAssessmentDescription(args: {);}if (classified.runtimeCritical > 0) {- findingSummaryParts.push(- `${formatFindingCount(classified.runtimeCritical, 'critical')} about its own runtime`,- );+ findingSummaryParts.push(formatRuntimeIssueCount(classified.runtimeCritical, 'critical'));}if (classified.runtimeWarning > 0) {- findingSummaryParts.push(- `${formatFindingCount(classified.runtimeWarning, 'warning')} about its own runtime`,- );+ findingSummaryParts.push(formatRuntimeIssueCount(classified.runtimeWarning, 'warning'));}const findingSummary =