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): adapt workload columns to available space

rcourtman66388197430a
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 53661cb076..6a0f036cf8 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -240,6 +240,18 @@ change may globally weaken the Task 03 lifecycle-state idempotency invariant.
derivation, summary statistics, and row rendering so a platform overview
that demotes nested workloads does not carry hidden rows through downstream
table state.
+ Responsive workload columns are part of the same table hot-path and
+ usability contract. The active width stage must filter both the rendered
+ column set and the column picker's available choices; a remembered user
+ selection must not force a wider table or introduce horizontal scrolling
+ when the current container cannot present that column readably. User-hidden
+ preferences remain width-independent, and selected wide-only columns must
+ return automatically when the table reaches a supporting width. The phone
+ stage keeps workload identity, availability, CPU, memory, and disk visible,
+ while row expansion owns secondary operational detail. State-model tests
+ must cover contraction and restoration of selected columns, and the browser
+ receipt must prove table and container scroll-width parity across the
+ affected breakpoint boundaries.
When a platform page still needs a visible signal for those demoted nested
workloads, `nestedWorkloadContext.ts` must derive a bounded summary from the
same raw workload snapshot before row rendering. That derivation must use
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 118fd9e9c2..05a8f27263 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,78 +1,59 @@
{
"version": 1,
- "base_sha": "bcaef22bd63350f5e50d559dbe5eb9cefbb440f9",
- "verified_at": "2026-08-05T21:50:05Z",
+ "base_sha": "0f7b1ddee4960573f6009f2f2e0995b9a76508c7",
+ "verified_at": "2026-08-05T22:35:48Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx",
- "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx",
- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx",
- "frontend-modern/src/index.css"
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx",
+ "frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts",
+ "frontend-modern/src/components/Workloads/useWorkloadsState.ts"
],
"content_sha256": {
- "frontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsx": "ff75789c94375cdc49280867b82672f04f714e95230908250651f9c43f521aab",
- "frontend-modern/src/features/kubernetes/KubernetesServicesTable.tsx": "606c14b143e37a78d87401a109d3352f2db1a069b28e465915a8b25d5662301c",
- "frontend-modern/src/features/truenas/TrueNASAppsTable.tsx": "b7477fb658a28c2b9174af5cce8e35d6a10f62956f6a02d45240b9c1497312af",
- "frontend-modern/src/index.css": "78af243a7b0558a3a1e5020d53f50b585ac3d03cc48580c8770d45076d0916a4"
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "3e2d0e313aebcfd563c39792f45d63d72d75783d8afe405bfb39476201b85a32",
+ "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "23cc10b33810af82d6726cc18c580c1c1c53504e0691707c40cfdfb2e6abe70e",
+ "frontend-modern/src/components/Workloads/guestRowModel.tsx": "51ef0831a897393292c5e27ea7aa19ccfb343a5729d2b80d023f7b8cf79efbd5",
+ "frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts": "dc9aa36e8890b1b467bfdbdf5627dde8b74d6c57975988d18bbd7c125cb32f60",
+ "frontend-modern/src/components/Workloads/useWorkloadsState.ts": "1d4d01757a36691c3aa62402bdf5beb9bdf592ae9cc29bd2f73f6de65b9ffb53"
},
"routes": [
"/proxmox/overview",
- "/proxmox/storage",
- "/proxmox/replication",
- "/proxmox/backups?view=coverage",
- "/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",
- "/alerts/overview",
- "/alerts/history",
- "/actions",
- "/patrol",
- "/settings/infrastructure",
- "/settings/infrastructure/agent-doctor",
- "/settings/pulse-intelligence/provider",
- "/settings/security-roles"
+ "/vmware/overview"
],
"viewports": [
{
"width": 1920,
- "height": 1000
+ "height": 900
+ },
+ {
+ "width": 1536,
+ "height": 800
+ },
+ {
+ "width": 1440,
+ "height": 800
},
{
"width": 1280,
- "height": 900
+ "height": 800
},
{
"width": 1024,
"height": 800
},
+ {
+ "width": 900,
+ "height": 800
+ },
{
"width": 768,
- "height": 900
+ "height": 800
+ },
+ {
+ "width": 720,
+ "height": 800
},
{
"width": 390,
@@ -80,22 +61,25 @@
},
{
"width": 320,
- "height": 700
+ "height": 800
}
],
"states": [
- "Populated mock-data inventories across Proxmox, Docker, Kubernetes, TrueNAS, vSphere, Machines, Alerts, Actions, Patrol, and reachable Settings destinations",
- "Dense platform tables at desktop, laptop, tablet, standard phone, and 320px narrow-phone widths",
- "Kubernetes Services and Ingresses / EndpointSlices with similarly prefixed checkout resource names",
- "TrueNAS Apps with long app identities, live CPU and memory values, and simultaneous app and image updates",
- "Compact narrow-phone identity rows and the expanded column sets restored at 768px and 1024px"
+ "Populated Proxmox mock inventory with every workload column selected at the wide layout",
+ "Responsive workload column sets at wide, compact, tablet, and phone stages",
+ "Proxmox View preferences and nested Columns picker at 1920px and 1024px",
+ "Expanded Proxmox workload details at 390px",
+ "Populated Docker host and container tables across desktop, tablet, and phone widths",
+ "Populated vSphere host and VM tables across desktop, tablet, and phone widths",
+ "vSphere View preferences and nested Columns picker at 1024px"
],
"interactions": [
- "Navigated through 66 reachable routes at 320px and checked document and table scroll boundaries",
- "Compared visible operator columns across 1920px, 1280px, 1024px, 768px, 390px, and 320px viewports",
- "Captured and visually inspected Proxmox backup coverage, Kubernetes Services, TrueNAS Apps, and Settings Roles at narrow widths",
- "Confirmed checkout-api, checkout-public, and checkout-web remain distinguishable without horizontal scrolling",
- "Confirmed TrueNAS app names can wrap to two lines and simultaneous app and image updates fit as compact A and I markers",
- "Confirmed full update labels and wider secondary columns return at 768px and 1024px"
+ "Selected every available Proxmox workload column at 1920px and confirmed all selections fit without internal or document overflow",
+ "Resized the same selected-column state through 1920, 1536, 1440, 1280, 1024, 900, 768, 720, 390, and 320px and confirmed selected wide columns return automatically when space permits",
+ "Opened View preferences and the nested Columns picker at 1024px and confirmed wide-only choices are omitted while compact choices remain available",
+ "Opened the wide Columns picker at 1920px and confirmed IP, Tags, OS, Net I/O, and Disk I/O remain selected and available",
+ "Expanded auth-service-01 at 390px and visually inspected the identity row, primary metrics, tabs, and detail cards without clipping or horizontal scroll",
+ "Measured every visible Docker and vSphere table at 1920, 1280, 1024, 768, 390, and 320px and confirmed table and document scroll widths match their containers",
+ "Opened the vSphere compact Columns picker and confirmed only columns supported by the current layout are offered"
]
}
diff --git a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
index 5bf39f6cc6..d05c2b6a1a 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
@@ -214,7 +214,6 @@ export function WorkloadsSurface(props: WorkloadsSurfaceComponentProps) {
workloadMemoryDisplayBasis={state.workloadMemoryDisplayBasis}
workloadMetricHistory={state.workloadMetricHistory}
workloadTableLayoutMode={state.workloadTableLayoutMode}
- workloadTableMinimumWidth={state.workloadTableMinimumWidth}
workloadTableVisibleColumnIds={state.workloadTableVisibleColumnIds}
workloadTableVisibleColumns={state.workloadTableVisibleColumns}
/>
diff --git a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
index 7c372762f9..55ac2b4f0e 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsTable.tsx
@@ -58,7 +58,6 @@ type WorkloadsTableProps = Pick<
| 'workloadMemoryDisplayBasis'
| 'workloadMetricHistory'
| 'workloadTableLayoutMode'
- | 'workloadTableMinimumWidth'
| 'workloadTableVisibleColumnIds'
| 'workloadTableVisibleColumns'
>;
@@ -75,11 +74,6 @@ export function WorkloadsTable(props: WorkloadsTableProps) {
<Table
wrapperRef={props.setTableWrapperRef}
class={`workload-table table-fixed ${props.isMobile() ? `workload-table--mobile ${WORKLOAD_TABLE_MOBILE_MIN_WIDTH_CLASS}` : 'workload-table--desktop min-w-full'}`}
- style={
- props.workloadTableMinimumWidth()
- ? { 'min-width': `${props.workloadTableMinimumWidth()}px` }
- : undefined
- }
>
<colgroup>
<For each={props.workloadTableVisibleColumns()}>
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
index 67aa6e6b1c..6a336fdc40 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsx
@@ -137,7 +137,6 @@ import {
getGuestColumnWidthStyle,
getWorkloadTableLayoutMode,
getWorkloadTableLayoutModeForContainer,
- getWorkloadTableReadableMinWidth,
getWorkloadVisibleColumnsForLayout,
type WorkloadIOEmphasis,
} from '../guestRowModel';
@@ -1153,16 +1152,6 @@ describe('GUEST_COLUMNS', () => {
expect(getWorkloadTableLayoutModeForContainer(1440)).toBe('wide');
});
- it('adds a readable width floor only when an explicit column exceeds the layout', () => {
- const columns = GUEST_COLUMNS.filter((column) =>
- ['name', 'cpu', 'memory', 'netIo'].includes(column.id),
- );
-
- expect(getWorkloadTableReadableMinWidth(columns, 'compact', new Set(['netIo']))).toBe(630);
- expect(getWorkloadTableReadableMinWidth(columns, 'compact', new Set(['cpu']))).toBeNull();
- expect(getWorkloadTableReadableMinWidth(columns, 'wide', new Set(['netIo']))).toBeNull();
- });
-
it('keeps CPU and memory fixed while allowing disk to be platform-scoped', () => {
const nonToggleable = GUEST_COLUMNS.filter((c) => !c.toggleable);
const ids = nonToggleable.map((c) => c.id);
diff --git a/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts b/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
index c5f7a92f58..c23297c8b9 100644
--- a/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
+++ b/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
@@ -46,7 +46,7 @@ describe('useWorkloadsControlsState', () => {
setWideViewport();
});
- it('lets an explicit toggle pin a layout-hidden column into the compact table', () => {
+ it('only offers columns the compact table can present without horizontal scrolling', () => {
setCompactViewport();
createRoot((dispose) => {
try {
@@ -58,44 +58,24 @@ describe('useWorkloadsControlsState', () => {
});
const menu = state.workloadsFilterColumnVisibility();
- // netIo is layout-gated to the wide breakpoint: invisible at 1280px
- // and reported hidden by the menu even though the user never hid it.
expect(state.workloadTableVisibleColumnIds()).not.toContain('netIo');
- expect(menu.isColumnHidden('netIo')).toBe(true);
+ expect(menu.availableColumns.map((column) => column.id)).not.toContain('netIo');
+ expect(menu.availableColumns.map((column) => column.id)).not.toContain('ip');
+ expect(menu.availableColumns.map((column) => column.id)).toContain('backup');
- // First toggle pins it into view instead of flipping a flag the user
- // cannot see the effect of.
- menu.onColumnToggle('netIo');
- expect(state.workloadTableVisibleColumnIds()).toContain('netIo');
- expect(menu.isColumnHidden('netIo')).toBe(false);
- expect(state.columnVisibility.hiddenColumns()).not.toContain('netIo');
- expect(state.workloadsFilterColumnVisibility().showReset).toBe(true);
-
- // Second toggle hides it everywhere, so the same explicit choice has
- // the same meaning regardless of the current responsive stage.
- menu.onColumnToggle('netIo');
- expect(state.workloadTableVisibleColumnIds()).not.toContain('netIo');
- expect(state.columnVisibility.hiddenColumns()).toContain('netIo');
-
- // Layout-visible columns keep the plain hide/show semantics.
menu.onColumnToggle('backup');
expect(state.columnVisibility.hiddenColumns()).toContain('backup');
+ expect(state.workloadTableVisibleColumnIds()).not.toContain('backup');
menu.onColumnToggle('backup');
expect(state.columnVisibility.hiddenColumns()).not.toContain('backup');
-
- // Reset clears pinned columns along with user-hidden ones.
- menu.onColumnToggle('netIo');
- expect(state.workloadTableVisibleColumnIds()).toContain('netIo');
- menu.onColumnReset();
- expect(state.workloadTableVisibleColumnIds()).not.toContain('netIo');
- expect(state.workloadsFilterColumnVisibility().showReset).toBe(false);
+ expect(state.workloadTableVisibleColumnIds()).toContain('backup');
} finally {
dispose();
}
});
});
- it('keeps a user-shown column pinned when its measured container narrows', () => {
+ it('restores selected wide columns when a measured container widens again', () => {
createRoot((dispose) => {
try {
const [showFilters, setShowFilters] = createSignal(false);
@@ -106,18 +86,21 @@ describe('useWorkloadsControlsState', () => {
setShowFilters,
layoutWidth,
});
- const menu = state.workloadsFilterColumnVisibility();
-
expect(state.workloadTableLayoutMode()).toBe('wide');
- menu.onColumnToggle('netIo');
- expect(state.workloadTableVisibleColumnIds()).not.toContain('netIo');
- menu.onColumnToggle('netIo');
expect(state.workloadTableVisibleColumnIds()).toContain('netIo');
+ expect(
+ state.workloadsFilterColumnVisibility().availableColumns.map((column) => column.id),
+ ).toContain('netIo');
setLayoutWidth(1000);
expect(state.workloadTableLayoutMode()).toBe('compact');
+ expect(state.workloadTableVisibleColumnIds()).not.toContain('netIo');
+ expect(
+ state.workloadsFilterColumnVisibility().availableColumns.map((column) => column.id),
+ ).not.toContain('netIo');
+
+ setLayoutWidth(1500);
expect(state.workloadTableVisibleColumnIds()).toContain('netIo');
- expect(state.workloadTableMinimumWidth()).toBeGreaterThan(1000);
} finally {
dispose();
}
diff --git a/frontend-modern/src/components/Workloads/guestRowModel.tsx b/frontend-modern/src/components/Workloads/guestRowModel.tsx
index 38471c4c11..3416f53089 100644
--- a/frontend-modern/src/components/Workloads/guestRowModel.tsx
+++ b/frontend-modern/src/components/Workloads/guestRowModel.tsx
@@ -18,9 +18,9 @@ export const WORKLOAD_TABLE_TABLET_LAYOUT_WIDTH = 900;
// Layout stages key off the viewport, but the table renders inside a shell
// that is ~120px narrower (nav rail + page padding). The wide column set sums
// to ~1370px, so engaging it at a 1440px viewport left the default layout
-// horizontally scrolling by ~50px. Horizontal scroll is reserved for columns
-// a user explicitly pins (see forcedColumnIds); the breakpoint default must
-// fit, so wide waits until the shell can actually hold the full set.
+// horizontally scrolling by ~50px. The responsive column set must fit without
+// 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_MOBILE_WIDTH = 720;
export const WORKLOAD_TABLE_CONTAINER_TABLET_WIDTH = 900;
@@ -570,31 +570,6 @@ export const getWorkloadVisibleColumnsForLayout = (
});
};
-const parsePixelWidth = (value: string | undefined): number => {
- const match = value?.trim().match(/^(\d+(?:\.\d+)?)px$/);
- return match ? Number(match[1]) : 0;
-};
-
-export const getWorkloadTableReadableMinWidth = (
- columns: readonly ColumnDef[],
- layoutMode: WorkloadTableLayoutMode,
- forcedColumnIds: ReadonlySet<string>,
-): number | null => {
- const layoutRank = WORKLOAD_TABLE_LAYOUT_ORDER[layoutMode];
- const hasForcedOverflowColumn = columns.some((column) => {
- if (!forcedColumnIds.has(column.id)) return false;
- const minimumLayout = WORKLOAD_COLUMN_MIN_LAYOUT[column.id] ?? 'wide';
- return WORKLOAD_TABLE_LAYOUT_ORDER[minimumLayout] > layoutRank;
- });
- if (!hasForcedOverflowColumn) return null;
-
- const width = columns.reduce(
- (total, column) => total + parsePixelWidth(column.minWidth ?? column.width),
- 0,
- );
- return width > 0 ? Math.ceil(width) : null;
-};
-
export const VIEW_MODE_COLUMNS: Record<ViewMode, Set<string> | null> = {
all: new Set([
'name',
diff --git a/frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts b/frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts
index 07bd689410..a7135ba877 100644
--- a/frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts
+++ b/frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts
@@ -13,7 +13,6 @@ import {
GUEST_COLUMNS,
VIEW_MODE_COLUMNS,
getWorkloadTableLayoutModeForContainer,
- getWorkloadTableReadableMinWidth,
getWorkloadTableLayoutMode,
getWorkloadVisibleColumnsForLayout,
} from './guestRowModel';
@@ -223,60 +222,17 @@ export function useWorkloadsControlsState(options: WorkloadsControlsStateOptions
['aiContext'],
);
- // Columns the user explicitly chose to show. Keeping that intent separate
- // from the responsive defaults makes the choice stable across resizing:
- // automatic columns may disappear as space contracts, while an explicit
- // choice remains readable via horizontal scrolling when necessary.
- const [forcedColumnIds, setForcedColumnIds] = usePersistentSignal<string[]>(
- `${columnStorageKey}:forced`,
- [],
- {
- serialize: (arr) => JSON.stringify(arr),
- deserialize: (str) => {
- try {
- const parsed: unknown = JSON.parse(str);
- if (!Array.isArray(parsed)) return [];
- return parsed.filter((value): value is string => typeof value === 'string');
- } catch {
- return [];
- }
- },
- },
- );
- const forcedColumnIdSet = createMemo(() => new Set(forcedColumnIds()));
- const layoutHiddenColumnIds = createMemo(() => {
- const layoutVisible = new Set(
- getWorkloadVisibleColumnsForLayout(workloadColumns, workloadTableLayoutMode()).map(
- (column) => column.id,
- ),
- );
- return new Set(
- workloadColumns.filter((column) => !layoutVisible.has(column.id)).map((c) => c.id),
- );
- });
-
const visibleColumns = columnVisibility.visibleColumns;
- const workloadTableVisibleColumns = createMemo(() => {
- const layoutVisible = new Set(
- getWorkloadVisibleColumnsForLayout(visibleColumns(), workloadTableLayoutMode()).map(
- (column) => column.id,
- ),
- );
- const forced = forcedColumnIdSet();
- return visibleColumns().filter(
- (column) => layoutVisible.has(column.id) || forced.has(column.id),
- );
- });
+ // User choices persist independently of the current width, but the live
+ // table only presents columns its responsive stage can keep readable. A
+ // selected wide-only column therefore disappears while space is tight and
+ // returns automatically when the table grows again.
+ const workloadTableVisibleColumns = createMemo(() =>
+ getWorkloadVisibleColumnsForLayout(visibleColumns(), workloadTableLayoutMode()),
+ );
const workloadTableVisibleColumnIds = createMemo(() =>
workloadTableVisibleColumns().map((column) => column.id),
);
- const workloadTableMinimumWidth = createMemo(() =>
- getWorkloadTableReadableMinWidth(
- workloadTableVisibleColumns(),
- workloadTableLayoutMode(),
- forcedColumnIdSet(),
- ),
- );
const totalColumns = createMemo(() => workloadTableVisibleColumns().length);
const handleSort = (key: WorkloadsSortKey) => {
@@ -353,34 +309,14 @@ export function useWorkloadsControlsState(options: WorkloadsControlsStateOptions
}
};
- // Menu checkbox state mirrors what the table actually renders. Showing a
- // column records explicit intent; hiding it removes that pin and applies the
- // same preference at every responsive stage.
- const isColumnHiddenForMenu = (id: string): boolean =>
- columnVisibility.isHiddenByUser(id) ||
- (layoutHiddenColumnIds().has(id) && !forcedColumnIdSet().has(id));
-
- const handleColumnToggle = (id: string): void => {
- if (!isColumnHiddenForMenu(id)) {
- setForcedColumnIds(forcedColumnIds().filter((existing) => existing !== id));
- columnVisibility.hide(id);
- return;
- }
- columnVisibility.show(id);
- if (!forcedColumnIdSet().has(id)) setForcedColumnIds([...forcedColumnIds(), id]);
- };
-
- const handleColumnReset = (): void => {
- setForcedColumnIds([]);
- columnVisibility.resetToDefaults();
- };
-
const workloadsFilterColumnVisibility = createMemo(() => ({
- availableColumns: columnVisibility.availableToggles(),
- isColumnHidden: isColumnHiddenForMenu,
- onColumnToggle: handleColumnToggle,
- onColumnReset: handleColumnReset,
- showReset: forcedColumnIds().length > 0,
+ availableColumns: getWorkloadVisibleColumnsForLayout(
+ columnVisibility.availableToggles(),
+ workloadTableLayoutMode(),
+ ),
+ isColumnHidden: columnVisibility.isHiddenByUser,
+ onColumnToggle: columnVisibility.toggle,
+ onColumnReset: columnVisibility.resetToDefaults,
}));
return {
@@ -409,7 +345,6 @@ export function useWorkloadsControlsState(options: WorkloadsControlsStateOptions
workloadTableVisibleColumnIds,
workloadTableVisibleColumns,
workloadTableLayoutMode,
- workloadTableMinimumWidth,
setWorkloadMetricHistoryRange,
setWorkloadMetricDisplayMode,
} as const;
diff --git a/frontend-modern/src/components/Workloads/useWorkloadsState.ts b/frontend-modern/src/components/Workloads/useWorkloadsState.ts
index e761edf781..01995262d9 100644
--- a/frontend-modern/src/components/Workloads/useWorkloadsState.ts
+++ b/frontend-modern/src/components/Workloads/useWorkloadsState.ts
@@ -272,7 +272,6 @@ export function useWorkloadsState(props: WorkloadsSurfaceProps) {
workloadTableVisibleColumnIds,
workloadTableVisibleColumns,
workloadTableLayoutMode,
- workloadTableMinimumWidth,
workloadMetricDisplayMode,
workloadMetricHistoryRange,
setWorkloadMetricDisplayMode,
@@ -588,7 +587,6 @@ export function useWorkloadsState(props: WorkloadsSurfaceProps) {
workloadTableVisibleColumnIds,
workloadTableVisibleColumns,
workloadTableLayoutMode,
- workloadTableMinimumWidth,
workloadNodeOptions,
workloads,
workloadInventoryIssues,