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
Improve drawer alert summaries
Pulse Test7f0c548f0d88
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 20b497a55c..6709eaab1c 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -3851,7 +3851,14 @@ shell.Object detail drawers follow one operator-first information hierarchy acrossplatform implementations. Overview must begin with `DrawerAttentionSection`when active alert or health evidence exists and show the actual problem text,-not only repeat a coloured status. The remaining Overview rows are additive+not only repeat a coloured status. `DrawerAttentionSection` is a compact+bounded alert list, not a generic detail-table card: every row preserves the+backend-authored problem text, renders the actual info/warning/critical/+acknowledged severity, and reveals overflow through an in-place accessible+disclosure rather than an inert hidden-count row. Aggregate drawers that include+alerts from child resources must also preserve the affected resource identity+and alert metric beside that text rather than collapsing them into generic VM+or host labels. The remaining Overview rows are additiveoperator context that the parent table row cannot carry, such as OS/runtime,Pulse observation or action coverage, primary reachability, protection gaps,pending updates, or an identified service. Routine health, placement, anddiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 949d2c861e..52833544c1 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,16 +1,18 @@{"version": 1,- "base_sha": "9e820355b60b68954a2c03cfaf77ba81ca9e4a59",- "verified_at": "2026-08-28T13:49:59Z",+ "base_sha": "aea8d3497b0474d985602c81fe17be228446c954",+ "verified_at": "2026-08-28T14:52:18Z","result": "passed","changed_paths": [- "frontend-modern/src/stores/updates.ts"+ "frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx",+ "frontend-modern/src/components/shared/DrawerAttentionSection.tsx"],"content_sha256": {- "frontend-modern/src/stores/updates.ts": "3f193c0427338f8f12fe7275b7fc691a7c90a65fd4e47ee972673e370bd5e9b6"+ "frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx": "ec60044cf9b250c9d049230ee7252bf73a389956b3ab611929520ad6c70dac40",+ "frontend-modern/src/components/shared/DrawerAttentionSection.tsx": "6f1b0d01ef1e3bdcb21faff305e2c2d7763cc226cb92c0f4c4daca7f1fbf04c0"},"routes": [- "/settings/system-updates"+ "/attention-verification.html"],"viewports": [{@@ -23,14 +25,15 @@}],"states": [- "update available with the confirmation dialog open and acknowledgement unchecked",- "update confirmation acknowledged with an intentionally missing download URL",- "failed update start with the error notification visible while the dialog remains open"+ "collapsed five-alert node summary showing the first three resource-specific alerts",+ "expanded node summary showing warning, critical, info, and acknowledged severity badges",+ "desktop summary bounded to 768 pixels with no horizontal page overflow",+ "390 pixel summary contained within the viewport with no horizontal page overflow"],"interactions": [- "opened the confirmation dialog from the update banner",- "acknowledged the temporary-unavailability warning and selected Start Update",- "confirmed the missing download URL produced a visible error without starting an update",- "repeated the failed-start state at desktop and 390 pixel widths and confirmed no horizontal overflow"+ "confirmed node and child VM resource names plus Memory, Disk, and Backup Age metrics remain visible beside their problem text",+ "selected Show 2 more alerts and confirmed both hidden alerts appeared with aria-expanded=true",+ "selected Show fewer alerts and confirmed the summary returned to three visible alerts with aria-expanded=false",+ "repeated collapsed and expanded disclosure states at 1440x900 and 390x844 and confirmed no horizontal overflow"]}diff --git a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsxindex 5cdd35252e..7a77d23daa 100644--- a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx@@ -1,7 +1,7 @@import { cleanup, fireEvent, render, screen, waitFor, within } from '@solidjs/testing-library';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import type { Node } from '@/types/api';+import type { Alert, Node } from '@/types/api';import { resetAIRuntimeState, syncAIRuntimeSettings } from '@/stores/aiRuntimeState';const chartsApiMocks = vi.hoisted(() => ({@@ -75,6 +75,24 @@ function makeNode(overrides: Partial<Node> = {}): Node {};}+function makeAlert(overrides: Partial<Alert> = {}): Alert {+ return {+ id: 'alert-memory',+ type: 'memory',+ level: 'warning',+ resourceId: 'agent:pve-node-1',+ resourceName: 'pve-node-1',+ node: 'pve-node-1',+ instance: 'homelab',+ message: 'Node memory at 90.1%',+ value: 90.1,+ threshold: 90,+ startTime: new Date().toISOString(),+ acknowledged: false,+ ...overrides,+ };+}+beforeEach(() => {resetAIRuntimeState();syncAIRuntimeSettings({ discovery_enabled: true } as Parameters<typeof syncAIRuntimeSettings>[0]);@@ -216,6 +234,61 @@ describe('NodeDrawer', () => {expect(screen.getByTestId('node-technical-details').querySelector('table')).toBeTruthy();});+ it('identifies child resources and reveals every active alert in place', async () => {+ render(() => (+ <NodeDrawer+ node={makeNode()}+ alerts={[+ makeAlert(),+ makeAlert({+ id: 'alert-vm-memory',+ resourceId: 'homelab-pve-node-1-100',+ resourceName: 'media-vm',+ message: 'VM memory at 90.2%',+ value: 90.2,+ }),+ makeAlert({+ id: 'alert-vm-disk',+ type: 'disk',+ resourceId: 'homelab-pve-node-1-100-c',+ resourceName: 'media-vm (C:)',+ message: 'VM disk at 90.2%',+ value: 90.2,+ }),+ makeAlert({+ id: 'alert-backup',+ type: 'backup-age',+ level: 'info',+ resourceId: 'homelab-pve-node-1-101',+ resourceName: 'archive-vm',+ message: 'Latest backup is 8 days old',+ value: 8,+ threshold: 7,+ }),+ ]}+ />+ ));++ const attention = within(screen.getByTestId('drawer-attention-section'));+ expect(attention.getByText('4 active')).toBeInTheDocument();+ expect(attention.getByText('pve-node-1')).toBeInTheDocument();+ expect(attention.getByText('media-vm')).toBeInTheDocument();+ expect(attention.getByText('media-vm (C:)')).toBeInTheDocument();+ expect(attention.queryByText('archive-vm')).not.toBeInTheDocument();++ const revealButton = attention.getByRole('button', { name: 'Show 1 more alert' });+ expect(revealButton).toHaveAttribute('aria-expanded', 'false');+ await fireEvent.click(revealButton);++ expect(attention.getByText('archive-vm')).toBeInTheDocument();+ expect(attention.getByText('Backup Age')).toBeInTheDocument();+ expect(attention.getByText('Info')).toBeInTheDocument();+ expect(attention.getByRole('button', { name: 'Show fewer alerts' })).toHaveAttribute(+ 'aria-expanded',+ 'true',+ );+ });+it('renders API-only node history without unavailable disk throughput', async () => {render(() => (<NodeDrawerdiff --git a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsxindex 3b91045da8..b9c8062c53 100644--- a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx@@ -8,6 +8,7 @@ import {type DetailValueTone,} from '@/components/shared/DetailSectionTable';import type { Alert, Disk, Node, Temperature } from '@/types/api';+import { alertTypeDisplayLabel } from '@/features/alerts/helpers';import { formatBytes, normalizeDiskArray } from '@/utils/format';import type { MetricDisplayThresholds } from '@/utils/metricThresholds';import { formatTemperature, getCpuTemperature, getTemperatureTextClass } from '@/utils/temperature';@@ -314,6 +315,12 @@ export function NodeDrawerOverview(props: NodeDrawerOverviewProps) {items={(props.alerts ?? []).map((alert) => ({id: alert.id,message: alert.message,+ subject:+ cleanText(alert.resourceName) ||+ cleanText(alert.nodeDisplayName) ||+ cleanText(alert.node) ||+ props.node.name,+ metric: alertTypeDisplayLabel(alert.type),severity: alert.level,acknowledged: alert.acknowledged,}))}diff --git a/frontend-modern/src/components/shared/DrawerAttentionSection.tsx b/frontend-modern/src/components/shared/DrawerAttentionSection.tsxindex 2e3263badc..330af6ed09 100644--- a/frontend-modern/src/components/shared/DrawerAttentionSection.tsx+++ b/frontend-modern/src/components/shared/DrawerAttentionSection.tsx@@ -1,15 +1,17 @@-import { Show, type Component } from 'solid-js';+import { For, Show, createSignal, createUniqueId, type Component } from 'solid-js';import {- DetailSectionTable,- compactDetailRows,- compactDetailSections,- makeDetailRow,-} from './DetailSectionTable';+ formatAlertSeverityLabel,+ getAlertSeverityBadgeClass,+} from '@/utils/alertSeverityPresentation';++import { Button } from './Button';export interface DrawerAttentionItem {id: string;message: string;+ subject?: string;+ metric?: string;severity?: string;acknowledged?: boolean;}@@ -18,42 +20,93 @@ interface DrawerAttentionSectionProps {items: DrawerAttentionItem[];}-const severityLabel = (item: DrawerAttentionItem): string => {- if (item.acknowledged) return 'Acknowledged';- return item.severity?.toLowerCase() === 'critical' ? 'Critical' : 'Warning';-};+const COLLAPSED_ITEM_LIMIT = 3;export const DrawerAttentionSection: Component<DrawerAttentionSectionProps> = (props) => {- const visibleItems = () => props.items.slice(0, 3);- const remainingCount = () => Math.max(0, props.items.length - visibleItems().length);- const sections = () =>- compactDetailSections([- {- label: 'Needs attention',- rows: compactDetailRows([- ...visibleItems().map((item) =>- makeDetailRow(severityLabel(item), item.message, {- tone: item.acknowledged- ? 'muted'- : item.severity?.toLowerCase() === 'critical'- ? 'danger'- : 'warning',- title: item.message,- wrap: true,- }),- ),- remainingCount() > 0- ? makeDetailRow('Also', `${remainingCount()} more active`, { tone: 'warning' })- : null,- ]),- },- ]);+ const headingId = createUniqueId();+ const [expanded, setExpanded] = createSignal(false);+ const hasOverflow = () => props.items.length > COLLAPSED_ITEM_LIMIT;+ const hiddenCount = () => Math.max(0, props.items.length - COLLAPSED_ITEM_LIMIT);+ const visibleItems = () =>+ expanded() ? props.items : props.items.slice(0, COLLAPSED_ITEM_LIMIT);return (<Show when={props.items.length > 0}>- <div data-testid="drawer-attention-section">- <DetailSectionTable sections={sections()} />- </div>+ <section+ data-testid="drawer-attention-section"+ aria-labelledby={headingId}+ class="w-full overflow-hidden rounded-md border border-border bg-surface lg:max-w-3xl"+ >+ <header class="flex items-center justify-between gap-3 border-b border-border bg-surface-alt px-3 py-2">+ <h3+ id={headingId}+ class="text-[11px] font-semibold uppercase tracking-wide text-base-content"+ >+ Needs attention+ </h3>+ <span class="shrink-0 text-[11px] tabular-nums text-muted">+ {props.items.length} active+ </span>+ </header>++ <ul class="divide-y divide-border" aria-label="Active alerts">+ <For each={visibleItems()}>+ {(item) => (+ <li class="grid grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-1 px-3 py-2.5">+ <div class="min-w-0">+ <Show when={item.subject || item.metric}>+ <p class="flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-xs">+ <Show when={item.subject}>+ <span class="truncate font-semibold text-base-content" title={item.subject}>+ {item.subject}+ </span>+ </Show>+ <Show when={item.subject && item.metric}>+ <span class="text-muted" aria-hidden="true">+ ·+ </span>+ </Show>+ <Show when={item.metric}>+ <span class="text-muted">{item.metric}</span>+ </Show>+ </p>+ </Show>+ <p class="break-words text-xs leading-5 text-base-content" title={item.message}>+ {item.message}+ </p>+ </div>+ <span+ class={+ item.acknowledged+ ? 'inline-flex shrink-0 self-start items-center rounded bg-surface-alt px-1.5 py-0.5 text-[10px] font-semibold uppercase text-muted'+ : `${getAlertSeverityBadgeClass(item.severity || 'warning')} self-start`+ }+ >+ {item.acknowledged+ ? 'Acknowledged'+ : formatAlertSeverityLabel(item.severity, 'Warning')}+ </span>+ </li>+ )}+ </For>+ </ul>++ <Show when={hasOverflow()}>+ <div class="border-t border-border px-2 py-1">+ <Button+ variant="ghost"+ size="xs"+ class="w-full justify-start text-muted hover:text-base-content"+ aria-expanded={expanded()}+ onClick={() => setExpanded((current) => !current)}+ >+ {expanded()+ ? 'Show fewer alerts'+ : `Show ${hiddenCount()} more ${hiddenCount() === 1 ? 'alert' : 'alerts'}`}+ </Button>+ </div>+ </Show>+ </section></Show>);};diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 0c686709eb..04af5d3cbb 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -19,6 +19,7 @@ import buttonModelSource from '@/components/shared/buttonModel.ts?raw';import copyableCodeRowSource from '@/components/shared/CopyableCodeRow.tsx?raw';import detailSectionTableSource from '@/components/shared/DetailSectionTable.tsx?raw';import detailSectionModelSource from '@/components/shared/detailSectionModel.ts?raw';+import drawerAttentionSectionSource from '@/components/shared/DrawerAttentionSection.tsx?raw';import externalTextLinkSource from '@/components/shared/ExternalTextLink.tsx?raw';import commandPaletteModalSource from '@/components/shared/CommandPaletteModal.tsx?raw';import commandPaletteModelSource from '@/components/shared/commandPaletteModel.ts?raw';@@ -8722,6 +8723,14 @@ describe('shared primitive guardrails', () => {});it('keeps object drawers operator-first across platform implementations', () => {+ expect(drawerAttentionSectionSource).toContain('item.subject');+ expect(drawerAttentionSectionSource).toContain('item.metric');+ expect(drawerAttentionSectionSource).toContain('formatAlertSeverityLabel');+ expect(drawerAttentionSectionSource).toContain('getAlertSeverityBadgeClass');+ expect(drawerAttentionSectionSource).toContain('Show fewer alerts');+ expect(drawerAttentionSectionSource).toContain('aria-expanded={expanded()}');+ expect(drawerAttentionSectionSource).not.toContain('DetailSectionTable');+const overviewConsumers = ['src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx','src/components/Workloads/GuestDrawerOverview.tsx',@@ -8748,6 +8757,12 @@ describe('shared primitive guardrails', () => {expect(source).not.toContain('ResourceOperatorStateSection');}+ const nodeOverviewSource = readFrontendSource(+ 'src/components/Workloads/NodeDrawerOverview.tsx',+ );+ expect(nodeOverviewSource).toContain('subject:');+ expect(nodeOverviewSource).toContain('metric: alertTypeDisplayLabel(alert.type)');+for (const consumerPath of manageConsumers) {const source = readFrontendSource(consumerPath);expect(source).toContain("'manage'");