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.

fix(ui): prioritize workload identity on phones

rcourtman711eed6d695e
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 7ee099b018..7a44151586 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,48 +1,86 @@
{
"version": 1,
- "base_sha": "2be0ec649487512d61a09b743e88cc82973e0d04",
- "verified_at": "2026-08-06T08:40:31Z",
+ "base_sha": "ff97e3943c866ef062d743e6f1da136c13109a26",
+ "verified_at": "2026-08-06T09:05:33Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/api/availabilityTargets.ts",
- "frontend-modern/src/components/Infrastructure/AvailabilityProbeStatusCard.tsx",
- "frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx",
- "frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/AvailabilityTargetSlot.tsx",
- "frontend-modern/src/types/resource.ts"
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx",
+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts",
+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts"
],
"content_sha256": {
- "frontend-modern/src/api/availabilityTargets.ts": "8a748f332a76b2cfa4a3a3dfc0e400fe9593ec7f410ad1388927fd769126b409",
- "frontend-modern/src/components/Infrastructure/AvailabilityProbeStatusCard.tsx": "29c97f569f6ba677d954f4045a870f3166761dcd852a20e2e4460d8c30861602",
- "frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx": "5e270c80ef9b1b1a6f6fbd8241c81ad5e710dbc02115f846809278322c160307",
- "frontend-modern/src/components/Settings/ConnectionEditor/CredentialSlots/AvailabilityTargetSlot.tsx": "39778a7e90a10fead774d71cc5eab26e0d9232047cde2484b7588ce6c04f8611",
- "frontend-modern/src/types/resource.ts": "39c5b13dae6642932c68bb31de77297272228a8ca7c72d115fa8b84eace9e157"
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx": "dc5b5c79a0ddeb71e38bf2f01fa386f1850dffcf7315d9f697b681ad729b64ca",
+ "frontend-modern/src/features/docker/dockerContainerTableModel.ts": "85b9cac933ab3f5a7aa08f54d5fbcfa1b6e15b24b461eb8c3bea8efbc4e5364f",
+ "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "63078dbcaa4ac8b86c94612a3deeb116a72db90b0cdb01a9c997044be2e1750b"
},
"routes": [
- "/settings/monitoring/availability",
- "/docker/swarm"
+ "/proxmox/overview",
+ "/proxmox/storage",
+ "/proxmox/replication",
+ "/proxmox/backups",
+ "/proxmox/ceph",
+ "/proxmox/mail",
+ "/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",
+ "/standalone/machines",
+ "/standalone/availability"
],
"viewports": [
{
"width": 1280,
"height": 820
},
+ {
+ "width": 768,
+ "height": 820
+ },
{
"width": 390,
- "height": 844
+ "height": 820
+ },
+ {
+ "width": 320,
+ "height": 820
}
],
"states": [
- "HTTPS availability target editor with certificate monitoring enabled by default",
- "certificate expiry warning window at its 30 day default",
- "certificate monitoring opted out with the warning input disabled",
- "linked HTTPS availability target in the Docker Swarm resource journey"
+ "populated mock inventory across every platform workflow",
+ "phone workload layout with identity, availability, CPU, and memory",
+ "similar Proxmox workload names with and without backup posture cues",
+ "small-tablet workload layout with disk restored",
+ "desktop workload and native platform tables with their full responsive column sets",
+ "deep platform navigation tabs selected at the end of horizontally scrollable tab strips"
],
"interactions": [
- "opened the add availability check dialog and selected HTTPS",
- "toggled certificate monitoring off and on and confirmed the expiry input disabled and re-enabled",
- "inspected the desktop dialog at 1280 by 820 pixels",
- "inspected the narrow dialog and TLS controls at 390 by 844 pixels with zero horizontal overflow",
- "navigated to the linked Docker Swarm service journey and confirmed the HTTPS availability target projection",
- "checked the browser console after the changed journeys and found no errors"
+ "navigated all 32 platform workflow routes and waited for their loaded tables",
+ "scrolled populated Proxmox workload groups at 320 and 390 pixels and visually compared similarly named rows",
+ "changed from phone to 768 pixel tablet width and confirmed the disk column returned without table overflow",
+ "verified Proxmox, Docker, and VMware tables after the final layout-mode change at 320, 390, 768, and 1280 pixels",
+ "measured document, table, and scroll-container widths and found no page-level or table-level horizontal overflow",
+ "confirmed Proxmox, Docker, Kubernetes, TrueNAS, VMware, and Machines share identical desktop content bounds",
+ "opened deep Mail Gateway, Swarm, Events, Protection, Activity, and Availability tabs and confirmed the active tab was fully visible",
+ "checked the affected desktop journeys after the final code change and found no browser console errors"
]
}
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 6a336fdc40..008fd44eae 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -1037,22 +1037,37 @@ describe('GUEST_COLUMNS', () => {
it('derives mobile overrides from the canonical guest column model', () => {
expect(getGuestColumnStyle('name', true)).toEqual({
- width: '40%',
- 'max-width': '40%',
+ width: '62%',
+ 'max-width': '62%',
});
expect(getGuestColumnStyle('cpu', true)).toEqual({
- width: '17%',
- 'max-width': '17%',
+ width: '15%',
+ 'max-width': '15%',
});
- expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '40%' });
+ expect(getGuestColumnWidthStyle('name', true)).toEqual({ width: '62%' });
expect(getGuestColumnWidthStyle('diskIo', true)).toEqual({ width: '170px' });
});
it('derives normalized tablet and compact widths from the visible workload columns', () => {
const allModeColumns = GUEST_COLUMNS.filter((column) => VIEW_MODE_COLUMNS.all!.has(column.id));
+ const phoneColumns = getWorkloadVisibleColumnsForLayout(allModeColumns, 'phone');
+ const mobileColumns = getWorkloadVisibleColumnsForLayout(allModeColumns, 'mobile');
const tabletColumns = getWorkloadVisibleColumnsForLayout(allModeColumns, 'tablet');
const compactColumns = getWorkloadVisibleColumnsForLayout(allModeColumns, 'compact');
+ expect(phoneColumns.map((column) => column.id)).toEqual([
+ 'name',
+ 'availability',
+ 'cpu',
+ 'memory',
+ ]);
+ expect(mobileColumns.map((column) => column.id)).toEqual([
+ 'name',
+ 'availability',
+ 'cpu',
+ 'memory',
+ 'disk',
+ ]);
expect(tabletColumns.map((column) => column.id)).toEqual([
'name',
'availability',
@@ -1132,6 +1147,8 @@ describe('GUEST_COLUMNS', () => {
});
it('maps workload table layout modes to viewport width stages', () => {
+ expect(getWorkloadTableLayoutMode(479)).toBe('phone');
+ expect(getWorkloadTableLayoutMode(480)).toBe('mobile');
expect(getWorkloadTableLayoutMode(767)).toBe('mobile');
expect(getWorkloadTableLayoutMode(768)).toBe('tablet');
expect(getWorkloadTableLayoutMode(899)).toBe('tablet');
@@ -1144,6 +1161,8 @@ describe('GUEST_COLUMNS', () => {
});
it('maps workload table layout modes to the actual table container', () => {
+ expect(getWorkloadTableLayoutModeForContainer(439)).toBe('phone');
+ expect(getWorkloadTableLayoutModeForContainer(440)).toBe('mobile');
expect(getWorkloadTableLayoutModeForContainer(719)).toBe('mobile');
expect(getWorkloadTableLayoutModeForContainer(720)).toBe('tablet');
expect(getWorkloadTableLayoutModeForContainer(899)).toBe('tablet');
diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsx
index 3416f53089..3d22a44c52 100644
--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx
+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx
@@ -11,8 +11,9 @@ import type {
import type { NestedWorkloadContext } from './nestedWorkloadContext';
import type { WorkloadsMemoryDisplayBasis } from './workloadsFilterModel';
-export type WorkloadTableLayoutMode = 'mobile' | 'tablet' | 'compact' | 'wide';
+export type WorkloadTableLayoutMode = 'phone' | 'mobile' | 'tablet' | 'compact' | 'wide';
+export const WORKLOAD_TABLE_PHONE_LAYOUT_WIDTH = 480;
export const WORKLOAD_TABLE_MOBILE_LAYOUT_WIDTH = 768;
export const WORKLOAD_TABLE_TABLET_LAYOUT_WIDTH = 900;
// Layout stages key off the viewport, but the table renders inside a shell
@@ -22,23 +23,29 @@ export const WORKLOAD_TABLE_TABLET_LAYOUT_WIDTH = 900;
// relying on horizontal scroll, so wide waits until the shell can actually
// hold the full set.
export const WORKLOAD_TABLE_WIDE_LAYOUT_WIDTH = 1536;
+export const WORKLOAD_TABLE_CONTAINER_PHONE_WIDTH = 440;
export const WORKLOAD_TABLE_CONTAINER_MOBILE_WIDTH = 720;
export const WORKLOAD_TABLE_CONTAINER_TABLET_WIDTH = 900;
export const WORKLOAD_TABLE_CONTAINER_WIDE_WIDTH = 1440;
const WORKLOAD_TABLE_LAYOUT_ORDER: Record<WorkloadTableLayoutMode, number> = {
- mobile: 0,
- tablet: 1,
- compact: 2,
- wide: 3,
+ phone: 0,
+ mobile: 1,
+ tablet: 2,
+ compact: 3,
+ wide: 4,
};
const WORKLOAD_COLUMN_MIN_LAYOUT: Record<string, WorkloadTableLayoutMode> = {
- name: 'mobile',
- availability: 'mobile',
+ name: 'phone',
+ availability: 'phone',
runtime: 'tablet',
- cpu: 'mobile',
- memory: 'mobile',
+ cpu: 'phone',
+ memory: 'phone',
+ // A phone-width row needs enough identity space to distinguish similarly
+ // named workloads. Disk remains available in the row details and returns in
+ // the wider mobile layout; keeping it beside CPU and memory on phones reduced the
+ // name to a handful of characters once the status and backup cues rendered.
disk: 'mobile',
type: 'tablet',
info: 'tablet',
@@ -437,6 +444,15 @@ const GUEST_COLUMN_RESPONSIVE_WEIGHTS: Record<
Exclude<WorkloadTableLayoutMode, 'wide'>,
Record<string, number>
> = {
+ phone: {
+ // Identity is the primary mobile task. Availability stays visible because
+ // it can disagree with runtime health, while CPU and memory retain useful
+ // bar widths. Disk rejoins this set at the wider-mobile breakpoint above.
+ name: 62,
+ availability: 8,
+ cpu: 15,
+ memory: 15,
+ },
mobile: {
name: 40,
availability: 8,
@@ -494,7 +510,7 @@ const getResponsiveColumnOverride = (
const getGuestColumnSizing = (
columnId: string,
isMobile = false,
- layoutMode: WorkloadTableLayoutMode = isMobile ? 'mobile' : 'wide',
+ layoutMode: WorkloadTableLayoutMode = isMobile ? 'phone' : 'wide',
visibleColumnIds?: readonly string[],
): Pick<ColumnDef, 'width' | 'minWidth' | 'maxWidth'> | undefined => {
const column = GUEST_COLUMN_BY_ID.get(columnId);
@@ -546,14 +562,16 @@ export const getGuestColumnWidthStyle = (
};
export const getWorkloadTableLayoutMode = (width: number): WorkloadTableLayoutMode => {
- if (!Number.isFinite(width) || width < WORKLOAD_TABLE_MOBILE_LAYOUT_WIDTH) return 'mobile';
+ if (!Number.isFinite(width) || width < WORKLOAD_TABLE_PHONE_LAYOUT_WIDTH) return 'phone';
+ if (width < WORKLOAD_TABLE_MOBILE_LAYOUT_WIDTH) return 'mobile';
if (width < WORKLOAD_TABLE_TABLET_LAYOUT_WIDTH) return 'tablet';
if (width < WORKLOAD_TABLE_WIDE_LAYOUT_WIDTH) return 'compact';
return 'wide';
};
export const getWorkloadTableLayoutModeForContainer = (width: number): WorkloadTableLayoutMode => {
- if (!Number.isFinite(width) || width < WORKLOAD_TABLE_CONTAINER_MOBILE_WIDTH) return 'mobile';
+ if (!Number.isFinite(width) || width < WORKLOAD_TABLE_CONTAINER_PHONE_WIDTH) return 'phone';
+ if (width < WORKLOAD_TABLE_CONTAINER_MOBILE_WIDTH) return 'mobile';
if (width < WORKLOAD_TABLE_CONTAINER_TABLET_WIDTH) return 'tablet';
if (width < WORKLOAD_TABLE_CONTAINER_WIDE_WIDTH) return 'compact';
return 'wide';
diff --git a/frontend-modern/src/features/docker/dockerContainerTableModel.ts b/frontend-modern/src/features/docker/dockerContainerTableModel.ts
index 24a609587b..004909bb3e 100644
--- a/frontend-modern/src/features/docker/dockerContainerTableModel.ts
+++ b/frontend-modern/src/features/docker/dockerContainerTableModel.ts
@@ -50,22 +50,23 @@ export const getDockerContainerSortKey = (
: undefined;
const DOCKER_CONTAINER_TABLE_LAYOUT_ORDER: Record<WorkloadTableLayoutMode, number> = {
- mobile: 0,
- tablet: 1,
- compact: 2,
- wide: 3,
+ phone: 0,
+ mobile: 1,
+ tablet: 2,
+ compact: 3,
+ wide: 4,
};
const DOCKER_CONTAINER_COLUMN_MIN_LAYOUT: Record<
DockerContainerTableColumnId,
WorkloadTableLayoutMode
> = {
- container: 'mobile',
- state: 'mobile',
- cpu: 'mobile',
- memory: 'mobile',
- updates: 'mobile',
- actions: 'mobile',
+ container: 'phone',
+ state: 'phone',
+ cpu: 'phone',
+ memory: 'phone',
+ updates: 'phone',
+ actions: 'phone',
host: 'tablet',
restarts: 'tablet',
image: 'compact',
@@ -111,6 +112,14 @@ const DOCKER_CONTAINER_RESPONSIVE_WIDTHS: Record<
Exclude<WorkloadTableLayoutMode, 'wide'>,
Partial<Record<DockerContainerTableColumnId, number>>
> = {
+ phone: {
+ container: 30,
+ state: 14,
+ cpu: 18,
+ memory: 21,
+ updates: 17,
+ actions: 14,
+ },
mobile: {
container: 30,
state: 14,
diff --git a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
index d241dd3134..92a6669c7c 100644
--- a/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
+++ b/frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts
@@ -14,17 +14,18 @@ export type ProxmoxHostTableColumn = {
};
const HOST_TABLE_LAYOUT_ORDER: Record<WorkloadTableLayoutMode, number> = {
- mobile: 0,
- tablet: 1,
- compact: 2,
- wide: 3,
+ phone: 0,
+ mobile: 1,
+ tablet: 2,
+ compact: 3,
+ wide: 4,
};
const HOST_COLUMN_MIN_LAYOUT: Record<ProxmoxHostTableColumnId, WorkloadTableLayoutMode> = {
- node: 'mobile',
- cpu: 'mobile',
- memory: 'mobile',
- disk: 'mobile',
+ node: 'phone',
+ cpu: 'phone',
+ memory: 'phone',
+ disk: 'phone',
temp: 'tablet',
uptime: 'tablet',
cluster: 'tablet',
@@ -56,6 +57,12 @@ const HOST_COLUMN_RESPONSIVE_WEIGHTS: Record<
Exclude<WorkloadTableLayoutMode, 'wide'>,
Partial<Record<ProxmoxHostTableColumnId, number>>
> = {
+ phone: {
+ node: 40,
+ cpu: 20,
+ memory: 20,
+ disk: 20,
+ },
mobile: {
node: 40,
cpu: 20,
@@ -138,7 +145,7 @@ export const getProxmoxHostColumnWidthStyle = (
export const getProxmoxHostTableMinWidthClass = (
layoutMode: WorkloadTableLayoutMode,
): 'min-w-[0px]' | 'min-w-[50rem]' | 'min-w-[64rem]' | 'min-w-[1240px]' => {
- if (layoutMode === 'mobile') return 'min-w-[0px]';
+ if (layoutMode === 'phone' || layoutMode === 'mobile') return 'min-w-[0px]';
if (layoutMode === 'tablet') return 'min-w-[50rem]';
if (layoutMode === 'compact') return 'min-w-[64rem]';
return 'min-w-[1240px]';