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
Extract dashboard guest drawer overview owner
rcourtman1162c42a7f4e
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 5da9a57672..6ff47b631c 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -53,30 +53,31 @@ regression protection.31. `frontend-modern/src/components/Dashboard/guestRowModel.tsx`32. `frontend-modern/src/components/Dashboard/useGuestRowState.ts`33. `frontend-modern/src/components/Dashboard/GuestDrawer.tsx`-34. `frontend-modern/src/components/Dashboard/guestDrawerModel.ts`-35. `frontend-modern/src/components/Dashboard/useGuestDrawerState.ts`-36. `frontend-modern/src/components/Dashboard/workloadSelectors.ts`-37. `frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx`-38. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`-39. `frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts`-40. `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`-41. `frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx`-42. `frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx`-43. `frontend-modern/src/components/Dashboard/__tests__/useDashboardFilterState.test.ts`-44. `frontend-modern/src/components/Dashboard/MetricBar.test.tsx`-45. `frontend-modern/src/components/Dashboard/__tests__/useMetricBarState.test.tsx`-46. `frontend-modern/src/components/Dashboard/__tests__/EnhancedCPUBar.test.tsx`-47. `frontend-modern/src/components/Dashboard/__tests__/useEnhancedCPUBarState.test.tsx`-48. `frontend-modern/src/components/Dashboard/ThresholdSlider.test.tsx`-49. `frontend-modern/src/components/Dashboard/__tests__/useThresholdSliderState.test.ts`-50. `frontend-modern/src/components/Dashboard/__tests__/StackedDiskBar.test.tsx`-51. `frontend-modern/src/components/Dashboard/__tests__/useStackedDiskBarState.test.tsx`-52. `frontend-modern/src/components/Dashboard/StackedMemoryBar.test.tsx`-53. `frontend-modern/src/components/Dashboard/__tests__/useStackedMemoryBarState.test.tsx`-54. `frontend-modern/src/components/Dashboard/__tests__/DiskList.test.tsx`-55. `frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx`-56. `frontend-modern/src/components/Dashboard/GuestDrawer.test.tsx`-57. `frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx`+34. `frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx`+35. `frontend-modern/src/components/Dashboard/guestDrawerModel.ts`+36. `frontend-modern/src/components/Dashboard/useGuestDrawerState.ts`+37. `frontend-modern/src/components/Dashboard/workloadSelectors.ts`+38. `frontend-modern/src/components/Infrastructure/UnifiedResourceTable.tsx`+39. `frontend-modern/src/components/Infrastructure/useUnifiedResourceTableState.ts`+40. `frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts`+41. `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`+42. `frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx`+43. `frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx`+44. `frontend-modern/src/components/Dashboard/__tests__/useDashboardFilterState.test.ts`+45. `frontend-modern/src/components/Dashboard/MetricBar.test.tsx`+46. `frontend-modern/src/components/Dashboard/__tests__/useMetricBarState.test.tsx`+47. `frontend-modern/src/components/Dashboard/__tests__/EnhancedCPUBar.test.tsx`+48. `frontend-modern/src/components/Dashboard/__tests__/useEnhancedCPUBarState.test.tsx`+49. `frontend-modern/src/components/Dashboard/ThresholdSlider.test.tsx`+50. `frontend-modern/src/components/Dashboard/__tests__/useThresholdSliderState.test.ts`+51. `frontend-modern/src/components/Dashboard/__tests__/StackedDiskBar.test.tsx`+52. `frontend-modern/src/components/Dashboard/__tests__/useStackedDiskBarState.test.tsx`+53. `frontend-modern/src/components/Dashboard/StackedMemoryBar.test.tsx`+54. `frontend-modern/src/components/Dashboard/__tests__/useStackedMemoryBarState.test.tsx`+55. `frontend-modern/src/components/Dashboard/__tests__/DiskList.test.tsx`+56. `frontend-modern/src/components/Dashboard/__tests__/GuestRow.test.tsx`+57. `frontend-modern/src/components/Dashboard/GuestDrawer.test.tsx`+58. `frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx`## Shared Boundaries@@ -97,7 +98,7 @@ regression protection.7. Render dashboard row identity directly from the shared canonical workload helper so row selection, hover, and fallback metadata lookup stay aligned with the same workload contract8. Format infrastructure sensor labels through the shared `frontend-modern/src/utils/textPresentation.ts` presentation helper instead of maintaining a local title-casing implementation in `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts`9. Extend dashboard row contract and per-row hot-path derivations through `frontend-modern/src/components/Dashboard/guestRowModel.tsx` and `frontend-modern/src/components/Dashboard/useGuestRowState.ts`, and extend tooltip-backed row cell presentation through `frontend-modern/src/components/Dashboard/GuestRowCells.tsx`, rather than rebuilding column metadata, row identity, cell tooltips, or anomaly correlation inside `frontend-modern/src/components/Dashboard/GuestRow.tsx`-10. Extend dashboard drawer derivations and runtime wiring through `frontend-modern/src/components/Dashboard/guestDrawerModel.ts` and `frontend-modern/src/components/Dashboard/useGuestDrawerState.ts` rather than rebuilding canonical guest identity, discovery routing, or drawer-local normalization inside `frontend-modern/src/components/Dashboard/GuestDrawer.tsx`+10. Extend dashboard drawer derivations and runtime wiring through `frontend-modern/src/components/Dashboard/guestDrawerModel.ts` and `frontend-modern/src/components/Dashboard/useGuestDrawerState.ts`, and extend drawer overview rendering through `frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx`, rather than rebuilding canonical guest identity, discovery routing, or drawer-local normalization inside `frontend-modern/src/components/Dashboard/GuestDrawer.tsx`11. Extend dashboard disk-list derivations and fallback runtime wiring through `frontend-modern/src/components/Dashboard/diskListModel.ts` and `frontend-modern/src/components/Dashboard/useDiskListState.ts` rather than rebuilding usage math, progress-state mapping, or tooltip fallback logic inside `frontend-modern/src/components/Dashboard/DiskList.tsx`12. Extend dashboard filter defaults, active-filter counting, reset semantics, and mobile toolbar state through `frontend-modern/src/components/Dashboard/dashboardFilterModel.ts` and `frontend-modern/src/components/Dashboard/useDashboardFilterState.ts`, and keep dashboard-owned filter-config assembly in `frontend-modern/src/components/Dashboard/useDashboardState.ts`, rather than rebuilding filter-local state inside `frontend-modern/src/components/Dashboard/DashboardFilter.tsx` or inline config IIFEs in `frontend-modern/src/components/Dashboard/Dashboard.tsx`13. Extend threshold-slider value-position math, title/label derivation, and drag scroll-lock runtime through `frontend-modern/src/components/Dashboard/thresholdSliderModel.ts` and `frontend-modern/src/components/Dashboard/useThresholdSliderState.ts` rather than rebuilding slider-local state and pointer lifecycle inside `frontend-modern/src/components/Dashboard/ThresholdSlider.tsx`@@ -147,13 +148,15 @@ identity, column, cell-tooltip, anomaly-correlation, and link-state changesmust extend through those owners instead of rebuilding row-local state insidethe shell.The dashboard guest drawer now follows that same ownership rule: the shell-stays in `frontend-modern/src/components/Dashboard/GuestDrawer.tsx`, while+stays in `frontend-modern/src/components/Dashboard/GuestDrawer.tsx`, the+overview card surface lives in+`frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx`, anddrawer-local normalization, backup/tag formatting, discovery identity wiring,and workload-derived navigation state live in`frontend-modern/src/components/Dashboard/guestDrawerModel.ts` and`frontend-modern/src/components/Dashboard/useGuestDrawerState.ts`. Future-drawer runtime changes must extend through those owners instead of adding-more mixed state and helper drift back into the shell.+drawer runtime and overview-surface changes must extend through those owners+instead of adding more mixed state and helper drift back into the shell.The dashboard disk list now follows the same pattern: the shell stays in`frontend-modern/src/components/Dashboard/DiskList.tsx`, while disk-rowpresentation derivations and fallback tooltip/runtime wiring live indiff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 43fb686a83..b21816d91a 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -2526,6 +2526,7 @@"frontend-modern/src/components/Dashboard/enhancedCpuBarModel.ts","frontend-modern/src/components/Dashboard/GuestDrawer.tsx","frontend-modern/src/components/Dashboard/guestDrawerModel.ts",+ "frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx","frontend-modern/src/components/Dashboard/GuestRow.tsx","frontend-modern/src/components/Dashboard/GuestRowCells.tsx","frontend-modern/src/components/Dashboard/guestRowModel.tsx",@@ -2612,6 +2613,7 @@"frontend-modern/src/components/Dashboard/enhancedCpuBarModel.ts","frontend-modern/src/components/Dashboard/GuestDrawer.tsx","frontend-modern/src/components/Dashboard/guestDrawerModel.ts",+ "frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx","frontend-modern/src/components/Dashboard/GuestRow.tsx","frontend-modern/src/components/Dashboard/GuestRowCells.tsx","frontend-modern/src/components/Dashboard/guestRowModel.tsx",diff --git a/frontend-modern/src/components/Dashboard/GuestDrawer.tsx b/frontend-modern/src/components/Dashboard/GuestDrawer.tsxindex 224c99e16a..d1733d3faf 100644--- a/frontend-modern/src/components/Dashboard/GuestDrawer.tsx+++ b/frontend-modern/src/components/Dashboard/GuestDrawer.tsx@@ -1,11 +1,9 @@-import { Component, Show, For, Suspense } from 'solid-js';+import { Component, Suspense } from 'solid-js';import { useNavigate } from '@solidjs/router';-import { formatBytes, formatUptime } from '@/utils/format';-import { DiskList } from './DiskList';import { DiscoveryTab } from '../Discovery/DiscoveryTab';-import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';-import { isGuestDrawerVM, type GuestDrawerProps } from './guestDrawerModel';+import type { GuestDrawerProps } from './guestDrawerModel';import { useGuestDrawerState } from './useGuestDrawerState';+import { GuestDrawerOverview } from './GuestDrawerOverview';export const GuestDrawer: Component<GuestDrawerProps> = (props) => {const navigate = useNavigate();@@ -25,11 +23,10 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {hasOsInfo,infrastructureHref,ipAddresses,+ guestOsSummary,memoryExtraLines,networkInterfaces,normalizedTags,- osName,- osVersion,switchTab,webInterfaceTargetLabel,} = useGuestDrawerState(props);@@ -74,219 +71,25 @@ export const GuestDrawer: Component<GuestDrawerProps> = (props) => {{/* Use CSS hidden instead of Show to avoid mount/unmount which causes scroll jumps.overflow-anchor: none prevents browser scroll anchoring from jumping when display toggles. */}<div class={activeTab() === 'overview' ? '' : 'hidden'} style={{ 'overflow-anchor': 'none' }}>- {/* Flex layout - items grow to fill space, max ~4 per row */}- <div class="flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(25%-0.75rem)] [&>*]:min-w-[200px] [&>*]:max-w-full [&>*]:overflow-hidden">- {/* System Info - always show */}- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- System- </div>- <div class="space-y-1.5 text-[11px]">- <Show when={props.guest.cpus}>- <div class="flex items-center justify-between">- <span class="text-muted">CPUs</span>- <span class="font-medium text-base-content">{props.guest.cpus}</span>- </div>- </Show>- <Show when={props.guest.uptime > 0}>- <div class="flex items-center justify-between">- <span class="text-muted">Uptime</span>- <span class="font-medium text-base-content">- {formatUptime(props.guest.uptime)}- </span>- </div>- </Show>- <Show when={props.guest.node}>- <div class="flex items-center justify-between">- <span class="text-muted">Node</span>- <span class="font-medium text-base-content">{props.guest.node}</span>- </div>- </Show>- <Show when={hasAgentInfo()}>- <div class="flex items-center justify-between">- <span class="text-muted">Agent</span>- <span class="font-medium text-base-content truncate ml-2" title={agentTitle()}>- {agentLabel()}- </span>- </div>- </Show>- </div>- </div>-- {/* Guest Info - OS and IPs */}- <Show when={hasOsInfo() || ipAddresses().length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Guest Info- </div>- <div class="space-y-2">- <Show when={hasOsInfo()}>- <div- class="text-[11px] text-muted truncate"- title={`${osName()} ${osVersion()}`.trim()}- >- <Show when={osName().length > 0}>- <span class="font-medium">{osName()}</span>- </Show>- <Show when={osName().length > 0 && osVersion().length > 0}>- <span class="text-muted mx-1">•</span>- </Show>- <Show when={osVersion().length > 0}>- <span>{osVersion()}</span>- </Show>- </div>- </Show>- <Show when={ipAddresses().length > 0}>- <div class="flex flex-wrap gap-1">- <For each={ipAddresses()}>- {(ip) => (- <span- class="inline-block rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200 max-w-full truncate"- title={ip}- >- {ip}- </span>- )}- </For>- </div>- </Show>- </div>- </div>- </Show>-- {/* Memory Details */}- <Show when={memoryExtraLines() && memoryExtraLines()!.length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Memory- </div>- <div class="space-y-1 text-[11px] text-muted">- <For each={memoryExtraLines()!}>{(line) => <div>{line}</div>}</For>- </div>- </div>- </Show>-- {/* Backup Info */}- <Show when={props.guest.lastBackup}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Backup- </div>- <div class="space-y-1 text-[11px]">- <Show when={backupPresentation()}>- {(presentation) => (- <>- <div class="flex items-center justify-between">- <span class="text-muted">Last Backup</span>- <span class={`font-medium ${presentation().ageClass}`}>- {presentation().ageLabel}- </span>- </div>- <div class="text-[10px] text-muted">{presentation().dateLabel}</div>- </>- )}- </Show>- </div>- </div>- </Show>-- {/* Tags */}- <Show when={normalizedTags().length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Tags- </div>- <div class="flex flex-wrap gap-1">- <For each={normalizedTags()}>- {(tag) => (- <span class="inline-block rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">- {tag}- </span>- )}- </For>- </div>- </div>- </Show>-- {/* Filesystems */}- <Show when={hasFilesystemDetails() && props.guest.disks && props.guest.disks.length > 0}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Filesystems- </div>- <div class="text-[11px] text-muted">- <DiskList- disks={props.guest.disks || []}- diskStatusReason={- isGuestDrawerVM(props.guest) ? (props.guest as any).diskStatusReason : undefined- }- />- </div>- </div>- </Show>-- {/* Network Interfaces */}- <Show when={hasNetworkInterfaces()}>- <div class="rounded border border-border bg-surface p-3 shadow-sm">- <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">- Network- </div>- <div class="space-y-2">- <For each={networkInterfaces().slice(0, 4)}>- {(iface) => {- const addresses = iface.addresses ?? [];- const hasTraffic = (iface.rxBytes ?? 0) > 0 || (iface.txBytes ?? 0) > 0;- return (- <div class="rounded border border-dashed border-border p-2 overflow-hidden">- <div class="flex items-center gap-2 text-[11px] font-medium text-base-content min-w-0">- <span class="truncate min-w-0">{iface.name || 'interface'}</span>- <Show when={iface.mac}>- <span- class="text-[9px] text-muted font-normal truncate shrink-0 max-w-[100px]"- title={iface.mac}- >- {iface.mac}- </span>- </Show>- </div>- <Show when={addresses.length > 0}>- <div class="flex flex-wrap gap-1 mt-1">- <For each={addresses}>- {(ip) => (- <span- class="inline-block rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200 max-w-full truncate"- title={ip}- >- {ip}- </span>- )}- </For>- </div>- </Show>- <Show when={hasTraffic}>- <div class="flex gap-3 mt-1 text-[10px] text-muted">- <span>RX {formatBytes(iface.rxBytes ?? 0)}</span>- <span>TX {formatBytes(iface.txBytes ?? 0)}</span>- </div>- </Show>- </div>- );- }}- </For>- </div>- </div>- </Show>- </div>-- <div class="mt-3">- <WebInterfaceUrlField- metadataKind="guest"- metadataId={guestId()}- targetLabel={webInterfaceTargetLabel()}- customUrl={props.customUrl}- onCustomUrlChange={(url) => props.onCustomUrlChange?.(guestId(), url)}- />- </div>+ <GuestDrawerOverview+ guest={props.guest}+ guestId={guestId()}+ guestOsSummary={guestOsSummary()}+ agentLabel={agentLabel()}+ agentTitle={agentTitle()}+ hasAgentInfo={hasAgentInfo()}+ hasFilesystemDetails={hasFilesystemDetails()}+ hasNetworkInterfaces={hasNetworkInterfaces()}+ hasOsInfo={hasOsInfo()}+ ipAddresses={ipAddresses()}+ memoryExtraLines={memoryExtraLines()}+ networkInterfaces={networkInterfaces()}+ normalizedTags={normalizedTags()}+ onCustomUrlChange={props.onCustomUrlChange}+ customUrl={props.customUrl}+ backupPresentation={backupPresentation()}+ webInterfaceTargetLabel={webInterfaceTargetLabel()}+ /></div>{/* Always rendered, hidden via CSS. Wrapped in a local Suspensediff --git a/frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx b/frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsxnew file mode 100644index 0000000000..1df84c96cb--- /dev/null+++ b/frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx@@ -0,0 +1,242 @@+import { For, Show } from 'solid-js';++import { WebInterfaceUrlField } from '@/components/shared/WebInterfaceUrlField';+import { formatBytes, formatUptime } from '@/utils/format';++import { DiskList } from './DiskList';+import { isGuestDrawerVM } from './guestDrawerModel';++import type { GuestDrawerProps } from './guestDrawerModel';++interface GuestDrawerOverviewProps {+ guest: GuestDrawerProps['guest'];+ guestId: string;+ guestOsSummary: string;+ agentLabel: string;+ agentTitle: string;+ hasAgentInfo: boolean;+ hasFilesystemDetails: boolean;+ hasNetworkInterfaces: boolean;+ hasOsInfo: boolean;+ ipAddresses: string[];+ memoryExtraLines?: string[];+ networkInterfaces: NonNullable<GuestDrawerProps['guest']['networkInterfaces']>;+ normalizedTags: string[];+ onCustomUrlChange?: GuestDrawerProps['onCustomUrlChange'];+ customUrl?: GuestDrawerProps['customUrl'];+ backupPresentation: {+ ageClass: string;+ ageLabel: string;+ dateLabel: string;+ } | null;+ webInterfaceTargetLabel: string;+}++export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {+ return (+ <div>+ <div class="flex flex-wrap gap-3 [&>*]:flex-1 [&>*]:basis-[calc(25%-0.75rem)] [&>*]:min-w-[200px] [&>*]:max-w-full [&>*]:overflow-hidden">+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ System+ </div>+ <div class="space-y-1.5 text-[11px]">+ <Show when={props.guest.cpus}>+ <div class="flex items-center justify-between">+ <span class="text-muted">CPUs</span>+ <span class="font-medium text-base-content">{props.guest.cpus}</span>+ </div>+ </Show>+ <Show when={props.guest.uptime > 0}>+ <div class="flex items-center justify-between">+ <span class="text-muted">Uptime</span>+ <span class="font-medium text-base-content">{formatUptime(props.guest.uptime)}</span>+ </div>+ </Show>+ <Show when={props.guest.node}>+ <div class="flex items-center justify-between">+ <span class="text-muted">Node</span>+ <span class="font-medium text-base-content">{props.guest.node}</span>+ </div>+ </Show>+ <Show when={props.hasAgentInfo}>+ <div class="flex items-center justify-between">+ <span class="text-muted">Agent</span>+ <span class="font-medium text-base-content truncate ml-2" title={props.agentTitle}>+ {props.agentLabel}+ </span>+ </div>+ </Show>+ </div>+ </div>++ <Show when={props.hasOsInfo || props.ipAddresses.length > 0}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Guest Info+ </div>+ <div class="space-y-2">+ <Show when={props.hasOsInfo}>+ <div class="text-[11px] text-muted truncate" title={props.guestOsSummary}>+ <Show when={(props.guest.osName?.length ?? 0) > 0}>+ <span class="font-medium">{props.guest.osName}</span>+ </Show>+ <Show+ when={(props.guest.osName?.length ?? 0) > 0 && (props.guest.osVersion?.length ?? 0) > 0}+ >+ <span class="text-muted mx-1">•</span>+ </Show>+ <Show when={(props.guest.osVersion?.length ?? 0) > 0}>+ <span>{props.guest.osVersion}</span>+ </Show>+ </div>+ </Show>+ <Show when={props.ipAddresses.length > 0}>+ <div class="flex flex-wrap gap-1">+ <For each={props.ipAddresses}>+ {(ip) => (+ <span+ class="inline-block rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200 max-w-full truncate"+ title={ip}+ >+ {ip}+ </span>+ )}+ </For>+ </div>+ </Show>+ </div>+ </div>+ </Show>++ <Show when={props.memoryExtraLines && props.memoryExtraLines.length > 0}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Memory+ </div>+ <div class="space-y-1 text-[11px] text-muted">+ <For each={props.memoryExtraLines}>{(line) => <div>{line}</div>}</For>+ </div>+ </div>+ </Show>++ <Show when={props.guest.lastBackup}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Backup+ </div>+ <div class="space-y-1 text-[11px]">+ <Show when={props.backupPresentation}>+ {(presentation) => (+ <>+ <div class="flex items-center justify-between">+ <span class="text-muted">Last Backup</span>+ <span class={`font-medium ${presentation().ageClass}`}>+ {presentation().ageLabel}+ </span>+ </div>+ <div class="text-[10px] text-muted">{presentation().dateLabel}</div>+ </>+ )}+ </Show>+ </div>+ </div>+ </Show>++ <Show when={props.normalizedTags.length > 0}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Tags+ </div>+ <div class="flex flex-wrap gap-1">+ <For each={props.normalizedTags}>+ {(tag) => (+ <span class="inline-block rounded bg-surface-alt px-1.5 py-0.5 text-[10px]">+ {tag}+ </span>+ )}+ </For>+ </div>+ </div>+ </Show>++ <Show when={props.hasFilesystemDetails && props.guest.disks && props.guest.disks.length > 0}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Filesystems+ </div>+ <div class="text-[11px] text-muted">+ <DiskList+ disks={props.guest.disks || []}+ diskStatusReason={+ isGuestDrawerVM(props.guest) ? (props.guest as any).diskStatusReason : undefined+ }+ />+ </div>+ </div>+ </Show>++ <Show when={props.hasNetworkInterfaces}>+ <div class="rounded border border-border bg-surface p-3 shadow-sm">+ <div class="text-[11px] font-medium uppercase tracking-wide text-base-content mb-2">+ Network+ </div>+ <div class="space-y-2">+ <For each={props.networkInterfaces.slice(0, 4)}>+ {(iface) => {+ const addresses = iface.addresses ?? [];+ const hasTraffic = (iface.rxBytes ?? 0) > 0 || (iface.txBytes ?? 0) > 0;+ return (+ <div class="rounded border border-dashed border-border p-2 overflow-hidden">+ <div class="flex items-center gap-2 text-[11px] font-medium text-base-content min-w-0">+ <span class="truncate min-w-0">{iface.name || 'interface'}</span>+ <Show when={iface.mac}>+ <span+ class="text-[9px] text-muted font-normal truncate shrink-0 max-w-[100px]"+ title={iface.mac}+ >+ {iface.mac}+ </span>+ </Show>+ </div>+ <Show when={addresses.length > 0}>+ <div class="flex flex-wrap gap-1 mt-1">+ <For each={addresses}>+ {(ip) => (+ <span+ class="inline-block rounded bg-blue-100 px-1.5 py-0.5 text-[10px] text-blue-700 dark:bg-blue-900 dark:text-blue-200 max-w-full truncate"+ title={ip}+ >+ {ip}+ </span>+ )}+ </For>+ </div>+ </Show>+ <Show when={hasTraffic}>+ <div class="flex gap-3 mt-1 text-[10px] text-muted">+ <span>RX {formatBytes(iface.rxBytes ?? 0)}</span>+ <span>TX {formatBytes(iface.txBytes ?? 0)}</span>+ </div>+ </Show>+ </div>+ );+ }}+ </For>+ </div>+ </div>+ </Show>+ </div>++ <div class="mt-3">+ <WebInterfaceUrlField+ metadataKind="guest"+ metadataId={props.guestId}+ targetLabel={props.webInterfaceTargetLabel}+ customUrl={props.customUrl}+ onCustomUrlChange={(url) => props.onCustomUrlChange?.(props.guestId, url)}+ />+ </div>+ </div>+ );+}diff --git a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsxindex e44b1bf535..1c66844721 100644--- a/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx+++ b/frontend-modern/src/components/Dashboard/__tests__/Dashboard.performance.contract.test.tsx@@ -27,6 +27,7 @@ import metricBarSource from '../MetricBar.tsx?raw';import metricBarModelSource from '../metricBarModel.ts?raw';import metricBarStateSource from '../useMetricBarState.ts?raw';import guestDrawerSource from '../GuestDrawer.tsx?raw';+import guestDrawerOverviewSource from '../GuestDrawerOverview.tsx?raw';import guestDrawerModelSource from '../guestDrawerModel.ts?raw';import guestRowSource from '../GuestRow.tsx?raw';import guestRowCellsSource from '../GuestRowCells.tsx?raw';@@ -594,14 +595,21 @@ describe('Dashboard performance contract', () => {it('keeps guest drawer runtime and derivations in canonical drawer owners', () => {expect(guestDrawerSource).toContain('useGuestDrawerState');+ expect(guestDrawerSource).toContain('GuestDrawerOverview');expect(guestDrawerSource).not.toContain('const guestId = () =>');expect(guestDrawerSource).not.toContain('const infrastructureHref = () =>');+ expect(guestDrawerSource).not.toContain('Filesystems');+ expect(guestDrawerSource).not.toContain('WebInterfaceUrlField');expect(guestDrawerStateSource).toContain('getCanonicalWorkloadId');expect(guestDrawerStateSource).toContain('buildInfrastructureHrefForWorkload');expect(guestDrawerStateSource).toContain('getDiscoveryResourceTypeForWorkload');expect(guestDrawerStateSource).toContain('getWebInterfaceTargetLabelForWorkload');+ expect(guestDrawerStateSource).toContain('guestOsSummary');expect(guestDrawerModelSource).toContain('export const getGuestDrawerBackupPresentation');expect(guestDrawerModelSource).toContain('export const normalizeGuestDrawerTags');+ expect(guestDrawerOverviewSource).toContain('WebInterfaceUrlField');+ expect(guestDrawerOverviewSource).toContain('DiskList');+ expect(guestDrawerOverviewSource).toContain('Filesystems');});it('keeps disk-list runtime and derivations in canonical disk-list owners', () => {diff --git a/frontend-modern/src/components/Dashboard/useGuestDrawerState.ts b/frontend-modern/src/components/Dashboard/useGuestDrawerState.tsindex 40f67a3b38..ac71ec48ab 100644--- a/frontend-modern/src/components/Dashboard/useGuestDrawerState.ts+++ b/frontend-modern/src/components/Dashboard/useGuestDrawerState.ts@@ -32,6 +32,12 @@ export function useGuestDrawerState(props: GuestDrawerProps) {const infrastructureHref = createMemo(() => buildInfrastructureHrefForWorkload(props.guest));const osName = createMemo(() => props.guest.osName || '');const osVersion = createMemo(() => props.guest.osVersion || '');+ const guestOsSummary = createMemo(() => {+ const name = osName().trim();+ const version = osVersion().trim();+ if (name && version) return `${name} • ${version}`;+ return name || version;+ });const hasOsInfo = createMemo(() => hasGuestDrawerOsInfo(props.guest));const agentLabel = createMemo(() => getGuestDrawerAgentLabel(props.guest));const agentTitle = createMemo(() => getGuestDrawerAgentTitle(props.guest));@@ -68,6 +74,7 @@ export function useGuestDrawerState(props: GuestDrawerProps) {discoveryResourceId,discoveryResourceType,guestId,+ guestOsSummary,hasAgentInfo,hasFilesystemDetails,hasNetworkInterfaces,diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 29435c43d0..cb2213d28a 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -120,6 +120,7 @@ import metricBarSource from '@/components/Dashboard/MetricBar.tsx?raw';import metricBarModelSource from '@/components/Dashboard/metricBarModel.ts?raw';import metricBarStateSource from '@/components/Dashboard/useMetricBarState.ts?raw';import guestDrawerSource from '@/components/Dashboard/GuestDrawer.tsx?raw';+import guestDrawerOverviewSource from '@/components/Dashboard/GuestDrawerOverview.tsx?raw';import guestDrawerModelSource from '@/components/Dashboard/guestDrawerModel.ts?raw';import guestDrawerStateSource from '@/components/Dashboard/useGuestDrawerState.ts?raw';import dashboardGuestPresentationSource from '@/utils/dashboardGuestPresentation.ts?raw';@@ -594,8 +595,13 @@ describe('frontend resource type boundaries', () => {expect(guestRowCellsSource).toContain('useTooltip');expect(guestRowSource).not.toContain('buildGuestId');expect(guestDrawerSource).toContain('useGuestDrawerState');+ expect(guestDrawerSource).toContain('GuestDrawerOverview');expect(guestDrawerStateSource).toContain('getCanonicalWorkloadId');+ expect(guestDrawerStateSource).toContain('guestOsSummary');expect(guestDrawerSource).not.toContain('const guestId = () => {');+ expect(guestDrawerSource).not.toContain('WebInterfaceUrlField');+ expect(guestDrawerOverviewSource).toContain('WebInterfaceUrlField');+ expect(guestDrawerOverviewSource).toContain('DiskList');expect(emptyStateSource).toContain('getEmptyStatePresentation');expect(emptyStateSource).not.toContain('const iconBgClass: Record<EmptyStateTone, string> =');expect(emptyStateSource).not.toContain(diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex a5964b1147..6d6de6204f 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -1806,6 +1806,7 @@ class SubsystemLookupTest(unittest.TestCase):result = lookup_paths(["frontend-modern/src/components/Dashboard/GuestDrawer.tsx",+ "frontend-modern/src/components/Dashboard/GuestDrawerOverview.tsx","frontend-modern/src/components/Dashboard/guestDrawerModel.ts","frontend-modern/src/components/Dashboard/useGuestDrawerState.ts",]