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
Flatten investigation context rows
rcourtmane151fd5ccca0
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex f31319fd4b..0a9a118bc8 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -249,8 +249,12 @@ inside a collapsed `Investigation context` disclosure, so runtime status andidentity stay primary while secondary AI and policy signals remain availablewithout competing with the first-screen monitoring story.Inside that disclosure, the AI intelligence summary now reads as compact-label/value rows instead of metric tiles, so the opened investigation surface-stays scan-first before the change summary and correlation reveal appear.+label/value rows instead of metric tiles or nested cards, so the opened+investigation surface stays scan-first before the change summary and+correlation reveal appear.+Inside that disclosure, the governance summary also stays label-first with+compact rows and badges instead of a second card stack, so policy detail reads+as supporting context rather than another dashboard.Inside that disclosure, learned dependency and correlation detail now sitsbehind its own reveal instead of rendering at full depth immediately, so theopened investigation surface stays label-first and leaves relationship patterndiff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 6d97abd7ea..59fc29ea7b 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -1827,131 +1827,123 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {showLabel="Show context"hideLabel="Hide context"class="mt-3 rounded border border-border bg-surface p-3"- contentClass="mt-3 grid gap-3 md:grid-cols-2"+ contentClass="mt-3 space-y-3"dataTestId="resource-investigation-context"><Show when={resourceIntelligence()}>{(intel) => (- <div class="rounded border border-border bg-surface p-3">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- AI Intelligence+ <div class="space-y-1.5 text-[11px]">+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted uppercase tracking-wide">AI Intelligence</span></div>- <div class="space-y-1.5 text-[11px]">- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Health</span>- <span class="font-semibold text-base-content">- {intel().health.grade} · {Math.round(intel().health.score)}/100- </span>- </div>- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Trend</span>- <span class="font-semibold capitalize text-base-content">- {intel().health.trend}- </span>- </div>- <div class="flex items-center justify-between gap-2">- <span class="text-muted">Notes</span>- <span class="font-semibold text-base-content">{intel().note_count}</span>- </div>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Health</span>+ <span class="font-semibold text-base-content">+ {intel().health.grade} · {Math.round(intel().health.score)}/100+ </span></div>- <div class="mt-3 space-y-1.5 text-[11px]">- <ResourceChangeSummary- class="space-y-0"- title="Latest canonical change"- changes={intel().recent_changes}- resolveResourceLabel={resolveResourceLabel}- maxChanges={1}- compact- />- <Show when={hasCorrelationContext()}>- <div class="rounded border border-border bg-surface-hover px-2 py-2">- <div class="flex flex-wrap items-center justify-between gap-2">- <div>- <div class="text-[10px] font-medium uppercase tracking-wide text-base-content">- Correlation context- </div>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Trend</span>+ <span class="font-semibold capitalize text-base-content">+ {intel().health.trend}+ </span>+ </div>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Notes</span>+ <span class="font-semibold text-base-content">{intel().note_count}</span>+ </div>+ <ResourceChangeSummary+ class="space-y-0"+ title="Latest canonical change"+ changes={intel().recent_changes}+ resolveResourceLabel={resolveResourceLabel}+ maxChanges={1}+ compact+ />+ <Show when={hasCorrelationContext()}>+ <div class="rounded border border-border bg-surface-hover px-2 py-2">+ <div class="flex flex-wrap items-center justify-between gap-2">+ <div>+ <div class="text-[10px] font-medium uppercase tracking-wide text-base-content">+ Correlation context</div>- <button- type="button"- onClick={() => setShowCorrelationContext((value) => !value)}- class="inline-flex items-center rounded-md border border-border bg-surface px-2.5 py-1 text-[10px] font-medium text-base-content transition-colors hover:bg-surface-hover"- >- {showCorrelationContext() ? 'Hide correlations' : 'Show correlations'}- </button></div>-- <Show when={showCorrelationContext()}>- <div class="mt-3">- <ResourceCorrelationSummary- title="Correlation context"- dependencies={resourceDependencies()}- dependents={resourceDependents()}- correlations={resourceCorrelations()}- resolveResourceLabel={resolveResourceLabel}- showLastSeen- />- </div>- </Show>+ <button+ type="button"+ onClick={() => setShowCorrelationContext((value) => !value)}+ class="inline-flex items-center rounded-md border border-border bg-surface px-2.5 py-1 text-[10px] font-medium text-base-content transition-colors hover:bg-surface-hover"+ >+ {showCorrelationContext() ? 'Hide correlations' : 'Show correlations'}+ </button></div>- </Show>- </div>++ <Show when={showCorrelationContext()}>+ <div class="mt-3">+ <ResourceCorrelationSummary+ title="Correlation context"+ dependencies={resourceDependencies()}+ dependents={resourceDependents()}+ correlations={resourceCorrelations()}+ resolveResourceLabel={resolveResourceLabel}+ showLastSeen+ />+ </div>+ </Show>+ </div>+ </Show></div>)}</Show><Show when={hasGovernanceData()}>- <div class="rounded border border-border bg-surface p-3">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Data Governance- </div>- <div class="grid gap-2 sm:grid-cols-2">- <Show when={props.resource.policy}>- <div class="rounded border border-border bg-surface-hover px-2 py-1.5">- <div class="text-[10px] text-muted">Sensitivity</div>- <div class="text-sm font-semibold text-base-content">- {getResourceSensitivityLabel(props.resource.policy?.sensitivity)}- </div>- </div>- <div class="rounded border border-border bg-surface-hover px-2 py-1.5">- <div class="text-[10px] text-muted">Routing</div>- <div class="text-sm font-semibold text-base-content">- {getResourceRoutingScopeLabel(props.resource.policy?.routing.scope)}- </div>- </div>- </Show>- <Show when={policyRedactions().length > 0 || governanceSummary()}>- <div class="rounded border border-border bg-surface-hover px-2 py-1.5">- <div class="text-[10px] text-muted">Redactions</div>- <div class="text-sm font-semibold text-base-content">- {policyRedactions().length}- </div>- </div>- </Show>+ <div class="space-y-1.5 text-[11px]">+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted uppercase tracking-wide">Data Governance</span></div>- <div class="mt-3 space-y-1.5 text-[11px]">- <Show when={policyRedactions().length > 0}>- <div class="flex flex-col gap-1">- <span class="text-muted">Redaction labels</span>- <div class="flex flex-wrap gap-1">- <For each={policyRedactions()}>- {(label) => (- <span class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">- {label}- </span>- )}- </For>- </div>+ <Show when={props.resource.policy}>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Sensitivity</span>+ <span class="font-semibold text-base-content">+ {getResourceSensitivityLabel(props.resource.policy?.sensitivity)}+ </span>+ </div>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Routing</span>+ <span class="font-semibold text-base-content">+ {getResourceRoutingScopeLabel(props.resource.policy?.routing.scope)}+ </span>+ </div>+ </Show>+ <Show when={policyRedactions().length > 0 || governanceSummary()}>+ <div class="flex items-center justify-between gap-2">+ <span class="text-muted">Redactions</span>+ <span class="font-semibold text-base-content">+ {policyRedactions().length}+ </span>+ </div>+ </Show>+ <Show when={policyRedactions().length > 0}>+ <div class="flex flex-col gap-1">+ <span class="text-muted">Redaction labels</span>+ <div class="flex flex-wrap gap-1">+ <For each={policyRedactions()}>+ {(label) => (+ <span class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">+ {label}+ </span>+ )}+ </For></div>- </Show>- <Show when={governanceSummary()}>- <div class="flex flex-col gap-1">- <span class="text-muted">AI-Safe Summary</span>- <div class="rounded border border-border bg-surface-hover px-2 py-1.5 text-[10px] text-base-content">- {governanceSummary()}- </div>+ </div>+ </Show>+ <Show when={governanceSummary()}>+ <div class="flex flex-col gap-1">+ <span class="text-muted">AI-Safe Summary</span>+ <div class="rounded border border-border bg-surface-hover px-2 py-1.5 text-[10px] text-base-content">+ {governanceSummary()}</div>- </Show>- </div>+ </div>+ </Show></div></Show></SupportDisclosure>diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex 22d5933e22..8e9db9f4e4 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -245,6 +245,11 @@ describe('ResourceDetailDrawer change history section', () => {fireEvent.click(screen.getByRole('button', { name: 'Show context' }));await screen.findByText('AI Intelligence');+ expect(+ screen+ .getByTestId('resource-investigation-context')+ .querySelectorAll('.rounded.border.border-border.bg-surface.p-3').length,+ ).toBe(0);expect(screen.getByText('Health')).toBeInTheDocument();expect(screen.getByText('A · 92/100')).toBeInTheDocument();expect(screen.getByText('Trend')).toBeInTheDocument();