Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

feat: surface AI confidence on expanded finding card

rcourtman6c5139c16d2c
diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsx
index 9da6fe3f8c..6937fb7767 100644
--- a/frontend-modern/src/components/AI/FindingsPanel.tsx
+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx
@@ -1313,6 +1313,18 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
{finding.recommendation}
</p>
</Show>
+ <Show when={finding.aiConfidence && finding.aiConfidence > 0}>
+ <p class="text-xs text-muted mt-1">
+ <span class="font-medium">Pulse confidence:</span>{' '}
+ {finding.aiConfidence! >= 0.8
+ ? 'High'
+ : finding.aiConfidence! >= 0.5
+ ? 'Moderate'
+ : 'Low'}
+ {' ('}
+ {Math.round(finding.aiConfidence! * 100)}%)
+ </p>
+ </Show>
<Show when={finding.previousResolvedFixSummary}>
<p class="text-sm text-base-content mt-2 px-2 py-1 rounded border border-emerald-200 bg-emerald-50/40 dark:border-emerald-800 dark:bg-emerald-950/30">
<span class="font-medium text-emerald-800 dark:text-emerald-300">
diff --git a/frontend-modern/src/stores/aiIntelligence.ts b/frontend-modern/src/stores/aiIntelligence.ts
index df483182af..71c1211b05 100644
--- a/frontend-modern/src/stores/aiIntelligence.ts
+++ b/frontend-modern/src/stores/aiIntelligence.ts
@@ -148,6 +148,7 @@ export interface UnifiedFinding {
previousResolvedFixSummary?: string;
recommendation?: string;
evidence?: string;
+ aiConfidence?: number;
detectedAt: string;
lastSeenAt?: string;
resolvedAt?: string;
@@ -233,6 +234,7 @@ function normalizeUnifiedFindingRecord(item: UnifiedFindingRecord, now: number):
previousResolvedFixSummary: item.previous_resolved_fix_summary,
recommendation: item.recommendation,
evidence: item.evidence,
+ aiConfidence: item.ai_confidence,
detectedAt: item.detected_at,
lastSeenAt: item.last_seen_at || item.detected_at,
resolvedAt: item.resolved_at,