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
Preserve REST operator evidence and readable platform rows
pulse-triage[bot]480be082887b
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 930119719d..a51a26ce5a 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -805,6 +805,28 @@ that manual-channel consequence must stay visible at desktop and narrow widths.## Shared Boundaries+### Transport-independent operator rows++Proxmox/Storage and Docker presenters retain the shared table/detail, responsive+column weighting, relative-time and governed action primitives. Display names+for Proxmox storage plugins preserve their operator vocabulary (LVM-Thin, NFS,+SMB/CIFS and the other supported acronyms); only explicitly shared storage on a+synthetic cluster/shared location gets the shared label. That label does not+alter canonical identity, parent, History target or pool-to-disk ownership.++The Docker image phone projection pairs hidden headers and cells and gives+measured size and update verdict room without hiding identity or dropping the+existing detail disclosure. The container projection retains its shared 30%+phone identity reservation and five scan signals; off-row restart/host/consumer+evidence remains in detail. Swarm rollout tokens read as words, with compact+Running headings and wrapping rollout states on phones; raw rollout and+placement evidence remain reachable through keyboard/touch row disclosure.+`platformOverviewLayout.guardrails.test.ts`, mounted+Docker table tests and the desktop/touch-phone production-component browser+fixture check these priorities, rather than treating an old percentage as an+immutable primitive contract. No new public route or navigation entry is added.++### Maintenance schedule copyOperator maintenance banners show local absolute start and end timestamps,diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 045e6db6a8..ecccb3fe0a 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -311,6 +311,21 @@ the existing bounded HTTP client and artifact-size checks.## Shared Boundaries+### Multi-disk Bars summary++The existing vertical-bars workload/node disk cell shows the fullest measured+disk's percentage beside equal-weight per-disk micro-bars. Its title retains+the actual mount and percentage. Unknown/invalid usage cannot produce a new+summary; an aggregate fallback must not masquerade as measured member usage.+The displayed maximum uses the existing shared disk measurement and threshold+logic; no collector, sorting key, metric units, History request, resampling or+performance threshold changes. `StackedDiskBar.test.tsx` and the model branch+controls cover real/unknown measurements and unchanged per-member bars.+`browser-tests/proxmox-docker-rows.cjs` checks the actual label, bars and title+at desktop and phone widths; this is presentation proof, not native collection+or a measured fleet performance improvement.++1. `frontend-modern/src/components/Infrastructure/infrastructureSelectors.ts` shared with `unified-resources`: the infrastructure selector pipeline is both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.2. `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts` shared with `unified-resources`: resource detail mappers are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.3. `frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx` shared with `unified-resources`: the unified resource host table card is both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 6726bf78c3..ef5654ebc6 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -400,6 +400,20 @@ command-capable profile.## Shared Boundaries+### Operator storage vocabulary without identity changes++Storage topology names preserve Proxmox plugin vocabulary, including LVM-Thin,+NFS, SMB/CIFS, iSCSI, ZFS and BTRFS. Explicit topology overrides still win.+Only a storage explicitly marked shared whose retained location is the synthetic+cluster/shared marker reads Shared, with the supplied reporting-node count when+more than one node is present. Node-local storage and shared storage with a+real native location keep that location. This is host-label presentation, not+resource consolidation: IDs, parent/node hints, ownership evidence, metrics+targets, alerts, health and recovery authority are unchanged. Adapter/presentation+regressions and the production storage table browser fixture verify labels+without treating shared capacity as a backup or demonstrating native recovery.++- After password configuration has been persisted and the runtime local-admin identity changes, authorizer synchronisation must also occur if subsequent API-token persistence fails. Development first-run reset must clear the configured-admin bypass only on successful auth reset, not on its persistence-failure rollback path. No role-store deletion or migration is part of this recovery.### PBS host history correlationdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 93e6fa2f6b..c93d87e6c8 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -617,6 +617,29 @@ about the same disk cannot diverge.## Shared Boundaries+### REST facets and container table projection++The unified-resource REST mapper carries PMG metadata, per-source status,+server action-readiness refusals and technology at the same top-level paths+used by canonical websocket rows. Existing platformData compatibility paths+remain; transport order must not decide whether mail counters or lifecycle+refusal explanations are present. A replaced REST snapshot clears removed+facets instead of retaining old counters or refusal reasons. Mapping does not+invent capabilities or bypass planning, review, server authorisation or execution.+`useUnifiedResources.test.ts` checks actual lifecycle refusal consumers for stale,+failed and server-denied observations alongside a no-invented-grant control.++The Docker phone container projection keeps identity, state when applicable,+CPU, memory and update; restart counts remain in the existing detail expansion+and return at mobile width. Images retain image, size and update verdict on+phones; host and consumers stay reachable in detail. Hidden header/body columns+are symmetric. Swarm rollout tokens render as words with raw state retained in+the title; task starts use the shared relative-time primitive with their exact+timestamp retained. Native table/model/guardrail tests and the production+`browser-tests/proxmox-docker-rows.cjs` exercise these surfaces without executing+a container action or claiming native appliance or release acceptance.++### PBS host history correlationPBS presentation correlation accepts standalone agents and VM/system-container resources with an agent facet. Preserve unique identity matching and canonical metricsTarget type and ID. Guests without telemetry and mixed ambiguous agent/guest matches must not replace the PBS target.diff --git a/frontend-modern/browser-tests/proxmox-docker-rows.cjs b/frontend-modern/browser-tests/proxmox-docker-rows.cjsnew file mode 100644index 0000000000..5ca4cc46f1--- /dev/null+++ b/frontend-modern/browser-tests/proxmox-docker-rows.cjs@@ -0,0 +1,481 @@+const assert = require('node:assert/strict');+const fs = require('node:fs');+const path = require('node:path');+const crypto = require('node:crypto');+const { chromium, webkit } = require('playwright');++const now = '2026-10-03T12:00:00Z';+const base = (id, type, extra = {}) => ({+ id,+ type,+ name: id,+ status: 'online',+ lastSeen: now,+ sources: ['docker'],+ ...extra,+});+const observations = (mode) => [+ base('mail-gateway-eu', 'pmg', {+ sources: ['pmg'],+ technology: 'pmg',+ uptime: 86400,+ sourceStatus: { pmg: { status: 'online', lastSeen: now } },+ ...(mode === 'missing'+ ? {}+ : {+ pmg: {+ instanceId: 'pmg-eu',+ hostname: 'mail-gateway-eu',+ version: '8.1-2',+ nodeCount: 2,+ mailCountTotal: 2740,+ spamIn: 321,+ virusIn: 14,+ quarantine: 3,+ queueTotal: mode === 'fresh' ? 19 : 11,+ queueDeferred: 5,+ },+ }),+ }),+ base('nfs-iso', 'storage', {+ sources: ['proxmox'],+ parentName: 'cluster',+ parentId: 'pve-cluster-a',+ technology: 'nfs',+ metrics: { disk: { total: 1e12, used: 3e11, percent: 30 } },+ storage: { type: 'nfs', shared: true, nodes: ['pve1', 'pve2', 'pve3'] },+ }),+ base('local-lvm', 'storage', {+ sources: ['proxmox'],+ parentName: 'pve2',+ parentId: 'pve2',+ metrics: { disk: { total: 1e12, used: 6e11, percent: 60 } },+ storage: { type: 'lvmthin', shared: false },+ }),+ base('edge-web', 'app-container', {+ status: 'running',+ technology: 'docker',+ sourceStatus: { docker: { status: 'online', lastSeen: now } },+ actionReadiness: [{ name: 'restart', available: false, reason: 'Command agent disconnected' }],+ metrics: { cpu: { percent: 42 }, memory: { percent: 50, used: 5e8, total: 1e9 } },+ docker: {+ agentId: 'agent-edge',+ hostSourceId: 'agent-edge',+ containerId: 'native-edge-web',+ hostname: 'edge-long-hostname',+ runtime: 'docker',+ runtimeVersion: '27.5.1',+ image: 'nginx:latest',+ containerState: 'running',+ restartCount: 7,+ updateStatus: {+ updateAvailable: true,+ currentDigest: 'sha256:current',+ latestDigest: 'sha256:latest',+ lastChecked: now,+ },+ },+ }),+ base('edge-cache', 'app-container', {+ status: 'offline',+ metrics: { cpu: { percent: 0 }, memory: { percent: 0 } },+ docker: {+ agentId: 'agent-edge',+ hostname: 'edge-long-hostname',+ runtime: 'podman',+ runtimeVersion: '5.2.1',+ image: 'redis:7.4',+ containerState: 'exited',+ restartCount: 0,+ },+ }),+ base('nginx:latest', 'docker-image', {+ docker: {+ hostname: 'edge-long-hostname',+ imageId: 'image-nginx',+ repoTags: ['nginx:latest'],+ sizeBytes: 2e8,+ containers: ['edge-web'],+ containerCount: 1,+ },+ }),+ base('web-service', 'docker-service', {+ docker: {+ hostname: 'edge-long-hostname',+ image: 'nginx:latest',+ serviceMode: 'replicated',+ desiredTasks: 4,+ runningTasks: 2,+ mode: 'replicated',+ serviceUpdate: { state: 'rollback_started', message: 'Synthetic rollout observation' },+ },+ }),+ base('web.2', 'docker-task', {+ docker: {+ hostname: 'edge-long-hostname',+ serviceName: 'web-service',+ nodeName: 'worker-1',+ taskState: 'running',+ desiredState: 'running',+ startedAt: '2026-10-03T11:30:00.123456Z',+ },+ }),+];++(async () => {+ const root = '/workspace/frontend-modern';+ const output = '/workspace/tmp/proxmox-docker-rows-verified';+ fs.mkdirSync(output, { recursive: true });+ process.chdir(root);+ const playwright = require('playwright/package.json').version;+ assert.equal(+ playwright,+ JSON.parse(fs.readFileSync('/workspace/tests/integration/package-lock.json')).packages[+ 'node_modules/@playwright/test'+ ].version,+ );+ const paths = JSON.parse(fs.readFileSync(path.join(output, 'runtime-paths.json')));+ const hashes = Object.fromEntries(+ paths.map((p) => [+ p,+ crypto+ .createHash('sha256')+ .update(fs.readFileSync(path.join('/workspace', p)))+ .digest('hex'),+ ]),+ );+ const { createServer } = await import(path.join(root, 'node_modules/vite/dist/node/index.js'));+ const server = await createServer({+ root,+ configFile: path.join(root, 'vite.config.ts'),+ cacheDir: path.join(output, 'vite-cache'),+ server: { host: '127.0.0.1', port: 5272, strictPort: true },+ });+ const results = [],+ screenshots = [];+ let browser;+ try {+ await server.listen();+ for (const [name, engine, width] of [+ ['desktop', chromium, 1440],+ ['phone', webkit, 390],+ ]) {+ browser = await engine.launch(+ engine === chromium+ ? { headless: true, channel: 'chromium', args: ['--no-sandbox'] }+ : { headless: true },+ );+ const page = await browser.newPage({+ viewport: { width, height: width === 390 ? 844 : 900 },+ isMobile: width === 390,+ hasTouch: width === 390,+ locale: 'en-GB',+ timezoneId: 'UTC',+ });+ await page.clock.setFixedTime(new Date(now));+ page.setDefaultTimeout(15000);+ const checks = [],+ errors = [],+ offOrigin = [],+ mutations = [];+ let mode = 'initial';+ page.on('pageerror', (e) => errors.push(e.message));+ await page.route('**/*', async (route) => {+ const request = route.request(),+ url = new URL(request.url());+ if (url.origin !== 'http://127.0.0.1:5272') {+ offOrigin.push(url.origin);+ return route.abort();+ }+ if (!url.pathname.startsWith('/api/')) return route.continue();+ if (request.method() !== 'GET') {+ mutations.push({ path: url.pathname, method: request.method() });+ return route.fulfill({ status: 409, json: { error: 'No fixture mutation' } });+ }+ if (url.pathname === '/api/resources')+ return route.fulfill({ json: { data: observations(mode) } });+ if (url.pathname === '/api/license/runtime-capabilities')+ return route.fulfill({+ json: {+ capabilities: [],+ limits: [],+ max_history_days: 7,+ hosted_mode: false,+ blocked_capabilities: [],+ runtime: { build: 'community' },+ },+ });+ if (url.pathname === '/api/security/status')+ return route.fulfill({ json: { hasAuthentication: true, requiresAuth: true } });+ return route.fulfill({+ json: {+ enabled: false,+ data: [],+ capabilities: [],+ facets: [],+ relationships: [],+ recentChanges: [],+ alerts: {},+ },+ });+ });+ const check = async (label, run) => {+ try {+ await run();+ checks.push({ label, passed: true });+ } catch (e) {+ checks.push({ label, passed: false, error: e.message });+ }+ };+ const select = (view) =>+ page+ .getByRole('navigation', { name: 'Fixture views' })+ .getByRole('button', { name: view, exact: true })+ .click();+ const capture = async (state) => {+ await page.waitForTimeout(180); // ResizeObserver and entrance layout, not freshness evidence.+ const dimensions = await page.evaluate(() => ({+ width: innerWidth,+ scroll: document.documentElement.scrollWidth,+ }));+ checks.push({+ label: `No horizontal page overflow: ${state}`,+ passed: dimensions.scroll <= dimensions.width + 1,+ dimensions,+ });+ const file = `${name}-${state}.png`;+ await page.screenshot({ path: path.join(output, file), fullPage: true });+ screenshots.push({ file, state, engine: name, width, dimensions });+ };+ await page.goto('http://127.0.0.1:5272/browser-tests/proxmox-docker-rows.html', {+ waitUntil: 'domcontentloaded',+ timeout: 120000,+ });+ if (width === 390) await page.evaluate(() => document.documentElement.classList.add('dark'));+ await page.getByText('8 REST-mapped rows', { exact: true }).waitFor();+ await check(+ 'REST-first PMG counters and facets are present before any websocket hydration',+ async () => {+ const table = page.getByRole('region', { name: 'Mail table' });+ await table.getByText('2,740', { exact: true }).waitFor();+ await table.getByText('11', { exact: true }).waitFor();+ const row = await page.evaluate(() =>+ window.__operatorRows.rows().find((r) => r.type === 'pmg'),+ );+ assert.equal(row.technology, 'pmg');+ assert.equal(row.sourceStatus.pmg.status, 'online');+ assert.equal(row.pmg.queueTotal, 11);+ assert.deepEqual(row.pmg, row.platformData.pmg);+ if (width > 390) await table.getByText('8.1-2', { exact: true }).waitFor();+ },+ );+ await capture('rest-mail');+ await check(+ 'Canonical store hydration followed by REST refresh keeps the new PMG counters',+ async () => {+ await page.evaluate(() => window.__operatorRows.seedWebsocket());+ mode = 'fresh';+ await page.evaluate(() => window.__operatorRows.refresh());+ await page+ .getByRole('region', { name: 'Mail table' })+ .getByText('19', { exact: true })+ .waitFor();+ },+ );+ await capture('refreshed-mail');+ await check('A removed REST PMG facet does not retain obsolete queue evidence', async () => {+ mode = 'missing';+ await page.evaluate(() => window.__operatorRows.refresh());+ assert.equal(+ await page+ .getByRole('region', { name: 'Mail table' })+ .getByText('19', { exact: true })+ .count(),+ 0,+ );+ const row = await page.evaluate(() =>+ window.__operatorRows.rows().find((r) => r.type === 'pmg'),+ );+ assert.equal(row.pmg, undefined);+ mode = 'fresh';+ await page.evaluate(() => window.__operatorRows.refresh());+ });+ await select('Storage');+ await check('Shared storage vocabulary preserves native locations and IDs', async () => {+ const table = page.getByRole('region', { name: 'Storage table' });+ await table.getByText('NFS', { exact: true }).waitFor({ state: 'attached' });+ await table.getByText('LVM-Thin', { exact: true }).waitFor({ state: 'attached' });+ await table.getByText('Shared · 3 nodes', { exact: true }).waitFor({ state: 'attached' });+ await table.getByText('pve2', { exact: true }).waitFor({ state: 'attached' });+ const rows = await page.evaluate(() =>+ window.__operatorRows.rows().filter((r) => r.type === 'storage'),+ );+ assert.deepEqual(+ rows.map((r) => [r.id, r.parentId]),+ [+ ['nfs-iso', 'pve-cluster-a'],+ ['local-lvm', 'pve2'],+ ],+ );+ });+ await capture('storage');+ await select('Containers');+ await check(+ 'REST lifecycle refusal remains available; phone row keeps update and moves restarts to detail',+ async () => {+ await page+ .locator('[data-lifecycle-refusal]')+ .getByText('Command agent disconnected', { exact: true })+ .waitFor();+ const table = page.getByRole('region', { name: 'Container table' });+ const update = table.locator('.docker-container-update-cell button');+ await update.waitFor();+ assert.match(await update.innerText(), /Update/);+ const bounds = await update.evaluate((e) => ({+ w: e.getBoundingClientRect().width,+ cell: e.closest('td').getBoundingClientRect().width,+ scroll: e.scrollWidth,+ client: e.clientWidth,+ }));+ assert.ok(+ bounds.w <= bounds.cell + 1 && bounds.scroll <= bounds.client + 1,+ JSON.stringify(bounds),+ );+ const headers = await table.locator('th:visible').allTextContents();+ if (width === 390) {+ assert.ok(!headers.some((h) => h.includes('Restarts')));+ assert.ok(headers.some((h) => h.includes('State')));+ }+ },+ );+ await capture('containers');+ await check(+ 'Restart count and native identity remain reachable via row disclosure',+ async () => {+ const row = page.locator('[data-docker-container-row="edge-web"]');+ if (width === 390) await row.locator('td').first().tap();+ else await row.getByRole('button', { name: /details/i }).click();+ const detail = page.getByTestId('resource-docker-container-section');+ await detail.getByText('Restarts', { exact: true }).waitFor();+ await detail.getByText('7', { exact: true }).waitFor();+ },+ );+ await capture('container-detail');+ await select('Images');+ await check('Image verdict fits; phone hidden headers and cells are symmetric', async () => {+ const table = page.getByRole('region', { name: 'Image table' });+ await table.getByText('nginx:latest', { exact: true }).waitFor();+ const headers = await table.locator('th:visible').allTextContents();+ const row = table.locator('[data-docker-image-row]');+ assert.equal(await row.locator('td:visible').count(), headers.length);+ if (width === 390) {+ assert.ok(!headers.some((h) => h.includes('Host') || h.includes('Used by')));+ assert.ok(headers.some((h) => h.includes('Size')));+ }+ });+ await capture('images');+ await select('Swarm');+ await check(+ 'Swarm state and started time use operator wording with raw evidence retained',+ async () => {+ const state = page.getByText('Rollback started', { exact: true });+ await state.waitFor({ state: 'attached' });+ assert.match(+ await state.locator('xpath=ancestor-or-self::*[@title][1]').getAttribute('title'),+ /rollback_started/,+ );+ const visibleState = await state.evaluate((element) => {+ const cell = element.closest('td').getBoundingClientRect();+ const range = document.createRange();+ range.selectNodeContents(element);+ return [...range.getClientRects()].every(+ (line) =>+ line.left >= cell.left &&+ line.right <= cell.right &&+ line.top >= cell.top &&+ line.bottom <= cell.bottom,+ );+ });+ assert.equal(visibleState, true, 'Every word of the rollout state must fit its cell');+ if (width === 390) {+ await page.getByText('Run', { exact: true }).waitFor({ state: 'visible' });+ }+ const started = page.locator('[title="2026-10-03T11:30:00.123456Z"]');+ await started.waitFor({ state: 'attached' });+ assert.match(await started.innerText(), /ago/);+ },+ );+ await capture('swarm');+ await check(+ 'Swarm touch or keyboard disclosure exposes raw rollout and placement evidence',+ async () => {+ const row = page.locator('[data-docker-service-row="web-service"]');+ if (width === 390) await row.locator('td').first().tap();+ else {+ const toggle = row.getByRole('button', {+ name: 'Expand details for web-service',+ exact: true,+ });+ await toggle.focus();+ await page.keyboard.press('Enter');+ }+ const detail = page.locator('[data-inline-docker-service-detail-for="web-service"]');+ await detail+ .getByText('rollback_started | Synthetic rollout observation', { exact: true })+ .waitFor();+ await detail.getByText('edge-long-hostname', { exact: true }).waitFor();+ await detail.getByText('4', { exact: true }).waitFor();+ await detail.getByText('2', { exact: true }).waitFor();+ },+ );+ await capture('swarm-detail');+ await select('Disk');+ await check(+ 'Multi-disk Bars show the measured fullest disk and unchanged equal-weight bars',+ async () => {+ const label = page.locator('[data-stacked-disk-max-label]');+ assert.equal(await label.innerText(), '92%');+ assert.equal(await label.getAttribute('title'), 'Highest usage: /data 92%');+ assert.equal(await page.locator('[data-stacked-disk-fill="vertical"]').count(), 2);+ },+ );+ await capture('disks');+ checks.push({+ label: 'No page errors, external requests or mutation requests',+ passed: !errors.length && !offOrigin.length && !mutations.length,+ errors,+ offOrigin,+ mutations,+ });+ results.push({ engine: name, version: browser.version(), width, checks });+ await browser.close();+ browser = undefined;+ }+ } finally {+ if (browser) await browser.close();+ await server.close();+ }+ const result = {+ playwright,+ verified_at: new Date().toISOString(),+ paths,+ hashes,+ results,+ screenshots,+ };+ fs.writeFileSync(path.join(output, 'result.json'), JSON.stringify(result, null, 2));+ const failures = results.flatMap((r) =>+ r.checks.filter((c) => !c.passed).map((c) => ({ engine: r.engine, ...c })),+ );+ console.log(+ JSON.stringify({+ checked: results.reduce((n, r) => n + r.checks.length, 0),+ screenshots: screenshots.length,+ failures,+ }),+ );+ assert.equal(failures.length, 0, JSON.stringify(failures));+})().catch((error) => {+ console.error(error);+ process.exitCode = 1;+});diff --git a/frontend-modern/browser-tests/proxmox-docker-rows.html b/frontend-modern/browser-tests/proxmox-docker-rows.htmlnew file mode 100644index 0000000000..5e96968d98--- /dev/null+++ b/frontend-modern/browser-tests/proxmox-docker-rows.html@@ -0,0 +1,12 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>Transport facets and operator rows verification</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="./proxmox-docker-rows.tsx"></script>+ </body>+</html>diff --git a/frontend-modern/browser-tests/proxmox-docker-rows.tsx b/frontend-modern/browser-tests/proxmox-docker-rows.tsxnew file mode 100644index 0000000000..2f0285c0be--- /dev/null+++ b/frontend-modern/browser-tests/proxmox-docker-rows.tsx@@ -0,0 +1,182 @@+// Synthetic REST observations through the real hook, tables, detail disclosures+// and CSS. No real websocket, appliance or installed/released acceptance claim.+import { createSignal, Show } from 'solid-js';+import { createStore, unwrap } from 'solid-js/store';+import { render } from 'solid-js/web';+import { Router, Route } from '@solidjs/router';+import { useUnifiedResources } from '../src/hooks/useUnifiedResources';+import { ProxmoxMailGatewayTable } from '../src/features/proxmox/ProxmoxMailGatewayTable';+import { DockerContainersTable } from '../src/features/docker/DockerContainersTable';+import { DockerImagesTable } from '../src/features/docker/DockerImagesTable';+import { DockerServicesTable } from '../src/features/docker/DockerServicesTable';+import { DockerTasksTable } from '../src/features/docker/DockerTasksTable';+import { StackedDiskBar } from '../src/components/Workloads/StackedDiskBar';+import { StoragePoolsTable } from '../src/components/Storage/StoragePoolsTable';+import { Table, TableBody, TableRow, TableCell } from '../src/components/shared/Table';+import { getDockerContainerLifecycleDisabledReason } from '../src/features/docker/dockerContainerLifecycleActions';+import { buildStorageRecords } from '../src/features/storageBackups/storageAdapters';+import { groupStorageRecords } from '../src/features/storageBackups/storageModelCore';+import { EMPTY_STORAGE_ALERT_STATE } from '../src/features/storageBackups/storageAlertState';+import { DarkModeContext, WebSocketContext } from '../src/contexts/appRuntime';+import type { Resource } from '../src/types/resource';+import '../src/index.css';++const [wsState, setWsState] = createStore({+ resources: [] as Resource[],+ lastUpdate: 0,+ nodes: [],+ pbs: [],+ pmg: [],+ vms: [],+ containers: [],+});+const [connected, setConnected] = createSignal(false);+const ws = {+ state: wsState,+ connected,+ initialDataReceived: () => true,+ resourceChange: () => ({ version: wsState.lastUpdate, changedIds: null, changedKeys: null }),+ activeAlerts: () => ({}),+ shutdown: () => {},+};+window.__pulseWsStore = ws as any;++function Fixture() {+ const [view, setView] = createSignal('Mail');+ const [expandedPool, setExpandedPool] = createSignal<string | null>(null);+ const rows = useUnifiedResources({ query: '', cacheKey: 'operator-rows-browser' });+ const ofType = (type: string) => rows.resources().filter((row) => row.type === type);+ const container = () => ofType('app-container')[0];+ const records = () =>+ buildStorageRecords({ state: wsState as any, resources: ofType('storage') });+ const grouped = () => groupStorageRecords(records(), 'none');+ (window as any).__operatorRows = {+ rows: () => JSON.parse(JSON.stringify(unwrap(rows.resources()))),+ refresh: () => rows.refetch(),+ seedWebsocket: () => {+ setWsState('resources', JSON.parse(JSON.stringify(unwrap(rows.resources()))));+ setWsState('lastUpdate', Date.now());+ setConnected(true);+ },+ };+ const nativeProps = {+ emptyIcon: <span />,+ emptyTitle: 'No fixture rows',+ emptyDescription: 'No fixture rows',+ showToolbar: false,+ };+ return (+ <WebSocketContext.Provider value={ws as any}>+ <DarkModeContext.Provider value={() => document.documentElement.classList.contains('dark')}>+ <main class="min-h-screen space-y-4 bg-surface p-4 text-base-content">+ <h1 class="text-lg font-semibold">Transport facets and operator rows</h1>+ <nav aria-label="Fixture views" class="flex flex-wrap gap-2">+ {['Mail', 'Storage', 'Containers', 'Images', 'Swarm', 'Disk'].map((name) => (+ <button+ type="button"+ class="min-h-11 rounded border border-border px-3"+ onClick={() => setView(name)}+ >+ {name}+ </button>+ ))}+ </nav>+ <p data-fixture-loaded>{rows.resources().length} REST-mapped rows</p>+ <Show when={view() === 'Mail'}>+ <section aria-label="Mail table">+ <ProxmoxMailGatewayTable+ resources={ofType('pmg')}+ emptyTitle="No mail"+ emptyDescription="No mail"+ />+ </section>+ </Show>+ <Show when={view() === 'Storage'}>+ <section aria-label="Storage table">+ <StoragePoolsTable+ groupedRecords={grouped()}+ groupBy="none"+ expandedGroups={new Set(['All'])}+ toggleGroup={() => {}}+ expandedPoolId={expandedPool()}+ setExpandedPoolId={setExpandedPool}+ storageGrowthBySeriesId={new Map()}+ storageGrowthColumnLabel="Growth"+ physicalDisks={[]}+ nodeOnlineByLabel={new Map()}+ highlightedRecordId={null}+ getRecordAlertState={() => EMPTY_STORAGE_ALERT_STATE}+ isLoading={false}+ />+ </section>+ </Show>+ <Show when={view() === 'Containers'}>+ <section aria-label="Container table">+ <p data-lifecycle-refusal>+ {container() && getDockerContainerLifecycleDisabledReason(container(), 'restart')}+ </p>+ <DockerContainersTable resources={ofType('app-container')} {...nativeProps} />+ </section>+ </Show>+ <Show when={view() === 'Images'}>+ <section aria-label="Image table">+ <DockerImagesTable resources={ofType('docker-image')} {...nativeProps} />+ </section>+ </Show>+ <Show when={view() === 'Swarm'}>+ <section aria-label="Swarm services">+ <DockerServicesTable resources={ofType('docker-service')} {...nativeProps} />+ </section>+ <section aria-label="Swarm tasks">+ <DockerTasksTable resources={ofType('docker-task')} {...nativeProps} />+ </section>+ </Show>+ <Show when={view() === 'Disk'}>+ <section aria-label="Multi-disk Bars">+ <Table>+ <TableBody>+ <TableRow>+ <TableCell>pve-edge</TableCell>+ <TableCell>+ <StackedDiskBar+ mode="vertical-bars"+ disks={[+ {+ device: '/dev/sda',+ mountpoint: '/',+ usage: 24,+ total: 100,+ used: 24,+ free: 76,+ type: 'ext4',+ },+ {+ device: '/dev/sdb',+ mountpoint: '/data',+ usage: 92,+ total: 100,+ used: 92,+ free: 8,+ type: 'zfs',+ },+ ]}+ />+ </TableCell>+ </TableRow>+ </TableBody>+ </Table>+ </section>+ </Show>+ </main>+ </DarkModeContext.Provider>+ </WebSocketContext.Provider>+ );+}+render(+ () => (+ <Router>+ <Route path="/*" component={Fixture} />+ </Router>+ ),+ document.getElementById('root')!,+);diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 34fd143392..9ccfa044bd 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,101 +1,79 @@{"version": 1,"result": "passed",- "base_sha": "697ad83e19fa5e8afee634c212c945600d2292b4",- "verified_at": "2026-10-03T06:30:17.630790Z",+ "base_sha": "7127054c659913b75abe302c5d377b8b6f49e9f2",+ "verified_at": "2026-10-03T08:47:10.724Z","changed_paths": [- "frontend-modern/src/components/Infrastructure/ResourceDetailSummary.tsx",- "frontend-modern/src/components/Infrastructure/resourceDetailDrawerKubernetesModel.ts",- "frontend-modern/src/components/Settings/UpdateHistorySection.tsx",- "frontend-modern/src/components/Storage/DiskDetail.tsx",- "frontend-modern/src/components/Storage/DiskList.tsx",- "frontend-modern/src/components/Storage/EnhancedStorageBar.tsx",- "frontend-modern/src/components/Storage/StoragePoolRow.tsx",- "frontend-modern/src/components/Storage/StoragePoolsTable.tsx",- "frontend-modern/src/components/Storage/useDiskDetailModel.ts",- "frontend-modern/src/components/Storage/useEnhancedStorageBarModel.ts",- "frontend-modern/src/components/Workloads/guestRowModel.tsx",- "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx",- "frontend-modern/src/features/proxmox/proxmoxBackupRecoveryModel.ts",- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts",- "frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx",- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts",- "frontend-modern/src/features/storageBackups/diskDetailPresentation.ts",- "frontend-modern/src/features/storageBackups/diskPresentation.ts",- "frontend-modern/src/features/storageBackups/rowPresentation.ts",- "frontend-modern/src/features/storageBackups/storageBarPresentation.ts",- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts"+ "frontend-modern/src/components/Workloads/StackedDiskBar.tsx",+ "frontend-modern/src/components/Workloads/stackedDiskBarModel.ts",+ "frontend-modern/src/features/docker/DockerImagesTable.tsx",+ "frontend-modern/src/features/docker/DockerServicesTable.tsx",+ "frontend-modern/src/features/docker/DockerTasksTable.tsx",+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts",+ "frontend-modern/src/features/storageBackups/resourceStoragePresentation.ts",+ "frontend-modern/src/features/storageBackups/storageAdapters.ts",+ "frontend-modern/src/hooks/useUnifiedResources.ts"],"content_sha256": {- "frontend-modern/src/components/Infrastructure/ResourceDetailSummary.tsx": "5356c4527e5bccaf86d1dbcaf808cdbeacfce05c8bd58879ab8f90287db1cca8",- "frontend-modern/src/components/Infrastructure/resourceDetailDrawerKubernetesModel.ts": "79a9a4414958bbd3034bc145ea5f5b5a1f58a52af4ff8de8b46f18888f5aed51",- "frontend-modern/src/components/Settings/UpdateHistorySection.tsx": "39e7f5daa49bd18fd71d91a09a06da47ec3abc5496108d3715020180ca439e52",- "frontend-modern/src/components/Storage/DiskDetail.tsx": "04e5bacb4900cc77a94fdb804363048ed53f4b84dc1c0e9610878a106a1db1a6",- "frontend-modern/src/components/Storage/DiskList.tsx": "47da15179f6c7e98583d9db2a858790233660f8dc4eb9ea85681f262b50514f5",- "frontend-modern/src/components/Storage/EnhancedStorageBar.tsx": "ed72a33e754e96ebd03374c34f9732b02411cd9055667f4e0051d6f7e66ab653",- "frontend-modern/src/components/Storage/StoragePoolRow.tsx": "09417822bd543ddbc312d0c15a4ea74971066d6623d421d889858e56262b9d3d",- "frontend-modern/src/components/Storage/StoragePoolsTable.tsx": "7b61e9fac5e3a9fbae831a3cf907a71f1be7158f06bfe7a9fe7d16fce7a2c928",- "frontend-modern/src/components/Storage/useDiskDetailModel.ts": "ee5059bb3a7e0069561e4f103e2fd89101e096ad32b3b27c6f4777c26c1388f8",- "frontend-modern/src/components/Storage/useEnhancedStorageBarModel.ts": "d03daecfe22ede32e46edc74a20e4ac11d732d4f9ca202c0b6f36c22a590aa44",- "frontend-modern/src/components/Workloads/guestRowModel.tsx": "7787854145257e13bc347c2513f89e595060e606857a9a7c4ae6c0a897b6c639",- "frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx": "f6f1b090580e4bea0d6496b908f72049c886c4faeee7aca3a3b11e9417c67df7",- "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx": "adbae773cc485f5dc16d1d316bbd5e1b1ace6be24404861ce02bf7dd8890bb25",- "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx": "786be66c40d33006edc1eda234df083ee68e0296103882ff108711026dd2ea29",- "frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx": "6a546a5c1e8a9bbe6a2bdeac61c988a8e9f35cf96888adff245a5efd7017769e",- "frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsx": "fdc9fc2720ed04771f5c9d271f8972a4dece25e165064183fcf59678466a970e",- "frontend-modern/src/features/proxmox/proxmoxBackupRecoveryModel.ts": "b872437fb4cfb61b07e0c949ae6f323d6fd3f2622e57480931f7ef74fafe79c2",- "frontend-modern/src/features/proxmox/proxmoxBackupsTablePresentation.ts": "dc2641e74f12ed01b5e2a1424f2223c8ca136fa4e0321dd49a79e5ce458fc3cd",- "frontend-modern/src/features/proxmox/proxmoxBackupsTableShared.tsx": "2ab0f6c58e18337f05ea85082ed5c465a625c5388ff82987eec41bbbe3005915",- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "4aab84754245dda70c3b3be3e81b15875a8664d38c8d0325329b2074b6c26fd5",- "frontend-modern/src/features/storageBackups/diskDetailPresentation.ts": "4366372e6acf67ac62e03a2c9c34e599d304724a1c79e17b60503bdae9aa6fe3",- "frontend-modern/src/features/storageBackups/diskPresentation.ts": "fc637ecfee6ffff80ee826bdb8ff546ef0dd8ffa5cd0790c19b1fdcf71dcfb65",- "frontend-modern/src/features/storageBackups/rowPresentation.ts": "cabd37e3f736467aecff68359fcb97be08bcabbe5c5ec6e0a0da2fe67d2e3261",- "frontend-modern/src/features/storageBackups/storageBarPresentation.ts": "562eac2212378e98823717f712c791133cebf1f44bd71c75c7db097b244f6cc0",- "frontend-modern/src/features/storageBackups/storagePagePresentation.ts": "2a93a0176b912283c77b384ee2c66c4bc62c21a04b645eb93917a41740ad2d6e"+ "frontend-modern/src/components/Workloads/StackedDiskBar.tsx": "54f1f84dac768c6e0e333254d5c65e59751fa78b5ac55826cdaa37085a73c608",+ "frontend-modern/src/components/Workloads/stackedDiskBarModel.ts": "9fde1740e300724ef9cab4a3b036c942bdab6e5d2060f262606b27f4b1a40ea6",+ "frontend-modern/src/features/docker/DockerImagesTable.tsx": "29284b34d9631f118a449da1c274b1028e3cea57aed37a3ac056e48e05b2b613",+ "frontend-modern/src/features/docker/DockerServicesTable.tsx": "5a153e4b3533849ae952dadb50e512fadb87fcc9fba05403509168d8bb5caba6",+ "frontend-modern/src/features/docker/DockerTasksTable.tsx": "58cf1656ba22475b52dc9a582a4d8f0cc8c01f38bfb3775518edac73dbf22b80",+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts": "b821b9caf65d5c247e543a6d6dbf0925f735b617c6393066d0f8c15a10e05e72",+ "frontend-modern/src/features/storageBackups/resourceStoragePresentation.ts": "933723fb9afeeb53afa46946a346daca19d50c0d61a81fc0730498ebd8c09bb2",+ "frontend-modern/src/features/storageBackups/storageAdapters.ts": "daa85c5d99903d5a5fb10070837106b91f06ad130cae320472b2d980b979fb48",+ "frontend-modern/src/hooks/useUnifiedResources.ts": "166e45835c56d00f1a3ddbc37f7127348a0e36dc7c42c921f972db7750c603c6"},"routes": [- "Existing storage pool and physical-disk tables / disk expansion",- "Existing Kubernetes controller table / production resource summary expansion",- "Existing Proxmox coverage, By date, PBS/node tables and guest row",- "Existing Settings Update History confirmation"+ "Existing Proxmox Mail Gateway table through production REST mapper",+ "Existing storage-pool table through production adapter",+ "Existing Docker container, image, Swarm service and task tables",+ "Existing multi-disk Bars cell"],"viewports": [{- "width": 1365,+ "width": 1440,"height": 900},{"width": 390,"height": 844- },- {- "width": 768,- "height": 900}],"states": [- "Completed backup stays 13d old alongside a separate fresh 30m guest snapshot; missing independent backup remains unit-covered",- "Structured ZFS scrub/resilver activity badges render at desktop/intermediate width; phone retains Degraded/Online and measured 59% capacity",- "Disk table verdict keeps full SMART reason in the expanded header without phone overflow",- "Job and CronJob absolute timestamps, elapsed duration, target, schedule, suspension and last-success remain reachable from phone row expansion",- "Consent names running and selected historical versions separately and declares absent restore scope; legacy and installation-only effects are distinguished",- "Rejected rollback keeps consent and error toast; pending actions cannot be duplicated or cancelled",- "All sixteen final screenshots inspected; Playwright 1.56.1 matches integration lock, light desktop/intermediate Chromium and dark touch phone WebKit"+ "PMG REST-first queue 11, canonical in-memory store hydration then newer REST queue 19, removed PMG facet withdrawn",+ "LVM-Thin and NFS plugin names; explicit shared cluster location reads Shared (3), local node remains pve2",+ "Phone container identity, State/CPU/memory/Updates remain visible; Restarts 7 reachable by touch disclosure",+ "Image phone projection keeps size and verdict; Host/Used by headers and cells hidden together",+ "Swarm raw rollback_started reads as Rollback started; every word fits phone cell and Running heading uses Run; raw rollout and placement in keyboard/touch disclosure",+ "Task started time reads as relative time on desktop with original timestamp retained; phone hides the started column",+ "Fullest measured disk label 92% with /data evidence and unchanged two equal-weight member bars"],"interactions": [- "Expand/collapse real resource and disk rows",- "Open consent using keyboard Enter, cancel and return focus without a rollback write",- "Reject one synthetic rollback POST, then hold/accept a second while checking disabled duplicate/cancel and Escape behaviour",- "Select existing backup projections with independent archive and guest snapshot dates"+ "REST-first load before in-memory canonical-store hydration",+ "Canonical store hydration, newer REST refresh, removed facet refresh and restored observation",+ "Touch container row expansion, keyboard Enter on Swarm disclosure and touch service row expansion",+ "Fixture-only tab switching between production tables; no mutation clicked"+ ],+ "browsers": [+ {+ "engine": "desktop",+ "version": "141.0.7390.37"+ },+ {+ "engine": "phone",+ "version": "26.0"+ }],+ "playwright_version": "1.56.1",+ "checks": 40,+ "screenshots": 18,+ "command": "pulse-worker-browser frontend-modern/browser-tests/proxmox-docker-rows.cjs",+ "evidence": "browser-tests/proxmox-docker-rows.cjs and invocation browser-verified-result.json / browser-images.json","limitations": [- "Synthetic observations and HTTP responses through production components and CSS in a local Vite preview. Not native appliance data/authorisation, reporter cause, released availability, actual rollback, Tailscale or SSE acceptance.",- "The History API exposes no restore-scope metadata; no version heuristic or free-form note establishes scope. The UI conservatively says it is unknown.",- "Full provider identifiers remain titles/search targets. Some long row names and secondary intermediate-width fields intentionally truncate; this does not prove every native estate or every value fits.",- "The frontend graph is unchanged and its seven high GHSA-vfj7-8cjw-p6xm findings remain; browser/component/build proof is not audit clearance."+ "Synthetic REST and canonical in-memory store hydration, not a native websocket wire or appliance test",+ "Not backend adoption, authorisation grant, mutative lifecycle execution, installed recovery or release acceptance",+ "Seven high braces advisory findings in unchanged dependency graph remain unresolved; offline browser proof does not clear required audit"]}diff --git a/frontend-modern/src/components/Workloads/StackedDiskBar.tsx b/frontend-modern/src/components/Workloads/StackedDiskBar.tsxindex 6c1f78d5fe..1ae9b1098d 100644--- a/frontend-modern/src/components/Workloads/StackedDiskBar.tsx+++ b/frontend-modern/src/components/Workloads/StackedDiskBar.tsx@@ -189,44 +189,57 @@ export function StackedDiskBar(props: StackedDiskBarProps) {</Show>}>- {/* Vertical micro-bars: one per disk, fill height = utilization, color = threshold */}+ {/* Vertical micro-bars: one per disk, fill height = utilization, color = threshold.+ The fullest disk's percentage sits beside them so the cell still reads+ as a number at a glance; every bar keeps equal weight. */}<divdata-stacked-disk-triggerclass="h-full w-full"onMouseEnter={state.handleMouseEnter}onMouseLeave={state.handleMouseLeave}>- <div class="flex h-full items-end justify-center gap-[3px]">- <For each={presentation().verticalBars}>- {(bar) => (- <div- class="group/disk relative h-full w-[5px] shrink-0 cursor-help overflow-hidden rounded-sm bg-surface-hover ring-1 ring-transparent transition-[transform,box-shadow,ring-color] duration-100 hover:scale-y-[1.08] hover:ring-base-content/30"- title={bar.title}- >+ <div class="flex h-full items-center justify-center gap-1.5">+ <Show when={presentation().verticalBarsLabel}>+ <span+ data-stacked-disk-max-label+ class="shrink-0 text-[10px] font-semibold leading-none tabular-nums text-base-content"+ title={presentation().verticalBarsLabelTitle}+ >+ {presentation().verticalBarsLabel}+ </span>+ </Show>+ <div class="flex h-full items-end justify-center gap-[3px]">+ <For each={presentation().verticalBars}>+ {(bar) => (<div- data-stacked-disk-fill="vertical"- class="absolute inset-0 rounded-sm brightness-100 transition-[filter] duration-100 group-hover/disk:brightness-125"+ class="group/disk relative h-full w-[5px] shrink-0 cursor-help overflow-hidden rounded-sm bg-surface-hover ring-1 ring-transparent transition-[transform,box-shadow,ring-color] duration-100 hover:scale-y-[1.08] hover:ring-base-content/30"+ title={bar.title}>- <svg- aria-hidden="true"- class="absolute inset-0 h-full w-full"- viewBox="0 0 100 100"- preserveAspectRatio="none"+ <div+ data-stacked-disk-fill="vertical"+ class="absolute inset-0 rounded-sm brightness-100 transition-[filter] duration-100 group-hover/disk:brightness-125">- <rect- class="metric-fill-geometry"- x="0"- y={invertPercent(bar.fillPercent)}- width="100"- height={clampPercent(bar.fillPercent)}- rx="2"- fill={bar.color}- />- </svg>+ <svg+ aria-hidden="true"+ class="absolute inset-0 h-full w-full"+ viewBox="0 0 100 100"+ preserveAspectRatio="none"+ >+ <rect+ class="metric-fill-geometry"+ x="0"+ y={invertPercent(bar.fillPercent)}+ width="100"+ height={clampPercent(bar.fillPercent)}+ rx="2"+ fill={bar.color}+ />+ </svg>+ </div></div>- </div>- )}- </For>+ )}+ </For>+ </div></div></div></Show>diff --git a/frontend-modern/src/components/Workloads/__tests__/StackedDiskBar.test.tsx b/frontend-modern/src/components/Workloads/__tests__/StackedDiskBar.test.tsxindex e550f069a0..391101ac73 100644--- a/frontend-modern/src/components/Workloads/__tests__/StackedDiskBar.test.tsx+++ b/frontend-modern/src/components/Workloads/__tests__/StackedDiskBar.test.tsx@@ -587,4 +587,36 @@ describe('StackedDiskBar', () => {expect(bar?.getAttribute('fill')).toContain('239, 68, 68');});});++ describe('vertical-bars mode', () => {+ it('labels the micro-bars with the fullest disk so the cell reads as a number', () => {+ const { container } = render(() => (+ <StackedDiskBar+ mode="vertical-bars"+ disks={[+ makeDisk({ mountpoint: '/', usage: 24, used: 24, total: 100 }),+ makeDisk({ mountpoint: '/data', usage: 52, used: 52, total: 100 }),+ ]}+ />+ ));++ const label = container.querySelector('[data-stacked-disk-max-label]');+ expect(label).toHaveTextContent('52%');+ expect(label).toHaveAttribute('title', 'Highest usage: /data 52%');+ // Every disk keeps its own bar with equal weight; the label is derived.+ expect(container.querySelectorAll('[data-stacked-disk-fill="vertical"]')).toHaveLength(2);+ });++ it('omits the label when no disk has measured usage', () => {+ const { container } = render(() => (+ <StackedDiskBar+ mode="vertical-bars"+ disks={[makeDisk({ mountpoint: '/', usage: -1 })]}+ aggregateDisk={makeDisk({ usage: 30 })}+ />+ ));++ expect(container.querySelector('[data-stacked-disk-max-label]')).toBeNull();+ });+ });});diff --git a/frontend-modern/src/components/Workloads/__tests__/stackedDiskBarModel.branchcov0712b.test.ts b/frontend-modern/src/components/Workloads/__tests__/stackedDiskBarModel.branchcov0712b.test.tsindex 054068a04c..b56964dfe4 100644--- a/frontend-modern/src/components/Workloads/__tests__/stackedDiskBarModel.branchcov0712b.test.ts+++ b/frontend-modern/src/components/Workloads/__tests__/stackedDiskBarModel.branchcov0712b.test.ts@@ -372,6 +372,10 @@ describe('stackedDiskBarModel (branch coverage 2)', () => {title: '/x: 40% (40.0 B/100 B)',});expect(p.verticalBars[1].color).toBe(CRITICAL); // 120% -> critical+ // The fullest disk's usage labels the cell so a multi-disk host still+ // reads as a number without a hover.+ expect(p.verticalBarsLabel).toBe('120%');+ expect(p.verticalBarsLabelTitle).toBe('Highest usage: /y 120%');expect(p.tooltipContent).toHaveLength(3);expect(p.tooltipContent[2]).toMatchObject({ label: '/z', percent: '—', used: '?' });});diff --git a/frontend-modern/src/components/Workloads/stackedDiskBarModel.ts b/frontend-modern/src/components/Workloads/stackedDiskBarModel.tsindex 7b2adc3f65..ed72f85037 100644--- a/frontend-modern/src/components/Workloads/stackedDiskBarModel.ts+++ b/frontend-modern/src/components/Workloads/stackedDiskBarModel.ts@@ -87,6 +87,10 @@ export interface StackedDiskBarPresentation {tooltipTitle: string;useStackedSegments: boolean;verticalBars: StackedDiskVerticalBar[];+ // The fullest disk's usage, shown beside the micro-bars so a multi-disk+ // host answers "how close is this host to running out?" without a hover.+ verticalBarsLabel: string;+ verticalBarsLabelTitle: string;verticalBarsMode: boolean;}@@ -359,6 +363,8 @@ export function buildStackedDiskBarPresentation(};}): [];+ const verticalBarsLabel = verticalBarsMode && maxInfo ? formatPercent(maxInfo.percent) : '';+ const verticalBarsLabelTitle = verticalBarsMode && maxInfo ? maxLabelFull : '';const tooltipContent = buildTooltipContent(allDisks, {aggregateDisk: props.aggregateDisk,aggregateMode,@@ -402,6 +408,8 @@ export function buildStackedDiskBarPresentation(tooltipTitle: allDisks.length > 1 ? 'Disk Breakdown' : 'Disk Usage',useStackedSegments,verticalBars,+ verticalBarsLabel,+ verticalBarsLabelTitle,verticalBarsMode,};}diff --git a/frontend-modern/src/features/docker/DockerImagesTable.tsx b/frontend-modern/src/features/docker/DockerImagesTable.tsxindex 88345be440..744bc18b71 100644--- a/frontend-modern/src/features/docker/DockerImagesTable.tsx+++ b/frontend-modern/src/features/docker/DockerImagesTable.tsx@@ -152,7 +152,7 @@ export const DockerImagesTable: Component<kind="text"sort={sort}sortKey="host"- class="platform-table-mobile-w-15 md:w-[18%]"+ class="platform-table-phone-hidden md:w-[18%]">Host</PlatformSortableTableHead>@@ -160,7 +160,7 @@ export const DockerImagesTable: Component<kind="text"sort={sort}sortKey="usedBy"- class="platform-table-mobile-w-15 md:w-[24%]"+ class="platform-table-phone-hidden md:w-[24%]">Used by</PlatformSortableTableHead>@@ -168,7 +168,7 @@ export const DockerImagesTable: Component<kind="numeric-value"sort={sort}sortKey="size"- class="platform-table-mobile-w-15 md:w-[12%]"+ class="platform-table-mobile-w-20 md:w-[12%]">Size</PlatformSortableTableHead>@@ -176,7 +176,7 @@ export const DockerImagesTable: Component<kind="badge"sort={sort}sortKey="update"- class="platform-table-mobile-w-15 md:w-[16%]"+ class="platform-table-mobile-w-25 md:w-[16%]"><PlatformResponsiveTableLabel compact="Update" full="Update check" /></PlatformSortableTableHead>@@ -211,13 +211,15 @@ export const DockerImagesTable: Component</>}/>+ {/* Host and consumers fit the row expansion on a phone; the+ row keeps the image, its size and the update verdict. */}<TableCell- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content platform-table-phone-hidden`}>{dockerHostName(resource)}</TableCell><TableCell- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}+ class={`${getPlatformTableCellClassForKind('text')} text-base-content platform-table-phone-hidden`}><spanclass="inline-block max-w-[20rem] truncate"diff --git a/frontend-modern/src/features/docker/DockerServicesTable.tsx b/frontend-modern/src/features/docker/DockerServicesTable.tsxindex e86b6b98c2..041a334ec0 100644--- a/frontend-modern/src/features/docker/DockerServicesTable.tsx+++ b/frontend-modern/src/features/docker/DockerServicesTable.tsx@@ -7,6 +7,7 @@ import {PlatformWindowedRows,PLATFORM_HEALTH_FILTER_OPTIONS,PlatformSortableTableHead,+ PlatformResponsiveTableLabel,PlatformTableNumberValue,PlatformTableToolbar,PlatformTableEmptyState,@@ -74,7 +75,12 @@ const formatServiceUpdate = (return { label: 'Stable', title: 'No active service update reported' };}- const label = state || 'Updating';+ // Docker reports the rollout state as a snake_case token+ // ("rollback_started"); read it as words in the cell and keep the raw+ // token, message and completion time in the title.+ const label = state+ ? state.replace(/[_-]+/g, ' ').replace(/^./, (c) => c.toUpperCase())+ : 'Updating';const title = [state, message, completedAt].filter(Boolean).join(' | ') || label;return { label, title };};@@ -256,7 +262,7 @@ export const DockerServicesTable: Component<{sortKey="running"class="platform-table-mobile-w-10 w-[10%] md:w-[8%]">- Running+ <PlatformResponsiveTableLabel compact="Run" full="Running" /></PlatformSortableTableHead><PlatformSortableTableHeadkind="text"@@ -355,7 +361,7 @@ export const DockerServicesTable: Component<{class={`${getPlatformTableCellClassForKind('text')} text-base-content`}><span- class="truncate inline-block max-w-[10rem]"+ class="inline-block max-w-full whitespace-normal break-words leading-3 md:max-w-[10rem] md:truncate md:leading-normal"title={update().title}>{update().label}diff --git a/frontend-modern/src/features/docker/DockerTasksTable.tsx b/frontend-modern/src/features/docker/DockerTasksTable.tsxindex d5f01c409a..50a7e7e929 100644--- a/frontend-modern/src/features/docker/DockerTasksTable.tsx+++ b/frontend-modern/src/features/docker/DockerTasksTable.tsx@@ -12,6 +12,7 @@ import {createPlatformTableSortState,getPlatformTableCellClassForKind,getPlatformTableDateTimeSortValue,+ PlatformTableRelativeTimeValue,PlatformTableShell,type PlatformTableSortValue,withPlatformStatusCounts,@@ -255,11 +256,10 @@ export const DockerTasksTable: Component<DockerNativeTableProps> = (props) => {<TableCellclass={`${getPlatformTableCellClassForKind('text')} platform-table-narrow-hidden hidden text-base-content md:table-cell`}>- <span- class="inline-block max-w-[12rem] truncate"- title={dockerTextValue(resource.docker?.startedAt)}- >- {dockerTextValue(resource.docker?.startedAt)}+ {/* Swarm reports a raw RFC3339 stamp with microseconds; an age+ reads at a glance and the stamp stays in the title. */}+ <span title={dockerTextValue(resource.docker?.startedAt)}>+ <PlatformTableRelativeTimeValue value={resource.docker?.startedAt} /></span></TableCell></TableRow>diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsxindex 1695ae6c76..0e34de84ec 100644--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx@@ -1505,6 +1505,8 @@ describe('Docker native tables', () => {));expect(screen.getByText('Update')).toBeInTheDocument();+ expect(screen.getByText('Run')).toHaveClass('platform-table-label-compact');+ expect(screen.getByText('Running')).toHaveClass('platform-table-label-full');expect(screen.getByText('Stack')).toBeInTheDocument();expect(screen.getByText('shop')).toBeInTheDocument();expect(screen.getByText('checkout-api')).toBeInTheDocument();@@ -1512,7 +1514,12 @@ describe('Docker native tables', () => {expect(screen.getByText('replicated')).toBeInTheDocument();expect(screen.getByText('4')).toBeInTheDocument();expect(screen.getByText('2')).toBeInTheDocument();- expect(screen.getByText('rollback_started')).toBeInTheDocument();+ // The snake_case rollout token reads as words; the raw token stays in the title.+ expect(screen.getByText('Rollback started')).toBeInTheDocument();+ expect(screen.getByText('Rollback started')).toHaveClass('whitespace-normal', 'break-words');+ expect(+ screen.getByText('Rollback started').closest('[title]')?.getAttribute('title'),+ ).toContain('rollback_started');expect(screen.getByText('18080:8080/tcp')).toBeInTheDocument();expect(screen.getByText('manager-1')).toBeInTheDocument();expect(document.querySelector('[data-docker-service-row="service-1"]')).not.toBeNull();@@ -1651,7 +1658,10 @@ describe('Docker native tables', () => {expect(screen.getByText('web.2')).toBeInTheDocument();expect(screen.getByText('web')).toBeInTheDocument();expect(screen.getByText('running 2 minutes')).toBeInTheDocument();- expect(screen.getByText('2026-05-24T13:05:00Z')).toBeInTheDocument();+ // The raw RFC3339 stamp moves to the title; the cell shows an age.+ const started = screen.getByTitle('2026-05-24T13:05:00Z');+ expect(started).toBeInTheDocument();+ expect(started.textContent).toMatch(/ago$/);});it('renders Docker Swarm secret API metadata without secret data', () => {diff --git a/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts b/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.tsindex f8a8fc36f4..41f10a0869 100644--- a/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts+++ b/frontend-modern/src/features/docker/__tests__/dockerContainerTableModel.test.ts@@ -30,7 +30,9 @@ describe('dockerContainerTableModel', () => {const columns = getDockerContainerVisibleColumnsForLayout('phone', true, true, true);const ids = columns.map((column) => column.id);- expect(ids).toEqual(['container', 'state', 'cpu', 'memory', 'restarts', 'updates']);+ // Restarts waits for mobile width: a phone row could not fit its header+ // beside the Update control, and the count stays in the row expansion.+ expect(ids).toEqual(['container', 'state', 'cpu', 'memory', 'updates']);expect(getDockerContainerColumnWidthStyle('container', 'phone', ids)).toEqual({width: '30%',});diff --git a/frontend-modern/src/features/docker/dockerContainerTableModel.ts b/frontend-modern/src/features/docker/dockerContainerTableModel.tsindex b573f3aba2..2961092c89 100644--- a/frontend-modern/src/features/docker/dockerContainerTableModel.ts+++ b/frontend-modern/src/features/docker/dockerContainerTableModel.ts@@ -70,7 +70,9 @@ const DOCKER_CONTAINER_COLUMN_MIN_LAYOUT: Record<state: 'narrow',cpu: 'narrow',memory: 'narrow',- restarts: 'phone',+ // A phone row cannot fit the Restarts header beside the Update control;+ // the count stays in the row expansion there and returns at mobile width.+ restarts: 'mobile',updates: 'narrow',actions: 'mobile',host: 'tablet',@@ -126,11 +128,10 @@ const DOCKER_CONTAINER_RESPONSIVE_WIDTHS: Record<},phone: {container: 32,- state: 13,- cpu: 15,- memory: 17,- restarts: 10,- updates: 13,+ state: 14,+ cpu: 14,+ memory: 14,+ updates: 16,},mobile: {container: 30,@@ -151,17 +152,20 @@ const DOCKER_CONTAINER_RESPONSIVE_WIDTHS: Record<updates: 9,actions: 6,},+ // Compact is what a 1280-1536px laptop window gets. Host, Engine and the+ // Update control are short values that were clipped ("docker 2…") while the+ // percentage-only CPU and memory bars had room to spare.compact: {container: 18,- host: 10,- runtime: 8,- image: 18,+ host: 12,+ runtime: 9.5,+ image: 16.5,state: 7,- cpu: 11,- memory: 12,- restarts: 9,+ cpu: 9.5,+ memory: 10,+ restarts: 8.5,ports: 12,- updates: 9,+ updates: 10,actions: 8,},};diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.tsindex 2d6a7f9cf7..4bc6ed695f 100644--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts@@ -322,7 +322,7 @@ describe('platform overview layout guardrails', () => {expect(source).toContain('platform-table-mobile-w-30');}expect(dockerImagesTableSource).toMatch(- /sortKey="size"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[12%\]"/,+ /sortKey="size"[\s\S]{0,120}?class="platform-table-mobile-w-20 md:w-\[12%\]"/,);expect(dockerServicesTableSource).toMatch(/sortKey="mode"[\s\S]{0,120}?class="platform-table-phone-hidden md:w-\[8%\]"/,diff --git a/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.tsindex 14cd9deebd..5185db68c3 100644--- a/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts+++ b/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts@@ -62,6 +62,14 @@ describe('resourceStoragePresentation', () => {),).toBe('Datastore');expect(getResourceStorageTopologyLabel(makeResource(), 'rbd')).toBe('Cluster Storage');+ // Proxmox plugin names are acronyms or compound words; title-casing them+ // produced "Lvmthin" for every default local-lvm storage and "Nfs".+ expect(getResourceStorageTopologyLabel(makeResource(), 'lvmthin')).toBe('LVM-Thin');+ expect(getResourceStorageTopologyLabel(makeResource(), 'lvm')).toBe('LVM');+ expect(getResourceStorageTopologyLabel(makeResource(), 'nfs')).toBe('NFS');+ expect(getResourceStorageTopologyLabel(makeResource(), 'cifs')).toBe('SMB/CIFS');+ expect(getResourceStorageTopologyLabel(makeResource(), 'iscsi')).toBe('iSCSI');+ expect(getResourceStorageTopologyLabel(makeResource(), 'btrfs')).toBe('BTRFS');expect(getResourceStorageTopologyLabel(makeResource(), 'ignored', 'rebuild target')).toBe('Rebuild Target',);diff --git a/frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.ts b/frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.tsindex 96866fbeda..7e5917d601 100644--- a/frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.ts+++ b/frontend-modern/src/features/storageBackups/__tests__/storageAdapters.test.ts@@ -467,6 +467,37 @@ describe('storageAdapters', () => {expect(records[0].hostLabel).toBe('pve1');});+ it('labels a poller-merged shared storage as shared with its node count', () => {+ const records = buildStorageRecords({+ state: baseState(),+ resources: [+ makeResourceStorage({+ id: 'cluster-a-cluster-nfs-iso',+ name: 'nfs-iso',+ parentName: 'cluster',+ platformData: { type: 'nfs', node: 'cluster', instance: 'cluster-a', shared: true },+ storage: {+ type: 'nfs',+ shared: true,+ nodes: ['pve1', 'pve2', 'pve3'],+ } as Resource['storage'],+ }),+ makeResourceStorage({+ id: 'pve2-local-lvm',+ name: 'local-lvm',+ parentName: 'pve2',+ platformData: { type: 'lvmthin', node: 'pve2', instance: 'cluster-a', shared: false },+ storage: { type: 'lvmthin', shared: false } as Resource['storage'],+ }),+ ],+ });++ // The poller folds a shared storage into one entry on the synthetic+ // "cluster" node; a node-local storage keeps its node name.+ expect(records.map((record) => record.hostLabel)).toEqual(['Shared · 3 nodes', 'pve2']);+ expect(records.map((record) => record.topologyLabel)).toEqual(['NFS', 'LVM-Thin']);+ });+it('keeps dependency impact separate from healthy storage primary issues', () => {const records = buildStorageRecords({state: baseState(),diff --git a/frontend-modern/src/features/storageBackups/resourceStoragePresentation.ts b/frontend-modern/src/features/storageBackups/resourceStoragePresentation.tsindex 0c3b5d618a..9302b84d66 100644--- a/frontend-modern/src/features/storageBackups/resourceStoragePresentation.ts+++ b/frontend-modern/src/features/storageBackups/resourceStoragePresentation.ts@@ -244,6 +244,30 @@ export const getResourceStorageTopologyLabel = (case 'rbd':case 'cephfs':return 'Cluster Storage';+ // Proxmox storage plugin names are acronyms or compound words that+ // title-casing mangles ("Lvmthin" for the default local-lvm, "Nfs"); use+ // the names the Proxmox UI shows for them.+ case 'nfs':+ return 'NFS';+ case 'cifs':+ case 'smb':+ return 'SMB/CIFS';+ case 'lvm':+ return 'LVM';+ case 'lvmthin':+ case 'lvm-thin':+ return 'LVM-Thin';+ case 'iscsi':+ case 'iscsidirect':+ return 'iSCSI';+ case 'zfs':+ return 'ZFS';+ case 'btrfs':+ return 'BTRFS';+ case 'glusterfs':+ return 'GlusterFS';+ case 'esxi':+ return 'ESXi';default:return titleize(storageType) || titleize(resource.type) || 'Storage';}diff --git a/frontend-modern/src/features/storageBackups/storageAdapters.ts b/frontend-modern/src/features/storageBackups/storageAdapters.tsindex 19b8ac6598..7e22fdd6d7 100644--- a/frontend-modern/src/features/storageBackups/storageAdapters.ts+++ b/frontend-modern/src/features/storageBackups/storageAdapters.ts@@ -129,7 +129,16 @@ const mapResourceStorageRecord = (resource: Resource, adapterId: string): Storagconst usedBytes = asNumberOrNull(resource.disk?.used);const freeBytes = asNumberOrNull(resource.disk?.free);const canonicalPlatform = getCanonicalStoragePlatformKey(resource, resource.storage?.platform);- const hostLabel = locationLabel;+ // The poller folds a shared storage into one entry whose node is the+ // synthetic "cluster" marker (the mock uses "shared"); show that as a+ // shared storage with its reporting node count rather than a node name.+ const sharedLocationMarkers = new Set(['cluster', 'shared']);+ const hostLabel =+ shared && sharedLocationMarkers.has(locationLabel.trim().toLowerCase())+ ? storageNodes.length > 1+ ? `Shared · ${storageNodes.length} nodes`+ : 'Shared'+ : locationLabel;const platformLabel = getResourceStoragePlatformLabel(canonicalPlatform);const issueLabel = getResourceStorageIssueLabel(resource);const issueSummary = getResourceStorageIssueSummary(resource);diff --git a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.tsindex 3408c0079d..ef2dfae357 100644--- a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts+++ b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts@@ -2,6 +2,7 @@ import { batch, createRoot, createSignal } from 'solid-js';import { createStore, reconcile, type SetStoreFunction } from 'solid-js/store';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { buildProxmoxPageModel } from '@/features/proxmox/proxmoxPageModel';+import { getDockerContainerLifecycleDisabledReason } from '@/features/docker/dockerContainerLifecycleActions';import type { State } from '@/types/api';import type { Resource } from '@/types/resource';import useUnifiedResourcesSource from '../useUnifiedResources.ts?raw';@@ -1626,6 +1627,173 @@ describe('useUnifiedResources', () => {dispose();});+ it('keeps PMG metadata on the canonical resource for REST-first paints', async () => {+ // The Mail Gateway table reads `resource.pmg`. The mapper used to keep it+ // only under platformData, so a REST-sourced row rendered every PMG column+ // as a dash until a websocket row happened to replace it.+ apiFetchMock.mockResolvedValueOnce({+ ok: true,+ json: async () => ({+ data: [+ {+ id: 'pmg-1',+ type: 'pmg',+ name: 'mail-gateway-eu',+ status: 'online',+ lastSeen: '2026-02-06T12:00:00Z',+ sources: ['pmg'],+ uptime: 1_555_222,+ technology: 'pmg',+ sourceStatus: { pmg: { status: 'online', lastSeen: '2026-02-06T12:00:00Z' } },+ actionReadiness: [{ name: 'restart', available: true }],+ pmg: {+ instanceId: 'pmg-eu',+ hostname: 'pmg.example.lan',+ version: '8.1-2',+ nodeCount: 1,+ mailCountTotal: 2_740,+ spamIn: 321,+ virusIn: 14,+ queueTotal: 11,+ queueDeferred: 5,+ },+ },+ ],+ }),+ });++ let dispose = () => {};+ let result: ReturnType<UseUnifiedResourcesModule['useUnifiedResources']> | undefined;+ createRoot((d) => {+ dispose = d;+ result = useUnifiedResources({ query: 'type=pmg&source=pmg', cacheKey: 'pmg-first-paint' });+ });++ await result!.refetch();+ const row = result!.resources().find((resource) => resource.id === 'pmg-1');+ expect(row?.pmg).toEqual(+ expect.objectContaining({ version: '8.1-2', spamIn: 321, queueDeferred: 5 }),+ );+ expect(row?.platformData?.pmg).toEqual(row?.pmg);+ // The per-source status, action readiness, and technology facets ride the+ // same race: Docker lifecycle actions and storage freshness read them at+ // the top level, where only websocket rows used to carry them.+ expect(row?.sourceStatus?.pmg?.status).toBe('online');+ expect(row?.actionReadiness?.[0]?.name).toBe('restart');+ expect(row?.technology).toBe('pmg');++ dispose();+ });++ it.each([+ {+ label: 'stale inventory',+ sourceStatus: { docker: { status: 'stale', lastSeen: '2026-02-06T12:00:00Z' } },+ actionReadiness: [],+ expected: 'Docker inventory is stale. Refresh inventory before running lifecycle actions.',+ },+ {+ label: 'failed inventory',+ sourceStatus: {+ docker: { status: 'online', lastSeen: '2026-02-06T12:00:00Z', error: 'Collector refused' },+ },+ actionReadiness: [],+ expected: 'Docker inventory is not healthy: Collector refused',+ },+ {+ label: 'server action refusal',+ sourceStatus: { docker: { status: 'online', lastSeen: '2026-02-06T12:00:00Z' } },+ actionReadiness: [+ { name: 'restart', available: false, reason: 'Command agent disconnected' },+ ],+ expected: 'Command agent disconnected',+ },+ {+ label: 'no invented action grant',+ sourceStatus: { docker: { status: 'online', lastSeen: '2026-02-06T12:00:00Z' } },+ actionReadiness: [],+ expected:+ 'Pulse does not currently advertise a fresh restart command capability for this container.',+ },+ ])('preserves $label through REST mapping into lifecycle controls', async (testCase) => {+ apiFetchMock.mockResolvedValue(+ resourceResponse([+ {+ id: 'docker-container-1',+ type: 'app-container',+ name: 'edge-web',+ status: 'running',+ lastSeen: '2026-02-06T12:00:00Z',+ sources: ['docker'],+ technology: 'docker',+ docker: { runtime: 'docker', agentId: 'agent-edge', containerState: 'running' },+ sourceStatus: testCase.sourceStatus,+ actionReadiness: testCase.actionReadiness,+ },+ ]),+ );+ let dispose = () => {};+ let result: ReturnType<UseUnifiedResourcesModule['useUnifiedResources']> | undefined;+ createRoot((d) => {+ dispose = d;+ result = useUnifiedResources({ query: 'type=app-container', cacheKey: testCase.label });+ });+ try {+ await result!.refetch();+ const row = result!.resources()[0];+ expect(row.sourceStatus).toEqual(testCase.sourceStatus);+ expect(row.actionReadiness).toEqual(testCase.actionReadiness);+ expect(row.technology).toBe('docker');+ expect(getDockerContainerLifecycleDisabledReason(row, 'restart')).toBe(testCase.expected);+ } finally {+ dispose();+ }+ });++ it('replaces REST facets without retaining a removed PMG counter or action refusal', async () => {+ const base = {+ id: 'pmg-1',+ type: 'pmg',+ name: 'mail-gateway',+ status: 'online',+ sources: ['pmg'],+ lastSeen: '2026-02-06T12:00:00Z',+ };+ apiFetchMock.mockResolvedValue(+ resourceResponse([+ {+ ...base,+ technology: 'pmg',+ pmg: { version: '8.1-2', queueTotal: 11 },+ sourceStatus: { pmg: { status: 'stale', lastSeen: base.lastSeen } },+ actionReadiness: [{ name: 'restart', available: false, reason: 'Old refusal' }],+ },+ ]),+ );+ let dispose = () => {};+ let result: ReturnType<UseUnifiedResourcesModule['useUnifiedResources']> | undefined;+ createRoot((d) => {+ dispose = d;+ result = useUnifiedResources({ query: 'type=pmg', cacheKey: 'removed-rest-facets' });+ });+ try {+ await result!.refetch();+ expect(result!.resources()[0].pmg?.queueTotal).toBe(11);+ apiFetchMock.mockResolvedValue(+ resourceResponse([{ ...base, actionReadiness: [], sourceStatus: {} }]),+ );+ await result!.refetch();+ const row = result!.resources()[0];+ expect(row.pmg).toBeUndefined();+ expect(row.platformData?.pmg).toBeUndefined();+ expect(row.actionReadiness).toEqual([]);+ expect(row.sourceStatus).toEqual({});+ expect(row.technology).toBeUndefined();+ } finally {+ dispose();+ }+ });+it('falls back to canonical resource.uptime when no platform-specific field is set (vSphere)', async () => {// vSphere ESXi hosts and VMs populate only the canonical// Resource.Uptime field — there's no vmware-specific UptimeSecondsdiff --git a/frontend-modern/src/hooks/useUnifiedResources.ts b/frontend-modern/src/hooks/useUnifiedResources.tsindex 9093092194..dbb5d9b3d8 100644--- a/frontend-modern/src/hooks/useUnifiedResources.ts+++ b/frontend-modern/src/hooks/useUnifiedResources.ts@@ -18,8 +18,10 @@ import type {ResourceDockerMeta,ResourceHealth,ResourceMetricsTarget,+ ResourceActionReadiness,ResourceAvailabilityMeta,ResourcePBSMeta,+ ResourcePMGMeta,ResourcePolicyPostureSummary,ResourcePhysicalDiskMeta,ResourcePoolHealth,@@ -210,6 +212,8 @@ type APIResource = {sources?: string[];platformScopes?: string[];sourceStatus?: Record<string, { status: string; lastSeen: string; error?: string }>;+ actionReadiness?: ResourceActionReadiness[];+ technology?: string;health?: ResourceHealth;identity?: {machineId?: string;@@ -868,6 +872,17 @@ const toResource = (v2: APIResource): Resource => {truenas: v2.truenas as ResourceTrueNASMeta | undefined,vmware: v2.vmware as ResourceVMwareMeta | undefined,pbs: v2.pbs as ResourcePBSMeta | undefined,+ // Mail Gateway rows read `resource.pmg` directly. Leaving it only under+ // platformData meant a REST-first paint rendered every PMG column as a+ // dash until a websocket row happened to replace it, and never did when+ // the REST snapshot landed last.+ pmg: v2.pmg as ResourcePMGMeta | undefined,+ // Same race for the per-source status, action readiness, and technology+ // facets: Docker lifecycle actions and storage freshness read them from+ // the top level, and the websocket rows carry them there.+ sourceStatus: v2.sourceStatus,+ actionReadiness: v2.actionReadiness,+ technology: v2.technology,availability: v2.availability as ResourceAvailabilityMeta | undefined,availabilityChecks: v2.availabilityChecks as ResourceAvailabilityMeta[] | undefined,physicalDisk: v2.physicalDisk,