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 machines saved view consistency

rcourtman59eb6dd68f3f
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index eea7a91896..dd3fee4aac 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -3912,6 +3912,13 @@ navigation (`pulse:filterbar:saved-views:<key>`); `SavedViewsMenu` owns
the dropdown chrome. A "view" is the page's URL query string at save
time, so saved views double as shareable links: copying the bar URL
after applying a view gives someone else the exact filtered state.
+Every filter captured by a saved view must therefore be URL-owned before the
+Saved trigger is exposed. The Machines surface uses the canonical
+`STANDALONE_QUERY_PARAMS` query and status keys, delegates one composite reset
+to `StandalonePageSurface`, and supplies the `standalone-machines` saved-view
+scope to `AgentsMachinesTable`; it must not mix a local search signal with a
+route-owned status facet or issue consecutive route writes that can resurrect
+one cleared parameter.
Because that popover combines view application, default selection, removal,
and an inline naming form, it is a labelled non-modal dialog rather than an
ARIA menu. Its trigger exposes the dialog relationship, Escape returns focus
@@ -3932,6 +3939,9 @@ instead of forcing View onto an isolated line. View takes the row's available
trailing space and anchors its panel from the mobile action rail's trailing
edge, then returns to trigger-relative trailing alignment on desktop; Saved
keeps its leading-edge mobile anchor.
+The mobile action cluster is non-breaking as a unit; orientation readouts such
+as result counts and trend ranges wrap separately so they cannot strand View
+on a line by itself.
The Add filter select and adjacent action/popover triggers share the canonical
`filterToolbarControlClass` height. When the Add filter label is visually
hidden, its `FormSelect` must also omit the labelled group's outer padded/ring
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 c7dbea4d06..9c6b7be5e5 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -1638,7 +1638,10 @@ their panel content through `FilterBar.viewOptions` instead of importing or
wrapping `ViewOptionsMenu` in the workload feature or rendering as equally
prominent filter toggles. The shared FilterBar owns View composition across
desktop and mobile layouts, including the mobile action-row placement shared
-with Saved views. The sparkline range remains
+with Saved views. Saved, contextual Clear, leading actions, and View stay in
+one non-breaking mobile action cluster; trailing analytical controls and result
+counts wrap independently so a narrow toolbar cannot strand View on a line by
+itself or force page-level horizontal overflow. The sparkline range remains
inline only while trends are active because it is the frequently changed
analytical window, and its compact control must include a visible `Trend range`
label so the values are not an orphaned set of durations. Columns must expand
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 22c29bd5f1..7ca74da1f9 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -2313,6 +2313,11 @@ destination builders: callers must append `buildStorageRouteSearch()` or
`buildRecoveryRouteSearch()` to the current platform-owned pathname such as
`/proxmox/storage`, `/proxmox/backups`, or `/truenas/protection`. They must not
emit `/storage` or `/recovery` as hidden compatibility paths.
+Adjacent route-query constants for other platform surfaces, including
+`STANDALONE_QUERY_PARAMS`, must remain namespaced and must not be reused as
+storage source, node, resource, workspace, rollup, or day state. Adding a
+shareable filter query to another surface must not broaden or reinterpret the
+storage and recovery serializer contract.
Storage and Recovery can now be embedded by a platform page in table-only mode
with a forced platform source/filter. Proxmox uses that embedding for
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 3d1b576352..5cc63dd7f0 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -1222,6 +1222,14 @@ AI-only summary payloads, or page-local heuristics.
compact row action trigger chrome stays under the frontend-primitives
`ActionIconButton` boundary rather than becoming a unified-resource-local
button shell.
+ Machines list search and online-state narrowing are frontend route state,
+ not new unified-resource membership fields. `StandalonePageSurface.tsx`
+ owns the `STANDALONE_QUERY_PARAMS` query/status projection and one composite
+ reset, while `AgentsMachinesTable.tsx` consumes those controlled values so
+ saved links and saved views cannot diverge from the canonical projected row
+ set. Those query parameters must only narrow the already-owned agent
+ projection; they must not cause provider nodes or availability endpoints to
+ enter the Machines membership bucket.
The default tab for each platform path must point at a sub-tab whose
canonical unified-resource projection actually populates, and visible
workflow subtabs must stay evidence-gated by the same canonical row or
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 350cf7c4f2..42ae8c6ffe 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,16 +1,22 @@
{
"version": 1,
- "base_sha": "419385ccfa9aed0ddf59587b1bdce9f62871f2c3",
- "verified_at": "2026-08-03T09:19:12Z",
+ "base_sha": "d755c61f6a6c90b12cb662930ee8aee465cb9c1a",
+ "verified_at": "2026-08-03T10:24:03Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/filterButtonGroupModel.ts"
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",
+ "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx",
+ "frontend-modern/src/routing/resourceLinks.ts"
],
"content_sha256": {
- "frontend-modern/src/components/shared/filterButtonGroupModel.ts": "affe61eeb2db0bc247b124c9ddff77b55dbc5b4ec477ea121ed6bb9368fc6548"
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "e76b316e4335792819ddb3148f819618d342716da0f7e1cde5c3e3cb7eb52682",
+ "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "f3b12c4ad25647e28fa616893a9befe3fce7419b76cf142ea74bed3bdf15ffa6",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx": "ead97d3c4f3554e6e5722ccef2e800562c54032130649b19538dc87229c7cde6",
+ "frontend-modern/src/routing/resourceLinks.ts": "66d0ba02bbe31d0e840b933f8f47e80b1f05aa778e5e34127f3385339edc381e"
},
"routes": [
- "/alerts/history"
+ "/standalone/machines"
],
"viewports": [
{
@@ -23,15 +29,22 @@
}
],
"states": [
- "Desktop Alert History period selector with full Last 24h, Last 7d, Last 30d, and All time labels",
- "Phone-width Alert History with the filter shell collapsed",
- "Phone-width expanded period and severity filters with the compact period labels 24h, 7d, 30d, and All"
+ "Desktop Machines toolbar with matching Saved and View triggers in the default state",
+ "Desktop Machines filtered by URL-backed search and Healthy status with one matching row",
+ "Saved view menu empty, named-view, default-view, and removed-view states",
+ "Phone-width Machines toolbar collapsed and expanded with an active filter count",
+ "Phone-width expanded action rail with Saved, Clear filters, and View kept together while the result count wraps separately",
+ "Phone-width Saved views and View preferences popovers, including the expanded Columns disclosure"
],
"interactions": [
- "Expanded the phone-width filter shell and confirmed All time renders as the meaningful compact label All instead of time",
- "Selected All time and confirmed its full accessible label, visible compact label, pressed state, and unclipped width",
- "Restored Last 7d and confirmed the selected state moved back correctly",
- "Confirmed the phone-width document has no horizontal overflow and the desktop selector retains its full labels",
- "Read the browser console after the responsive interaction pass and confirmed no warnings or errors"
+ "Entered Apollo search text, selected Healthy, and confirmed the route became ?q=Apollo&status=online",
+ "Saved the filtered slice as Apollo healthy, applied it after clearing, set it as the default, and confirmed a fresh landing restored both URL parameters",
+ "Loaded an explicit ?q=Meridian deep link and confirmed the default saved view did not override it",
+ "Cleared the combined search and status state and confirmed one navigation returned the route to /standalone/machines without resurrecting q",
+ "Expanded the phone-width filter shell and confirmed Saved, Clear filters, and View remain on one line with no horizontal document overflow",
+ "Opened Saved, switched directly to View, expanded Columns, dismissed View by outside click, and verified the panels stayed viewport-bounded",
+ "Dismissed the Saved naming prompt and menu with Escape and confirmed focus returned first to the save action and then to the Saved trigger",
+ "Removed the temporary saved view and repeated the final desktop and phone-width layout, reset, overflow, and console checks",
+ "Read the browser console after the final responsive interaction pass and confirmed no warnings or errors"
]
}
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
index fc807bbb8a..886d710351 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
@@ -181,9 +181,15 @@ describe('FilterBar', () => {
fireEvent.click(screen.getByRole('button', { name: /^Filters/ }));
const actions = screen.getByRole('group', { name: 'Filter actions' });
- expect(within(actions).getByRole('button', { name: 'Saved views' })).toBeInTheDocument();
- expect(within(actions).getByRole('button', { name: 'Clear filters' })).toBeInTheDocument();
- expect(within(actions).getByRole('button', { name: 'View' })).toBeInTheDocument();
+ const actionCluster = actions.querySelector('[data-filter-action-cluster]');
+ expect(actionCluster).not.toBeNull();
+ expect(actionCluster).toContainElement(
+ within(actions).getByRole('button', { name: 'Saved views' }),
+ );
+ expect(actionCluster).toContainElement(
+ within(actions).getByRole('button', { name: 'Clear filters' }),
+ );
+ expect(actionCluster).toContainElement(within(actions).getByRole('button', { name: 'View' }));
});
it('keeps clear filters with filter actions before the presentation controls', () => {
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
index f93b859a55..60b64042d8 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
@@ -221,15 +221,23 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
role="group"
aria-label="Filter actions"
>
- <Show when={props.savedViewsKey}>{(key) => <SavedViewsMenu storageKey={key()} />}</Show>
- <Show when={showClearAllInMobileActionRow()}>
- <FilterBarClearAllButton onClick={clearAll} />
- </Show>
- {props.leadingControls}
- <Show when={props.viewOptions}>
- <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>
+ <div class="flex shrink-0 flex-nowrap items-center gap-2" data-filter-action-cluster>
+ <Show when={props.savedViewsKey}>
+ {(key) => <SavedViewsMenu storageKey={key()} />}
+ </Show>
+ <Show when={showClearAllInMobileActionRow()}>
+ <FilterBarClearAllButton onClick={clearAll} />
+ </Show>
+ {props.leadingControls}
+ <Show when={props.viewOptions}>
+ <ViewOptionsMenu>{props.viewOptions}</ViewOptionsMenu>
+ </Show>
+ </div>
+ <Show when={props.trailingControls}>
+ <div class="ml-auto flex min-w-0 flex-wrap items-center justify-end gap-2">
+ {props.trailingControls}
+ </div>
</Show>
- {props.trailingControls}
</div>
</Show>
</div>
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index e878939085..3bc6d57057 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -8145,6 +8145,13 @@ describe('shared primitive guardrails', () => {
expect(filterBarSource).toContain('<Show when={hasAddableMenuFilters()}>');
expect(filterBarSource).toContain('props.filters.filter(isFilterSet)');
expect(filterBarSource).toContain('activeCount() > 0');
+ expect(filterBarSource).toContain('data-filter-action-cluster');
+ expect(filterBarSource).toContain(
+ 'class="flex shrink-0 flex-nowrap items-center gap-2" data-filter-action-cluster',
+ );
+ expect(filterBarSource).toContain(
+ 'class="ml-auto flex min-w-0 flex-wrap items-center justify-end gap-2"',
+ );
expect(filterBarSource).not.toContain('import { PageControls }');
expect(filterBarSource).not.toContain('LabeledFilterSelect');
expect(filterBarSource).not.toContain('LabeledFilterToggleGroup');
diff --git a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
index 549ba453d5..d41ccf49ba 100644
--- a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
+++ b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
@@ -1165,8 +1165,12 @@ export const AgentsMachinesTable: Component<{
emptyTitle: string;
emptyDescription: string;
targetAgentVersion?: string | null;
+ externalSearch?: () => string;
+ onExternalSearchChange?: (value: string) => void;
externalStatus?: () => PlatformResourceStatusFilter;
onExternalStatusChange?: (value: PlatformResourceStatusFilter) => void;
+ onResetFilters?: () => void;
+ savedViewsKey?: string;
}> = (props) => {
const [locallyRemovedResourceIds, setLocallyRemovedResourceIds] = createSignal<
Record<string, boolean>
@@ -1178,9 +1182,18 @@ export const AgentsMachinesTable: Component<{
resources: visibleMachineResources,
initialStatus: 'all' as PlatformResourceStatusFilter,
filter: filterAgentMachineResources,
+ externalSearch: props.externalSearch,
+ onExternalSearchChange: props.onExternalSearchChange,
externalStatus: props.externalStatus,
onExternalStatusChange: props.onExternalStatusChange,
});
+ const resetFilters = () => {
+ if (props.onResetFilters) {
+ props.onResetFilters();
+ return;
+ }
+ tableState.resetFilters();
+ };
const alertsActivation = useAlertsActivation();
const [sortKey, setSortKey] = createSignal<AgentMachineSortKey>('name');
const [sortDirection, setSortDirection] = createSignal<'asc' | 'desc'>('asc');
@@ -1389,11 +1402,12 @@ export const AgentsMachinesTable: Component<{
status={tableState.status()}
onStatusChange={tableState.setStatus}
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
+ savedViewsKey={props.savedViewsKey}
visible={tableState.visible()}
total={tableState.total()}
rowNoun="machines"
hasActiveFilters={tableState.hasActiveFilters()}
- onResetFilters={tableState.resetFilters}
+ onResetFilters={resetFilters}
viewOptions={
<div>
<div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">
@@ -1417,7 +1431,7 @@ export const AgentsMachinesTable: Component<{
icon={props.emptyIcon}
title="No machines match current filters"
description="Adjust the search or status filter to see more Pulse Agent machines."
- actions={<PlatformTableResetFiltersButton onReset={tableState.resetFilters} />}
+ actions={<PlatformTableResetFiltersButton onReset={resetFilters} />}
/>
}
>
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
index d02e62ddc4..3a516b4f4c 100644
--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
@@ -25,7 +25,11 @@ import {
type PlatformResourceStatusFilter,
} from '@/features/platformPage/sharedPlatformPage';
import { useUnifiedResources } from '@/hooks/useUnifiedResources';
-import { STANDALONE_PATH, buildStandalonePath } from '@/routing/resourceLinks';
+import {
+ STANDALONE_PATH,
+ STANDALONE_QUERY_PARAMS,
+ buildStandalonePath,
+} from '@/routing/resourceLinks';
import { updateStore } from '@/stores/updates';
import { formatRelativeTime } from '@/utils/format';
import { buildProbeAgentOptions } from '@/utils/availabilityProbeAgents';
@@ -134,11 +138,30 @@ export function StandalonePageSurface() {
const model = createMemo(() => buildStandalonePageModel(resources()));
const activeTab = createMemo(() => resolveStandaloneTab(location.pathname));
+ const machineSearchFilter = createMemo(() => {
+ const value = searchParams[STANDALONE_QUERY_PARAMS.query];
+ return typeof value === 'string' ? value : '';
+ });
+ const setMachineSearchFilter = (value: string) => {
+ setSearchParams({ [STANDALONE_QUERY_PARAMS.query]: value || null }, { replace: true });
+ };
const machineStatusFilter = createMemo(() =>
- normalizePlatformResourceStatusFilter(searchParams.status),
+ normalizePlatformResourceStatusFilter(searchParams[STANDALONE_QUERY_PARAMS.status]),
);
const setMachineStatusFilter = (status: PlatformResourceStatusFilter) => {
- setSearchParams({ status: status === 'all' ? null : status }, { replace: true });
+ setSearchParams(
+ { [STANDALONE_QUERY_PARAMS.status]: status === 'all' ? null : status },
+ { replace: true },
+ );
+ };
+ const resetMachineFilters = () => {
+ setSearchParams(
+ {
+ [STANDALONE_QUERY_PARAMS.query]: null,
+ [STANDALONE_QUERY_PARAMS.status]: null,
+ },
+ { replace: true },
+ );
};
const availabilityPosture = createMemo(() =>
buildStandalonePostureSummary(model().availabilityChecks),
@@ -328,8 +351,12 @@ export function StandalonePageSurface() {
emptyTitle="No machines"
emptyDescription="Install Pulse Agent on Linux, macOS, Windows, or Unraid systems for full CPU, memory, disk, and network telemetry."
targetAgentVersion={agentUpdateTargetVersion()}
+ externalSearch={machineSearchFilter}
+ onExternalSearchChange={setMachineSearchFilter}
externalStatus={machineStatusFilter}
onExternalStatusChange={setMachineStatusFilter}
+ onResetFilters={resetMachineFilters}
+ savedViewsKey="standalone-machines"
/>
</Show>
</div>
diff --git a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
index bb6df8f052..10868ee4a6 100644
--- a/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/AgentsMachinesTable.test.tsx
@@ -146,6 +146,32 @@ afterEach(() => {
});
describe('AgentsMachinesTable', () => {
+ it('delegates controlled filter resets once to the route owner', () => {
+ const onExternalSearchChange = vi.fn();
+ const onExternalStatusChange = vi.fn();
+ const onResetFilters = vi.fn();
+
+ render(() => (
+ <AgentsMachinesTable
+ resources={[resource({ id: 'tower', name: 'Tower' })]}
+ emptyIcon={emptyIcon}
+ emptyTitle="No machines"
+ emptyDescription="Install Pulse Agent."
+ externalSearch={() => 'Tower'}
+ onExternalSearchChange={onExternalSearchChange}
+ externalStatus={() => 'online'}
+ onExternalStatusChange={onExternalStatusChange}
+ onResetFilters={onResetFilters}
+ />
+ ));
+
+ fireEvent.click(screen.getByRole('button', { name: 'Clear filters' }));
+
+ expect(onResetFilters).toHaveBeenCalledTimes(1);
+ expect(onExternalSearchChange).not.toHaveBeenCalled();
+ expect(onExternalStatusChange).not.toHaveBeenCalled();
+ });
+
it('keeps the column picker inside the shared View preferences popover', async () => {
render(() => (
<AgentsMachinesTable
diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
index 0d187c8e99..55493025a0 100644
--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
@@ -14,8 +14,12 @@ const mocks = vi.hoisted(() => ({
AgentsMachinesTable: vi.fn(
(props: {
resources: Resource[];
+ externalSearch?: () => string;
+ onExternalSearchChange?: (value: string) => void;
externalStatus?: () => string;
onExternalStatusChange?: (value: string) => void;
+ onResetFilters?: () => void;
+ savedViewsKey?: string;
}) => <div data-testid="agents-machines-table" data-resource-count={props.resources.length} />,
),
AvailabilityChecksTable: vi.fn((props: { resources: Resource[] }) => (
@@ -145,14 +149,26 @@ afterEach(() => {
});
describe('StandalonePageSurface', () => {
- it('normalizes legacy machine status links into route-owned filter state', () => {
- mocks.searchParams = { status: 'running' };
+ it('keeps machine search and normalized status in route-owned saved-view state', () => {
+ mocks.searchParams = { q: 'ubuntu', status: 'running' };
render(() => <StandalonePageSurface />);
const props = mocks.AgentsMachinesTable.mock.calls.at(-1)?.[0];
+ expect(props?.externalSearch?.()).toBe('ubuntu');
expect(props?.externalStatus?.()).toBe('online');
+
+ props?.onExternalSearchChange?.('macos');
+ expect(mocks.setSearchParams).toHaveBeenCalledWith({ q: 'macos' }, { replace: true });
+
props?.onExternalStatusChange?.('offline');
expect(mocks.setSearchParams).toHaveBeenCalledWith({ status: 'offline' }, { replace: true });
+
+ props?.onResetFilters?.();
+ expect(mocks.setSearchParams).toHaveBeenCalledWith(
+ { q: null, status: null },
+ { replace: true },
+ );
+ expect(props?.savedViewsKey).toBe('standalone-machines');
});
it('keeps overview focused on Pulse Agent machines only', () => {
diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
index 2b8ea87c0d..ee6f91f415 100644
--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
@@ -40,6 +40,7 @@ import {
SETTINGS_API_ACCESS_PATH,
STANDALONE_DEFAULT_TAB,
STANDALONE_PATH,
+ STANDALONE_QUERY_PARAMS,
TRUENAS_PATH,
VMWARE_PATH,
buildPatrolControlPath,
@@ -168,6 +169,7 @@ describe('resource link routing contract', () => {
it('builds canonical Machines, container runtime, Kubernetes, TrueNAS, and vSphere tab paths', () => {
expect(STANDALONE_PATH).toBe('/standalone');
expect(STANDALONE_DEFAULT_TAB).toBe('machines');
+ expect(STANDALONE_QUERY_PARAMS).toEqual({ query: 'q', status: 'status' });
expect(buildStandalonePath()).toBe('/standalone/machines');
expect(buildStandalonePath('')).toBe('/standalone');
diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.ts
index d772d0ad42..3f517aae62 100644
--- a/frontend-modern/src/routing/resourceLinks.ts
+++ b/frontend-modern/src/routing/resourceLinks.ts
@@ -18,6 +18,10 @@ export const WORKLOADS_QUERY_PARAMS = {
export const STANDALONE_PATH = '/standalone';
export const STANDALONE_DEFAULT_TAB = 'machines';
+export const STANDALONE_QUERY_PARAMS = {
+ query: 'q',
+ status: 'status',
+} as const;
export const PROXMOX_PATH = '/proxmox';
export const PROXMOX_DEFAULT_TAB = 'overview';
export const DOCKER_PATH = '/docker';