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
Add subtle nested runtime cue
rcourtman9346d725164a
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 7bec132f7c..20642fe9d4 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -838,7 +838,10 @@ not a replacement status card, CTA band, or page-local nested card.evidence belongs as LXC drawer detail while `/docker`remains the canonical detailed Docker / Podman container lens. The overviewtable should not add peer rows, badges, or child rows for Docker containers;- those signals compete with VM/LXC state and belong one click down.+ those signals compete with VM/LXC state and belong one click down. The+ default row may carry only a quiet icon/count cue beside the guest name to+ show nested runtime presence; names, metrics, state, and actions stay in the+ drawer or Docker lens.Drawer-to-runtime navigation is still part of the shared platform-tableaffordance contract: when the LXC drawer exposes an `Open Docker` action fornested containers, that action must use the Docker host facet route state sodiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex f7181dae14..a38b55c0dc 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -166,7 +166,10 @@ regression protection.same raw workload snapshot before row rendering. That derivation must usecanonical workload IDs and ambiguity-safe runtime-host matching; row anddrawer components may render the summary they are given, but they must not- scan hidden workloads per row or guess ownership from ambiguous VMIDs.+ scan hidden workloads per row or guess ownership from ambiguous VMIDs. Row+ cues for nested runtimes must receive that precomputed summary through+ `WorkloadPanel`/`GuestRow` props rather than deriving hidden-workload state+ inside each row render.The same bounded derivation owns Docker host-facet handoff data for nestedruntime links. `useWorkloads.ts` must carry the Docker runtime hostname onto`WorkloadGuest` so `nestedWorkloadContext.ts` can build a route-scoped Dockerdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 802b65d82f..150812d070 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -2294,7 +2294,10 @@ containers, while the Proxmox Overview workload table stays focused on VMs andLXCs. Proxmox may surface Docker-inside-LXC evidence as LXC drawer detail, butit must not promote those `app-container` rows into the default Proxmox peerworkload table or add always-visible child rows that compete with VM/LXC scan-flow. That nested context must be read-only and keyed by the same canonical+flow. The peer row may expose only a compact nested-runtime cue derived from the+same context so operators can discover that the LXC has nested containers+without reading inline container details. That nested context must be read-only+and keyed by the same canonicalProxmox guest identity and Docker host source identity used by the resourcemodel; ambiguous runtime-host matches must be omitted rather than guessed. Whenthat drawer links into the Docker / Podman runtime lens, it must carry thediff --git a/frontend-modern/src/components/Workloads/GuestRow.tsx b/frontend-modern/src/components/Workloads/GuestRow.tsxindex b34afc19f2..fb1ba3598d 100644--- a/frontend-modern/src/components/Workloads/GuestRow.tsx+++ b/frontend-modern/src/components/Workloads/GuestRow.tsx@@ -1,4 +1,5 @@import { createMemo, Show } from 'solid-js';+import BoxIcon from 'lucide-solid/icons/box';import type { VM } from '@/types/api';import type { WorkloadGuest } from '@/types/workloads';import { formatUptime, formatSpeed, getShortImageName } from '@/utils/format';@@ -98,6 +99,12 @@ export function GuestRow(props: GuestRowProps) {const metricDisplayMode = createMemo(() => props.metricDisplayMode ?? 'bars');const isSparklineMode = createMemo(() => metricDisplayMode() === 'sparklines');const detailControlsId = createMemo(() => buildSummaryDisclosureControlsId(guestId()));+ const nestedWorkloadCueLabel = createMemo(() => {+ const context = props.nestedWorkloadContext;+ if (!context || context.count <= 0) return '';+ const noun = context.count === 1 ? 'container' : 'containers';+ return `${context.count} nested ${context.label} ${noun}. Open row for details.`;+ });const normalizeMetricPercent = (value: number | null | undefined): number => {if (typeof value !== 'number' || !Number.isFinite(value)) return 0;return value <= 1 ? Math.max(0, value * 100) : Math.max(0, value);@@ -205,6 +212,17 @@ export function GuestRow(props: GuestRowProps) {isTemplate={props.guest.template}/></Show>+ <Show when={nestedWorkloadCueLabel()}>+ <span+ class="inline-flex shrink-0 items-center gap-0.5 text-[10px] font-medium leading-none text-muted"+ data-testid="nested-workload-cue"+ title={nestedWorkloadCueLabel()}+ aria-label={nestedWorkloadCueLabel()}+ >+ <BoxIcon class="h-3 w-3" aria-hidden="true" />+ <span class="tabular-nums">{props.nestedWorkloadContext?.count}</span>+ </span>+ </Show></div></div>diff --git a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx b/frontend-modern/src/components/Workloads/WorkloadPanel.tsxindex 20e6638b19..4d74a4056c 100644--- a/frontend-modern/src/components/Workloads/WorkloadPanel.tsx+++ b/frontend-modern/src/components/Workloads/WorkloadPanel.tsx@@ -555,6 +555,7 @@ export function WorkloadPanel(props: WorkloadPanelProps) {ioEmphasis={props.workloadIOEmphasis()}metricDisplayMode={props.workloadMetricDisplayMode()}metricHistory={props.workloadMetricHistory}+ nestedWorkloadContext={nestedWorkloadContext()}onHoverChange={props.setHoveredWorkloadId}/><Show when={props.selectedGuestId() === guestId()}>diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsxindex 2e1b4326b1..a83ee23eae 100644--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx@@ -201,6 +201,24 @@ describe('GuestRow', () => {expect(screen.getByText('my-webserver')).toBeTruthy();});+ it('renders a subtle nested workload cue when the row has drawer-only containers', () => {+ renderGuestRow({+ guest: makeGuest({ name: 'frigate', type: 'lxc', workloadType: 'system-container' }),+ nestedWorkloadContext: {+ label: 'Docker',+ count: 2,+ },+ });++ const cue = screen.getByTestId('nested-workload-cue');+ expect(cue).toHaveAttribute(+ 'aria-label',+ '2 nested Docker containers. Open row for details.',+ );+ expect(cue).toHaveTextContent('2');+ expect(screen.queryByText('Nested Docker')).toBeNull();+ });+it('does not repeat the in-guest agent install action in every row', () => {renderGuestRow({guest: makeGuest({ agentVersion: undefined, status: 'running' }),diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsxindex e02f0a813e..c9edb2a54c 100644--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsx@@ -261,6 +261,7 @@ vi.mock('../GuestRow', () => {GuestRow: (props: {guest: { id?: string; name: string };isExpanded?: boolean;+ nestedWorkloadContext?: { label: string; count: number };onClick?: () => void;}) => {onMount(() => {@@ -284,6 +285,11 @@ vi.mock('../GuestRow', () => {Toggle {props.guest.name}</button><span>{props.guest.name}</span>+ <span data-testid={`guest-row-nested-cue-${props.guest.name}`}>+ {props.nestedWorkloadContext+ ? `${props.nestedWorkloadContext.label} ${props.nestedWorkloadContext.count}`+ : ''}+ </span></td><td>running</td></tr>@@ -888,6 +894,7 @@ describe('Workloads performance contract', () => {container.querySelector('[data-testid="guest-row-nested-docker-container"]'),).toBeNull();expect(screen.queryByTestId('nested-workload-context-row')).toBeNull();+ expect(screen.getByTestId('guest-row-nested-cue-pve-lxc')).toHaveTextContent('Docker 1');fireEvent.click(screen.getByTestId('guest-row-toggle-pve-lxc'));expect(await screen.findByTestId('guest-drawer')).toBeInTheDocument();diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsxindex 64696c1cae..d64535a52b 100644--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx@@ -9,6 +9,7 @@ import type {WorkloadMetricHistoryReader,WorkloadTableMetric,} from './workloadMetricHistoryModel';+import type { NestedWorkloadContext } from './nestedWorkloadContext';export type WorkloadTableLayoutMode = 'mobile' | 'tablet' | 'compact' | 'wide';@@ -91,6 +92,7 @@ export interface GuestRowProps {ioEmphasis?: WorkloadIOEmphasis;metricDisplayMode?: 'bars' | 'sparklines';metricHistory?: WorkloadMetricHistoryReader;+ nestedWorkloadContext?: Pick<NestedWorkloadContext, 'count' | 'label'>;workloadTableLayoutMode?: WorkloadTableLayoutMode;onHoverChange?: (guestId: string | null) => void;}