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.

Allow dense workload filters to wrap

rcourtman3047b0441773
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 08b511f5ea..c93e991de4 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -782,7 +782,10 @@ toolbar defaults, active-filter counting, and reset semantics live in
Dashboard table-mode controls must also keep their accessible group name aligned
with the shared table presentation contract by using `Group by` for the
grouped/list selector instead of reintroducing local `Group By` casing or
-platform-specific cluster wording.
+platform-specific cluster wording. Dense workload toolbar variants must keep
+that same row wrap-capable so optional runtime, chart, column, and reset
+controls remain reachable on desktop instead of forcing a single no-wrap row
+that clips trailing actions.
The dashboard-owned filter-config assembly now lives in
`frontend-modern/src/components/Dashboard/useDashboardState.ts`, so future
filter runtime changes must extend through those owners instead of
diff --git a/frontend-modern/src/components/Dashboard/DashboardFilter.tsx b/frontend-modern/src/components/Dashboard/DashboardFilter.tsx
index fee418d483..4f12f14203 100644
--- a/frontend-modern/src/components/Dashboard/DashboardFilter.tsx
+++ b/frontend-modern/src/components/Dashboard/DashboardFilter.tsx
@@ -65,7 +65,6 @@ export const DashboardFilter: Component<DashboardFilterProps> = (props) => {
),
}}
showFilters={showToolbarFilters()}
- toolbarClass="lg:flex-nowrap"
>
<Show when={props.hostFilter}>
{(hostFilter) => (
diff --git a/frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx b/frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx
index 67ecc78824..78201d2a56 100644
--- a/frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx
+++ b/frontend-modern/src/components/Dashboard/__tests__/DashboardFilter.test.tsx
@@ -109,6 +109,45 @@ describe('DashboardFilter', () => {
expect(screen.getByText('List')).toBeInTheDocument();
});
+ it('allows dense workload toolbar controls to wrap instead of clipping trailing actions', () => {
+ const props = makeProps({
+ viewMode: vi.fn(() => 'app-container' as const),
+ hostFilter: {
+ label: 'Node',
+ value: '',
+ options: [{ value: '', label: 'All nodes' }],
+ onChange: vi.fn(),
+ },
+ platformFilter: {
+ label: 'Platform',
+ value: '',
+ options: [{ value: '', label: 'All platforms' }],
+ onChange: vi.fn(),
+ },
+ containerRuntimeFilter: {
+ label: 'Runtime',
+ value: '',
+ options: [{ value: '', label: 'All runtimes' }],
+ onChange: vi.fn(),
+ },
+ columnVisibility: {
+ availableColumns: [{ id: 'image', label: 'Image' }],
+ isColumnHidden: vi.fn(() => false),
+ onColumnToggle: vi.fn(),
+ },
+ chartsCollapsed: vi.fn(() => false),
+ onChartsToggle: vi.fn(),
+ });
+ const { container } = render(() => <DashboardFilter {...props} />);
+
+ expect(screen.getByTestId('column-picker')).toBeInTheDocument();
+ expect(
+ Array.from(container.querySelectorAll('.dashboard-filter *')).some((element) =>
+ (element.getAttribute('class') ?? '').includes('lg:flex-nowrap'),
+ ),
+ ).toBe(false);
+ });
+
it('does not show the Reset button when all filters are at defaults', () => {
const props = makeProps();
render(() => <DashboardFilter {...props} />);