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.

Move Docker layout controls into View

rcourtman739ccad86459
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index c69cb3650c..64319c4933 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -3877,10 +3877,12 @@ Storage, Recovery Protection coverage, Recovery events) compose the chip-based
of `PageControls`. Each page declares a `FilterDef[]` catalog (label, options,
value, defaultValue, group); `FilterBar` renders chips for active filters and
exposes the rest behind a "+ Filter" menu, with type-ahead at both the menu
-and chip popovers (`AddFilterMenu` and `FilterChip`). View options
-(grouping segmented control, charts toggle, columns picker, sort key) sit in
-the `viewOptionsTrailing` slot and are not chips. Recovery is event-first and
-does not use equal workspace subtabs for protected rollups versus event
+and chip popovers (`AddFilterMenu` and `FilterChip`). Low-frequency view options
+(grouping segmented control, charts toggle, columns picker, sort key) compose
+the shared `ViewOptionsMenu` inside the `viewOptionsTrailing` slot instead of
+remaining as permanent toolbar controls; table counters and other persistent
+orientation readouts may remain adjacent in that slot. Recovery is event-first
+and does not use equal workspace subtabs for protected rollups versus event
history; Storage subtabs (Pools / Physical Disks) sit above the bar as
navigation, not filters.
Primary filters with small, stable option sets should stay one-click controls
@@ -3888,8 +3890,9 @@ inside that same `FilterDef[]` catalog by setting `inline: true`; `FilterBar`
renders those as unlabeled compact segmented controls in the same second-row
rail as view options, matching the v5 filter-bar pattern, and keeps longer or
dynamic scope filters in the menu/chip path. Feature surfaces must not fork
-local filter rows or bury high-frequency Type, Status, or Group-by filters
-behind an extra menu just to regain one-click behavior.
+local filter rows or bury high-frequency Type, Status, or other true filter
+facets behind an extra menu just to regain one-click behavior; persistent
+presentation preferences such as grouped versus flat layout belong in View.
Legacy `PageControls` and labelled select/toggle primitives are not the
resource-list filter shape. If a future surface needs a new filtering
affordance, it should extend the FilterBar catalog model or add a new
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 7e112a7cad..f2085b51a3 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -306,6 +306,11 @@ evidence, and inactive standalone Swarm metadata must not be interpreted as
host-role or service-surface proof. The unified-resource adapter is the backend
fail-closed layer for that rule, so persisted or older-agent inactive Swarm
payloads cannot reintroduce false Swarm capability surfaces.
+Docker container grouping is a persistent presentation preference rather than
+a frequently changed resource filter. Multi-host Overview therefore exposes
+Grouped versus List inside the frontend-primitives-owned shared View
+preferences popover, matching the Proxmox workload surface, and must not leave
+that segmented control permanently inline beside Status, Add filter, and Saved.
The empty state for this route must preserve that runtime-lens contract:
standalone Docker / Podman hosts use a local runtime agent, while Docker inside
Proxmox LXCs is represented as the explicitly opted-in Proxmox host-side guest
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 5d91184678..68205940ea 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,22 +1,16 @@
{
"version": 1,
- "base_sha": "3e3839022df46c9c13c478bafd3fa18da27f4320",
- "verified_at": "2026-08-02T22:32:51Z",
+ "base_sha": "b109c1230f3efce7d89750318e996afa00dcf40c",
+ "verified_at": "2026-08-02T22:47:16Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/FilterToolbar.tsx",
- "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx",
- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx",
- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx"
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/shared/FilterToolbar.tsx": "edd710a295605fee5fc1611b31e52fe7eb848f981b1f366d573666b48d9fed07",
- "frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx": "41b928014dbfeb768c1fb5ca035e88aac3912169083abfaf5cbd1bf8b3bed4c9",
- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx": "84d3e93bcaf8104cf2c58415ef226503d09cc8407a2d3ae127660c36ba037ba1",
- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx": "6a39c1878e722bd0c5f5c8422158cb3c2d6e1659daf6feee359fb32c84bdcb3d"
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx": "36071da0390d3b831526b33989f587ee00b7c16c16b607fe9dd3097223442e0b"
},
"routes": [
- "/proxmox/overview"
+ "/docker/overview"
],
"viewports": [
{
@@ -29,16 +23,20 @@
}
],
"states": [
- "Desktop filter toolbar with Add filter, Saved, and View controls closed",
- "Phone-width expanded filter rail with aligned Add filter, Saved, and View controls",
- "Phone-width Saved views dialog open and end-anchored inside the viewport",
- "Phone-width View preferences dialog open inside the viewport"
+ "Desktop Docker container toolbar with the shared View trigger closed",
+ "Desktop Docker View preferences popover open with Grouped selected",
+ "Desktop flat container layout with List selected",
+ "Reloaded desktop View preferences with the persisted List selection",
+ "Phone-width expanded filter rail with the View trigger closed",
+ "Phone-width View preferences popover open with Grouped selected"
],
"interactions": [
- "Confirmed the hidden disabled Add filter placeholder is absent from the accessible native option list and only real Node values are actionable",
- "Selected Node pve4, confirmed the filter chip appeared and the Add filter control was exhausted, then removed the chip to restore the neutral state",
- "Opened and dismissed Saved views at phone width and confirmed trigger alignment, chevron state, and viewport-safe panel placement",
- "Opened and dismissed View preferences at phone width and confirmed matching trigger geometry and viewport-safe panel placement",
+ "Opened Docker View preferences and confirmed Grouped and List are no longer permanent toolbar controls",
+ "Selected List and confirmed host group header rows were removed from the container table",
+ "Reloaded Docker Overview, reopened View, and confirmed List remained selected",
+ "Restored Grouped and confirmed host group headers returned",
+ "Expanded the phone-width filter rail, opened View, and confirmed the popover remained inside the viewport",
+ "Pressed Escape and confirmed the popover closed and focus returned to the View trigger",
"Confirmed the browser console reported no errors during the final desktop and phone-width pass"
]
}
diff --git a/frontend-modern/src/features/docker/DockerContainersTable.tsx b/frontend-modern/src/features/docker/DockerContainersTable.tsx
index 1ee1c60334..279afc778c 100644
--- a/frontend-modern/src/features/docker/DockerContainersTable.tsx
+++ b/frontend-modern/src/features/docker/DockerContainersTable.tsx
@@ -1,6 +1,6 @@
import { For, Show, createMemo, type Component, type JSX } from 'solid-js';
import { useSearchParams } from '@solidjs/router';
-import type { FilterDef } from '@/components/shared/FilterBar';
+import { ViewOptionsMenu, type FilterDef } from '@/components/shared/FilterBar';
import { UpdateButton } from '@/components/shared/ContainerUpdateBadge';
import { isContainerUpdatePinned } from '@/components/shared/containerUpdateBadgeModel';
import {
@@ -727,10 +727,17 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (pro
onResetFilters={resetFilters}
viewOptionsTrailing={
<Show when={isGroupable()}>
- <GroupedTableModeSegmentedControl
- value={groupingMode()}
- onChange={setGroupingModePreference}
- />
+ <ViewOptionsMenu>
+ <div>
+ <div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">
+ Layout
+ </div>
+ <GroupedTableModeSegmentedControl
+ value={groupingMode()}
+ onChange={setGroupingModePreference}
+ />
+ </div>
+ </ViewOptionsMenu>
</Show>
}
/>
diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
index ea7da3c4bb..49a0dbce2b 100644
--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx
@@ -478,6 +478,44 @@ describe('Docker native tables', () => {
expect(container.querySelector('[data-docker-host-group]')).toBeNull();
});
+ it('keeps Docker grouping inside the shared View preferences popover', () => {
+ const { container } = renderInRouter(() => (
+ <DockerContainersTable
+ resources={[
+ makeResource({
+ id: 'container-1',
+ type: 'app-container',
+ name: 'edge-web',
+ status: 'running',
+ docker: { hostname: 'edge-01', image: 'nginx:latest', containerState: 'running' },
+ }),
+ makeResource({
+ id: 'container-2',
+ type: 'app-container',
+ name: 'edge-cache',
+ status: 'running',
+ docker: { hostname: 'edge-02', image: 'redis:7.4', containerState: 'running' },
+ }),
+ ]}
+ emptyIcon={<span />}
+ emptyTitle="No containers"
+ emptyDescription="No containers"
+ />
+ ));
+
+ expect(screen.getByRole('button', { name: 'View' })).toBeInTheDocument();
+ expect(screen.queryByRole('group', { name: 'Group by' })).not.toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: 'View' }));
+
+ const dialog = screen.getByRole('dialog', { name: 'View preferences' });
+ expect(within(dialog).getByText('Layout')).toBeInTheDocument();
+ expect(within(dialog).getByRole('group', { name: 'Group by' })).toBeInTheDocument();
+ fireEvent.click(within(dialog).getByRole('button', { name: 'List' }));
+ expect(container.querySelector('[data-docker-host-group]')).toBeNull();
+ expect(window.localStorage.getItem('dockerContainersGroupingMode')).toBe('flat');
+ });
+
it('renders a distinct container launch control without linking the name', () => {
renderInRouter(() => (
<DockerContainersTable