Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Keep phone platform table rows on one line

rcourtmanf03c0762c83e
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 4ef6fe57fc..a5fa3da60f 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1012,6 +1012,16 @@ fragments do not throw or move focus. The renderer and fragment helper are
covered by `frontend-modern/src/features/docs/__tests__/docMarkdown.test.ts`,
with direct-link, reload and keyboard navigation verified in the live viewer.
+### Visible phone row disclosure keeps rows single-line
+
+`SummaryRowActionButton` keeps a 36 px disclosure target on phones, where
+the Proxmox nodes, Docker hosts and vSphere hosts tables show it because the
+row tap scopes the table below. Negative margins let that target overhang
+the 14 px chevron, so the button no longer sets the row height: those rows
+had been 37 px beside the single-line 32 px rows of every other platform
+table. From the sm breakpoint the margins reset and the 24 px button is
+unchanged. `SummaryRowActionButton.test.tsx` pins the classes.
+
### Patrol mode route anchor opens its disclosure
Patrol mode entry points in Settings and the licence panel link to
@@ -1883,8 +1893,9 @@ 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.
+Running headings and rollout states that truncate on one line on phones;
+raw rollout and placement evidence remain reachable through the title and
+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
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 246599ddc7..1bc2e6d199 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -1289,13 +1289,20 @@ its dot's colour through `getPlatformStatusTextToneClass`: a Pod's Status
("CrashLoopBackOff" red, "Pending" amber, Running plain), a Deployment's Ready
count while replicas are short, a controller's Exceptions. The Pods Status
column takes 12 percent so a failure reason such as CrashLoopBackOff reads
-whole, and a phone, which hides that column, reads the same words under the
-Pod name. The TrueNAS and vSphere tables follow the same rule: a TrueNAS app,
-which has no State column, reads its state under its name at every width
-("Crashed" amber, Running plain); a share's State ("Disabled" red, "Attention"
-amber) and a vSphere activity's State ("Error" red) take the dot's tone; and
-where a phone hides a State column (shares, services, VMs, vSphere activity)
-the state, with any note such as "should be running", reads under the name. StatefulSet, DaemonSet, Job, and CronJob rows
+whole, and a phone, which hides that column, puts the same words on the Pod
+name's line. The TrueNAS, vSphere and Docker container tables follow the same
+rule: a TrueNAS app, which has no State column, gives its state the name's
+line at every width ("Crashed" amber); a share's State ("Disabled" red,
+"Attention" amber) and a vSphere activity's State ("Error" red) take the dot's
+tone; and where a phone hides a State column (shares, services, VMs, vSphere
+activity, Docker containers) the state, with any note such as "should be
+running", joins the name on its line. Rows stay one line tall: only a state
+that needs attention (red or amber, through `isPlatformAttentionVariant`)
+shows its words, and name and words shrink together to ellipses only when
+the cell runs out of room;
+healthy and stopped states read in the dot alone and stay available to
+screen readers (`getPlatformInlineStateClass`). Stacking the state under the
+name put two lines of text in every such phone row. StatefulSet, DaemonSet, Job, and CronJob rows
render through
`frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx` and must
preserve the Kubernetes API status semantics for desired replica/node/job
@@ -1617,8 +1624,8 @@ cells without an ellipsis and sat above the row baseline. Docker image, network,
volume, service, task, secret and config cells, Proxmox backup coverage,
restore-evidence and recoverable cells, the Mail Gateway drawer's top domains,
and vSphere host vCenter cells follow the same rule. The Docker service Update
-cell still wraps on phones and from md truncates inside its column instead of
-at a 10rem cap.
+cell truncates inside its column at every width instead of at a 10rem cap or
+wrapping onto a second phone line; the full rollout words stay in its title.
Duration and interval cells keep the same split: unified-resource or
source-specific consumers own which elapsed duration, human fallback, or poll
interval field is meaningful, while dense platform table rendering must use
diff --git a/frontend-modern/browser-verification/d15bdee060f9447c.json b/frontend-modern/browser-verification/d15bdee060f9447c.json
new file mode 100644
index 0000000000..7657f40898
--- /dev/null
+++ b/frontend-modern/browser-verification/d15bdee060f9447c.json
@@ -0,0 +1,69 @@
+{
+ "version": 1,
+ "base_sha": "019545785cc559ef9aed2181654d4aa6e9ffa9e0",
+ "verified_at": "2026-10-25T14:58:15Z",
+ "result": "passed",
+ "changed_paths": [
+ "frontend-modern/src/components/shared/SummaryRowActionButton.tsx",
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx",
+ "frontend-modern/src/features/docker/DockerNativeTableShared.tsx",
+ "frontend-modern/src/features/docker/DockerServicesTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx",
+ "frontend-modern/src/features/platformPage/platformStatusTone.ts",
+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx"
+ ],
+ "content_sha256": {
+ "frontend-modern/src/components/shared/SummaryRowActionButton.tsx": "dcad32ea8012b4f67aa9f105fad5c7515e0adcfcd5ceffc60a1052188cad3d91",
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx": "7b9a94ddd7085193947e33db885443427b09b9bfbae7d2c0b5f85b99ff0dab14",
+ "frontend-modern/src/features/docker/DockerNativeTableShared.tsx": "98f880f23e37681aace438276955dd0342173ece69a89c5294379d32a87cc336",
+ "frontend-modern/src/features/docker/DockerServicesTable.tsx": "c312f7a6620a3f07fc608fabc81370b138b73a53d1c5700286c650ca6d2d1eec",
+ "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx": "3090bfe5cf4f125afcfdfe24d987be13d5c08958f74bdbbaf864d32adb9caba9",
+ "frontend-modern/src/features/platformPage/platformStatusTone.ts": "a0fba5f5a7b1bd8e0b1e446e2d172d27391f9daf63eb342a63d2314d78e353c7",
+ "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "6adf2594aceb97f18affd95128a5c604992a440b1463134f4966a9f619c76ddf",
+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "f1874bd497ec1990686d311e860ace43c8f561d92a4505e4793472bcd9f093ac",
+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx": "0c57cf2f9d0e824beb7fe3f6163aa539e3d727cd810b31f74f6f9fefb1893506",
+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "f1e23c4cf9e0294ddf528ff83834e18def646c8ba857fc352924f740cac0bc9a",
+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "49d792507fa168cd3433809860fb3c1da5facefc90868b479db3c13208c02993"
+ },
+ "routes": [
+ "/proxmox/overview",
+ "/docker/overview",
+ "/docker/swarm",
+ "/kubernetes/workloads",
+ "/truenas/services",
+ "/truenas/apps",
+ "/truenas/vms",
+ "/truenas/shares",
+ "/vmware/overview",
+ "/vmware/activity"
+ ],
+ "viewports": [
+ {
+ "width": 1280,
+ "height": 900
+ },
+ {
+ "width": 430,
+ "height": 932
+ },
+ {
+ "width": 375,
+ "height": 812
+ }
+ ],
+ "states": [
+ "Embedded production build of this tree in mock mode on pulse-dev, headless Chromium, dark theme, touch phone emulation below 768px. A sweep visited every Proxmox, Docker, Kubernetes, TrueNAS, vSphere and Standalone tab at 375 and 430px (92 page loads, 144 tables) and measured each data row for height and for cell content stacked on more than one line.",
+ "Before (same rig, main at 7cdf408449 plus the merged guest-row fix of PR 3256): host tables with a visible chevron (Proxmox nodes, Docker hosts, vSphere hosts) had 37px rows; Docker containers (375px), Kubernetes pods, TrueNAS services/apps/VMs/shares and vSphere activity stacked the state under the name; Swarm Update wrapped \"Rollback started\". After: every one of the 144 tables measures at most 32px per row, with no stacked cells except a pre-existing guest memory \"Cache?\" caveat in one Proxmox guest row, which this change does not touch.",
+ "Attention states keep their words on the name line at 375px: \"Stopped \u00b7 should be running\" (TrueNAS SMART, red), \"Exited (137)\" and \"Starting\" (Docker containers), CrashLoopBackOff/ImagePullBackOff/Pending (Kubernetes pods, earlier run). Healthy and chosen-stop rows show only the dot; their words remain in sr-only text.",
+ "Desktop 1280px: changed tables keep their State columns and render as before; TrueNAS apps rows 33px with no state line, Swarm Update truncates on one line with the full words in the title."
+ ],
+ "interactions": [
+ "Captured each changed table at 375px and 1280px and inspected the screenshots: names truncate first only when name plus attention words overflow, short names show the full note, chevrons keep their 36px target (h-9 w-9) while rows stay 32px.",
+ "Row disclosure and drawer behaviour unchanged; affected component tests (151 files under docker, kubernetes, truenas, vmware, platformPage, proxmox, Storage, Workloads and shared) pass under Node 24."
+ ],
+ "proof_scope": "Platform table row presentation at phone and desktop widths in mock mode; state semantics, drawers and sorting are unchanged."
+}
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 1e6de38952..c934c09b2f 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -8490,6 +8490,10 @@ describe('shared primitive guardrails', () => {
expect(subtabsSource).toContain('min-h-9');
expect(subtabsSource).toContain('sm:min-h-10');
expect(summaryRowActionButtonSource).toContain('h-9 w-9');
+ // A visible phone chevron keeps its 36px target without setting the
+ // row height: rows with one stay as tall as the 32px rows beside them.
+ expect(summaryRowActionButtonSource).toContain('-mx-1 -my-2.5');
+ expect(summaryRowActionButtonSource).toContain('sm:m-0');
expect(searchFieldSource).toContain('min-h-11');
expect(filterToolbarSource).toContain('min-h-11');
// Phone and tablet drawers fill the table's visible width (the scroll
diff --git a/frontend-modern/src/components/shared/SummaryRowActionButton.tsx b/frontend-modern/src/components/shared/SummaryRowActionButton.tsx
index a8cb595489..5c1e518a93 100644
--- a/frontend-modern/src/components/shared/SummaryRowActionButton.tsx
+++ b/frontend-modern/src/components/shared/SummaryRowActionButton.tsx
@@ -26,8 +26,11 @@ type SummaryRowActionButtonProps =
onPreviewClear?: () => void;
};
+// A phone keeps the 36px touch target, but negative margins let it overhang
+// the 14px chevron: a visible disclosure had set every such row to 37px
+// instead of the single-line 32px the rows beside it use.
const DISCLOSURE_BUTTON_CLASS = [
- 'inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted transition-colors sm:h-6 sm:w-6',
+ 'inline-flex h-9 w-9 -mx-1 -my-2.5 shrink-0 items-center justify-center rounded-md text-muted transition-colors sm:m-0 sm:h-6 sm:w-6',
'hover:bg-surface hover:text-base-content',
SUMMARY_ROW_ACTION_BUTTON_FOCUS_CLASS,
].join(' ');
diff --git a/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx b/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx
index 00a1d284de..ec0423c580 100644
--- a/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/SummaryRowActionButton.test.tsx
@@ -21,6 +21,9 @@ describe('SummaryRowActionButton', () => {
expect(button).toHaveClass('w-9');
expect(button).toHaveClass('sm:h-6');
expect(button).toHaveClass('sm:w-6');
+ // A visible phone chevron overhangs the row instead of setting a 37px
+ // row height; the 36px target stays.
+ expect(button).toHaveClass('-mx-1', '-my-2.5', 'sm:m-0');
expect(button).toHaveAttribute('aria-expanded', 'true');
expect(button).toHaveAttribute('aria-controls', 'summary-row-detail-alpha');
diff --git a/frontend-modern/src/features/docker/DockerContainersTable.tsx b/frontend-modern/src/features/docker/DockerContainersTable.tsx
index 291224041c..b04a3a7f1a 100644
--- a/frontend-modern/src/features/docker/DockerContainersTable.tsx
+++ b/frontend-modern/src/features/docker/DockerContainersTable.tsx
@@ -1,4 +1,8 @@
import { getResourceStaleness } from '@/features/platformPage/resourceStaleness';
+import {
+ getPlatformInlineStateClass,
+ isPlatformAttentionVariant,
+} from '@/features/platformPage/platformStatusTone';
import { For, Show, Suspense, createMemo, lazy, type Component, type JSX } from 'solid-js';
import { useSearchParams } from '@solidjs/router';
import { type FilterDef } from '@/components/shared/FilterBar';
@@ -511,6 +515,17 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (pro
{state().label}
</span>
);
+ // Without a State column the words join the name only when the state
+ // needs attention; a running or stopped container reads in its dot.
+ const stateBesideName = () => (
+ <span
+ class={`${getPlatformInlineStateClass(isPlatformAttentionVariant(state().tone))} ${dockerStateTextToneClass(state().tone)}`}
+ title={state().title}
+ data-docker-container-state={state().tone ?? 'ok'}
+ >
+ {state().label}
+ </span>
+ );
const runtime = () => runtimeSummary(resource);
const host = () => dockerHostName(resource);
const running = () => isContainerRunning(resource);
@@ -553,7 +568,7 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (pro
<DockerResourceNameCell
resource={resource}
indicator={indicator}
- detail={stateUnderName() ? stateWords() : undefined}
+ detail={stateUnderName() ? stateBesideName() : undefined}
detailToggle={
<PlatformResourceDetailToggleButton
expanded={isExpanded()}
diff --git a/frontend-modern/src/features/docker/DockerNativeTableShared.tsx b/frontend-modern/src/features/docker/DockerNativeTableShared.tsx
index 3e637ba1ea..2978a8cbb0 100644
--- a/frontend-modern/src/features/docker/DockerNativeTableShared.tsx
+++ b/frontend-modern/src/features/docker/DockerNativeTableShared.tsx
@@ -95,7 +95,8 @@ export const DockerResourceNameCell: Component<{
// Image rows name the resource by its reference, so a narrow cell keeps the
// repository and tag visible instead of the shared registry prefix.
imageReference?: boolean;
- // A second line under the name, for a field the layout has no column for.
+ // Words that join the name on its line, for a field the layout has no
+ // column for. The row stays one line tall; the name truncates first.
detail?: JSX.Element;
}> = (props) => {
const resolvedIndicator = (): StatusIndicator =>
@@ -124,7 +125,7 @@ export const DockerResourceNameCell: Component<{
/>
<Show when={props.detail} fallback={nameLink()}>
{(detail) => (
- <div class="flex min-w-0 flex-col">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
{nameLink()}
{detail()}
</div>
diff --git a/frontend-modern/src/features/docker/DockerServicesTable.tsx b/frontend-modern/src/features/docker/DockerServicesTable.tsx
index 15cdb0ec8b..3f82ec0c29 100644
--- a/frontend-modern/src/features/docker/DockerServicesTable.tsx
+++ b/frontend-modern/src/features/docker/DockerServicesTable.tsx
@@ -451,7 +451,7 @@ export const DockerServicesTable: Component<{
class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
>
<span
- class={`block whitespace-normal wrap-break-word leading-3 md:truncate md:leading-normal ${updateTone()}`}
+ class={`block truncate ${updateTone()}`}
title={update().title}
data-docker-service-update-tone={updateTone() ? 'warning' : 'none'}
>
diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
index c83e9dc237..df28c11b91 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
@@ -932,7 +932,7 @@ describe('Docker native tables', () => {
expect(screen.getByText('Healthy')).toHaveAttribute('data-docker-container-state', 'ok');
});
- it('puts the state words under the name where a phone row has no State column', () => {
+ it('puts state words that need attention beside the name where a phone row has no State column', () => {
// A narrow table cannot give "Unhealthy" its own column beside the 40%
// name, both metric pills and the Update control without cutting it.
setViewportWidth(320);
@@ -966,10 +966,14 @@ describe('Docker native tables', () => {
const unhealthy = screen.getByText('Unhealthy');
expect(unhealthy).toHaveAttribute('data-docker-container-state', 'danger');
expect(unhealthy.closest('td')).toBe(screen.getByText('edge-api').closest('td'));
- // Every row carries the line, so the rows keep one height.
- expect(screen.getByText('Running').closest('td')).toBe(
- screen.getByText('edge-web').closest('td'),
- );
+ // The words join the name on its line, so the row stays one line tall.
+ expect(unhealthy).toHaveClass('min-w-0', 'truncate');
+ expect(unhealthy.parentElement).toHaveClass('items-center');
+ expect(unhealthy.parentElement).not.toHaveClass('flex-col');
+ // A running container reads in its green dot; screen readers keep the words.
+ const running = screen.getByText('Running');
+ expect(running.closest('td')).toBe(screen.getByText('edge-web').closest('td'));
+ expect(running).toHaveClass('sr-only');
});
it('keeps a saved State sort only where the State column shows', () => {
@@ -1972,10 +1976,9 @@ describe('Docker native tables', () => {
expect(screen.getByText('/4')).toHaveClass('platform-table-phone-only-inline');
// 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',
- 'wrap-break-word',
- );
+ // One line at every width; the full words stay in the title.
+ expect(screen.getByText('Rollback started')).toHaveClass('truncate');
+ expect(screen.getByText('Rollback started')).not.toHaveClass('whitespace-normal');
expect(
screen.getByText('Rollback started').closest('[title]')?.getAttribute('title'),
).toContain('rollback_started');
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
index 13f6d3c1aa..f267eb80e9 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
@@ -18,7 +18,11 @@ import {
type PlatformTableSortValue,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+ isPlatformAttentionVariant,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
PlatformResourceDetailTableRow,
@@ -327,7 +331,7 @@ export const KubernetesPodsTable: Component<{
title={indicator().label}
ariaHidden
/>
- <div class="flex min-w-0 flex-col">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<ResourceNameWithWebInterfaceLink
name={name()}
url={resource.customUrl}
@@ -337,10 +341,11 @@ export const KubernetesPodsTable: Component<{
<KubernetesNameText name={name()} />
</ResourceNameWithWebInterfaceLink>
{/* A phone hides the Status column, and its dot can be
- neither hovered nor read aloud, so the reason
- ("CrashLoopBackOff") reads under the name there. */}
+ neither hovered nor read aloud, so a reason that
+ needs attention ("CrashLoopBackOff") joins the name
+ on its line; screen readers always get the words. */}
<span
- class={`platform-table-phone-only-inline min-w-0 max-w-full ${getPlatformStatusTextToneClass(indicator().variant)}`}
+ class={`platform-table-phone-only-inline ${getPlatformInlineStateClass(isPlatformAttentionVariant(indicator().variant))} ${getPlatformStatusTextToneClass(indicator().variant)}`}
data-kubernetes-pod-status-phone={indicator().variant}
>
<span class="min-w-0 truncate">{indicator().label}</span>
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPodsTable.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPodsTable.test.tsx
index 9971870d16..492f325dc8 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPodsTable.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPodsTable.test.tsx
@@ -137,10 +137,14 @@ describe('KubernetesPodsTable', () => {
const status = document.querySelector('[data-kubernetes-pod-status]');
expect(status).toHaveTextContent('Not ready');
expect(status).toHaveClass('text-amber-700');
- // A phone hides Status, so the same words read under the pod name there.
+ // A phone hides Status, so the amber words join the pod name on its line.
const phoneStatus = document.querySelector('[data-kubernetes-pod-status-phone]');
expect(phoneStatus).toHaveTextContent('Not ready');
expect(phoneStatus).toHaveClass('platform-table-phone-only-inline', 'text-amber-700');
+ expect(phoneStatus).toHaveClass('min-w-0', 'truncate');
+ expect(phoneStatus).not.toHaveClass('sr-only');
+ expect(phoneStatus?.parentElement).toHaveClass('items-center');
+ expect(phoneStatus?.parentElement).not.toHaveClass('flex-col');
expect(screen.getByText('1/2')).toBeInTheDocument();
expect(screen.getByText('3')).toBeInTheDocument();
expect(screen.getByText('Deployment/checkout-api')).toBeInTheDocument();
diff --git a/frontend-modern/src/features/platformPage/platformStatusTone.ts b/frontend-modern/src/features/platformPage/platformStatusTone.ts
index a63bd00c49..dc878e980f 100644
--- a/frontend-modern/src/features/platformPage/platformStatusTone.ts
+++ b/frontend-modern/src/features/platformPage/platformStatusTone.ts
@@ -12,3 +12,16 @@ export const getPlatformStatusTextToneClass = (
if (variant === 'muted') return 'text-muted';
return '';
};
+
+// When a row's state has no column of its own, its words join the name on the
+// same line rather than stacking under it, so the row stays one line tall.
+// Only a state that needs attention (red or amber) shows its words; healthy
+// and stopped already read in the dot's colour, and screen readers always get
+// the words. Name and state keep their full width while the cell has room and
+// shrink together, each to an ellipsis, only when it runs out.
+export const getPlatformInlineStateClass = (attention: boolean): string =>
+ attention ? 'min-w-0 truncate' : 'sr-only';
+
+export const isPlatformAttentionVariant = (
+ variant: StatusIndicatorVariant | null | undefined,
+): boolean => variant === 'danger' || variant === 'warning';
diff --git a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx
index 5786900cc0..3f20a1b956 100644
--- a/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASAppsTable.tsx
@@ -26,7 +26,11 @@ import {
PlatformTableShell,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+ isPlatformAttentionVariant,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
PlatformResourceDetailTableRow,
@@ -371,9 +375,9 @@ export const TrueNASAppsTable: Component<{
variant={indicator().variant}
title={indicator().label}
/>
- <div class="min-w-0">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<div
- class="truenas-app-name-value truncate font-medium text-base-content"
+ class="truenas-app-name-value min-w-0 truncate font-medium text-base-content"
title={[
name(),
`${formatPlatformTableTitleCaseValue(app()?.state)} on ${
@@ -385,10 +389,11 @@ export const TrueNASAppsTable: Component<{
>
{name()}
</div>
- {/* The app has no State column: its state reads under the name,
- in its dot's colour, so a crashed app says so without a hover. */}
+ {/* The app has no State column: a state that needs attention joins
+ the name on its line, in its dot's colour, so a crashed app
+ says so without a hover. */}
<div
- class={`truncate text-[11px] ${getPlatformStatusTextToneClass(indicator().variant)}`}
+ class={`text-[11px] ${getPlatformInlineStateClass(isPlatformAttentionVariant(indicator().variant))} ${getPlatformStatusTextToneClass(indicator().variant)}`}
data-truenas-app-state={indicator().variant}
>
{formatPlatformTableTitleCaseValue(app()?.state, '') ||
diff --git a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
index 3ca7c75cfe..5c4e780a63 100644
--- a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
@@ -19,7 +19,11 @@ import {
PlatformTableShell,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+ isPlatformAttentionVariant,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
PlatformResourceDetailTableRow,
@@ -278,9 +282,9 @@ export const TrueNASNetworkSharesTable: Component<{
variant={indicator().variant}
title={indicator().label}
/>
- <div class="min-w-0">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<div
- class="truncate font-medium text-base-content"
+ class="min-w-0 truncate font-medium text-base-content"
title={[
name(),
share()?.dataset ||
@@ -293,9 +297,10 @@ export const TrueNASNetworkSharesTable: Component<{
>
{name()}
</div>
- {/* A phone hides State; the same words read under the name. */}
+ {/* A phone hides State; a state that needs attention joins the
+ name on its line. */}
<span
- class={`platform-table-phone-only-inline max-w-full text-[11px] ${getPlatformStatusTextToneClass(indicator().variant)}`}
+ class={`platform-table-phone-only-inline text-[11px] ${getPlatformInlineStateClass(isPlatformAttentionVariant(indicator().variant))} ${getPlatformStatusTextToneClass(indicator().variant)}`}
data-truenas-share-state-phone={indicator().variant}
>
<span class="min-w-0 truncate">{stateLabel()}</span>
diff --git a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
index 44ca0925aa..b4bf6ec380 100644
--- a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
@@ -18,7 +18,10 @@ import {
PlatformTableShell,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
createPlatformResourceDetailState,
@@ -352,13 +355,14 @@ export const TrueNASServicesTable: Component<{
variant={serviceStatusVariant(status())}
title={formatPlatformTableTitleCaseValue(status())}
/>
- <div class="flex min-w-0 flex-col">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<div class="min-w-0 truncate font-medium text-base-content">
{formatServiceName(row.service.service)}
</div>
- {/* A phone hides State; the state and any note read under the name. */}
+ {/* A phone hides State; a state that needs attention joins the
+ name on its line. */}
<span
- class={`platform-table-phone-only-inline max-w-full text-[11px] ${note() ? getPlatformStatusTextToneClass(note()!.tone) : ''}`}
+ class={`platform-table-phone-only-inline text-[11px] ${getPlatformInlineStateClass(Boolean(note()))} ${note() ? getPlatformStatusTextToneClass(note()!.tone) : ''}`}
data-truenas-service-state-phone={note() ? note()!.tone : 'none'}
>
<span class="min-w-0 truncate">
diff --git a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
index 6a8eec382f..b9fe54c978 100644
--- a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
@@ -20,7 +20,10 @@ import {
PlatformTableShell,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
PlatformResourceDetailTableRow,
@@ -301,9 +304,9 @@ export const TrueNASVirtualMachinesTable: Component<{
variant={indicator().variant}
title={indicator().label}
/>
- <div class="min-w-0">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<div
- class="truncate font-medium text-base-content"
+ class="min-w-0 truncate font-medium text-base-content"
title={[
name(),
vm()?.description ||
@@ -316,9 +319,10 @@ export const TrueNASVirtualMachinesTable: Component<{
>
{name()}
</div>
- {/* A phone hides State; the state and any note read under the name. */}
+ {/* A phone hides State; a state that needs attention joins the
+ name on its line. */}
<span
- class={`platform-table-phone-only-inline max-w-full text-[11px] ${note() ? getPlatformStatusTextToneClass(note()!.tone) : ''}`}
+ class={`platform-table-phone-only-inline text-[11px] ${getPlatformInlineStateClass(Boolean(note()))} ${note() ? getPlatformStatusTextToneClass(note()!.tone) : ''}`}
data-truenas-vm-state-phone={note() ? note()!.tone : 'none'}
>
<span class="min-w-0 truncate">
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASServicesTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASServicesTable.test.tsx
index 7d9d4a2c30..d864116b05 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASServicesTable.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASServicesTable.test.tsx
@@ -116,6 +116,14 @@ describe('TrueNASServicesTable', () => {
const smartPhoneLine = smartNameCell.querySelector('[data-truenas-service-state-phone]');
expect(smartPhoneLine).toHaveClass('platform-table-phone-only-inline', 'text-red-600');
expect(smartPhoneLine).toHaveTextContent('Stopped · should be running');
+ // The words join the name on its line rather than stacking under it.
+ expect(smartPhoneLine).toHaveClass('min-w-0', 'truncate');
+ expect(smartPhoneLine?.parentElement).toHaveClass('items-center');
+ expect(smartPhoneLine?.parentElement).not.toHaveClass('flex-col');
+ // A chosen stop needs no words on a phone; the grey dot says it.
+ expect(
+ screen.getByText('SSH').closest('td')?.querySelector('[data-truenas-service-state-phone]'),
+ ).toHaveClass('sr-only');
const smartNameText = smartNameCell.cloneNode(true) as HTMLElement;
smartNameText.querySelector('[data-truenas-service-state-phone]')?.remove();
expect(smartNameText).not.toHaveTextContent('should be running');
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASVirtualMachinesTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASVirtualMachinesTable.test.tsx
index 2fea127dd5..188c7d644c 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASVirtualMachinesTable.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASVirtualMachinesTable.test.tsx
@@ -55,10 +55,18 @@ describe('TrueNASVirtualMachinesTable', () => {
expect(noteFor('router')).toHaveTextContent('Stoppedshould be running');
expect(noteFor('router')).toHaveAttribute('title', 'Set to start at boot but stopped');
- // A phone hides State, so the state and its note read under the name there.
+ // A phone hides State, so the state and its note join the name on its line.
+ const routerPhone = screen
+ .getByText('router')
+ .closest('td')
+ ?.querySelector('[data-truenas-vm-state-phone]');
+ expect(routerPhone).toHaveTextContent('Stopped · should be running');
+ expect(routerPhone).not.toHaveClass('sr-only');
+ expect(routerPhone?.parentElement).toHaveClass('items-center');
+ // A running VM reads in its green dot; screen readers keep the words.
expect(
- screen.getByText('router').closest('td')?.querySelector('[data-truenas-vm-state-phone]'),
- ).toHaveTextContent('Stopped · should be running');
+ screen.getByText('windows-lab').closest('td')?.querySelector('[data-truenas-vm-state-phone]'),
+ ).toHaveClass('sr-only');
expect(noteFor('ubuntu-build')).toBeNull();
expect(noteFor('windows-lab')).toBeNull();
expect(noteFor('lab-paused')).toHaveAttribute('title', 'TrueNAS reports Paused');
diff --git a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
index 6f0f5cbc87..1415723774 100644
--- a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
@@ -27,7 +27,11 @@ import {
PlatformTableShell,
withPlatformStatusCounts,
} from '@/features/platformPage/sharedPlatformPage';
-import { getPlatformStatusTextToneClass } from '@/features/platformPage/platformStatusTone';
+import {
+ getPlatformInlineStateClass,
+ getPlatformStatusTextToneClass,
+ isPlatformAttentionVariant,
+} from '@/features/platformPage/platformStatusTone';
import {
PlatformResourceDetailToggleButton,
createPlatformResourceDetailState,
@@ -430,9 +434,9 @@ export const VsphereActivityTable: Component<{
variant={activityStateVariant(activity.stateBucket)}
title={formatActivityState(activity)}
/>
- <div class="min-w-0">
+ <div class="flex min-w-0 flex-1 items-center gap-1.5">
<div
- class="truncate font-medium text-base-content"
+ class="min-w-0 truncate font-medium text-base-content"
title={[
activity.resourceName,
formatResourceType(activity.resourceType),
@@ -445,9 +449,10 @@ export const VsphereActivityTable: Component<{
>
{activity.resourceName}
</div>
- {/* A phone hides State; the same words read under the name. */}
+ {/* A phone hides State; a state that needs attention joins the
+ name on its line. */}
<span
- class={`platform-table-phone-only-inline max-w-full text-[11px] ${getPlatformStatusTextToneClass(activityStateVariant(activity.stateBucket))}`}
+ class={`platform-table-phone-only-inline text-[11px] ${getPlatformInlineStateClass(isPlatformAttentionVariant(activityStateVariant(activity.stateBucket)))} ${getPlatformStatusTextToneClass(activityStateVariant(activity.stateBucket))}`}
data-vsphere-activity-state-phone={activityStateVariant(
activity.stateBucket,
)}
diff --git a/frontend-modern/src/features/vmware/__tests__/VsphereActivityTable.test.tsx b/frontend-modern/src/features/vmware/__tests__/VsphereActivityTable.test.tsx
index a2f5a200de..1676697a90 100644
--- a/frontend-modern/src/features/vmware/__tests__/VsphereActivityTable.test.tsx
+++ b/frontend-modern/src/features/vmware/__tests__/VsphereActivityTable.test.tsx
@@ -114,15 +114,21 @@ describe('VsphereActivityTable', () => {
expect(
screen.getByTitle('Reconfigure virtual machine · Permission denied while reconfiguring VM'),
).toBeInTheDocument();
- // The State column and the phone line under the name both read "Error",
+ // The State column and the phone words beside the name both read "Error",
// in the red its dot shows.
const state = document.querySelector('[data-vsphere-activity-state="danger"]');
expect(state).toHaveTextContent('Error');
expect(state).toHaveClass('text-red-600');
- expect(document.querySelector('[data-vsphere-activity-state-phone="danger"]')).toHaveClass(
- 'platform-table-phone-only-inline',
- 'text-red-600',
- );
+ const phoneError = document.querySelector('[data-vsphere-activity-state-phone="danger"]');
+ expect(phoneError).toHaveClass('platform-table-phone-only-inline', 'text-red-600');
+ expect(phoneError).toHaveClass('min-w-0', 'truncate');
+ expect(phoneError?.parentElement).toHaveClass('items-center');
+ // A state that needs no attention reads in its dot alone on a phone.
+ for (const phoneState of document.querySelectorAll(
+ '[data-vsphere-activity-state-phone]:not([data-vsphere-activity-state-phone="danger"]):not([data-vsphere-activity-state-phone="warning"])',
+ )) {
+ expect(phoneState).toHaveClass('sr-only');
+ }
expect(screen.getByText('Virtual machine warehouse-api-01 was powered on')).toBeInTheDocument();
expect(screen.queryByText('VmPoweredOnEvent')).not.toBeInTheDocument();
expect(screen.getByText('[email protected]')).toBeInTheDocument();