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.

Improve mobile platform table priorities

rcourtman9a4afa21b383
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index bc72461890..76297e3613 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1214,16 +1214,21 @@ not a replacement status card, CTA band, or page-local nested card.
breakpoint-specific widths take over. Its class composition removes a
consumer's redundant `min-w-full` token because the shared `Table` already
fills the available width and that second minimum would override the
- phone-width policy. Platform consumers must explicitly select five to seven
- high-value phone columns when that many meaningful fields exist, keep the
- identity column at the canonical 30 percent of the available width, use the
- shared compact label and column-width classes, and preserve the fuller tablet
- and desktop presentation. Below a 360-pixel content width, the shared narrow
- layout must retain five high-value columns, promote identity to 40 percent,
- and remove the lowest-priority context columns rather than shrinking names
- and metric values into illegible fragments. Consumers mark only that
- source-specific demotion with `platform-table-narrow-hidden`; the shared
- container rule then applies the same 40-percent identity/five-column stage
+ phone-width policy. Platform consumers must explicitly select the three to
+ five high-value phone columns that answer the row's operational questions,
+ keep the identity column at the canonical 30 percent of the available width,
+ use the shared compact label and column-width classes, and preserve the fuller
+ tablet and desktop presentation. A sixth track is valid only when rendered
+ values remain legible at the measured phone width. Duplicate state or
+ severity text must not consume a separate phone column when the identity
+ indicator already carries the same condition; the full value remains in the
+ desktop table and inline detail. Consumers mark a normal-phone demotion with
+ `platform-table-phone-hidden` on both its header and its body cell. The shared
+ container rule owns the matching `th`/`td` visibility so the two cannot drift.
+ Below a 360-pixel content width, the shared narrow layout promotes identity to
+ 40 percent and may remove one additional lowest-priority context column via
+ `platform-table-narrow-hidden` rather than shrinking names and metric values
+ into illegible fragments. The shared container rule then applies that stage
across provider tables, direct Storage tables, and nested provider detail
tables without a global reveal or page-local media-query exception.
`PlatformTableShell` marks every
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index 4e6f7232d4..157acbbb5e 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -2516,10 +2516,16 @@ per-row layout measurement on the Workloads hot path.
The canonical Workloads table mobile floor is 36rem. The mobile table branch
must preserve that intrinsic width inside its existing scroll shell instead of
-combining it with `min-w-full`, which allows the five operational columns to
-compress into unreadable phone-width fragments. This is a layout-only contract:
-it must not add row-time measurement, duplicate tables, or viewport listeners
-to the Workloads rendering hot path.
+combining it with `min-w-full`, which allows the operational columns to
+compress into unreadable phone-width fragments. `guestRowModel.tsx` owns the
+phone priority projection: retain workload identity and availability once,
+then prefer the already-loaded CPU, memory, disk, and age signals over type or
+provider context that the identity cell already communicates. Wider mobile and
+desktop projections may restore those secondary fields through the same column
+model. This is a layout-only contract: priority changes must remain static
+model/class work and must not add row-time measurement, duplicate tables,
+viewport listeners, or per-row responsive signals to the Workloads rendering
+hot path.
The router owns exactly one in-process Patrol action transition publisher.
Publication remains an O(1) wakeup keyed by org and action id; reconciliation
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index f0a37e0909..240d7c2a84 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -2054,10 +2054,11 @@ files.
is likewise API/AI-owned transport: storage and recovery may consume the
resulting incident context, but must not define storage-local approval
argument keys or bypass the shared `internal/agentcapabilities` helper.
-5. Keep recovery history table width budgeting derived from the canonical column specs in `frontend-modern/src/utils/recoveryTablePresentation.ts`, not from raw visible-column counts, so normalized subject labels and optional column sets cannot drift the right-edge badges and controls off-screen. Storage-pool, physical-disk, backup-server, coverage, and recoverable-artifact compact models must follow the same source-owned budgeting rule: expose the five to seven highest-value phone fields when the source provides them, fix identity at the shared 30-percent track, use compact labels for narrow evidence fields, and normalize the selected tracks to the container without a horizontal rail. Desktop column sets and storage/recovery evidence semantics must remain unchanged.
- Below 360 pixels of content width, those models must retain five fields,
- promote identity to 40 percent, and demote the lowest-priority field through
- the shared `platform-table-narrow-hidden`/source-owned layout contract.
+5. Keep recovery history table width budgeting derived from the canonical column specs in `frontend-modern/src/utils/recoveryTablePresentation.ts`, not from raw visible-column counts, so normalized subject labels and optional column sets cannot drift the right-edge badges and controls off-screen. Storage-pool, physical-disk, backup-server, coverage, and recoverable-artifact compact models must follow the same source-owned budgeting rule: expose three to five semantically distinct phone fields, allow a sixth only when measured content remains legible, fix identity at the shared 30-percent track, use explicit compact labels for narrow evidence fields, and normalize the selected tracks to the container without a horizontal rail. A status already conveyed by the identity indicator must not consume a duplicate phone column. Desktop column sets and storage/recovery evidence semantics must remain unchanged.
+ Below 360 pixels of content width, those models must promote identity to 40
+ percent and may demote the lowest-priority field through the shared
+ `platform-table-narrow-hidden`/source-owned layout contract rather than
+ preserving a fixed column count at the expense of legibility.
Summary rows remain single-line; any truncated backup, datastore, workload,
or topology value must be recoverable through a touch- and
keyboard-operable inline detail rather than a hover-only title.
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 76b70f4637..195dbb08a5 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -377,13 +377,20 @@ filter semantics, drawer handoffs, and resource projections, while
That shell also owns responsive width composition. Source tables may declare
desktop breakpoint floors, but the phone branch must fit its selected columns
inside the available container without a horizontal rail. Each unified-resource
-consumer selects five to seven high-value source fields when they exist, fixes
-identity at 30 percent of the width, and uses shared compact-label and phone
-width classes so the remaining tracks stay readable. No global reveal rule may
-override those source-specific priorities. Below 360 pixels of content width,
-consumers use `platform-table-narrow-hidden` to demote only their lowest-value
-field while the shared shell promotes identity to 40 percent and retains five
-readable fields. Provider tables must keep summary rows single-line and may
+consumer selects the three to five high-value source fields that answer
+identity, condition, capacity or activity at a glance, fixes identity at 30
+percent of the width, and uses shared compact-label and phone width classes so
+the remaining tracks stay readable. A sixth field is permitted only when each
+surviving value remains readable in the rendered phone container. Status must
+appear once: when the identity indicator already communicates the same state or
+severity, the duplicate text/badge column is desktop-only and the expanded row
+retains its full value. Consumers apply `platform-table-phone-hidden` to both
+the header and body cell for normal-phone demotions; the shared container rule
+owns that symmetric visibility. No global reveal rule may override those
+source-specific priorities. Below 360 pixels of content width, consumers use
+`platform-table-narrow-hidden` for any additional lowest-value demotion while
+the shared shell promotes identity to 40 percent. Provider tables must keep
+summary rows single-line and may
truncate a value only when the row exposes its complete source value through a
touch- and keyboard-operable inline detail disclosure. The frontend-primitives
owner fixes that summary rhythm at 32 pixels for every `platform-table` path;
@@ -3406,9 +3413,10 @@ The native provider rollout now applies the same projection to Proxmox backup,
coverage, recoverable, Ceph, Mail Gateway, and replication rows; Docker native
and Swarm inventories; Kubernetes native inventories; TrueNAS systems and
workflows; vSphere hosts and workflows; and Standalone machines. The shared
-`platform-table-narrow-hidden` marker keeps the less-than-360-pixel stage at
-five source-selected fields with a 40-percent identity track, while the normal
-phone stage retains five to seven fields. Docker rows whose full timestamps,
+`platform-table-phone-hidden` marker removes secondary or duplicate tracks at
+the normal phone stage and applies identically to `th` and `td`; the
+`platform-table-narrow-hidden` marker adds only the less-than-360-pixel
+demotion while promoting identity to a 40-percent track. Docker rows whose full timestamps,
labels, image references, or placement values cannot fit now expose those
values in the same touch- and keyboard-operable inline detail pattern used by
the other platform tables rather than relying on hover titles.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 2d6501c2a4..aa07953faf 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,39 +1,120 @@
{
"version": 1,
- "base_sha": "07e85acc6d80b83afe95df6fef13617a1687b835",
- "verified_at": "2026-08-25T17:04:15Z",
+ "base_sha": "f675b5a4d8f20f74b490c76c7a9c2792e97b5eba",
+ "verified_at": "2026-08-25T18:05:38Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/features/vmware/VsphereHostsTable.tsx"
+ "frontend-modern/src/index.css",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx",
+ "frontend-modern/src/features/storageBackups/storagePagePresentation.ts",
+ "frontend-modern/src/features/docker/DockerAlertsTable.tsx",
+ "frontend-modern/src/features/docker/DockerConfigsTable.tsx",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx",
+ "frontend-modern/src/features/docker/DockerSecretsTable.tsx",
+ "frontend-modern/src/features/docker/DockerServicesTable.tsx",
+ "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx",
+ "frontend-modern/src/features/docker/DockerTasksTable.tsx",
+ "frontend-modern/src/features/docker/DockerVolumesTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx",
+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereHostsTable.tsx",
+ "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx"
],
"content_sha256": {
- "frontend-modern/src/features/vmware/VsphereHostsTable.tsx": "55d156b27c0b1e7808fb6ef2e135b5ace3c8a72d60591a0af0af2d2e639fcbf9"
+ "frontend-modern/src/index.css": "756bfe09c980a01f8da6152947bb4368350580fb7f5625799f91725c1246af81",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx": "4a70975f00a0211021c5b95f7bfe892a99bcc46657b9cd716ec36aa94cb1783a",
+ "frontend-modern/src/features/storageBackups/storagePagePresentation.ts": "ab310a3f5bcb477d0ee1e1e1c1d6b6b0bc07365b55ea855262c6f3236c7f451a",
+ "frontend-modern/src/features/docker/DockerAlertsTable.tsx": "cb27be49cb7a7c7c52156b942734be56bac62cd8e5ffa738ece71e80cc0bfd40",
+ "frontend-modern/src/features/docker/DockerConfigsTable.tsx": "3b6e054f29bbadba3432ffa1a24a85b877c1a1c1e23ce71e48443bd43e1784b9",
+ "frontend-modern/src/features/docker/DockerNetworksTable.tsx": "80a93851f2a2f1c1c392f5557ef7209edc45e22faed18560629506d4f7d69da8",
+ "frontend-modern/src/features/docker/DockerSecretsTable.tsx": "098eed45ea7f8336c75366a8b5e8242aaba30d00aa41334f1c2b4cf07a93df6f",
+ "frontend-modern/src/features/docker/DockerServicesTable.tsx": "c2fca534af2166987f79dcdcaf03702cb9ef5a089b3731406fcc76277e4d775b",
+ "frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx": "b4e1c5d0d95776dbef33eed176ffd71952831cdfb2f69f5329e2ff5092740cae",
+ "frontend-modern/src/features/docker/DockerTasksTable.tsx": "a1ebdcb6d146d9f09f5240523cb6a8cf7ad25a988d8b50706bb8f13dea888c0f",
+ "frontend-modern/src/features/docker/DockerVolumesTable.tsx": "78fff3df4eee7e82dec791317c9ac831a2bdf7989795e298682f2d741a768b48",
+ "frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx": "b8121bdd7cad2ea370417f6c07a774e1a1551c0e578a8257640979c748feabeb",
+ "frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx": "32c93716d25190881e6e6519b26fe606fb545b7c8a5f3a185016be4721ae2d2c",
+ "frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx": "2dbce115619e15bb9e9ddd30b0df33d4bd94b3516f23aea6714289be563637f2",
+ "frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx": "dde8702c9d791723b89c5d8eb528915a02d5fc6cb7d014be9fe1c259f9ee143c",
+ "frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx": "98afc291ac7f4fb9330df404d2a721e7184a109a40995802cb5139c097469aad",
+ "frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx": "491723e0b345ff3a77b0a64509f8ca8f424a1c1cae27dbc2f865018eaefb6309",
+ "frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx": "ae1101b32be82e9cdaaed59993b02d93b3f7eca16bbb1f0803f1b7ee09b8b3fe",
+ "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx": "a7d293b93db92a521f91eabc50866c6e7c798cb6e41a5ef147d42dad091c1ca0",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx": "72d0ae197be7e83513fcf2a02b266c7e1bb517733fa54b73d8c09828d828e560",
+ "frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx": "8bc2c39ee7b9dd32614ef584ac99f7e693b2c856f03009bab8a7bd68192535ad",
+ "frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx": "43b7869af1f162464620e1cfb027c640336f14cf2116f9ef305946ad44d0999b",
+ "frontend-modern/src/features/truenas/TrueNASServicesTable.tsx": "9b9cdf44f267f05053281c277342f6f3faeb95ac2b7481f3597b371eecd57ffc",
+ "frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx": "ff1456b6961de9c99103f7e2db3ab57f69e55680db3cdc3b730068ed62fd2867",
+ "frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx": "4dbab04bc08e50e8ca0eef3cdb9b4592613265b9d35159c856a780e63bd06998",
+ "frontend-modern/src/features/vmware/VsphereActivityTable.tsx": "a0fbaf6cb1499c225ed83716d4abb7c9bf0cb3f8510f481832141b38c7a7d675",
+ "frontend-modern/src/features/vmware/VsphereAlertsTable.tsx": "e346c21869081c209fb11f0009d3ca78144f7b9963305c763a2e9f3c1d8ef48c",
+ "frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx": "ab232b130760607a1986e4ef0136c8d3346be3a540550d55f2efd0fb674f5259",
+ "frontend-modern/src/features/vmware/VsphereHostsTable.tsx": "ad89bdb743553eb8ee85287cf369215d592cde60db621e00e09d53344c72dcfe",
+ "frontend-modern/src/features/vmware/VsphereNetworksTable.tsx": "5b09083d86217c442313c12bf9a339bd68def0cf7013c8254ea1b18dffac401e"
},
"routes": [
- "/vmware/overview"
+ "/docker/overview",
+ "/docker/images",
+ "/docker/storage",
+ "/docker/networks",
+ "/docker/swarm",
+ "/kubernetes/overview",
+ "/kubernetes/nodes",
+ "/kubernetes/workloads",
+ "/kubernetes/services",
+ "/kubernetes/storage",
+ "/kubernetes/configuration",
+ "/kubernetes/events",
+ "/truenas/overview",
+ "/truenas/storage",
+ "/truenas/services",
+ "/truenas/apps",
+ "/truenas/vms",
+ "/truenas/shares",
+ "/truenas/protection",
+ "/vmware/overview",
+ "/vmware/storage",
+ "/vmware/networks",
+ "/vmware/health",
+ "/vmware/activity",
+ "/proxmox/overview",
+ "/proxmox/storage",
+ "/proxmox/backups/date",
+ "/standalone/machines",
+ "/standalone/availability"
],
"viewports": [
- {
- "width": 1440,
- "height": 900
- },
- {
- "width": 390,
- "height": 844
- }
+ { "width": 1440, "height": 900 },
+ { "width": 390, "height": 844 },
+ { "width": 320, "height": 844 }
],
"states": [
- "phone host table with powered-on rows omitting the redundant Power column",
- "phone host table with degraded esxi-07 health remaining amber independently of power presentation",
- "phone esxi-07 host detail expanded without clipping or horizontal overflow",
- "desktop host table with the Power column and powered-on cells visible",
- "desktop esxi-01 host detail expanded with the Power column retained"
+ "all provider table routes at phone width with visible header/body parity and no horizontal overflow",
+ "duplicate mobile state and severity columns removed where the identity indicator already carries the same condition",
+ "dense Docker, Kubernetes, TrueNAS, vSphere, Proxmox, and standalone tables reduced to readable operational fields",
+ "320px narrow-phone projection with additional low-priority demotions and a promoted identity track",
+ "1440px Kubernetes overview and nodes tables with their full desktop column sets restored"
],
"interactions": [
- "inspected the 390px host table and verified Host, CPU, Mem, VM count, and uptime remain aligned while Power and repeated On values are absent",
- "expanded and collapsed the degraded esxi-07 host row at 390px and verified the canonical health state and detail disclosure remain usable",
- "resized to 1440px, verified the Power header and powered-on cells return, and expanded the esxi-01 host detail",
- "verified Off, Suspended, and Unknown exception badges through the focused component regression test",
- "restored the browser viewport after responsive verification"
+ "navigated every provider workflow tab and measured visible headers, first-row cells, cell widths, and scroll-shell overflow at 390px",
+ "verified header and body visibility counts match for every ordinary data row inspected",
+ "rechecked Kubernetes overview and nodes at 320px and confirmed the narrow stage remains overflow-free",
+ "visually inspected the final Kubernetes overview at 390px after replacing clipped or cryptic compact labels",
+ "verified full Kubernetes desktop columns return at 1440px and reset the temporary browser viewport"
]
}
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index c68dfdfe88..31003f435e 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -218,6 +218,11 @@ describe('App architecture', () => {
});
it('keeps narrow platform tables readable through the global app-shell contract', () => {
+ expect(appStylesSource).toContain('@container (max-width: 33.999rem)');
+ expect(appStylesSource).toContain(':is(th, td).platform-table-phone-hidden');
+ expect(appStylesSource).toContain(':is(th, td).platform-table-phone-only');
+ expect(appStylesSource).toContain('.platform-table-phone-hidden-inline');
+ expect(appStylesSource).toContain('.platform-table-phone-only-inline');
expect(appStylesSource).toContain('@container (max-width: 22.499rem)');
expect(appStylesSource).toContain(
'.table-scroll-shell > .table-fixed.platform-table th.platform-table-name-column',
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index fe809634b2..309fa95738 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -1190,8 +1190,6 @@ describe('GUEST_COLUMNS', () => {
expect(phoneColumns.map((column) => column.id)).toEqual([
'name',
'availability',
- 'type',
- 'info',
'cpu',
'memory',
'disk',
diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsx
index 3d133b2425..002a50a35c 100644
--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx
+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx
@@ -50,12 +50,12 @@ const WORKLOAD_COLUMN_MIN_LAYOUT: Record<string, WorkloadTableLayoutMode> = {
runtime: 'tablet',
cpu: 'narrow',
memory: 'narrow',
- // Phone rows retain the compact operational scan: workload kind, all three
- // capacity metrics, and age. The percentage model below preserves a useful
- // identity track without hiding those signals behind row expansion.
+ // Phone rows retain the compact operational scan: identity, all three
+ // capacity metrics, and age. Kind and numeric ID move to the expanded row;
+ // seven simultaneous tracks made every value unreadable at phone widths.
disk: 'narrow',
- type: 'phone',
- info: 'phone',
+ type: 'mobile',
+ info: 'mobile',
vmid: 'tablet',
uptime: 'narrow',
backup: 'compact',
diff --git a/frontend-modern/src/features/docker/DockerAlertsTable.tsx b/frontend-modern/src/features/docker/DockerAlertsTable.tsx
index 7584e5287b..6798350efa 100644
--- a/frontend-modern/src/features/docker/DockerAlertsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerAlertsTable.tsx
@@ -171,7 +171,7 @@ export const DockerAlertsTable: Component<{
Resource
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 w-[15%] md:w-[10%]`}
+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-phone-hidden md:w-[10%]`}
>
Severity
</TableHead>
@@ -249,7 +249,9 @@ export const DockerAlertsTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<AlertSeverityBadge
severity={incident.severity}
bucket={incident.severityBucket}
diff --git a/frontend-modern/src/features/docker/DockerConfigsTable.tsx b/frontend-modern/src/features/docker/DockerConfigsTable.tsx
index 84090b60ee..c5f99ceea3 100644
--- a/frontend-modern/src/features/docker/DockerConfigsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerConfigsTable.tsx
@@ -7,6 +7,7 @@ import {
PLATFORM_HEALTH_FILTER_OPTIONS,
PlatformSortableTableHead,
PlatformTableEmptyState,
+ PlatformTableRelativeTimeValue,
PlatformTableToolbar,
createPlatformTableFilterState,
createPlatformTableSortState,
@@ -131,7 +132,7 @@ export const DockerConfigsTable: Component<DockerNativeTableProps> = (props) =>
kind="text"
sort={sort}
sortKey="template"
- class="platform-table-mobile-w-15 md:w-[16%]"
+ class="platform-table-phone-hidden md:w-[16%]"
>
Template
</PlatformSortableTableHead>
@@ -146,7 +147,7 @@ export const DockerConfigsTable: Component<DockerNativeTableProps> = (props) =>
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-15 md:w-[24%]"
+ class="platform-table-phone-hidden md:w-[24%]"
>
Labels
</PlatformSortableTableHead>
@@ -189,7 +190,7 @@ export const DockerConfigsTable: Component<DockerNativeTableProps> = (props) =>
}
/>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.templatingDriver)}
</TableCell>
@@ -200,11 +201,13 @@ export const DockerConfigsTable: Component<DockerNativeTableProps> = (props) =>
class="inline-block max-w-[14rem] truncate"
title={dockerTextValue(resource.docker?.objectCreatedAt)}
>
- {dockerTextValue(resource.docker?.objectCreatedAt)}
+ <PlatformTableRelativeTimeValue
+ value={resource.docker?.objectCreatedAt}
+ />
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
<span
class="inline-block max-w-[22rem] truncate"
diff --git a/frontend-modern/src/features/docker/DockerNetworksTable.tsx b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
index 772862aded..9ebeefab69 100644
--- a/frontend-modern/src/features/docker/DockerNetworksTable.tsx
+++ b/frontend-modern/src/features/docker/DockerNetworksTable.tsx
@@ -487,7 +487,7 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
<TableHead
class={`${getPlatformTableHeadClassForKind('text')} ${columnWidthClass('attention')}`}
>
- Attention
+ State
</TableHead>
<Show when={showSubnet()}>
<TableHead
@@ -498,7 +498,7 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
</Show>
<Show when={showDriver()}>
<TableHead
- class={`${getPlatformTableHeadClassForKind('text')} ${columnWidthClass('driver')}`}
+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-phone-hidden ${columnWidthClass('driver')}`}
>
Driver
</TableHead>
@@ -571,7 +571,7 @@ export const DockerNetworksTable: Component<DockerNetworksTableProps> = (props)
</TableCell>
<Show when={showSubnet()}>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
<span class="inline-block max-w-[18rem] truncate" title={subnets()}>
{subnets()}
diff --git a/frontend-modern/src/features/docker/DockerSecretsTable.tsx b/frontend-modern/src/features/docker/DockerSecretsTable.tsx
index 53b4e3476c..eeb9f24084 100644
--- a/frontend-modern/src/features/docker/DockerSecretsTable.tsx
+++ b/frontend-modern/src/features/docker/DockerSecretsTable.tsx
@@ -7,6 +7,7 @@ import {
PLATFORM_HEALTH_FILTER_OPTIONS,
PlatformSortableTableHead,
PlatformTableEmptyState,
+ PlatformTableRelativeTimeValue,
PlatformTableToolbar,
createPlatformTableFilterState,
createPlatformTableSortState,
@@ -141,7 +142,7 @@ export const DockerSecretsTable: Component<DockerNativeTableProps> = (props) =>
kind="text"
sort={sort}
sortKey="template"
- class="platform-table-mobile-w-15 md:w-[14%]"
+ class="platform-table-phone-hidden md:w-[14%]"
>
Template
</PlatformSortableTableHead>
@@ -156,7 +157,7 @@ export const DockerSecretsTable: Component<DockerNativeTableProps> = (props) =>
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-10 platform-table-narrow-hidden md:w-[18%]"
+ class="platform-table-phone-hidden md:w-[18%]"
>
Labels
</PlatformSortableTableHead>
@@ -204,7 +205,7 @@ export const DockerSecretsTable: Component<DockerNativeTableProps> = (props) =>
{dockerTextValue(resource.docker?.driver)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.templatingDriver)}
</TableCell>
@@ -215,11 +216,13 @@ export const DockerSecretsTable: Component<DockerNativeTableProps> = (props) =>
class="inline-block max-w-[12rem] truncate"
title={dockerTextValue(resource.docker?.objectCreatedAt)}
>
- {dockerTextValue(resource.docker?.objectCreatedAt)}
+ <PlatformTableRelativeTimeValue
+ value={resource.docker?.objectCreatedAt}
+ />
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} platform-table-narrow-hidden text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
<span
class="inline-block max-w-[16rem] truncate"
diff --git a/frontend-modern/src/features/docker/DockerServicesTable.tsx b/frontend-modern/src/features/docker/DockerServicesTable.tsx
index 7381353101..b2cb572ea8 100644
--- a/frontend-modern/src/features/docker/DockerServicesTable.tsx
+++ b/frontend-modern/src/features/docker/DockerServicesTable.tsx
@@ -206,8 +206,9 @@ export const DockerServicesTable: Component<{
qualified service names). Mode / Desired / Running trim
to short text and 1-2 digit counts. Update, Ports, and
Host get middle slices for rollout state, port lists, and
- hostnames. Phones keep the decision-making replica pair;
- the basic container tier restores mode, update, and host.
+ hostnames. Phones keep identity, image, running count, and
+ rollout state; the expanded row retains the full replica
+ and placement context.
*/}
<PlatformSortableTableHead
kind="name"
@@ -237,7 +238,7 @@ export const DockerServicesTable: Component<{
kind="text"
sort={sort}
sortKey="mode"
- class="platform-table-mobile-w-10 w-[10%] md:w-[8%]"
+ class="platform-table-phone-hidden md:w-[8%]"
>
Mode
</PlatformSortableTableHead>
@@ -245,7 +246,7 @@ export const DockerServicesTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="desired"
- class="platform-table-narrow-hidden platform-table-mobile-w-10 w-[10%] md:w-[8%]"
+ class="platform-table-phone-hidden md:w-[8%]"
>
Desired
</PlatformSortableTableHead>
@@ -276,7 +277,7 @@ export const DockerServicesTable: Component<{
kind="text"
sort={sort}
sortKey="host"
- class="platform-table-narrow-hidden platform-table-mobile-w-10 w-[10%] md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
Host
</PlatformSortableTableHead>
@@ -340,12 +341,12 @@ export const DockerServicesTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{mode()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} platform-table-narrow-hidden text-base-content`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} platform-table-phone-hidden text-base-content`}
>
<PlatformTableNumberValue value={service.docker?.desiredTasks ?? 0} />
</TableCell>
@@ -372,7 +373,7 @@ export const DockerServicesTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} platform-table-narrow-hidden text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{host()}
</TableCell>
diff --git a/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx b/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx
index af8c75e8ba..62ae64f980 100644
--- a/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx
+++ b/frontend-modern/src/features/docker/DockerSwarmNodesTable.tsx
@@ -172,7 +172,7 @@ export const DockerSwarmNodesTable: Component<DockerNativeTableProps> = (props)
kind="text"
sort={sort}
sortKey="availability"
- class="platform-table-mobile-w-15 w-[15%] md:w-[12%]"
+ class="platform-table-phone-hidden md:w-[12%]"
>
<PlatformResponsiveTableLabel compact="Avail" full="Availability" />
</PlatformSortableTableHead>
@@ -258,7 +258,7 @@ export const DockerSwarmNodesTable: Component<DockerNativeTableProps> = (props)
{dockerTextValue(resource.docker?.nodeRole)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.availability)}
</TableCell>
diff --git a/frontend-modern/src/features/docker/DockerTasksTable.tsx b/frontend-modern/src/features/docker/DockerTasksTable.tsx
index 2df8695d91..02806822a8 100644
--- a/frontend-modern/src/features/docker/DockerTasksTable.tsx
+++ b/frontend-modern/src/features/docker/DockerTasksTable.tsx
@@ -163,7 +163,7 @@ export const DockerTasksTable: Component<DockerNativeTableProps> = (props) => {
kind="text"
sort={sort}
sortKey="desired"
- class="platform-table-mobile-w-15 md:w-[12%]"
+ class="platform-table-phone-hidden md:w-[12%]"
>
Desired
</PlatformSortableTableHead>
@@ -233,7 +233,7 @@ export const DockerTasksTable: Component<DockerNativeTableProps> = (props) => {
{dockerNumberValue(resource.docker?.slot)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.desiredState)}
</TableCell>
diff --git a/frontend-modern/src/features/docker/DockerVolumesTable.tsx b/frontend-modern/src/features/docker/DockerVolumesTable.tsx
index 28a2e56d4b..9085799332 100644
--- a/frontend-modern/src/features/docker/DockerVolumesTable.tsx
+++ b/frontend-modern/src/features/docker/DockerVolumesTable.tsx
@@ -152,7 +152,7 @@ export const DockerVolumesTable: Component<DockerNativeTableProps> = (props) =>
kind="text"
sort={sort}
sortKey="driver"
- class="platform-table-mobile-w-15 md:w-[12%]"
+ class="platform-table-phone-hidden md:w-[12%]"
>
Driver
</PlatformSortableTableHead>
@@ -160,7 +160,7 @@ export const DockerVolumesTable: Component<DockerNativeTableProps> = (props) =>
kind="text"
sort={sort}
sortKey="scope"
- class="platform-table-mobile-w-10 platform-table-narrow-hidden md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
Scope
</PlatformSortableTableHead>
@@ -227,12 +227,12 @@ export const DockerVolumesTable: Component<DockerNativeTableProps> = (props) =>
}
/>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.driver)}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} platform-table-narrow-hidden hidden text-base-content md:table-cell`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{dockerTextValue(resource.docker?.scope)}
</TableCell>
diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
index 9a0bd5abb9..bb7b568b86 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
@@ -1144,7 +1144,7 @@ describe('Docker native tables', () => {
));
expect(screen.getByText('Attached workloads')).toBeInTheDocument();
- expect(screen.getByText('Attention')).toBeInTheDocument();
+ expect(screen.getByText('State')).toBeInTheDocument();
expect(screen.getByText('frontend')).toBeInTheDocument();
expect(screen.getByText('No containers')).toBeInTheDocument();
expect(screen.getByText('Unused')).toBeInTheDocument();
diff --git a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
index 67d366dbfc..bada09fd2a 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsx
@@ -175,7 +175,7 @@ export const KubernetesAlertsTable: Component<{
Resource
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}
+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-phone-hidden md:w-[10%]`}
>
Severity
</TableHead>
@@ -259,7 +259,9 @@ export const KubernetesAlertsTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<AlertSeverityBadge
severity={incident.severity}
bucket={incident.severityBucket}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx
index 2517d7c8ab..5cc8f3af78 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesClustersTable.tsx
@@ -201,7 +201,7 @@ export const KubernetesClustersTable: Component<{
kind="text"
sort={sort}
sortKey="version"
- class="platform-table-mobile-w-15 md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
<PlatformResponsiveTableLabel compact="Ver" full="Version" />
</PlatformSortableTableHead>
@@ -211,7 +211,7 @@ export const KubernetesClustersTable: Component<{
sortKey="nodes"
class="platform-table-mobile-w-10 md:w-[8%]"
>
- Nodes
+ <PlatformResponsiveTableLabel compact="Nds" full="Nodes" />
</PlatformSortableTableHead>
<PlatformSortableTableHead
kind="numeric-value"
@@ -356,7 +356,7 @@ export const KubernetesClustersTable: Component<{
{context()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} font-mono text-[11px] text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden font-mono text-[11px] text-base-content`}
>
<span class="inline-flex items-center rounded bg-surface-alt px-1.5 py-0.5 font-mono text-[10px] text-base-content">
{version()}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx
index 05b1ad534b..9411793768 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesConfigTable.tsx
@@ -288,7 +288,7 @@ export const KubernetesConfigTable: Component<{
kind="text"
sort={sort}
sortKey="lifecycle"
- class="platform-table-mobile-w-20 md:w-[16%]"
+ class="platform-table-phone-hidden md:w-[16%]"
>
<PlatformResponsiveTableLabel compact="Status" full="Lifecycle / trust" />
</PlatformSortableTableHead>
@@ -373,7 +373,7 @@ export const KubernetesConfigTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{state()}
</TableCell>
diff --git a/frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx
index 5180a71dd4..7ff4945fe7 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx
@@ -204,7 +204,7 @@ export const KubernetesDeploymentsTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="desired"
- class="platform-table-mobile-w-10 md:w-[8%]"
+ class="platform-table-phone-hidden md:w-[8%]"
>
<PlatformResponsiveTableLabel compact="Des" full="Desired" />
</PlatformSortableTableHead>
@@ -212,7 +212,7 @@ export const KubernetesDeploymentsTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="updated"
- class="platform-table-mobile-w-10 md:w-[8%] platform-table-narrow-hidden"
+ class="platform-table-phone-hidden md:w-[8%]"
>
<PlatformResponsiveTableLabel compact="Upd" full="Updated" />
</PlatformSortableTableHead>
@@ -228,7 +228,7 @@ export const KubernetesDeploymentsTable: Component<{
kind="numeric-value"
sort={sort}
sortKey="available"
- class="platform-table-mobile-w-10 md:w-[9%]"
+ class="platform-table-phone-hidden md:w-[9%]"
>
<PlatformResponsiveTableLabel compact="Avail" full="Available" />
</PlatformSortableTableHead>
@@ -296,14 +296,14 @@ export const KubernetesDeploymentsTable: Component<{
{cluster()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} platform-table-phone-hidden text-base-content`}
>
<PlatformTableNumberValue
value={deployment.kubernetes?.desiredReplicas ?? 0}
/>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content platform-table-narrow-hidden`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} platform-table-phone-hidden text-base-content`}
>
<PlatformTableNumberValue
value={deployment.kubernetes?.updatedReplicas ?? 0}
@@ -320,7 +320,7 @@ export const KubernetesDeploymentsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('numeric-value')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('numeric-value')} platform-table-phone-hidden text-base-content`}
>
<PlatformTableNumberValue
value={deployment.kubernetes?.availableReplicas ?? 0}
diff --git a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
index bfcd01c1e2..8772ec01f3 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesEventsTable.tsx
@@ -123,7 +123,7 @@ export const KubernetesEventsTable: Component<{
Scope
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('text')} platform-table-mobile-w-15 md:w-[10%]`}
+ class={`${getPlatformTableHeadClassForKind('text')} platform-table-phone-hidden md:w-[10%]`}
>
Type
</TableHead>
@@ -206,7 +206,7 @@ export const KubernetesEventsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{formatPlatformTableTextValue(resource.kubernetes?.eventType)}
</TableCell>
diff --git a/frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx
index 33cd9f5352..d4e66d96af 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesNodesTable.tsx
@@ -225,7 +225,7 @@ export const KubernetesNodesTable: Component<{
kind="text"
sort={sort}
sortKey="roles"
- class="platform-table-mobile-w-15 platform-table-narrow-hidden md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
<PlatformResponsiveTableLabel compact="Role" full="Roles" />
</PlatformSortableTableHead>
@@ -378,7 +378,7 @@ export const KubernetesNodesTable: Component<{
{cluster()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content platform-table-narrow-hidden`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{formatRoles(meta()?.roles)}
</TableCell>
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
index bc4488790c..fdc6b53455 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
@@ -231,7 +231,7 @@ export const KubernetesPodsTable: Component<{
kind="text"
sort={sort}
sortKey="node"
- class="platform-table-mobile-w-15 md:w-[13%]"
+ class="platform-table-phone-hidden md:w-[13%]"
>
Node
</PlatformSortableTableHead>
@@ -239,7 +239,7 @@ export const KubernetesPodsTable: Component<{
kind="text"
sort={sort}
sortKey="status"
- class="platform-table-mobile-w-10 md:w-[8%]"
+ class="platform-table-phone-hidden md:w-[8%]"
>
Status
</PlatformSortableTableHead>
@@ -340,14 +340,14 @@ export const KubernetesPodsTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
<span class="block max-w-full truncate" title={node()}>
{node()}
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{/* The mapped label carries the container failure reason
(CrashLoopBackOff, ImagePullBackOff, ...) where the raw
diff --git a/frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx b/frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx
index 0dc6c9ab36..f49dacac90 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx
@@ -190,14 +190,14 @@ export const KubernetesServicesTable: Component<{
kind="text"
sort={sort}
sortKey="clusterIp"
- class="platform-table-mobile-w-15 kubernetes-service-ip-column md:w-[13%]"
+ class="platform-table-phone-hidden kubernetes-service-ip-column md:w-[13%]"
>
<PlatformResponsiveTableLabel compact="IP" full="Cluster IP" />
</PlatformSortableTableHead>
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-10 md:w-[13%] platform-table-narrow-hidden"
+ class="platform-table-phone-hidden md:w-[13%]"
>
<PlatformResponsiveTableLabel compact="Ext IP" full="External IPs" />
</PlatformSortableTableHead>
@@ -280,12 +280,12 @@ export const KubernetesServicesTable: Component<{
{serviceType()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{clusterIp()}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content platform-table-narrow-hidden`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
<span
class="inline-block max-w-[12rem] truncate"
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesNodesTable.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesNodesTable.test.tsx
index 5c61f63418..9c2fdbe83d 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesNodesTable.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesNodesTable.test.tsx
@@ -57,7 +57,7 @@ afterEach(() => {
});
describe('KubernetesNodesTable', () => {
- it('keeps identity near one-third width while exposing cluster, role, and capacity on phones', () => {
+ it('keeps identity near one-third width while exposing cluster and capacity on phones', () => {
const { container } = render(() => (
<KubernetesNodesTable
resources={[makeNodeResource()]}
@@ -79,7 +79,7 @@ describe('KubernetesNodesTable', () => {
'platform-table-mobile-w-10',
);
expect(headers.find((header) => header.textContent?.includes('Role'))).toHaveClass(
- 'platform-table-narrow-hidden',
+ 'platform-table-phone-hidden',
);
});
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
index cda4a05496..97dd327360 100644
--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from 'vitest';
+import { readFileSync } from 'node:fs';
import agentsMachinesTableSource from '@/features/standalone/AgentsMachinesTable.tsx?raw';
import agentMachineTableModelSource from '@/features/standalone/agentMachineTableModel.ts?raw';
import standalonePageModelSource from '@/features/standalone/standalonePageModel.ts?raw';
@@ -61,6 +62,8 @@ import vsphereDatastoresTableSource from '@/features/vmware/VsphereDatastoresTab
import vsphereHostsTableSource from '@/features/vmware/VsphereHostsTable.tsx?raw';
import vsphereNetworksTableSource from '@/features/vmware/VsphereNetworksTable.tsx?raw';
+const indexCssSource = readFileSync('src/index.css', 'utf8');
+
const platformTableSources = [
agentsMachinesTableSource,
dockerAlertsTableSource,
@@ -322,7 +325,7 @@ describe('platform overview layout guardrails', () => {
/sortKey="size"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[12%\]"/,
);
expect(dockerServicesTableSource).toMatch(
- /sortKey="mode"[\s\S]{0,120}?class="platform-table-mobile-w-10 w-\[10%\] md:w-\[8%\]"/,
+ /sortKey="mode"[\s\S]{0,120}?class="platform-table-phone-hidden md:w-\[8%\]"/,
);
expect(dockerServicesTableSource).toMatch(
/sortKey="update"[\s\S]{0,120}?class="platform-table-mobile-w-15 w-\[15%\] md:w-\[12%\]"/,
@@ -346,7 +349,7 @@ describe('platform overview layout guardrails', () => {
'-my-3 inline-flex min-h-11 items-center truncate',
);
expect(kubernetesNodesTableSource).toMatch(
- /sortKey="roles"[\s\S]{0,160}?class="platform-table-mobile-w-15 platform-table-narrow-hidden md:w-\[10%\]"/,
+ /sortKey="roles"[\s\S]{0,160}?class="platform-table-phone-hidden md:w-\[10%\]"/,
);
expect(kubernetesNodesTableSource).toMatch(
/sortKey="capacity"[\s\S]{0,120}?class="platform-table-mobile-w-10 md:w-\[14%\]"/,
@@ -358,7 +361,7 @@ describe('platform overview layout guardrails', () => {
/sortKey="scope"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[13%\]"/,
);
expect(kubernetesPodsTableSource).toMatch(
- /sortKey="node"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[13%\]"/,
+ /sortKey="node"[\s\S]{0,120}?class="platform-table-phone-hidden md:w-\[13%\]"/,
);
expect(kubernetesServicesTableSource).toMatch(
/sortKey="scope"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[15%\]"/,
@@ -377,6 +380,39 @@ describe('platform overview layout guardrails', () => {
);
});
+ it('keeps phone-priority visibility container-led and symmetric across table rows', () => {
+ expect(indexCssSource).toContain(':is(th, td).platform-table-phone-hidden');
+ expect(indexCssSource).toContain(':is(th, td).platform-table-phone-only');
+
+ for (const source of [
+ dockerAlertsTableSource,
+ kubernetesAlertsTableSource,
+ truenasAlertsTableSource,
+ vsphereAlertsTableSource,
+ ]) {
+ expect(source).toMatch(/TableHead[\s\S]{0,160}?platform-table-phone-hidden/);
+ expect(source).toMatch(
+ /TableCell[\s\S]{0,160}?getPlatformTableCellClassForKind\('badge'\)[\s\S]{0,80}?platform-table-phone-hidden/,
+ );
+ }
+
+ expect(dockerVolumesTableSource).toMatch(
+ /sortKey="scope"[\s\S]{0,120}?platform-table-phone-hidden/,
+ );
+ expect(dockerVolumesTableSource).toMatch(
+ /getPlatformTableCellClassForKind\('text'\)[\s\S]{0,100}?platform-table-phone-hidden[\s\S]{0,140}?dockerTextValue\(resource\.docker\?\.scope\)/,
+ );
+ expect(kubernetesDeploymentsTableSource).toMatch(
+ /sortKey="desired"[\s\S]{0,120}?platform-table-phone-hidden/,
+ );
+ expect(truenasVirtualMachinesTableSource).toMatch(
+ /sortKey="state"[\s\S]{0,120}?platform-table-phone-hidden/,
+ );
+ expect(vsphereActivityTableSource).toMatch(
+ /sortKey="state"[\s\S]{0,120}?platform-table-phone-hidden/,
+ );
+ });
+
it('keeps remaining platform phone identity and actions usable', () => {
expect(truenasStorageTopologyTableSource).toMatch(
/sortKey="kind"[\s\S]{0,120}?class="platform-table-mobile-w-15 md:w-\[10%\]"/,
@@ -574,7 +610,9 @@ describe('platform overview layout guardrails', () => {
expect(dockerHostsTableSource).toMatch(/kind="metric-bar"[\s\S]{0,200}?Disk/);
expect(kubernetesClustersTableSource).toMatch(/kind="name"[\s\S]{0,200}?Cluster/);
- expect(kubernetesClustersTableSource).toMatch(/kind="numeric-value"[\s\S]{0,200}?Nodes/);
+ expect(kubernetesClustersTableSource).toMatch(
+ /sortKey="nodes"[\s\S]{0,180}?<PlatformResponsiveTableLabel compact="Nds" full="Nodes" \/>/,
+ );
expect(kubernetesNodesTableSource).toMatch(/kind="name"[\s\S]{0,200}?Node/);
expect(kubernetesNodesTableSource).toContain(
'<span class="md:hidden">{compactCapacityLabel()}</span>',
@@ -586,7 +624,7 @@ describe('platform overview layout guardrails', () => {
);
expect(vsphereHostsTableSource).toMatch(/kind="name"[\s\S]{0,200}?Host/);
expect(vsphereHostsTableSource).toMatch(
- /kind="numeric-value"[\s\S]{0,240}?<PlatformResponsiveTableLabel compact="#" full="VMs" \/>/,
+ /sortKey="vms"[\s\S]{0,180}?class="platform-table-mobile-w-10 w-\[12%\] md:w-\[4%\]"[\s\S]{0,80}?VMs/,
);
expect(vsphereHostsTableSource).toContain('hidden md:table-cell');
// AgentsMachinesTable uses a column-config pattern: kind helpers are
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
index 818f6e2626..3942006476 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx
@@ -242,7 +242,7 @@ export function ProxmoxBackupServersTable(props: {
title="Backups"
>
<PlatformResponsiveTableLabel
- compact="#"
+ compact="Bkps"
full={layoutMode() === 'full' ? 'Backups' : 'Count'}
/>
</TableHead>
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
index e751604a23..ea91ea9665 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxBackupsTable.test.tsx
@@ -326,6 +326,10 @@ describe('ProxmoxBackupsTable', () => {
expect(proxmoxBackupsTableSource).toContain('buildProxmoxBackupsPath');
expect(proxmoxBackupsTableSource).toContain('trailingControls={');
expect(proxmoxBackupsTableSource).toContain('<PlatformResourceCounter');
+ expect(proxmoxBackupServersTableSource).toContain(
+ '<PlatformResponsiveTableLabel\n compact="Bkps"',
+ );
+ expect(proxmoxBackupServersTableSource).not.toContain('compact="#"');
// The two route-backed sections exist...
expect(screen.getByRole('navigation', { name: /backup views/i })).toBeInTheDocument();
diff --git a/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts
index 22c0416e68..a8971d42b9 100644
--- a/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts
+++ b/frontend-modern/src/features/storageBackups/__tests__/storagePagePresentation.test.ts
@@ -54,13 +54,14 @@ describe('storagePagePresentation', () => {
expect(isStoragePoolColumnVisible('operational', 'growth')).toBe(false);
expect(getStoragePoolColumnWidthPercent('operational', 'usage')).toBe(21);
expect(isStoragePoolColumnVisible('compact', 'host')).toBe(true);
- expect(isStoragePoolColumnVisible('compact', 'protection')).toBe(true);
- expect(getStoragePoolColumnWidthPercent('compact', 'name')).toBe(30);
- expect(getStoragePoolColumnWidthPercent('compact', 'usage')).toBe(13);
+ expect(isStoragePoolColumnVisible('compact', 'type')).toBe(false);
+ expect(isStoragePoolColumnVisible('compact', 'protection')).toBe(false);
+ expect(getStoragePoolColumnWidthPercent('compact', 'name')).toBe(35);
+ expect(getStoragePoolColumnWidthPercent('compact', 'usage')).toBe(25);
expect(getStoragePoolColumnWidthPercent('compact', 'growth')).toBe(0);
expect(isStoragePoolColumnVisible('narrow', 'type')).toBe(false);
- expect(isStoragePoolColumnVisible('narrow', 'protection')).toBe(true);
+ expect(isStoragePoolColumnVisible('narrow', 'protection')).toBe(false);
expect(getStoragePoolColumnWidthPercent('narrow', 'name')).toBe(40);
- expect(getStoragePoolColumnWidthPercent('narrow', 'usage')).toBe(15);
+ expect(getStoragePoolColumnWidthPercent('narrow', 'usage')).toBe(20);
});
});
diff --git a/frontend-modern/src/features/storageBackups/storagePagePresentation.ts b/frontend-modern/src/features/storageBackups/storagePagePresentation.ts
index 29c2a88844..6d1d641452 100644
--- a/frontend-modern/src/features/storageBackups/storagePagePresentation.ts
+++ b/frontend-modern/src/features/storageBackups/storagePagePresentation.ts
@@ -34,12 +34,11 @@ const STORAGE_POOL_VISIBLE_COLUMNS: Record<
StoragePoolTableLayoutMode,
readonly StoragePoolTableColumnId[]
> = {
- // The smallest supported phone keeps the same five-field scan contract as
- // native platform tables. Topology remains available in the row detail.
- narrow: ['name', 'state', 'host', 'protection', 'usage'],
- // Phone tables should answer identity, health, topology, placement,
- // protection, and capacity without requiring a horizontal rail.
- compact: ['name', 'state', 'type', 'host', 'protection', 'usage'],
+ // Phones prioritize the four questions needed for an operational scan:
+ // what, health, where, and capacity. Type and protection remain available
+ // in the expanded detail instead of being squeezed into unusable tracks.
+ narrow: ['name', 'state', 'host', 'usage'],
+ compact: ['name', 'state', 'host', 'usage'],
operational: ['name', 'state', 'host', 'protection', 'usage'],
full: ['name', 'state', 'type', 'host', 'protection', 'usage', 'growth'],
};
@@ -48,8 +47,8 @@ const STORAGE_POOL_COLUMN_WIDTHS: Record<
StoragePoolTableLayoutMode,
Partial<Record<StoragePoolTableColumnId, number>>
> = {
- narrow: { name: 40, state: 15, host: 15, protection: 15, usage: 15 },
- compact: { name: 30, state: 16, type: 13, host: 16, protection: 12, usage: 13 },
+ narrow: { name: 40, state: 20, host: 20, usage: 20 },
+ compact: { name: 35, state: 20, host: 20, usage: 25 },
operational: { name: 29, state: 20, host: 15, protection: 15, usage: 21 },
full: { name: 20, state: 14, type: 10, host: 12, protection: 13, usage: 20, growth: 11 },
};
diff --git a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
index 976c803676..88222dc97d 100644
--- a/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASAlertsTable.tsx
@@ -175,7 +175,7 @@ export const TrueNASAlertsTable: Component<{
Resource
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}
+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-phone-hidden md:w-[10%]`}
>
<PlatformResponsiveTableLabel compact="Sev" full="Severity" />
</TableHead>
@@ -252,7 +252,9 @@ export const TrueNASAlertsTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<AlertSeverityBadge
severity={incident.severity}
bucket={incident.severityBucket}
diff --git a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
index fba793bb77..dc82dad0ed 100644
--- a/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsx
@@ -216,7 +216,7 @@ export const TrueNASNetworkSharesTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-15 md:w-[19%]"
+ class="platform-table-phone-hidden md:w-[19%]"
>
<PlatformResponsiveTableLabel compact="ACL" full="Access" />
</PlatformSortableTableHead>
@@ -231,7 +231,7 @@ export const TrueNASNetworkSharesTable: Component<{
kind="badge"
sort={sort}
sortKey="state"
- class="platform-table-mobile-w-15 md:w-[7%]"
+ class="platform-table-phone-hidden md:w-[7%]"
>
State
</PlatformSortableTableHead>
@@ -310,7 +310,7 @@ export const TrueNASNetworkSharesTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
title={[access().title, security().title].filter(Boolean).join(' | ')}
>
<span class="block truncate">{access().label}</span>
@@ -321,7 +321,9 @@ export const TrueNASNetworkSharesTable: Component<{
>
<span class="block truncate">{clients().label}</span>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<span class="text-[11px] font-medium text-base-content">
{stateLabel()}
</span>
diff --git a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
index f3dc92f44f..dd066dab55 100644
--- a/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASServicesTable.tsx
@@ -265,7 +265,7 @@ export const TrueNASServicesTable: Component<{
kind="badge"
sort={sort}
sortKey="state"
- class="platform-table-mobile-w-15 md:w-[14%]"
+ class="platform-table-phone-hidden md:w-[14%]"
>
State
</PlatformSortableTableHead>
@@ -289,7 +289,7 @@ export const TrueNASServicesTable: Component<{
kind="text"
sort={sort}
sortKey="system"
- class="platform-table-mobile-w-25 md:w-[28%]"
+ class="platform-table-phone-hidden md:w-[28%]"
>
System
</PlatformSortableTableHead>
@@ -333,7 +333,9 @@ export const TrueNASServicesTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<span class="inline-flex rounded-full border border-border px-2 py-0.5 text-[11px] font-medium text-base-content">
{formatPlatformTableTitleCaseValue(rawState())}
</span>
@@ -355,7 +357,9 @@ export const TrueNASServicesTable: Component<{
>
<span class="tabular-nums text-base-content">{pids().label}</span>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('text')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden`}
+ >
<div class="truncate text-base-content">{row.systemName}</div>
</TableCell>
</TableRow>
diff --git a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
index 9dc629ddfc..7991d7314a 100644
--- a/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsx
@@ -388,7 +388,7 @@ export const TrueNASStorageTopologyTable: Component<{
kind="badge"
sort={sort}
sortKey="health"
- class="platform-table-mobile-w-15 md:w-[14%]"
+ class="platform-table-phone-hidden md:w-[14%]"
>
<PlatformResponsiveTableLabel compact="H" full="Health" />
</PlatformSortableTableHead>
@@ -456,7 +456,9 @@ export const TrueNASStorageTopologyTable: Component<{
emptyText="-"
/>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<RiskPill row={row} />
</TableCell>
</TableRow>
diff --git a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
index 1aa010dead..7d8b3dae77 100644
--- a/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsx
@@ -223,7 +223,7 @@ export const TrueNASVirtualMachinesTable: Component<{
kind="badge"
sort={sort}
sortKey="state"
- class="platform-table-mobile-w-15 md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
State
</PlatformSortableTableHead>
@@ -247,7 +247,7 @@ export const TrueNASVirtualMachinesTable: Component<{
kind="text"
sort={sort}
sortKey="boot"
- class="platform-table-mobile-w-25 md:w-[11%]"
+ class="platform-table-phone-hidden md:w-[11%]"
>
Boot
</PlatformSortableTableHead>
@@ -327,7 +327,9 @@ export const TrueNASVirtualMachinesTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<span class="text-[11px] font-medium text-base-content">
{stateLabel()}
</span>
@@ -343,7 +345,7 @@ export const TrueNASVirtualMachinesTable: Component<{
{formatPlatformTableBytesValue(vm()?.memoryBytes, '-')}
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
>
{vm()?.bootloader || '-'}
</TableCell>
diff --git a/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx b/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx
index 014dad0dad..b4ec936976 100644
--- a/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx
+++ b/frontend-modern/src/features/truenas/__tests__/TrueNASStorageTopologyTable.test.tsx
@@ -72,7 +72,7 @@ describe('TrueNASStorageTopologyTable', () => {
expect(headers[2]).toHaveClass('platform-table-mobile-w-25');
expect(headers[3]).toHaveClass('platform-table-mobile-w-15');
expect(headers[3]).not.toHaveClass('hidden');
- expect(headers[5]).toHaveClass('platform-table-mobile-w-15');
+ expect(headers[5]).toHaveClass('platform-table-phone-hidden');
expect(mediaRow).toHaveAttribute('data-truenas-storage-depth', '1');
expect(photosRow).toHaveAttribute('data-truenas-storage-depth', '2');
diff --git a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
index 600f11d56d..32cb1ea25f 100644
--- a/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereActivityTable.tsx
@@ -336,7 +336,7 @@ export const VsphereActivityTable: Component<{
kind="badge"
sort={sort}
sortKey="state"
- class="platform-table-mobile-w-15 md:w-[10%]"
+ class="platform-table-phone-hidden md:w-[10%]"
>
State
</PlatformSortableTableHead>
@@ -433,7 +433,9 @@ export const VsphereActivityTable: Component<{
{activity.title}
</span>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<span class="text-[11px] font-semibold text-base-content">
{formatActivityState(activity)}
</span>
diff --git a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
index 35c364f1e3..027e90367b 100644
--- a/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereAlertsTable.tsx
@@ -180,7 +180,7 @@ export const VsphereAlertsTable: Component<{
Resource
</TableHead>
<TableHead
- class={`${getPlatformTableHeadClassForKind('badge')} platform-table-mobile-w-15 md:w-[10%]`}
+ class={`${getPlatformTableHeadClassForKind('badge')} platform-table-phone-hidden md:w-[10%]`}
>
<PlatformResponsiveTableLabel compact="Sev" full="Severity" />
</TableHead>
@@ -258,7 +258,9 @@ export const VsphereAlertsTable: Component<{
</div>
</div>
</TableCell>
- <TableCell class={getPlatformTableCellClassForKind('badge')}>
+ <TableCell
+ class={`${getPlatformTableCellClassForKind('badge')} platform-table-phone-hidden`}
+ >
<AlertSeverityBadge
severity={incident.severity}
bucket={incident.severityBucket}
diff --git a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
index 012f3eed1a..a51288568e 100644
--- a/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereDatastoresTable.tsx
@@ -227,7 +227,7 @@ export const VsphereDatastoresTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-15 md:w-[14%]"
+ class="platform-table-phone-hidden md:w-[14%]"
>
<PlatformResponsiveTableLabel compact="H" full="Hosts" />
</PlatformSortableTableHead>
@@ -237,7 +237,7 @@ export const VsphereDatastoresTable: Component<{
sortKey="vms"
class="platform-table-mobile-w-15 md:w-[7%]"
>
- <PlatformResponsiveTableLabel compact="#" full="VMs" />
+ VMs
</PlatformSortableTableHead>
<PlatformSortableTableHead
kind="text"
@@ -321,7 +321,7 @@ export const VsphereDatastoresTable: Component<{
</Show>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
title={hosts().title}
>
<span class="block truncate">{hosts().label}</span>
diff --git a/frontend-modern/src/features/vmware/VsphereHostsTable.tsx b/frontend-modern/src/features/vmware/VsphereHostsTable.tsx
index c60b7617cf..218bbf3d21 100644
--- a/frontend-modern/src/features/vmware/VsphereHostsTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereHostsTable.tsx
@@ -303,7 +303,7 @@ export const VsphereHostsTable: Component<{
sortKey="vms"
class="platform-table-mobile-w-10 w-[12%] md:w-[4%]"
>
- <PlatformResponsiveTableLabel compact="#" full="VMs" />
+ VMs
</PlatformSortableTableHead>
<PlatformSortableTableHead
kind="text"
diff --git a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
index 3b48e76ab8..8ea1ae8535 100644
--- a/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
+++ b/frontend-modern/src/features/vmware/VsphereNetworksTable.tsx
@@ -195,7 +195,7 @@ export const VsphereNetworksTable: Component<{
<PlatformSortableTableHead
kind="text"
sort={sort}
- class="platform-table-mobile-w-20 md:w-[18%]"
+ class="platform-table-phone-hidden md:w-[18%]"
>
Hosts
</PlatformSortableTableHead>
@@ -283,7 +283,7 @@ export const VsphereNetworksTable: Component<{
</span>
</TableCell>
<TableCell
- class={`${getPlatformTableCellClassForKind('text')} text-base-content`}
+ class={`${getPlatformTableCellClassForKind('text')} platform-table-phone-hidden text-base-content`}
title={hosts().title}
>
<span class="block truncate">{hosts().label}</span>
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index f75054ca84..1e3b6ed628 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -1051,6 +1051,18 @@ body,
display: none;
}
+/*
+ * Table columns and inline status labels can opt into the same container-led
+ * phone priority contract. Keeping these rules beside the canonical mobile
+ * widths means a header can never disappear at a different breakpoint from
+ * its body cells, and nested panels respond to their own usable width rather
+ * than the browser viewport.
+ */
+.platform-table-phone-only,
+.platform-table-phone-only-inline {
+ display: none;
+}
+
@container (min-width: 34rem) {
.platform-table-label-compact {
display: none;
@@ -1098,6 +1110,19 @@ body,
.table-scroll-shell > .table-fixed.platform-table th.platform-table-mobile-w-10 {
width: 10%;
}
+
+ .table-scroll-shell > .table-fixed.platform-table :is(th, td).platform-table-phone-hidden,
+ .platform-table-phone-hidden-inline {
+ display: none;
+ }
+
+ .table-scroll-shell > .table-fixed.platform-table :is(th, td).platform-table-phone-only {
+ display: table-cell;
+ }
+
+ .platform-table-phone-only-inline {
+ display: inline-flex;
+ }
}
/* At the narrowest supported phone width, spend the extra identity space once