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
Colour a network's attached-container state words by their dot
rcourtman90ec416d2f01
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 7f41e00a69..04b964ceeb 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -5560,7 +5560,8 @@ column and the drawer's lifted Restarts row alike, never a green dot beside anamber or red count. Docker State words read in their row dot's colour through`dockerStateTextToneClass` (`DockerNativeTableShared.tsx`) with no second dot;the Docker Networks row's single name-cell dot carries its attached-container-verdict the same way. "Worth checking" renders through+verdict the same way, and each attached-container card's state words take its+dot's tone through the same helper. "Worth checking" renders through`DrawerExceptionList.tsx` directly under the alerts line, above the charts:one compact label/value line per lifted row with the shared`detailValueToneClass` tone, not a card per section. A guest memory readingdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex f64659e685..425be7099c 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -1878,7 +1878,9 @@ own status when that is worse, otherwise amber while anything attached needsattention (degraded, not down; each container keeps its own severity in theexpansion), otherwise green. The State words take that tone without a seconddot, and the table's Healthy / Degraded / Offline chips filter by the same-verdict. A phone row leaves Subnets and Driver, header and cell together, to+verdict. Inside the expansion each attached-container card's state words read+in its own dot's colour ("Unhealthy" red, "12 restarts" amber), as the+containers table's State words do. A phone row leaves Subnets and Driver, header and cell together, tothe expansion's Network details.2. `frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts` shared with `performance-and-scalability`: resource detail mappers are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.diff --git a/frontend-modern/browser-tests/proxmox-docker-rows.cjs b/frontend-modern/browser-tests/proxmox-docker-rows.cjsindex 0ea33858e8..6a4a2b3d67 100644--- a/frontend-modern/browser-tests/proxmox-docker-rows.cjs+++ b/frontend-modern/browser-tests/proxmox-docker-rows.cjs@@ -568,6 +568,24 @@ const observations = (mode) => [await chooseStatus(/^Running, 2$/);assert.deepEqual(await visibleNames(), ['edge-web', 'edge-loop']);await detail.getByText('Needs operator review', { exact: true }).waitFor();+ // Each card's state words take its dot's colour: red, then amber.+ const cardTones = await detail+ .locator('[data-docker-attachment-state]')+ .evaluateAll((spans) =>+ spans.map((s) => [+ s.textContent,+ getComputedStyle(s).color,+ s.dataset.dockerAttachmentState,+ ]),+ );+ assert.deepEqual(+ cardTones.map(([text, , variant]) => [text, variant]),+ [+ ['Unhealthy', 'danger'],+ ['12 restarts', 'warning'],+ ],+ );+ assert.notEqual(cardTones[0][1], cardTones[1][1], JSON.stringify(cardTones));await chooseStatus(/^Other, 2$/);assert.deepEqual(await visibleNames(), ['edge-queue', 'edge-cache']);await chooseStatus(/^Attention, 3$/);diff --git a/frontend-modern/browser-verification/10bbf25352c5307b.json b/frontend-modern/browser-verification/10bbf25352c5307b.jsonnew file mode 100644index 0000000000..8d27e0bc30--- /dev/null+++ b/frontend-modern/browser-verification/10bbf25352c5307b.json@@ -0,0 +1,35 @@+{+ "version": 1,+ "base_sha": "03de664ec7988d41a2d9d9c004dd87b5710605e6",+ "verified_at": "2026-10-14T16:53:44Z",+ "result": "passed",+ "changed_paths": [+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx"+ ],+ "content_sha256": {+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "780b20fe2f78440ed385b6ebe2b712de1a18081d4ece4ab0b6dc2720eb041c0b"+ },+ "routes": [+ "browser-tests/proxmox-docker-rows.html Networks view (production DockerNetworksTable over REST-mapped rows, Chromium and WebKit via Playwright 1.56.1 on pulse-dev)"+ ],+ "viewports": [+ {+ "width": 1440,+ "height": 900+ },+ {+ "width": 390,+ "height": 844+ }+ ],+ "states": [+ "attached-container cards: \"Unhealthy\" red and \"12 restarts\" amber beside dots of the same colour (old: plain text)",+ "a running card's words stay plain",+ "light desktop and dark WebKit phone contrast readable",+ "reviewed by Sol from desktop and phone screenshots"+ ],+ "interactions": [+ "network row expand",+ "attached-container Running chip, opened from Filters on the phone"+ ]+}diff --git a/frontend-modern/src/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsxindex 66ec7a38f5..fc174a89f1 100644--- a/frontend-modern/src/features/docker/DockerNetworksTable.tsx+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx@@ -276,7 +276,12 @@ const AttachmentRowCard: Component<{ row: DockerNetworkAttachmentRow }> = (props{props.row.name}</span></div>- <span class="text-base-content">{props.row.status.label}</span>+ <span+ class={dockerStateTextToneClass(props.row.status.variant) || 'text-base-content'}+ data-docker-attachment-state={props.row.status.variant}+ >+ {props.row.status.label}+ </span><span class="font-mono text-base-content" title={props.row.address}>{props.row.address}</span>diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsxindex 1b1b975be5..b232dc6298 100644--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx@@ -1819,6 +1819,11 @@ describe('Docker native tables', () => {expect(detail.getAllByText('28 of 30 containers').length).toBeGreaterThan(0);expect(detail.getByText('api-unhealthy')).toBeInTheDocument();expect(detail.getByText('Needs operator review')).toBeInTheDocument();+ // A card's state words read in its dot's colour; a plain running one does not.+ expect(detail.getByText('Unhealthy')).toHaveClass('text-red-600');+ expect(document.querySelector('[data-docker-attachment-state="success"]')).toHaveClass(+ 'text-base-content',+ );expect(detail.queryByText('api-restarting')).toBeNull();expect(detail.queryByText('worker-stopped')).toBeNull();