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
Simplify Patrol assessment summary
rcourtman0de1ebb3c2c3
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex e9922521b7..7cc19afc2f 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -636,7 +636,7 @@ the canonical monitored-system blocked payload.13. Keep tenant AI handler wiring on canonical provider ownership: `internal/api/ai_handlers.go` may wire tenant `ReadState` and tenant-scoped unified-resource providers into AI services, but it must not revive tenant snapshot-provider bridges once Patrol can initialize and verify from those canonical providers directly.14. Keep Patrol status transport semantics explicit in that same AI handler layer: the Patrol status endpoint must carry machine-readable runtime availability such as blocked, running, disabled, active, or unavailable rather than asking frontend consumers to infer operator state from stale summaries or run history.15. Keep legacy Patrol quickstart transport semantics retired from the public v6 GA contract: ordinary AI settings and Patrol status payloads must not expose quickstart credit/status fields, and any stale hosted-model blocked copy that survives from compatibility state must normalize back to provider/local-model setup rather than presenting credit badges or acquisition prompts.-16. Keep Patrol intelligence summary transport semantics single-voiced: the canonical overall-health payload and Patrol run-history payload together must support one primary assessment plus one explicit verification explanation, and frontend consumers must not need to derive a second compact assessment or verification verdict row from the same payloads beneath the primary summary card.+16. Keep Patrol intelligence summary transport semantics single-voiced: the canonical overall-health payload and Patrol run-history payload together must support one primary assessment plus one explicit verification explanation, and frontend consumers must not need to derive a second compact assessment or verification verdict row from the same payloads beneath the primary assessment strip.That same transport split now supports the visible Patrol recommended nextstep without adding another API field: the frontend summary contract derivesthe recommendation from existing overall-health, run-history, active@@ -645,6 +645,10 @@ the canonical monitored-system blocked payload.bounded action kind. Those action kinds map back to existing API-backedPatrol controls and approval/finding filters; recommendation transportmust not become a new execution or approval API.+ The API contract should stay presentation-neutral here: it supplies the+ score, current risk facts, verification facts, and action state needed for a+ compact operator summary, but it must not imply a hero, card, or duplicate+ verdict layout.17. Keep Pulse Mobile relay credential minting and permission ownership on backend ownership: `internal/api/router_routes_auth_security.go`, `internal/api/security_tokens.go`, `internal/api/auth.go`, `internal/api/relay_mobile_capability.go`, `internal/api/router_routes_ai_relay.go`, and `frontend-modern/src/api/security.ts` may expose the canonical mobile runtime token creator and governed route gates, but browser callers must only consume that route and must not define the mobile runtime scope, compatibility gate list, route inventory, or token-purpose metadata locally.18. Keep hosted tenant browser-session precedence on the shared auth boundary: `internal/api/auth.go`, `internal/api/contract_test.go`, and hosted tenant callers must treat a valid `pulse_session` as authoritative before any API-only token fallback or no-local-auth anonymous fallback, so cloud handoff can continue into protected hosted routes without flattening the operator back to `anonymous` or forcing a browser session through bearer-token-only mode after the tenant has minted API tokens.That same shared auth boundary also owns hosted handoff authorization. `internal/api/cloud_handoff.go`,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex da63940b6d..1589faad7a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1674,20 +1674,20 @@ must not render a green healthy empty state from `0 active findings` alonewhen the owning Patrol runtime or overall-health summary is degraded, blocked,or not fully verified.The same hierarchy also applies inside the Patrol summary shell: once the-primary summary card states Patrol's assessment and verification basis,-supporting metric strips under that card must stay metric-oriented and must-not repeat assessment or verification labels as a second compact verdict row.-That same summary shell should also keep the shared page-card base neutral:-severity belongs in compact header accents, icon chips, and badges rather-than turning the entire full-width summary into a tinted warning banner that-breaks the surrounding Pulse surface language.+primary assessment strip states Patrol's current risk and verification basis,+supporting metrics under that strip must stay metric-oriented and must not+repeat assessment or verification labels as a second compact verdict row.+That same summary shell should also keep the shared Pulse surface neutral:+severity belongs in compact accents, inline readouts, and badges rather than+turning the whole assessment into a tinted warning banner, nested card, or+hero-style block that breaks the surrounding operator workflow.That same summary-shell rule also applies to timing metadata: if the header,verification card, or findings footer already presents the governed Patrolactivity timestamp, the summary chip row must not add another recency badgethat competes with those owned timing surfaces.The same ownership split applies to supporting counts: if the Patrol summarysurface renders the metric strip for active findings, warnings, criticals, and-fixes, the primary summary card should not repeat those same counts in badge+fixes, the primary assessment strip should not repeat those same counts in badgeform beside the assessment and verification copy.That same ownership rule applies to empty-state timing metadata. When thePatrol page header already carries schedule and recency context, the findingsdiff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 7c52e0d491..802e565997 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -408,6 +408,12 @@ Patrol-specific presentation helpers.approval-required mode, present a source-named visible drawer briefing, andframe Assistant as explanation and next-step review rather than execution orautomatic retry authority.+9. Keep the normal Patrol assessment summary plain and operator-first rather+ than a hero-style or decorative card surface. The default collapsed state+ should show the Patrol assessment, score, concise current-risk copy, one+ recommended next step, and one route-owned action. Verification detail,+ supporting metrics, and whole-assessment Assistant discussion belong behind+ the details expansion unless Assistant itself is the recommended action.## Current Statediff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsxindex 4c9c98825b..eeea1a5f5a 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx@@ -1,9 +1,7 @@import { createMemo, For, Show } from 'solid-js';import ActivityIcon from 'lucide-solid/icons/activity';-import ShieldAlertIcon from 'lucide-solid/icons/shield-alert';import CheckCircleIcon from 'lucide-solid/icons/check-circle';import AlertCircleIcon from 'lucide-solid/icons/alert-circle';-import AlertTriangleIcon from 'lucide-solid/icons/alert-triangle';import ChevronDownIcon from 'lucide-solid/icons/chevron-down';import ChevronUpIcon from 'lucide-solid/icons/chevron-up';import MessageSquareIcon from 'lucide-solid/icons/message-square';@@ -117,9 +115,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatruns: state.patrolRunHistory.value() ?? [],}),);- const assessmentShellPresentation = createMemo(() =>- getPatrolAssessmentShellPresentation(assessment().tone),- );const activeFindingsSummaryPresentation = createMemo(() =>getPatrolSummaryPresentation(metricState().primarySeverity, metricState().primaryValue > 0),);@@ -216,7 +211,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat);const visibleMetrics = createMemo(() => {const metrics: Array<{- icon: typeof ActivityIcon;key: string;label: string;presentation: ReturnType<typeof getPatrolSummaryPresentation>;@@ -225,12 +219,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatif (metricState().primaryValue > 0) {metrics.push({- icon:- summaryStats().criticalFindings > 0- ? ShieldAlertIcon- : summaryStats().totalActive > 0- ? AlertTriangleIcon- : ActivityIcon,key: 'primary',label: metricState().primaryLabel,presentation: activeFindingsSummaryPresentation(),@@ -244,7 +232,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatmetricState().secondaryValue !== metricState().primaryValue)) {metrics.push({- icon: AlertCircleIcon,key: 'secondary',label: metricState().secondaryLabel,presentation: warningSummaryPresentation(),@@ -254,7 +241,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatif (metricState().fixedValue > 0 && hasAttentionMetrics()) {metrics.push({- icon: CheckCircleIcon,key: 'fixed',label: metricState().fixedLabel,presentation: fixedSummaryPresentation(),@@ -346,20 +332,6 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat}};- const renderAssessmentIcon = () => {- const iconClass = `w-5 h-5 ${assessmentShellPresentation().iconClass}`;- switch (assessment().tone) {- case 'success':- return <CheckCircleIcon class={iconClass} />;- case 'error':- return <ShieldAlertIcon class={iconClass} />;- case 'warning':- return <AlertTriangleIcon class={iconClass} />;- default:- return <AlertCircleIcon class={iconClass} />;- }- };-return (<><Show when={showLoadingSummary()}>@@ -410,27 +382,92 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat<Show when={!showRuntimeSummary() && !showLoadingSummary()}><Show when={state.intelligenceSummary()}>{(summary) => (- <section class="overflow-hidden rounded-md border border-border bg-surface shadow-sm">- <div- class={`flex flex-wrap items-center justify-between gap-3 border-b border-border-subtle px-4 py-3 ${assessmentShellPresentation().headerClass}`}- >- <span- class={`inline-flex items-center rounded-full border px-2.5 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] ${assessmentShellPresentation().badgeClass}`}- >- {assessment().eyebrow}- </span>- <div class="flex items-center gap-2">- <span class="inline-flex items-center rounded-full border border-border bg-surface px-3 py-1 text-xs font-semibold text-base-content shadow-sm">+ <section class="border-y border-border-subtle py-3">+ <div class="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">+ <div class="min-w-0 flex-1">+ <div class="flex flex-wrap items-center gap-2">+ <span+ class={`h-2 w-2 rounded-full ${getPatrolAssessmentDotClass(assessment().tone)}`}+ aria-hidden="true"+ />+ <p class="text-[11px] font-semibold uppercase tracking-[0.14em] text-muted">+ {assessment().eyebrow}+ </p>+ </div>++ <h2 class="mt-2 text-base font-semibold text-base-content">+ {assessment().title}+ </h2>+ <p class="mt-1 max-w-4xl text-sm leading-6 text-muted">+ {assessment().description}+ </p>++ <div+ data-testid="patrol-recommended-next-step"+ class={`mt-3 flex flex-col gap-2 border-l-2 pl-3 sm:flex-row sm:items-center ${getPatrolRecommendedNextStepAccentClass(recommendedNextStep().tone)}`}+ >+ <p class="min-w-0 flex-1 text-sm leading-6 text-muted">+ <span class="font-semibold text-base-content">Next:</span>{' '}+ <span class="font-semibold text-base-content">+ {recommendedNextStep().title}+ </span>+ <span> - {recommendedNextStep().description}</span>+ </p>+ <Show when={recommendedNextStepAction()}>+ {(action) => (+ <Show+ when={action().href}+ fallback={+ <button+ type="button"+ data-testid="patrol-recommended-next-step-action"+ disabled={recommendedNextStepActionDisabled()}+ title={+ action().kind === 'run_patrol'+ ? state.triggerPatrolDisabledReason()+ : undefined+ }+ class="inline-flex shrink-0 items-center gap-1.5 rounded border border-border-subtle bg-transparent px-2.5 py-1.5 text-xs font-semibold text-base-content transition-colors hover:bg-surface-hover disabled:text-muted"+ onClick={() => handleRecommendedNextStepAction(action())}+ >+ {renderRecommendedNextStepActionIcon(+ action(),+ state.isTriggeringPatrol() ||+ state.manualRunRequested() ||+ state.patrolStream.isStreaming(),+ )}+ <span>{recommendedNextStepActionLabel()}</span>+ </button>+ }+ >+ {(href) => (+ <a+ href={href()}+ data-testid="patrol-recommended-next-step-action"+ class="inline-flex shrink-0 items-center gap-1.5 rounded border border-border-subtle bg-transparent px-2.5 py-1.5 text-xs font-semibold text-base-content transition-colors hover:bg-surface-hover"+ >+ {renderRecommendedNextStepActionIcon(action(), false)}+ <span>{action().label}</span>+ </a>+ )}+ </Show>+ )}+ </Show>+ </div>+ </div>++ <div class="flex shrink-0 flex-wrap items-center gap-3 sm:justify-end">+ <p class="text-sm font-semibold text-base-content">{scoreChipLabel()} {summary().overall_health.grade} ·{' '}{Math.round(summary().overall_health.score)}/100- </span>+ </p><buttontype="button"data-testid="patrol-summary-details-toggle"aria-expanded={state.summaryDetailsExpanded()}aria-controls="patrol-summary-details"onClick={() => state.setSummaryDetailsExpanded((value) => !value)}- class="inline-flex items-center gap-1 rounded-md border border-border bg-surface px-2 py-1 text-[11px] font-medium text-muted shadow-sm transition-colors hover:bg-surface-hover hover:text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"+ class="inline-flex items-center gap-1 text-xs font-medium text-muted transition-colors hover:text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"><Showwhen={state.summaryDetailsExpanded()}@@ -443,101 +480,10 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat</div></div>- <div class="px-4 py-4 sm:px-5 sm:py-5">- <div class="flex items-start gap-3">- <div- class={`flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-md border ${assessmentShellPresentation().iconContainerClass}`}- >- {renderAssessmentIcon()}- </div>-- <div class="min-w-0 flex-1">- <h2 class="text-lg font-semibold tracking-tight text-base-content">- {assessment().title}- </h2>- <p class="mt-1.5 max-w-3xl text-sm leading-6 text-muted">- {assessment().description}- </p>- <div- data-testid="patrol-recommended-next-step"- class={`mt-4 border-l-2 pl-3 ${getPatrolRecommendedNextStepAccentClass(recommendedNextStep().tone)}`}- >- <p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">- Recommended next step- </p>- <p class="mt-1 text-sm font-semibold text-base-content">- {recommendedNextStep().title}- </p>- <p class="mt-1 max-w-3xl text-sm leading-6 text-muted">- {recommendedNextStep().description}- </p>- <Show when={recommendedNextStepAction()}>- {(action) => (- <div class="mt-3">- <Show- when={action().href}- fallback={- <button- type="button"- data-testid="patrol-recommended-next-step-action"- disabled={recommendedNextStepActionDisabled()}- title={- action().kind === 'run_patrol'- ? state.triggerPatrolDisabledReason()- : undefined- }- class="inline-flex items-center gap-1.5 rounded-md border border-blue-600 bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white shadow-sm transition-colors hover:bg-blue-700 disabled:border-border disabled:bg-surface-alt disabled:text-muted"- onClick={() => handleRecommendedNextStepAction(action())}- >- {renderRecommendedNextStepActionIcon(- action(),- state.isTriggeringPatrol() ||- state.manualRunRequested() ||- state.patrolStream.isStreaming(),- )}- <span>{recommendedNextStepActionLabel()}</span>- </button>- }- >- {(href) => (- <a- href={href()}- data-testid="patrol-recommended-next-step-action"- class="inline-flex items-center gap-1.5 rounded-md border border-blue-600 bg-blue-600 px-3 py-1.5 text-xs font-semibold text-white shadow-sm transition-colors hover:bg-blue-700"- >- {renderRecommendedNextStepActionIcon(action(), false)}- <span>{action().label}</span>- </a>- )}- </Show>- </div>- )}- </Show>- </div>- <div class="mt-4 flex flex-wrap items-center gap-2">- <Show when={showAssessmentAssistantButton()}>- <button- type="button"- data-testid="patrol-assessment-assistant-button"- class="inline-flex items-center gap-1.5 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-semibold text-base-content shadow-sm transition-colors hover:bg-surface-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"- title="Discuss current Patrol assessment"- onClick={handleDiscussAssessment}- >- <MessageSquareIcon class="h-4 w-4" aria-hidden="true" />- <span>Discuss with Assistant</span>- </button>- </Show>- </div>- </div>- </div>-- <Show when={state.summaryDetailsExpanded()}>- <div- id="patrol-summary-details"- class="mt-5 overflow-hidden rounded-md border border-border-subtle bg-surface-alt/60"- >- <div class="grid divide-y divide-border-subtle lg:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)] lg:divide-x lg:divide-y-0">- <div class="p-3">+ <Show when={state.summaryDetailsExpanded()}>+ <div id="patrol-summary-details" class="mt-4 border-t border-border-subtle pt-4">+ <div class="grid gap-4 lg:grid-cols-[minmax(0,1.35fr)_minmax(0,1fr)]">+ <div><p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">Verification</p>@@ -562,7 +508,7 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat</Show></div>- <div class="p-3">+ <div><p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">Latest activity</p>@@ -622,9 +568,23 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat</Show></div></div>++ <Show when={showAssessmentAssistantButton()}>+ <div class="mt-4">+ <button+ type="button"+ data-testid="patrol-assessment-assistant-button"+ class="inline-flex items-center gap-1.5 rounded border border-border-subtle bg-transparent px-2.5 py-1.5 text-xs font-semibold text-base-content transition-colors hover:bg-surface-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"+ title="Discuss current Patrol assessment"+ onClick={handleDiscussAssessment}+ >+ <MessageSquareIcon class="h-4 w-4" aria-hidden="true" />+ <span>Discuss with Assistant</span>+ </button>+ </div>+ </Show></div>- </Show>- </div>+ </Show></section>)}</Show>@@ -638,26 +598,16 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatstate.summaryDetailsExpanded()}>- <div class="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3">+ <div class="flex flex-wrap items-center gap-x-5 gap-y-2 text-sm"><For each={visibleMetrics()}>{(metric) => {- const Icon = metric.icon;return (- <div class="rounded-md border border-border-subtle bg-surface p-3">- <div class="flex items-center gap-2">- <div- class={`rounded-md border p-1.5 ${metric.presentation.iconContainerClass}`}- >- <Icon class={`h-4 w-4 ${metric.presentation.iconClass}`} />- </div>- <div>- <p class="text-xs text-muted">{metric.label}</p>- <p class={`text-lg font-bold ${metric.presentation.valueClass}`}>- {metric.value}- </p>- </div>- </div>- </div>+ <p>+ <span class="text-muted">{metric.label}</span>{' '}+ <span class={`font-semibold ${metric.presentation.valueClass}`}>+ {metric.value}+ </span>+ </p>);}}</For>@@ -695,6 +645,21 @@ function getPatrolRecommendedNextStepAccentClass(}}+function getPatrolAssessmentDotClass(+ tone: ReturnType<typeof getPatrolAssessmentPresentation>['tone'],+) {+ switch (tone) {+ case 'success':+ return 'bg-emerald-500';+ case 'warning':+ return 'bg-amber-500';+ case 'error':+ return 'bg-red-500';+ default:+ return 'bg-blue-500';+ }+}+function renderRecommendedNextStepActionIcon(action: PatrolRecommendedNextStepAction,running: boolean,diff --git a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceSummary.test.tsx b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceSummary.test.tsxindex 8f6c642d79..3ec1ff4741 100644--- a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceSummary.test.tsx+++ b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceSummary.test.tsx@@ -46,7 +46,10 @@ describe('PatrolIntelligenceSummary', () => {},]);- const patrolState = createPatrolState();+ const patrolState = {+ ...createPatrolState(),+ summaryDetailsExpanded: () => true,+ };render(() => <PatrolIntelligenceSummary state={patrolState} />);expect(screen.getByTestId('patrol-recommended-next-step').textContent).toContain(@@ -207,6 +210,7 @@ describe('PatrolIntelligenceSummary', () => {errorMessage: () => '',},runtimeState: () => 'running',+ summaryDetailsExpanded: () => true,summaryStats: () => ({criticalFindings: 0,warningFindings: 0,diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex 78fe78cce9..45b876e556 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -1156,7 +1156,7 @@ describe('AIIntelligence entitlement gating', () => {await waitFor(() => {expect(screen.getAllByText('Coverage incomplete').length).toBeGreaterThan(0);- expect(screen.getByText('Recommended next step')).toBeInTheDocument();+ expect(screen.getByText('Next:')).toBeInTheDocument();expect(screen.getByText('Verify full coverage')).toBeInTheDocument();expect(screen.getByTestId('patrol-recommended-next-step-action')).toHaveTextContent('Run Patrol',@@ -1175,11 +1175,9 @@ describe('AIIntelligence entitlement gating', () => {});expect(screen.queryByText('No issues found')).not.toBeInTheDocument();- expect(- screen.getByText(- 'Run a full Patrol sweep before treating this assessment as an all-clear; recent evidence is incomplete or limited to targeted activity.',- ),- ).toBeInTheDocument();+ expect(screen.getByTestId('patrol-recommended-next-step')).toHaveTextContent(+ 'Run a full Patrol sweep before treating this assessment as an all-clear; recent evidence is incomplete or limited to targeted activity.',+ );expect(screen.queryByText(/Last patrol/i)).not.toBeInTheDocument();expect(screen.queryByText(/^Last:/i)).not.toBeInTheDocument();expect(screen.queryByText('Partial verification')).not.toBeInTheDocument();@@ -1361,7 +1359,9 @@ describe('AIIntelligence entitlement gating', () => {);const assessmentShell = screen.getByText('Patrol assessment').closest('section');expect(assessmentShell).not.toBeNull();- expect(assessmentShell!.className).toContain('bg-surface');+ expect(assessmentShell!.className).toContain('border-y');+ expect(assessmentShell!.className).not.toContain('rounded-md');+ expect(assessmentShell!.className).not.toContain('shadow-sm');expect(assessmentShell!.className).not.toContain('bg-amber-50');expect(screen.queryByText('Infrastructure findings')).not.toBeInTheDocument();expect(screen.queryByText('Warnings')).not.toBeInTheDocument();