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
feat(patrol): turn attention into a daily briefing
rcourtmanebba3c493bb4
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 5b956d567f..381a951c2d 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -7467,7 +7467,7 @@"status": "target-met","completion": {"state": "complete",- "summary": "Monitor-first Patrol operations now has a decision-first, responsive governed floor: authenticated launch stays on infrastructure monitoring; current findings and separately canonical pending approvals are both visible in the primary decision area; Patrol owns one severity-ordered attention and explain-act-verify workbench over canonical lifecycle, evidence, protection, availability, approval, action, and verification truth; mobile detail has explicit list return and focus restoration; objective setup and verified receipts remain compact supporting context; calm states stay honest; and Assistant remains contextual explanation for the selected thing rather than the operations front door.",+ "summary": "Monitor-first Patrol operations now has a decision-first, responsive governed floor: authenticated launch stays on infrastructure monitoring; a compact control toolbar gives way to a daily briefing with current decision, critical, and separately canonical approval posture plus one recommended start; Patrol owns a persistent desktop inbox-and-context workspace and a true mobile master/detail flow over canonical lifecycle, evidence, protection, availability, approval, action, and verification truth; objective setup and verified receipts remain compact supporting context; calm states stay honest; and Assistant remains contextual explanation for the selected thing rather than the operations front door.","tracking": []},"blockers": [],diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 2597fd7355..e2faf1de14 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -3892,6 +3892,12 @@ to `/actions`. That count remains governed-action inbox metadata: it must not beadded to the attention summary, used to manufacture an attention row, or implythat a specific attention record owns the pending action without a typed actionreference.+The briefing may derive severity and decision counters only from the current+typed attention-list membership returned by that request; it must not treat+those presentation counters as a new API summary, combine them with the action+count, or use them to strengthen the server-authored lifecycle assessment. The+recommended first decision is likewise a sort over returned membership, never+a client-authored severity or action-eligibility inference.Likewise, the frontend may reduce typed evidence freshness/completeness andprotection state into plain scan-row language or omit unavailable row metadata,provided selected detail continues to expose the typed facts. Presentationdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 69e286bc13..29c5104fe1 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -2620,6 +2620,16 @@ governed work, the attention header may render a primary `/actions` handoffbeside its secondary refresh action. That handoff displays the action count butdoes not combine it with the attention badge or list membership.+The attention shell uses one responsive master/detail primitive. Its daily+briefing owns the operator headline, three compact current-work counters, and a+single highest-priority start action. Desktop keeps the decision inbox visible+beside either the recommended-first-decision preview or selected detail; mobile+hides the inbox while detail is selected and restores it before returning focus+to the source row. Empty preview space must contain the recommended decision and+an explicit review action near the top of the pane rather than vertically+centering content below the initial viewport. The Patrol enabled/mode/check+toolbar stays compact and does not repeat the page-level value sentence.+The selected attention detail may compose the shared Actions review for aneligible backend-authored offer. The detail owns only the expectedpostcondition, explicit-review warning, verification summary, and one reviewdiff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 1c6236e84e..7b258557e8 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -1224,6 +1224,18 @@ does not merge governed action records into the attention list or invent anattention count; the queue and approval inbox retain their separate canonicalprojections.+The default loaded state is a daily briefing rather than an unframed list. It+states how many current decisions need the operator, shows the current loaded+critical-decision and separately canonical approval counts, explains the queue+ordering, and offers one `Start review` action for the highest-priority item.+On wide layouts the inbox and a recommended first-decision preview occupy a+persistent two-pane workspace before selection; selection replaces the preview+with the full governed context without hiding the inbox. On narrow layouts the+selected context intentionally replaces the list until `Back to list`, making+Patrol a true master/detail workflow instead of stacking the detail above a+second full queue. The command header remains compact so the briefing and first+decision enter the initial viewport.+The attention queue orders genuine operator decisions by severity, actionableapproval/review state, and latest observation time. Rows expose the severityword, lifecycle state, bounded consequence, affected resource, decision label,diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 1c4c67f0c5..fa3da018e1 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,17 +1,17 @@{"version": 1,- "base_sha": "6372b28862022ecb7e94968fa6fa7c3292160ed4",- "verified_at": "2026-08-18T06:29:12Z",+ "base_sha": "c6cafa6e2588050bc6acd8f3a224144a8523c9f9",+ "verified_at": "2026-08-18T06:45:34Z","result": "passed","changed_paths": ["frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx",- "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx",- "frontend-modern/src/utils/patrolPagePresentation.ts"+ "frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx",+ "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx"],"content_sha256": {- "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx": "2e50d9c6ca55c62f326c07b243e5682fda8da8af1b88a3077583e6478d4499bc",- "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx": "32d7dcb618987e5843175a4870a5e5a7ac1aba8442f2dfff881d4e0fcea1e886",- "frontend-modern/src/utils/patrolPagePresentation.ts": "f8a011a2348b78cb837a5d92fb65bad1ffb6aab837cbbccc84927ec69d0cea29"+ "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx": "84e4631c4b2c651667a9bdd4b612eee6a96b053df6ac72293789f3b957868760",+ "frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx": "242e527ff6379f7d38a5f0649a551c49426b2ef4bc4b8efa20ecae0b85bd7d2b",+ "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx": "79701a9a23208d1bb6f4c1711a0aa64b12ff3b5ad12f65a8448b2de0e5e3c3aa"},"routes": ["/patrol"@@ -19,7 +19,7 @@"viewports": [{"width": 1280,- "height": 800+ "height": 720},{"width": 390,@@ -27,15 +27,17 @@}],"states": [- "Live Watch only Patrol page with 12 attention decisions and one governed approval waiting",- "Selected critical attention item with typed decision context, lifecycle, evidence, protection, timeline, resource, and Assistant handoff",- "Narrow selected-detail layout with explicit Back to list navigation and no horizontal overflow",- "Current-coverage calm state and attention transport failure state without synthetic health"+ "Live Watch only daily briefing with 15 current decisions, one critical item, and one governed approval waiting",+ "Desktop start state with the compact Patrol toolbar, priority-ordered inbox, and recommended first-decision preview in the initial viewport",+ "Selected critical item in the persistent desktop inbox-and-context workspace",+ "Narrow master/detail state with the inbox hidden until explicit Back to list navigation",+ "Current-coverage calm state, transport failure state, and attached availability failure without synthetic health"],"interactions": [- "Used the live in-app Browser to confirm the operator-job introduction and Review 1 approval handoff beside Refresh",- "Opened a critical Docker decision and inspected the responsive master-detail hierarchy and governed controls",- "Ran the Patrol attention workbench journey across Chromium, mobile Chrome, and mobile Safari; 18 checks passed after updating the breakpoint-specific close selector",- "Verified the 390x844 Back to list path clears the deep link, restores focus to the originating row, survives reload, and does not overflow"+ "Used the live in-app Browser to inspect the complete briefing start state and confirm current-work counters, Start review, approval handoff, inbox, and recommended next case",+ "Activated Start review and inspected the selected desktop context with lifecycle, evidence, protection, resource, and Assistant controls",+ "Passed all 18 attention-workbench scenarios across Chromium, mobile Chrome, and mobile Safari",+ "Verified at 390x844 that selection hides the inbox, Back to list restores it and row focus, the deep link survives reload, and the page does not overflow",+ "Passed the seven monitor-first and attached-availability browser scenarios in Chromium"]}diff --git a/frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx b/frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsxindex 96b6e02ad4..88b47c60d9 100644--- a/frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx+++ b/frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx@@ -128,11 +128,20 @@ export function PatrolAttentionWorkbench(props.autonomyLocked ?? false,),);+ const sortedDecisions = createMemo(() => sortPatrolAttentionDecisions(attention().needsUser));const visibleDecisions = createMemo(() =>- showAllDecisions()- ? sortPatrolAttentionDecisions(attention().needsUser)- : sortPatrolAttentionDecisions(attention().needsUser).slice(0, PRIMARY_DECISION_LIMIT),+ showAllDecisions() ? sortedDecisions() : sortedDecisions().slice(0, PRIMARY_DECISION_LIMIT),);+ const highestPriorityDecision = createMemo(() => sortedDecisions()[0]);+ const criticalDecisionCount = createMemo(+ () => attention().needsUser.filter((decision) => decision.item.severity === 'critical').length,+ );+ const briefingHeadline = createMemo(() => {+ if (patrolAttentionStore.loading() && !summary()) return 'Building your current briefing';+ const count = attention().needsUser.length;+ if (count === 0) return 'No decisions are waiting';+ return `${count} ${count === 1 ? 'decision needs' : 'decisions need'} you`;+ });const loadCurrentFilter = () => patrolAttentionStore.load(patrolAttentionStore.filter());const scrollDetailIntoView = () => {@@ -242,81 +251,185 @@ export function PatrolAttentionWorkbench(return (<sectionaria-labelledby="patrol-attention-heading"- class="overflow-hidden rounded-lg border border-border bg-surface shadow-sm"+ class="overflow-hidden rounded-xl border border-border bg-surface shadow-sm">- <div class="border-b border-border px-4 py-4 sm:px-5">- <div class="flex flex-wrap items-start justify-between gap-3">- <div class="min-w-0">- <div class="flex flex-wrap items-center gap-2">- <h2 id="patrol-attention-heading" class="text-base font-semibold text-base-content">- Needs your attention- </h2>- <Show when={summary()}>- <MetadataBadge- tone={attention().needsUser.length > 0 ? 'warning' : 'success'}- size="sm"- shape="rounded"- aria-label={decisionCountLabel()}- >- {attention().needsUser.length} to review- </MetadataBadge>- </Show>- </div>- <p class="mt-1 max-w-3xl text-sm leading-5 text-muted">- {autonomyExperience().needsYouDescription}+ <div class="border-b border-border bg-blue-50/50 px-4 py-5 dark:bg-blue-950/20 sm:px-6 sm:py-6">+ <div class="flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between">+ <div class="min-w-0 flex-1">+ <p class="text-[11px] font-semibold uppercase tracking-[0.16em] text-blue-700 dark:text-blue-300">+ Today's Patrol briefing+ </p>+ <h2+ id="patrol-attention-heading"+ class="mt-2 text-base font-semibold text-base-content"+ >+ Needs your attention+ </h2>+ <p class="mt-1 text-2xl font-semibold tracking-tight text-base-content sm:text-3xl">+ {briefingHeadline()}+ </p>+ <p class="mt-2 max-w-3xl text-sm leading-6 text-muted">+ {attention().needsUser.length > 0+ ? 'Patrol has already ordered the queue by severity, actionability, and the freshest evidence.'+ : autonomyExperience().needsYouDescription}</p></div>- <div class="flex flex-wrap items-center gap-2">- <Show when={(props.pendingActionCount ?? 0) > 0}>- <ButtonLink href="/actions" variant="primary" size="sm" class="gap-1.5">- <ClipboardCheckIcon class="h-4 w-4" aria-hidden="true" />- Review {props.pendingActionCount}{' '}- {props.pendingActionCount === 1 ? 'approval' : 'approvals'}- </ButtonLink>+ <div class="w-full lg:w-[32rem]">+ <div class="flex flex-wrap items-center gap-2 lg:justify-end">+ <Show when={!selectedItemId() && highestPriorityDecision()}>+ {(decision) => (+ <Button+ variant="primary"+ size="sm"+ class="gap-1.5"+ onClick={() => selectItem(decision().item.id)}+ >+ Start review+ <ChevronRightIcon class="h-4 w-4" aria-hidden="true" />+ </Button>+ )}+ </Show>+ <Show when={(props.pendingActionCount ?? 0) > 0}>+ <ButtonLink href="/actions" variant="secondary" size="sm" class="gap-1.5">+ <ClipboardCheckIcon class="h-4 w-4" aria-hidden="true" />+ Review {props.pendingActionCount}{' '}+ {props.pendingActionCount === 1 ? 'approval' : 'approvals'}+ </ButtonLink>+ </Show>+ <Button+ variant="ghost"+ size="sm"+ class="gap-1.5"+ onClick={() => void loadCurrentFilter()}+ disabled={patrolAttentionStore.loading()}+ aria-label="Refresh Patrol attention"+ >+ <RefreshIcon+ class={`h-4 w-4 ${patrolAttentionStore.loading() ? 'motion-safe:animate-spin' : ''}`}+ aria-hidden="true"+ />+ Refresh+ </Button>+ </div>+ <Show when={summary()}>+ <div+ class="mt-4 grid grid-cols-3 overflow-hidden rounded-lg border border-border bg-surface/80 shadow-sm"+ aria-label={decisionCountLabel()}+ >+ <div class="px-3 py-3 sm:px-4">+ <span class="block text-xl font-semibold text-red-700 dark:text-red-300">+ {criticalDecisionCount()}+ </span>+ <span class="mt-0.5 block text-[11px] font-medium uppercase tracking-wide text-muted">+ Critical+ </span>+ </div>+ <div class="border-l border-border px-3 py-3 sm:px-4">+ <span class="block text-xl font-semibold text-base-content">+ {attention().needsUser.length}+ </span>+ <span class="mt-0.5 block text-[11px] font-medium uppercase tracking-wide text-muted">+ Decisions+ </span>+ </div>+ <div class="border-l border-border px-3 py-3 sm:px-4">+ <span class="block text-xl font-semibold text-amber-700 dark:text-amber-300">+ {props.pendingActionCount ?? 0}+ </span>+ <span class="mt-0.5 block text-[11px] font-medium uppercase tracking-wide text-muted">+ Approvals+ </span>+ </div>+ </div></Show>- <Button- variant="secondary"- size="sm"- class="gap-1.5"- onClick={() => void loadCurrentFilter()}- disabled={patrolAttentionStore.loading()}- aria-label="Refresh Patrol attention"- >- <RefreshIcon- class={`h-4 w-4 ${patrolAttentionStore.loading() ? 'motion-safe:animate-spin' : ''}`}- aria-hidden="true"- />- Refresh- </Button></div></div><Show when={attention().quiet.length > 0}>- <p class="mt-3 rounded-md border border-border-subtle bg-surface-alt/40 px-3 py-2 text-xs leading-5 text-muted">+ <p class="mt-3 text-xs leading-5 text-muted">{attention().quiet.length} other current{' '}- {attention().quiet.length === 1 ? 'issue does' : 'issues do'} not require a decision.{' '}- {autonomyExperience().quietWorkDescription}+ {attention().quiet.length === 1 ? 'issue is' : 'issues are'} continuing without a+ decision under {autonomyExperience().label}.</p></Show></div><div- class={`grid min-w-0 ${selectedItemId() ? 'lg:grid-cols-[minmax(20rem,0.82fr)_minmax(0,1.18fr)]' : ''}`}+ class={`grid min-w-0 ${attention().needsUser.length > 0 ? 'lg:grid-cols-[minmax(20rem,0.78fr)_minmax(0,1.22fr)]' : ''}`}><div- class={`min-w-0 ${selectedItemId() ? 'border-b border-border lg:max-h-[48rem] lg:overflow-y-auto lg:border-b-0 lg:border-r' : ''}`}+ class={`min-w-0 ${selectedItemId() ? 'hidden lg:block' : ''} ${attention().needsUser.length > 0 ? 'lg:max-h-[52rem] lg:overflow-y-auto lg:border-r lg:border-border' : ''}`}>+ <Show when={attention().needsUser.length > 0}>+ <div class="sticky top-0 z-10 flex items-center justify-between gap-3 border-b border-border bg-surface/95 px-4 py-3 backdrop-blur sm:px-5">+ <div>+ <h3 class="text-sm font-semibold text-base-content">Decision inbox</h3>+ <p class="mt-0.5 text-[11px] text-muted">Highest priority first</p>+ </div>+ <MetadataBadge tone="neutral" size="xs" shape="rounded">+ {attention().needsUser.length} open+ </MetadataBadge>+ </div>+ </Show><AttentionListdecisions={visibleDecisions()}selectedItemId={selectedItemId()}itemButtons={itemButtons}onSelect={selectItem}/>+ <Show when={attention().needsUser.length > PRIMARY_DECISION_LIMIT}>+ <div class="border-t border-border px-4 py-3 text-center sm:px-5">+ <Button+ variant="secondary"+ size="sm"+ onClick={() => setShowAllDecisions((current) => !current)}+ >+ {showAllDecisions()+ ? 'Show fewer decisions'+ : `Show all ${attention().needsUser.length} decisions`}+ </Button>+ </div>+ </Show></div>- <Show when={selectedItemId()}>+ <Show+ when={selectedItemId()}+ fallback={+ <Show when={highestPriorityDecision()}>+ {(decision) => (+ <div class="hidden min-h-[30rem] flex-col items-start justify-start bg-surface-alt/20 px-8 py-8 text-left lg:flex">+ <span class="inline-flex h-12 w-12 items-center justify-center rounded-xl border border-blue-200 bg-blue-50 text-blue-700 dark:border-blue-900 dark:bg-blue-950/40 dark:text-blue-300">+ <SparklesIcon class="h-5 w-5" aria-hidden="true" />+ </span>+ <p class="mt-5 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted">+ Start here+ </p>+ <h3 class="mt-2 max-w-lg text-lg font-semibold text-base-content">+ {decision().item.title}+ </h3>+ <p class="mt-2 max-w-lg text-sm leading-6 text-muted">+ {decision().item.plainLanguageSummary}+ </p>+ <Button+ variant="primary"+ size="md"+ class="mt-5 gap-2"+ onClick={() => selectItem(decision().item.id)}+ >+ Review this decision+ <ChevronRightIcon class="h-4 w-4" aria-hidden="true" />+ </Button>+ <p class="mt-4 max-w-md text-xs leading-5 text-muted">+ Patrol chose this from severity, available action, and evidence recency. It will+ not make a change from this screen without the governed action flow.+ </p>+ </div>+ )}+ </Show>+ }+ ><divref={detailPanel}tabindex="-1"- class="order-first min-w-0 scroll-mt-4 lg:order-none lg:max-h-[48rem] lg:overflow-y-auto"+ class="order-first min-w-0 scroll-mt-4 lg:order-none lg:max-h-[52rem] lg:overflow-y-auto"><AttentionDetaildetail={selectedDetail()}@@ -340,19 +453,6 @@ export function PatrolAttentionWorkbench(</div></Show></div>- <Show when={attention().needsUser.length > PRIMARY_DECISION_LIMIT}>- <div class="border-t border-border px-4 py-3 text-center sm:px-5">- <Button- variant="secondary"- size="sm"- onClick={() => setShowAllDecisions((current) => !current)}- >- {showAllDecisions()- ? 'Show fewer decisions'- : `Show all ${attention().needsUser.length} decisions`}- </Button>- </div>- </Show><ActionReviewDialogdetail={actionDetail()}onClose={closeActionReview}diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsxindex 2f36a64508..3a97a83623 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx@@ -302,7 +302,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState/><section class="overflow-hidden rounded-lg border border-border bg-surface shadow-sm">- <div class="flex flex-col gap-4 px-4 py-4 sm:px-5 lg:flex-row lg:items-start lg:justify-between">+ <div class="flex flex-col gap-3 px-4 py-3 sm:px-5 lg:flex-row lg:items-center lg:justify-between"><div class="flex min-w-0 items-start gap-3"><div class="pt-0.5"><TogglePrimitive@@ -322,16 +322,16 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState{selectedAutonomyExperience().label}</span></div>- <p class="mt-1 max-w-3xl text-sm leading-5 text-muted">- {state.patrolEnabledLocal()- ? selectedAutonomyExperience().summary- : 'Turn Patrol on when you want it to watch your estate in the background.'}- </p>+ <Show when={!state.patrolEnabledLocal()}>+ <p class="mt-1 max-w-3xl text-sm leading-5 text-muted">+ Turn Patrol on when you want it to watch your estate in the background.+ </p>+ </Show><Show when={!state.shouldShowPatrolSetupOnly() && triggerStatusSummary()}><p class="mt-1 text-xs leading-5 text-muted">{triggerStatusSummary()}</p></Show><Show when={!state.shouldShowPatrolSetupOnly() && recency().timestamp}>- <div class="mt-2 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs leading-5 text-muted">+ <div class="mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs leading-5 text-muted"><span>{recency().label}:{' '}{formatRelativeTime(recency().timestamp, {@@ -376,7 +376,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState</Show></div>- <details id={PATROL_CONTROL_ANCHOR} class="border-t border-border-subtle px-4 py-3 sm:px-5">+ <details id={PATROL_CONTROL_ANCHOR} class="border-t border-border-subtle px-4 py-2 sm:px-5"><summary class="min-h-11 cursor-pointer text-sm font-medium text-base-content focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 sm:min-h-0">Mode and automation</summary>diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsxindex 1ddbcea09d..88429e94ce 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx@@ -28,7 +28,7 @@ export function PatrolIntelligenceSurface() {};return (- <div class="space-y-5 lg:space-y-6">+ <div class="space-y-4 lg:space-y-5"><PatrolIntelligenceHeader state={state} /><PatrolIntelligenceBanners state={state} /><PatrolAttentionWorkbenchdiff --git a/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx b/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsxindex 3119295ab1..5ae1bf3a57 100644--- a/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx+++ b/frontend-modern/src/features/patrol/__tests__/PatrolAttentionWorkbench.test.tsx@@ -232,6 +232,11 @@ describe('PatrolAttentionWorkbench', () => {expect(await screen.findByRole('heading', { name: 'Needs your attention' }),).toBeInTheDocument();+ expect(screen.getByText('1 decision needs you')).toBeInTheDocument();+ expect(screen.getByText("Today's Patrol briefing")).toBeInTheDocument();+ expect(screen.getByRole('heading', { name: 'Decision inbox' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Start review' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Review this decision' })).toBeInTheDocument();expect(screen.getByRole('button', { name: 'Open Disk pressure on Database VM' }),).toBeInTheDocument();@@ -300,7 +305,9 @@ describe('PatrolAttentionWorkbench', () => {await screen.findByRole('heading', { name: 'Nothing needs you right now' }),).toBeInTheDocument();expect(- screen.getByText(/1 other current issue does not require a decision/i),+ screen.getByText(+ /1 other current issue is continuing without a decision under Safe auto-fix/i,+ ),).toBeInTheDocument();expect(screen.queryByRole('button', { name: /Open Disk pressure/ })).not.toBeInTheDocument();});diff --git a/tests/integration/tests/91-operational-trust-attention-workbench.spec.ts b/tests/integration/tests/91-operational-trust-attention-workbench.spec.tsindex 18a351560e..89ad15ba68 100644--- a/tests/integration/tests/91-operational-trust-attention-workbench.spec.ts+++ b/tests/integration/tests/91-operational-trust-attention-workbench.spec.ts@@ -688,6 +688,12 @@ test("starts from the normal monitor shell and reaches the canonical attention qawait expect(page.getByRole("button", { name: "Open CPU pressure on pve-main" }),).toBeVisible();+ await expect(page.getByText("2 decisions need you")).toBeVisible();+ if (!testInfo.project.name.startsWith("mobile-")) {+ await expect(+ page.getByRole("button", { name: "Review this decision" }),+ ).toBeVisible();+ }});test("makes active operational work primary and preserves the evidence boundary", async ({@@ -705,12 +711,14 @@ test("makes active operational work primary and preserves the evidence boundary").toBeVisible();const queue = page.getByRole("region", { name: "Needs your attention" });await expect(queue.getByLabel("2 items require review")).toBeVisible();+ const attentionList = queue.getByRole("list", {+ name: "Patrol attention items",+ });await expect(- queue.getByText(+ attentionList.getByText("CPU has remained above the configured threshold for two collection cycles.",),).toBeVisible();- const attentionList = queue.getByRole("list", { name: "Patrol attention items" });await expect(attentionList.getByText("Evidence current")).toHaveCount(0);await expect(attentionList.getByText("Protection needs attention")).toHaveCount(0);await expect(@@ -813,6 +821,7 @@ test("puts the selected detail in view on a phone without page overflow", asyncname: "CPU pressure on pve-main",});await expect(detailPanel).toBeInViewport();+ await expect(itemButton).toBeHidden();await expect(detailPanel.getByText("Open the node and verify which workload is consuming CPU before making changes.",@@ -830,6 +839,7 @@ test("puts the selected detail in view on a phone without page overflow", asyncexpect(overflows).toBeFalsy();await backToList.click();+ await expect(itemButton).toBeVisible();await expect(itemButton).toBeFocused();await expect(page).not.toHaveURL(/attention=/);diff --git a/tests/integration/tests/92-operational-trust-availability-facet.spec.ts b/tests/integration/tests/92-operational-trust-availability-facet.spec.tsindex b1fe10ca3f..8c5734b194 100644--- a/tests/integration/tests/92-operational-trust-availability-facet.spec.ts+++ b/tests/integration/tests/92-operational-trust-availability-facet.spec.ts@@ -594,7 +594,11 @@ test.describe("Operational trust availability resource facet", () => {name: /Patrol: 1 (?:action awaits approval|active attention item)/,}),).toBeVisible();- await expect(queue.getByText(item.plainLanguageSummary)).toBeVisible();+ await expect(+ queue+ .getByRole("list", { name: "Patrol attention items" })+ .getByText(item.plainLanguageSummary),+ ).toBeVisible();const detailResponsePromise = page.waitForResponse((response) => {const requestUrl = new URL(response.url());