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.

Remove FilterBar saved views

rcourtman6399e83f6dd1
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 4baf4dc108..733b70c7dc 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -430,6 +430,13 @@ can share one resource, `resourceIncidentPanel` carries the originating
keeps exactly one panel open at a time. Re-triggering the same row closes it,
matching the neighbouring Timeline toggle.
+The alert history filter bar carries no saved-views affordance.
+`AlertHistoryFiltersCard.tsx` must not pass a `savedViewsKey` to the shared
+`FilterBar`; that prop and the localStorage view library behind it were
+removed because a saved view was only ever the page's URL query string, which
+the browser's own bookmarks already capture and share. History narrowing stays
+URL-owned so a filtered history page remains a shareable, bookmarkable link.
+
Alert history row timestamps render clock time in the viewer's own locale and
must carry the absolute date and time as a title. The date otherwise lives
only in the day group header, which scrolls out of sight, and a hardcoded
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index cbc57da2eb..ec51f03235 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -137,8 +137,6 @@ puts the same machine on two surfaces that do not share an identity.
57. `frontend-modern/src/components/shared/FilterBar/AddFilterMenu.tsx`
58. `frontend-modern/src/components/shared/FilterBar/filterCatalog.ts`
59. `frontend-modern/src/components/shared/FilterBar/index.ts`
- 59a. `frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx`
- 59b. `frontend-modern/src/components/shared/FilterBar/useSavedViews.ts`
59c. `frontend-modern/src/components/shared/FilterBar/filterOptionPresentation.tsx`
60. `frontend-modern/src/components/shared/TypeColumn.guardrails.test.ts`
61. `frontend-modern/src/features/` (including Patrol presentation, where Patrol control starter counts are context only even when mirrored through `patrolAutonomy*` compatibility fields, successful direct Patrol control saves may record the content-free `patrol_control` starter only when paid control is available and the effective control posture changes and must then refresh Patrol status, findings, approvals, and run history before the operator waits for polling, legacy `proActivation*` starter aliases must not render a separate proof strip by themselves, Patrol control completed/resolved counts may only project backend-owned terminal proof, current active findings and pending approvals outrank historical completion proof in the primary operator state, selected run history must read as a Patrol run record rather than a findings filter or snapshot workflow, terminal verified/rejected outcomes with no active finding or pending approval must stay history detail without rendering a no-op proof strip, resolved-only issue history must not be promoted into current-work copy or actions, compact recurrence/trust counters must read as historical evidence rather than current issue state, Patrol-owned status/history evidence must keep the assessment visible when the broader intelligence summary is missing, Patrol work-group chips may group current approvals, failed actions, failed checks, recurring active issues, and stale scheduled protection but must not become a separate status/trust/proof strip, the Patrol route and page title must lead with Patrol while the default workspace underneath may use Open work and run history stays a deliberate secondary review surface, setup-only Patrol runtime failures must instead use `Fix Patrol setup` framing with a dedicated setup task and direct provider-settings action while suppressing generic issue-row chips and filter chrome, Patrol must not expose a generic Details/supporting-context panel for nearby activity, related patterns, or policy limits, locked-control copy must state the watch-only boundary in positive capability language by saying Patrol checks infrastructure and shows current issues, avoid repeating the same sentence across the header and control, and avoid repeatedly restating infrastructure-unchanged caveats or relying on disabled controls, compact Pro badges, Limits controls, or manual-review framing, `patrolControlValueState` decides whether a terminal decision is partial review context or verified value proof while `patrolAutonomyValueState` remains a compatibility mirror, legacy `proActivation*` fields are compatibility fallback only, native Patrol state must not load the operations-loop status projection to decide current work, local Patrol state must expose issue-backed `patrolWork*` evidence rather than legacy proof naming, Patrol mode labels remain domain copy that must describe backend-owned risk policy without creating page-local safety thresholds, the selected Patrol mode sentence must state the approval and policy boundary without adding a second limits panel or proof strip, the Patrol schedule and model drawer must stay separate from the always-visible Patrol mode selector instead of duplicating the four control choices or reintroducing save/apply configuration framing, and Patrol header refresh controls must call an explicit operator-refresh handler whose spinning/disabled state is separate from background polling and initial data loads)
@@ -348,7 +346,7 @@ shared leading-control rail when the context is actionable for the inventory
immediately below it. Consumers must use that extension point for local
attention counts and review actions instead of introducing a parallel filter
card or a routine page-wide posture banner; the toolbar continues to own
-responsive placement alongside saved views, View preferences, and row counts.
+responsive placement alongside View preferences and row counts.
Frequently used leading context remains visible when the mobile filter body is
collapsed and moves into the canonical action rail when that body is expanded;
lower-priority trailing orientation controls remain collapsed with the rail.
@@ -1545,7 +1543,7 @@ Agent`), with the plain-language source phrase available through accessible
autoscaling section beneath it; selecting the active cluster again clears
that scope. The same URL-backed Cluster facet is available on Workloads,
Services, and Configuration and composes with the existing namespace,
- search, and status parameters so saved views, bookmarks, and shared links
+ search, and status parameters so bookmarks and shared links
retain the complete scope. Changing cluster scope clears namespace scope to
prevent a namespace from the previous cluster from silently hiding all
rows. Cluster names remain separate from their external web-interface
@@ -4247,25 +4245,25 @@ affordance, it should extend the FilterBar catalog model or add a new
registry-backed shared primitive rather than reintroducing a per-page select
row.
-Pages may opt into saved views by passing `savedViewsKey` to
-`FilterBar`. The `useSavedViews` hook owns the localStorage IO + URL
-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
+FilterBar does not carry a saved-views affordance. The former
+`savedViewsKey` / `useSavedViews` / `SavedViewsMenu` trio persisted named
+query strings to localStorage under `pulse:filterbar:saved-views:<key>`; it
+was removed because a saved view was only ever the page's URL query string,
+which the browser's own bookmarks already capture, sync, search, and share.
+The URL-ownership rule it depended on survives it and is now the primary
+contract: every filter a surface exposes must be URL-owned, so a filtered page
+is a shareable, bookmarkable link. Do not reintroduce an in-app view library;
+extend URL coverage instead. The Machines surface uses the canonical
+`STANDALONE_QUERY_PARAMS` query and status keys and delegates one composite
+reset to `StandalonePageSurface`; 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.
-The Proxmox Backups surface follows the same saved-view boundary with
+The Proxmox Backups surface follows the same URL-ownership boundary with
`PROXMOX_BACKUPS_QUERY_PARAMS`: search, workspace, scope, per-workspace facet,
-and selected activity day are all route-owned before `savedViewsKey` is set.
+and selected activity day are all route-owned.
Its feature owner may clear incompatible hidden facets when the workspace
changes and may preserve that workspace during a composite reset, but the
-shared `FilterBar` remains the sole owner of Saved, Clear, filter-menu, and
+shared `FilterBar` remains the sole owner of Clear, filter-menu, and
popover chrome across desktop and narrow layouts.
`ProxmoxBackupsCoverageStrip` keeps its compact context on the title baseline at
desktop widths and gives that context a full-width, left-aligned row below the
@@ -4293,13 +4291,12 @@ panel anchors from the trigger's leading edge on the expanded mobile filter
rail, where the trigger wraps to the left edge, and returns to trailing-edge
alignment on desktop so its management actions cannot run past either viewport
edge.
-Saved Views and View are peer filter-bar popovers and must compose the shared
-`FilterPopoverTrigger`; the shared trigger owns their matching text emphasis,
-icon geometry, disclosure chevron, active state, and button alignment instead
-of allowing each popup wrapper to restyle that contract independently. The
-expanded mobile rail keeps Saved and View together in one action row; when no
-menu-backed filter row is present, contextual Clear filters joins that row
-instead of forcing View onto an isolated line. View takes the row's available
+Filter-bar popovers must compose the shared `FilterPopoverTrigger`; the
+shared trigger owns their matching text emphasis, icon geometry, disclosure
+chevron, active state, and button alignment instead of allowing each popup
+wrapper to restyle that contract independently. When no menu-backed filter row
+is present, contextual Clear filters joins the mobile action row 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.
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 6343ebdeaa..ae1524ff64 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -1840,14 +1840,14 @@ grouped/list selector instead of reintroducing local `Group By` casing or
platform-specific cluster wording. Dense workload toolbar variants must keep
the filter and presentation rails wrap-capable instead of forcing a single
no-wrap row that clips trailing actions. The workload shell leaves Type,
-Status, dynamic scope, saved views, and contextual `Clear filters` actions on
+Status, dynamic scope, and contextual `Clear filters` actions on
the primary filter rail. Durable presentation choices — grouped/list mode,
bars/trends, chart visibility, Guest/Host memory basis, and Columns — pass
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. Saved, contextual Clear, leading actions, and View stay in
+desktop and mobile layouts, including the mobile action-row placement.
+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 compact Add filter control
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index e07ae5ab7c..248964e89f 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -513,7 +513,7 @@ The Proxmox Backups toolbar is durable recovery navigation, not transient
component state. Search, active workspace, node, guest type, source, posture,
and selected activity day use the canonical `PROXMOX_BACKUPS_QUERY_PARAMS`
keys in `frontend-modern/src/routing/resourceLinks.ts` so reloads, shared links,
-and `proxmox-backups` saved views restore the same result set. Switching to
+and browser bookmarks restore the same result set. Switching to
`By date` clears the hidden coverage posture; switching to `Coverage` clears
the hidden source and selected day in the same route write. Contextual
`Clear filters` clears every narrowing parameter in one write while retaining
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 1c803c03bc..f43b4b5111 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -1319,7 +1319,7 @@ AI-only summary payloads, or page-local heuristics.
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
+ saved links and bookmarks 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.
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 7f4bac5de2..d8dc888f62 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,25 +1,78 @@
{
"version": 1,
- "base_sha": "202f3b2f4c57a82dd186b99f17ad6598b9b5c1a2",
- "verified_at": "2026-08-19T19:30:37Z",
+ "base_sha": "547afd2d17867d1be13797d6308c98284525456c",
+ "verified_at": "2026-08-19T20:01:48Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx"
+ "frontend-modern/src/components/Settings/AuditLogPanel.tsx",
+ "frontend-modern/src/components/Storage/Storage.tsx",
+ "frontend-modern/src/components/Storage/StoragePageControls.tsx",
+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",
+ "frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts",
+ "frontend-modern/src/components/Workloads/useWorkloadsState.ts",
+ "frontend-modern/src/components/Workloads/workloadsFilterModel.ts",
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx",
+ "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx",
+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts",
+ "frontend-modern/src/components/shared/FilterBar/index.ts",
+ "frontend-modern/src/components/shared/FilterBar/useSavedViews.ts",
+ "frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx",
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx",
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",
+ "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx",
+ "frontend-modern/src/features/vmware/VmwarePageSurface.tsx"
],
"content_sha256": {
- "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "da32fc05ad316c42040575940da6cc13f7f8534f2c31dcc1985f74d3145b0148"
+ "frontend-modern/src/components/Settings/AuditLogPanel.tsx": "3ec47cffc5921365a789b05fbb9d2a9002974df2a6db1523ae71db061b124801",
+ "frontend-modern/src/components/Storage/Storage.tsx": "8d9a6b3f78b5b8d694a09aee18349f66fec81529f21e47d47053a024ac3dc52c",
+ "frontend-modern/src/components/Storage/StoragePageControls.tsx": "f4c7f06ec6fea2f2e34ded9908f79c90ae55d9bfc96674b8cfbaeb3181cccc2e",
+ "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "d639c27b017c6fa96ec431bbe841ebc38e6417d9a6c54a5d9ce32291c7455586",
+ "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "3a41bf1bd3bcc7f26e586ee150b40558532b9b2887463ae930ce7f08879ed33a",
+ "frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts": "2e5b0e59bd204299483fe51ccc199859e2fc0f21d8122eb3a879a002bb14d594",
+ "frontend-modern/src/components/Workloads/useWorkloadsState.ts": "f6b491b4ab05333b933f2dfd6bdc099dba005a65e643b7cd7daba71750d3bc73",
+ "frontend-modern/src/components/Workloads/workloadsFilterModel.ts": "2db9b55b63d51ec1c802f5094fedbfcae48a2435370c704ab575611b9e5de393",
+ "frontend-modern/src/components/shared/FilterBar/FilterBar.tsx": "050208432907f3d8792d20cf3b17513cf4c88d161514479904494770c2066f6c",
+ "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx": "deleted",
+ "frontend-modern/src/components/shared/FilterBar/filterCatalog.ts": "5452714b77d1351e4f85921411a64d4dde7152aa8a2aba2b489a8af7346a4e7c",
+ "frontend-modern/src/components/shared/FilterBar/index.ts": "66d9e1452cc370e8e1e0b7c3675daccf113479c49aff868b236eddadbc699a95",
+ "frontend-modern/src/components/shared/FilterBar/useSavedViews.ts": "deleted",
+ "frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx": "2915f7b24d8fed33b184d7fb38235afaec2a1ae5e3c284598891117a2d6045e4",
+ "frontend-modern/src/features/docker/DockerContainersTable.tsx": "d62b73afe8ddf5792b928d8fa550e206ed59be8a0b67d845f23d7a43f039a89c",
+ "frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx": "a91d94d80d092071eb24e69a291ef0e95882fe3a1059adc2e03b24ee56af3cc8",
+ "frontend-modern/src/features/platformPage/sharedPlatformPage.tsx": "8b1610e0135a310df8146577bfe50a41468dcb9a37bf655580c2838a350b5467",
+ "frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx": "6df9928955507b75e589bf4b310cd323f6f3d65a7336dd4e7e604d999a25c2a9",
+ "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "62fc19b42934d428bf4db2ee652621e1465531d4b16beaae1d90d85bc106f883",
+ "frontend-modern/src/features/standalone/AgentsMachinesTable.tsx": "0aea2cf00d43e3ea87319ac630e71b71a7f9602315bc011164c3e623eba321f6",
+ "frontend-modern/src/features/standalone/StandalonePageSurface.tsx": "f055818ac46f80fe039d6c93c1291e4c657faea1985d59adbf892b307098bf87",
+ "frontend-modern/src/features/vmware/VmwarePageSurface.tsx": "8a7cdbd5d03aa343be626855b6f0bc8b5c86ac6815cfad5db526b0f686335f84"
},
"routes": [
- "/proxmox/overview?type=container"
+ "/proxmox/overview",
+ "/proxmox/overview?status=running",
+ "/proxmox/backups",
+ "/proxmox/storage",
+ "/docker",
+ "/kubernetes",
+ "/kubernetes/workloads",
+ "/kubernetes/services",
+ "/kubernetes/configuration",
+ "/vmware",
+ "/standalone/machines",
+ "/alerts/history"
],
"viewports": [
{
- "width": 1440,
+ "width": 1280,
"height": 900
},
{
- "width": 1034,
- "height": 1234
+ "width": 1024,
+ "height": 900
},
{
"width": 390,
@@ -27,16 +80,25 @@
}
],
"states": [
- "Proxmox 1440px desktop filter rail with inline filters on the left and utility actions at the right edge of the same row",
- "Proxmox 1034px wrapped filter rail with Add filter, Saved, Clear filters, and View beginning at the same left edge as the inline filters",
- "Proxmox 390px collapsed mobile filter state",
- "Proxmox 390px expanded mobile filter state with its action rows left-aligned",
- "Wide, wrapped, and narrow layouts without document-level horizontal overflow"
+ "desktop 1280x900: action cluster renders Add filter / Clear filters / View with no Saved control and no residual gap",
+ "desktop 1280x900: cluster keeps the rebased justify-between rail and max-w-full justify-start cluster classes from 547afd2d1",
+ "desktop 1024x900: rail wraps and the action cluster left-aligns flush with the rail (cluster left 53px == rail left 53px), which is the wrapped case 547afd2d1 fixes, verified with the Saved control absent",
+ "desktop 1280x900: Proxmox Backups cluster renders Add filter only",
+ "desktop 1280x900: Machines toolbar renders View + machine count only",
+ "mobile 390x844: filter body collapsed shows only search + Filters toggle with its active-count badge",
+ "mobile 390x844: filter body expanded renders the action row without any Saved control",
+ "mobile 390x844: with status=running active, exactly one Clear filters button renders (no duplicate)",
+ "mobile 390x844: /alerts/history has no auxiliary controls so the mobile action row is not rendered at all rather than rendered empty",
+ "no Saved views control on any exercised surface and no pulse:filterbar:saved-views:* localStorage keys remain"
],
"interactions": [
- "Reloaded the active Proxmox LXC route and waited for the shared workload controls to hydrate",
- "Resized from the natural 1034x1234 wrapped layout to 1440x900 and confirmed both rails shared one baseline with opposite-edge alignment",
- "Resized to 390x844, expanded Filters, and confirmed Add filter, Clear filters, Saved, and View retained the mobile leading-edge layout",
- "Measured the controls rail and action cluster at each responsive state and confirmed the wrapped rail's leading edges matched"
+ "signed in as admin and opened each platform surface",
+ "expanded the mobile filter body via the Filters toggle on /proxmox/overview and /alerts/history",
+ "activated the Running status facet on mobile and confirmed the URL became ?status=running",
+ "confirmed exactly one Clear filters control renders with an active filter on mobile",
+ "reloaded /proxmox/overview?status=running from a bare URL and confirmed the Running facet was restored, which is the bookmark path that replaces saved views",
+ "re-exercised every viewport after rebasing onto 547afd2d1 because that commit changed the same action-cluster alignment classes; measured the wrapped cluster geometry at 1024px rather than re-pinning hashes on an unexercised merge",
+ "scanned each exercised route for a Saved views control and for saved-views localStorage keys, both empty",
+ "checked the console on a fresh tab against this build: no errors"
]
}
diff --git a/frontend-modern/src/components/Settings/AuditLogPanel.tsx b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
index 154b016779..00efb5b8e4 100644
--- a/frontend-modern/src/components/Settings/AuditLogPanel.tsx
+++ b/frontend-modern/src/components/Settings/AuditLogPanel.tsx
@@ -240,7 +240,6 @@ export default function AuditLogPanel() {
placeholder: 'Filter by user...',
}}
filters={buildAuditFilters()}
- savedViewsKey="audit"
viewOptions={
<div>
<div class="mb-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted">
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index b84758f45b..d5833382be 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -113,6 +113,13 @@ const settingsRuntimeSources = import.meta.glob(['../*.tsx', '../ConnectionEdito
}) as Record<string, string>;
describe('settings architecture guardrails', () => {
+ it('keeps the audit log filter bar free of a saved-views affordance', () => {
+ // A saved view was only the page's URL query string; bookmarks already
+ // cover that and survive a new browser, so the control was removed.
+ expect(auditLogPanelSource).not.toContain('savedViewsKey');
+ expect(auditLogPanelSource).not.toContain('SavedViews');
+ });
+
it('keeps the Proxmox installer TLS override explicit and request-bound', () => {
expect(nodeModalSetupGuideSectionSource).toContain(
'Skip TLS certificate verification when downloading the installer and',
diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx
index bb2f0153bc..d747f157ff 100644
--- a/frontend-modern/src/components/Storage/Storage.tsx
+++ b/frontend-modern/src/components/Storage/Storage.tsx
@@ -101,18 +101,12 @@ const Storage: Component<StorageProps> = (props) => {
}
});
- // Namespace saved views per platform context. Every live consumer is a
- // platform-embedded storage tab that locks source scope via
- // forcedSourceFilter; views never leak across platforms.
- const savedViewsKey = `storage-${(props.forcedSourceFilter ?? '').trim().toLowerCase()}`;
-
return (
<div ref={setClearSurfaceRootRef} class="space-y-4" data-testid="storage-page">
<div class="space-y-4" data-testid="storage-interaction-surface">
<div data-summary-clear-ignore>
<StoragePageControls
kioskMode={kioskMode}
- savedViewsKey={savedViewsKey}
view={view}
setView={setView}
showViewTabs={!props.forcedView}
diff --git a/frontend-modern/src/components/Storage/StoragePageControls.tsx b/frontend-modern/src/components/Storage/StoragePageControls.tsx
index 46bddfaddc..fe9247cbaa 100644
--- a/frontend-modern/src/components/Storage/StoragePageControls.tsx
+++ b/frontend-modern/src/components/Storage/StoragePageControls.tsx
@@ -78,10 +78,8 @@ type StoragePageControlsProps = {
// Platform-embedded storage tabs use the search box for host/node
// scoping, matching the platform overview filter contract.
suppressNodeFilter?: boolean;
- // Enables the SavedViews menu in the FilterBar. Caller is responsible
// for picking a key that namespaces views per platform context so
// saved queries from one platform do not leak into another.
- savedViewsKey?: string;
};
export const StoragePageControls: Component<StoragePageControlsProps> = (props) => {
@@ -286,7 +284,6 @@ export const StoragePageControls: Component<StoragePageControlsProps> = (props)
role="group"
ariaLabel={props.filterAriaLabel ?? 'Storage filters'}
isMobile={isMobile}
- savedViewsKey={props.savedViewsKey}
search={{
value: props.search,
setValue: props.setSearch,
diff --git a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
index 903a9a43bf..d1fb3842ab 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsFilter.tsx
@@ -304,7 +304,6 @@ export const WorkloadsFilter: Component<WorkloadsFilterProps> = (props) => {
searchTrailing={props.searchTrailing}
filters={buildFilters()}
showAddFilterLabel={false}
- savedViewsKey={props.savedViewsKey}
leadingControls={
props.pinnedSelectionActive?.() && props.onClearPinnedSelection ? (
<FilterActionButton
diff --git a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
index e5362d5f3d..c9b84e488a 100644
--- a/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
+++ b/frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
@@ -119,7 +119,6 @@ export function WorkloadsSurface(props: WorkloadsSurfaceComponentProps) {
>
<div data-summary-clear-ignore>
<WorkloadsFilter
- savedViewsKey={state.savedViewsKey()}
search={state.search}
setSearch={state.setSearch}
viewMode={state.viewMode}
diff --git a/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx b/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
index 8c46b0492e..a79f71bbe3 100644
--- a/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsx
@@ -21,19 +21,6 @@ vi.mock('@/hooks/useBreakpoint', () => ({
}),
}));
-// Mock @solidjs/router so the saved-views menu can call useNavigate /
-// useLocation outside a Router context. The tests don't exercise navigation.
-vi.mock('@solidjs/router', () => ({
- useNavigate: () => () => undefined,
- useLocation: () => ({
- pathname: '/proxmox/overview',
- search: '',
- hash: '',
- state: null,
- query: {},
- }),
-}));
-
vi.mock('@/components/shared/SearchInput', () => ({
SearchInput: (props: {
value: () => string;
@@ -327,7 +314,6 @@ describe('WorkloadsFilter', () => {
render(() => (
<WorkloadsFilter
{...makeProps({
- savedViewsKey: 'test-workloads',
pinnedSelectionActive: () => false,
onClearPinnedSelection: vi.fn(),
hostFilter: {
diff --git a/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts b/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
index 9321523860..3a45b36a6c 100644
--- a/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
+++ b/frontend-modern/src/components/Workloads/__tests__/useWorkloadsControlsState.test.ts
@@ -107,7 +107,7 @@ describe('useWorkloadsControlsState', () => {
});
});
- it('URL-backs free-text search via q so saved views capture -term exclusions', () => {
+ it('URL-backs free-text search via q so bookmarks capture -term exclusions', () => {
createRoot((dispose) => {
try {
const [showFilters, setShowFilters] = createSignal(false);
diff --git a/frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts b/frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts
index a6f52e29a4..44bf3559a2 100644
--- a/frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts
+++ b/frontend-modern/src/components/Workloads/useWorkloadUrlSync.ts
@@ -93,8 +93,8 @@ export function useWorkloadUrlSync(options: WorkloadsWorkloadUrlSyncOptions) {
const selected = (options.selectedKubernetesNamespace() || '').trim();
if (!selected) return;
// While guests haven't loaded the options list is empty; skipping prevents
- // the cleanup from stripping a perfectly valid URL value (e.g. one applied
- // from a saved view) before data arrives.
+ // the cleanup from stripping a perfectly valid URL value (e.g. one opened
+ // from a bookmark) before data arrives.
const candidates = options.kubernetesNamespaceOptions();
if (candidates.length === 0) return;
const normalized = selected.toLowerCase();
@@ -110,8 +110,8 @@ export function useWorkloadUrlSync(options: WorkloadsWorkloadUrlSyncOptions) {
const selected = (options.selectedCluster() || '').trim();
if (!selected) return;
// While guests haven't loaded the options list is empty; skipping prevents
- // the cleanup from stripping a perfectly valid URL value (e.g. one applied
- // from a saved view) before data arrives.
+ // the cleanup from stripping a perfectly valid URL value (e.g. one opened
+ // from a bookmark) before data arrives.
const candidates = options.clusterOptions();
if (candidates.length === 0) return;
const normalized = selected.toLowerCase();
diff --git a/frontend-modern/src/components/Workloads/useWorkloadsState.ts b/frontend-modern/src/components/Workloads/useWorkloadsState.ts
index 66ef920727..3a247157d3 100644
--- a/frontend-modern/src/components/Workloads/useWorkloadsState.ts
+++ b/frontend-modern/src/components/Workloads/useWorkloadsState.ts
@@ -267,14 +267,6 @@ export function useWorkloadsState(props: WorkloadsSurfaceProps) {
setViewMode(value);
};
- // Saved views are scoped per platform context. Every live consumer is a
- // platform-embedded workloads surface that locks platform scope via
- // forcedPlatform; views never leak across platforms.
- const savedViewsKey = createMemo<string | undefined>(() => {
- const platform = (props.forcedPlatform ?? '').trim().toLowerCase();
- return platform ? `workloads-${platform}` : undefined;
- });
-
const {
columnVisibility,
workloadsFilterColumnVisibility,
@@ -570,7 +562,6 @@ export function useWorkloadsState(props: WorkloadsSurfaceProps) {
platformOptions,
reconnect,
reconnectSurface,
- savedViewsKey,
search,
selectedCluster,
selectedGuestId,
diff --git a/frontend-modern/src/components/Workloads/workloadsFilterModel.ts b/frontend-modern/src/components/Workloads/workloadsFilterModel.ts
index b7ee4d2379..3d356db8d9 100644
--- a/frontend-modern/src/components/Workloads/workloadsFilterModel.ts
+++ b/frontend-modern/src/components/Workloads/workloadsFilterModel.ts
@@ -86,7 +86,6 @@ export interface WorkloadsFilterProps {
mobileTrailing?: JSX.Element;
forcedPlatform?: string;
suppressTypeFilter?: boolean;
- savedViewsKey?: string;
}
export interface CountActiveWorkloadsFiltersOptions {
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
index b5bbf03cc2..5ccd2af6b2 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.test.tsx
@@ -1,19 +1,8 @@
-import { Route, Router } from '@solidjs/router';
import { cleanup, fireEvent, render, screen, within } from '@solidjs/testing-library';
-import type { JSX } from 'solid-js';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { FilterBar } from './FilterBar';
import type { FilterDef } from './filterCatalog';
-// SavedViewsMenu URL-backs view application (useNavigate/useLocation), so
-// savedViewsKey renders must sit inside a Router context.
-const renderInRouter = (component: () => JSX.Element) =>
- render(() => (
- <Router>
- <Route path="/" component={component} />
- </Router>
- ));
-
const search = {
value: () => '',
setValue: vi.fn(),
@@ -122,44 +111,13 @@ describe('FilterBar', () => {
expect(onClearAll).toHaveBeenCalledTimes(1);
});
- it('shows saved views in the expanded mobile body when savedViewsKey is set', () => {
- renderInRouter(() => (
- <FilterBar
- search={search}
- filters={[inlineTypeFilter(), menuNodeFilter()]}
- isMobile={() => true}
- savedViewsKey="test-surface"
- />
- ));
-
- expect(screen.queryByRole('button', { name: 'Saved views' })).not.toBeInTheDocument();
-
- fireEvent.click(screen.getByRole('button', { name: 'Filters' }));
- expect(screen.getByRole('button', { name: 'Saved views' })).toBeInTheDocument();
- });
-
- it('shows saved views on mobile even when every filter is inline', () => {
- renderInRouter(() => (
- <FilterBar
- search={search}
- filters={[inlineTypeFilter()]}
- isMobile={() => true}
- savedViewsKey="test-surface"
- />
- ));
-
- fireEvent.click(screen.getByRole('button', { name: 'Filters' }));
- expect(screen.getByRole('button', { name: 'Saved views' })).toBeInTheDocument();
- expect(screen.queryByRole('combobox', { name: 'Filter' })).not.toBeInTheDocument();
- });
-
- it('renders a single clear-all on mobile when the saved-views row is shown', () => {
- renderInRouter(() => (
+ it('renders a single clear-all on mobile when the action row is shown', () => {
+ render(() => (
<FilterBar
search={search}
filters={[inlineTypeFilter(vi.fn(), 'vm')]}
isMobile={() => true}
- savedViewsKey="test-surface"
+ viewOptions={<span>Density</span>}
/>
));
@@ -167,13 +125,12 @@ describe('FilterBar', () => {
expect(screen.getAllByRole('button', { name: 'Clear filters' })).toHaveLength(1);
});
- it('keeps Saved, clear filters, and View together in the mobile action rail', () => {
- renderInRouter(() => (
+ it('keeps clear filters and View together in the mobile action rail', () => {
+ render(() => (
<FilterBar
search={search}
filters={[inlineTypeFilter(vi.fn(), 'vm')]}
isMobile={() => true}
- savedViewsKey="test-surface"
viewOptions={<span>Density</span>}
/>
));
@@ -183,22 +140,18 @@ describe('FilterBar', () => {
const actions = screen.getByRole('group', { name: 'Filter actions' });
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 an otherwise orphaned Add filter with Saved and View on mobile', () => {
- renderInRouter(() => (
+ it('keeps an otherwise orphaned Add filter with View on mobile', () => {
+ render(() => (
<FilterBar
search={search}
filters={[inlineTypeFilter(), menuNodeFilter()]}
isMobile={() => true}
- savedViewsKey="test-surface"
viewOptions={<span>Density</span>}
/>
));
@@ -211,9 +164,6 @@ describe('FilterBar', () => {
expect(actionCluster).toContainElement(
within(actions).getByRole('combobox', { name: 'Filter' }),
);
- expect(actionCluster).toContainElement(
- within(actions).getByRole('button', { name: 'Saved views' }),
- );
expect(actionCluster).toContainElement(within(actions).getByRole('button', { name: 'View' }));
});
@@ -235,12 +185,11 @@ describe('FilterBar', () => {
});
it('keeps desktop utilities split on one line and left-aligned after wrapping', () => {
- const { container } = renderInRouter(() => (
+ const { container } = render(() => (
<FilterBar
search={search}
filters={[inlineTypeFilter(), menuNodeFilter()]}
isMobile={() => false}
- savedViewsKey="test-surface"
viewOptions={<span>Density</span>}
/>
));
@@ -252,7 +201,6 @@ describe('FilterBar', () => {
expect(actionCluster).toHaveClass('max-w-full', 'justify-start');
expect(actionCluster).not.toHaveClass('ml-auto', 'justify-end');
expect(actionCluster).toContainElement(screen.getByRole('combobox', { name: 'Filter' }));
- expect(actionCluster).toContainElement(screen.getByRole('button', { name: 'Saved views' }));
expect(actionCluster).toContainElement(screen.getByRole('button', { name: 'View' }));
});
diff --git a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
index b6d59e8384..e749dfac03 100644
--- a/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
+++ b/frontend-modern/src/components/shared/FilterBar/FilterBar.tsx
@@ -6,7 +6,6 @@ import { FilterActionButton, FilterMobileToggleButton } from '@/components/share
import { SearchInput } from '@/components/shared/SearchInput';
import { AddFilterMenu } from './AddFilterMenu';
import { FilterChip } from './FilterChip';
-import { SavedViewsMenu } from './SavedViewsMenu';
import { ViewOptionsMenu } from './ViewOptionsMenu';
import {
clearFilter,
@@ -84,18 +83,16 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
};
const hasAuxiliaryControls = () =>
Boolean(props.leadingControls || props.viewOptions || props.trailingControls);
- const hasSavedViews = () => Boolean(props.savedViewsKey);
const showDesktopControlsRow = () =>
!props.isMobile() &&
(inlineFilters().length > 0 ||
hasMenuFilters() ||
- hasSavedViews() ||
hasAuxiliaryControls() ||
hasClearableState());
const showInlineRow = () => props.isMobile() && mobileExpanded() && inlineFilters().length > 0;
const showDesktopChipRow = () => !props.isMobile() && activeMenuFilters().length > 0;
const showMobileBody = () => props.isMobile() && mobileExpanded();
- const showMobileActionRow = () => showMobileBody() && (hasSavedViews() || hasAuxiliaryControls());
+ const showMobileActionRow = () => showMobileBody() && hasAuxiliaryControls();
const showAddFilterInMobileActionRow = () =>
showMobileActionRow() &&
activeMenuFilters().length === 0 &&
@@ -167,14 +164,7 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
</For>
</div>
</Show>
- <Show
- when={
- hasAddableMenuFilters() ||
- hasSavedViews() ||
- hasClearableState() ||
- hasAuxiliaryControls()
- }
- >
+ <Show when={hasAddableMenuFilters() || hasClearableState() || hasAuxiliaryControls()}>
<div
class="inline-flex max-w-full flex-shrink-0 flex-wrap items-center justify-start gap-2"
data-filter-action-cluster
@@ -185,9 +175,6 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
showLabel={props.showAddFilterLabel === true}
/>
</Show>
- <Show when={props.savedViewsKey}>
- {(key) => <SavedViewsMenu storageKey={key()} />}
- </Show>
<Show when={hasClearableState()}>
<FilterBarClearAllButton onClick={clearAll} />
</Show>
@@ -240,9 +227,6 @@ export const FilterBar: Component<FilterBarProps> = (props) => {
showLabel={props.showAddFilterLabel === true}
/>
</Show>
- <Show when={props.savedViewsKey}>
- {(key) => <SavedViewsMenu storageKey={key()} />}
- </Show>
<Show when={showClearAllInMobileActionRow()}>
<FilterBarClearAllButton onClick={clearAll} />
</Show>
diff --git a/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.test.tsx b/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.test.tsx
deleted file mode 100644
index 4387c37e42..0000000000
--- a/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.test.tsx
+++ /dev/null
@@ -1,121 +0,0 @@
-import { Route, Router } from '@solidjs/router';
-import { cleanup, fireEvent, render, screen, waitFor } from '@solidjs/testing-library';
-import { afterEach, beforeEach, describe, expect, it } from 'vitest';
-import { SavedViewsMenu } from './SavedViewsMenu';
-
-const STORAGE_PREFIX = 'pulse:filterbar:saved-views:';
-
-const renderMenu = (storageKey: string) =>
- render(() => (
- <Router>
- <Route path="/" component={() => <SavedViewsMenu storageKey={storageKey} />} />
- </Router>
- ));
-
-describe('SavedViewsMenu', () => {
- beforeEach(() => {
- window.history.replaceState({}, '', '/');
- window.localStorage.clear();
- });
-
- afterEach(() => {
- cleanup();
- window.localStorage.clear();
- });
-
- it('uses compound-popover dialog semantics and restores focus through Escape', async () => {
- renderMenu('focus-contract');
-
- const trigger = screen.getByRole('button', { name: 'Saved views' });
- expect(trigger).toHaveAttribute('aria-haspopup', 'dialog');
-
- fireEvent.click(trigger);
- expect(screen.getByRole('dialog', { name: 'Saved views' })).toBeInTheDocument();
- expect(screen.queryByRole('menu')).not.toBeInTheDocument();
-
- const saveCurrent = screen.getByRole('button', { name: 'Save current view as...' });
- fireEvent.click(saveCurrent);
-
- const nameInput = screen.getByRole('textbox', { name: 'Name this view' });
- await waitFor(() => expect(nameInput).toHaveFocus());
-
- fireEvent.keyDown(document, { key: 'Escape' });
- await waitFor(() =>
- expect(screen.getByRole('button', { name: 'Save current view as...' })).toHaveFocus(),
- );
-
- fireEvent.keyDown(document, { key: 'Escape' });
- await waitFor(() =>
- expect(screen.queryByRole('dialog', { name: 'Saved views' })).not.toBeInTheDocument(),
- );
- expect(trigger).toHaveFocus();
- });
-
- it('stays above mobile navigation and returns to the trailing anchor on desktop', () => {
- renderMenu('responsive-anchor-contract');
-
- fireEvent.click(screen.getByRole('button', { name: 'Saved views' }));
-
- expect(screen.getByRole('dialog', { name: 'Saved views' })).toHaveClass(
- 'filter-bottom-nav-aware-panel',
- );
- });
-
- it('resets draft state when the trigger dismisses the popover', async () => {
- renderMenu('dismiss-contract');
-
- const trigger = screen.getByRole('button', { name: 'Saved views' });
- fireEvent.click(trigger);
- fireEvent.click(screen.getByRole('button', { name: 'Save current view as...' }));
- fireEvent.input(screen.getByRole('textbox', { name: 'Name this view' }), {
- target: { value: 'Draft view' },
- });
-
- fireEvent.click(trigger);
- fireEvent.click(trigger);
-
- expect(screen.queryByRole('textbox', { name: 'Name this view' })).not.toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Save current view as...' })).toBeInTheDocument();
- });
-
- it('keeps saved-view management as visible buttons on narrow layouts', async () => {
- const storageKey = 'management-contract';
- window.localStorage.setItem(
- `${STORAGE_PREFIX}${storageKey}`,
- JSON.stringify([
- {
- id: 'review-temp',
- name: 'Review temp',
- query: 'status=stopped',
- savedAt: 1,
- version: 1,
- },
- ]),
- );
-
- renderMenu(storageKey);
- fireEvent.click(screen.getByRole('button', { name: 'Saved views' }));
-
- await waitFor(() =>
- expect(screen.getByRole('button', { name: 'Review temp' })).toBeInTheDocument(),
- );
- expect(
- screen.getByRole('button', { name: 'Set "Review temp" as default' }),
- ).toBeInTheDocument();
-
- const setDefault = screen.getByRole('button', { name: 'Set "Review temp" as default' });
- fireEvent.click(setDefault);
- await waitFor(() =>
- expect(screen.getByRole('button', { name: 'Unset "Review temp" as default' })).toHaveFocus(),
- );
-
- const remove = screen.getByRole('button', { name: 'Remove view "Review temp"' });
- expect(remove).toHaveClass('opacity-100');
- fireEvent.click(remove);
-
- await waitFor(() =>
- expect(screen.queryByRole('button', { name: 'Review temp' })).not.toBeInTheDocument(),
- );
- expect(screen.getByRole('button', { name: 'Save current view as...' })).toHaveFocus();
- });
-});
diff --git a/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx b/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx
deleted file mode 100644
index bc41c4231c..0000000000
--- a/frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx
+++ /dev/null
@@ -1,267 +0,0 @@
-import {
- Component,
- For,
- Show,
- createEffect,
- createSignal,
- createUniqueId,
- onCleanup,
-} from 'solid-js';
-import BookmarkIcon from 'lucide-solid/icons/bookmark';
-import PlusIcon from 'lucide-solid/icons/plus';
-import StarIcon from 'lucide-solid/icons/star';
-import XIcon from 'lucide-solid/icons/x';
-import {
- FilterPopoverTrigger,
- FilterToolbarPanel,
- filterBottomNavAwarePanelClass,
-} from '@/components/shared/FilterToolbar';
-import { useSavedViews, type SavedView } from './useSavedViews';
-
-interface SavedViewsMenuProps {
- storageKey: string;
-}
-
-export const SavedViewsMenu: Component<SavedViewsMenuProps> = (props) => {
- const { views, saveCurrent, removeView, applyView, setDefault, clearDefault } = useSavedViews(
- props.storageKey,
- );
- const [open, setOpen] = createSignal(false);
- const [savePromptOpen, setSavePromptOpen] = createSignal(false);
- const [name, setName] = createSignal('');
- const panelId = createUniqueId();
- const nameInputId = createUniqueId();
- let containerRef: HTMLDivElement | undefined;
- let triggerRef: HTMLButtonElement | undefined;
- let saveActionRef: HTMLButtonElement | undefined;
- let nameInputRef: HTMLInputElement | undefined;
-
- const close = (restoreFocus = false) => {
- setOpen(false);
- setSavePromptOpen(false);
- setName('');
- if (restoreFocus) queueMicrotask(() => triggerRef?.focus());
- };
-
- const closeSavePrompt = () => {
- setSavePromptOpen(false);
- setName('');
- queueMicrotask(() => saveActionRef?.focus());
- };
-
- const restoreViewActionFocus = (viewId: string, action: string) => {
- queueMicrotask(() => {
- const actions = containerRef?.querySelectorAll<HTMLElement>(`[data-view-action="${action}"]`);
- Array.from(actions ?? [])
- .find((element) => element.dataset.viewId === viewId)
- ?.focus();
- });
- };
-
- const handleClickOutside = (event: MouseEvent) => {
- if (containerRef && !containerRef.contains(event.target as Node)) {
- close();
- }
- };
-
- const handleEscape = (event: KeyboardEvent) => {
- if (event.key !== 'Escape') return;
- event.preventDefault();
- if (savePromptOpen()) {
- closeSavePrompt();
- return;
- }
- close(true);
- };
-
- createEffect(() => {
- if (!open()) return;
- document.addEventListener('mousedown', handleClickOutside);
- document.addEventListener('keydown', handleEscape);
- onCleanup(() => {
- document.removeEventListener('mousedown', handleClickOutside);
- document.removeEventListener('keydown', handleEscape);
- });
- });
-
- // Auto-focus the name input when entering save mode so the user can type
- // immediately after clicking "Save current view as...".
- createEffect(() => {
- if (savePromptOpen()) {
- queueMicrotask(() => nameInputRef?.focus());
- }
- });
-
- const submitSave = () => {
- const view = saveCurrent(name());
- if (view) close();
- };
-
- const handleApply = (view: SavedView) => {
- applyView(view);
- close(true);
- };
-
- return (
- <div ref={containerRef} class="relative shrink-0">
- <FilterPopoverTrigger
- ref={triggerRef}
- open={open()}
- onClick={() => (open() ? close() : setOpen(true))}
- aria-haspopup="dialog"
- aria-expanded={open()}
- aria-controls={open() ? panelId : undefined}
- aria-label="Saved views"
- >
- <BookmarkIcon class="h-3.5 w-3.5" aria-hidden="true" />
- Saved
- <Show when={views().length > 0}>
- <span class="ml-0.5 rounded-full bg-surface-hover px-1.5 py-px text-[10px] font-medium text-base-content">
- {views().length}
- </span>
- </Show>
- </FilterPopoverTrigger>
-
- <Show when={open()}>
- <FilterToolbarPanel
- id={panelId}
- role="dialog"
- aria-label="Saved views"
- widthClass="w-64 max-w-[calc(100vw-2rem)]"
- class={`${filterBottomNavAwarePanelClass} z-50 p-0`}
- >
- <Show
- when={savePromptOpen()}
- fallback={
- <>
- <button
- ref={saveActionRef}
- type="button"
- onClick={() => setSavePromptOpen(true)}
- class="flex w-full items-center gap-1.5 border-b border-border-subtle px-3 py-1.5 text-left text-xs text-base-content hover:bg-surface-hover"
- >
- <PlusIcon class="h-3 w-3" />
- Save current view as...
- </button>
- <Show when={views().length === 0}>
- <div class="px-3 py-3 text-xs text-muted">
- No saved views yet. Set the filters you want, then click "Save current view
- as..." to name and recall this slice later.
- </div>
- </Show>
- <Show when={views().length > 0}>
- <div class="max-h-64 overflow-y-auto py-1">
- <For each={views()}>
- {(view) => (
- <div class="group flex items-center justify-between gap-1 hover:bg-surface-hover">
- <button
- type="button"
- onClick={() => handleApply(view)}
- data-view-id={view.id}
- data-view-action="apply"
- class="min-w-0 flex-1 truncate px-3 py-1.5 text-left text-xs text-base-content"
- title={view.name}
- >
- {view.name}
- </button>
- <button
- type="button"
- onClick={(event) => {
- event.stopPropagation();
- if (view.isDefault === true) {
- clearDefault();
- } else {
- setDefault(view.id);
- }
- restoreViewActionFocus(view.id, 'default');
- }}
- data-view-id={view.id}
- data-view-action="default"
- aria-label={
- view.isDefault === true
- ? `Unset "${view.name}" as default`
- : `Set "${view.name}" as default`
- }
- title={
- view.isDefault === true
- ? 'Default view — applied when you land on this page'
- : 'Set as default for this page'
- }
- class={
- view.isDefault === true
- ? 'rounded-full p-0.5 text-amber-500'
- : 'rounded-full p-0.5 text-muted transition-colors hover:text-amber-500'
- }
- >
- <StarIcon
- class={view.isDefault === true ? 'h-3 w-3 fill-current' : 'h-3 w-3'}
- />
- </button>
- <button
- type="button"
- onClick={(event) => {
- event.stopPropagation();
- removeView(view.id);
- queueMicrotask(() => saveActionRef?.focus());
- }}
- data-view-id={view.id}
- data-view-action="remove"
- aria-label={`Remove view "${view.name}"`}
- class="mr-2 rounded-full p-0.5 text-muted opacity-100 transition-opacity hover:bg-surface hover:text-base-content sm:opacity-0 sm:group-hover:opacity-100 sm:focus-visible:opacity-100"
- >
- <XIcon class="h-3 w-3" />
- </button>
- </div>
- )}
- </For>
- </div>
- </Show>
- </>
- }
- >
- <div class="p-3">
- <label
- for={nameInputId}
- class="block text-[10px] font-semibold uppercase tracking-wide text-muted"
- >
- Name this view
- </label>
- <input
- ref={nameInputRef}
- id={nameInputId}
- type="text"
- value={name()}
- onInput={(event) => setName(event.currentTarget.value)}
- onKeyDown={(event) => {
- if (event.key === 'Enter') {
- event.preventDefault();
- submitSave();
- }
- }}
- placeholder="Stopped containers, Stale backups..."
- class="mt-1 w-full rounded-md border border-border bg-surface px-2 py-1 text-xs text-base-content outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500"
- />
- <div class="mt-2 flex justify-end gap-2">
- <button
- type="button"
- onClick={closeSavePrompt}
- class="rounded-md px-2 py-1 text-xs text-muted hover:text-base-content"
- >
- Cancel
- </button>
- <button
- type="button"
- onClick={submitSave}
- disabled={name().trim() === ''}
- class="rounded-md bg-blue-500 px-2 py-1 text-xs font-medium text-white hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-50"
- >
- Save
- </button>
- </div>
- </div>
- </Show>
- </FilterToolbarPanel>
- </Show>
- </div>
- );
-};
diff --git a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts b/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts
index c32ee80eea..a1f61ea105 100644
--- a/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts
+++ b/frontend-modern/src/components/shared/FilterBar/filterCatalog.ts
@@ -61,13 +61,6 @@ export interface FilterBarProps {
showClearAll?: Accessor<boolean>;
/** Opt into a visible "Filter" label; the compact accessible-only label is the default. */
showAddFilterLabel?: boolean;
- /**
- * When set, render a "Saved views" menu next to the Filter selector that persists
- * named filter combinations (URL query strings) to localStorage under
- * `pulse:filterbar:saved-views:<savedViewsKey>`. Pages opt in per surface
- * because the saved-view storage scope follows the page's URL state model.
- */
- savedViewsKey?: string;
}
export const isFilterSet = (filter: FilterDef): boolean => filter.value() !== filter.defaultValue;
diff --git a/frontend-modern/src/components/shared/FilterBar/index.ts b/frontend-modern/src/components/shared/FilterBar/index.ts
index 5d3848e98a..345daa85d3 100644
--- a/frontend-modern/src/components/shared/FilterBar/index.ts
+++ b/frontend-modern/src/components/shared/FilterBar/index.ts
@@ -1,9 +1,6 @@
export { FilterBar } from './FilterBar';
export { FilterChip } from './FilterChip';
export { AddFilterMenu } from './AddFilterMenu';
-export { SavedViewsMenu } from './SavedViewsMenu';
-export { useSavedViews } from './useSavedViews';
-export type { SavedView } from './useSavedViews';
export { filterChipStatusDot } from './filterOptionPresentation';
export { clearFilter, formatFilterChipValue, isFilterSet } from './filterCatalog';
export type { FilterDef, FilterSelectOption } from './filterCatalog';
diff --git a/frontend-modern/src/components/shared/FilterBar/useSavedViews.ts b/frontend-modern/src/components/shared/FilterBar/useSavedViews.ts
deleted file mode 100644
index f8a738b88c..0000000000
--- a/frontend-modern/src/components/shared/FilterBar/useSavedViews.ts
+++ /dev/null
@@ -1,143 +0,0 @@
-import { useLocation, useNavigate } from '@solidjs/router';
-import { Accessor, createSignal, onMount } from 'solid-js';
-
-export interface SavedView {
- id: string;
- name: string;
- query: string;
- savedAt: number;
- version: number;
- isDefault?: boolean;
-}
-
-// Bump when the on-wire shape of a saved view's `query` changes incompatibly
-// (e.g. a FilterDef renames its URL key or changes encoding). Reads tolerate
-// missing version by treating entries as v1.
-const CURRENT_VERSION = 1;
-
-const STORAGE_PREFIX = 'pulse:filterbar:saved-views:';
-
-const storageKeyFor = (key: string): string => `${STORAGE_PREFIX}${key}`;
-
-const isSavedView = (entry: unknown): entry is SavedView =>
- Boolean(entry) &&
- typeof entry === 'object' &&
- typeof (entry as SavedView).id === 'string' &&
- typeof (entry as SavedView).name === 'string' &&
- typeof (entry as SavedView).query === 'string' &&
- typeof (entry as SavedView).savedAt === 'number';
-
-const normalize = (entry: SavedView): SavedView => ({
- ...entry,
- version: typeof entry.version === 'number' ? entry.version : 1,
- isDefault: entry.isDefault === true,
-});
-
-const readStored = (key: string): SavedView[] => {
- if (typeof window === 'undefined') return [];
- try {
- const raw = window.localStorage.getItem(storageKeyFor(key));
- if (!raw) return [];
- const parsed = JSON.parse(raw);
- if (!Array.isArray(parsed)) return [];
- return parsed.filter(isSavedView).map(normalize);
- } catch {
- return [];
- }
-};
-
-const writeStored = (key: string, views: SavedView[]): void => {
- if (typeof window === 'undefined') return;
- try {
- window.localStorage.setItem(storageKeyFor(key), JSON.stringify(views));
- } catch {
- // localStorage full / blocked: ignore so the UI still renders
- }
-};
-
-const generateId = (): string => {
- if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
- return crypto.randomUUID();
- }
- return `view-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
-};
-
-export interface ApplyViewOptions {
- replace?: boolean;
-}
-
-export interface UseSavedViewsResult {
- views: Accessor<SavedView[]>;
- saveCurrent: (name: string) => SavedView | null;
- removeView: (id: string) => void;
- applyView: (view: SavedView, options?: ApplyViewOptions) => void;
- setDefault: (id: string) => void;
- clearDefault: () => void;
-}
-
-export function useSavedViews(key: string): UseSavedViewsResult {
- const navigate = useNavigate();
- const location = useLocation();
- const [views, setViews] = createSignal<SavedView[]>([]);
-
- const applyView = (view: SavedView, options?: ApplyViewOptions): void => {
- const path = `${location.pathname}${view.query ? `?${view.query}` : ''}`;
- navigate(path, { replace: options?.replace ?? false });
- };
-
- onMount(() => {
- const stored = readStored(key);
- setViews(stored);
- // Auto-apply default view on a fresh landing only. If the URL already
- // carries a query the user (or a deep link) chose it explicitly and we
- // leave it alone. Replace the history entry so the back button doesn't
- // bounce against an empty-query state that would just re-fire the
- // default and trap navigation.
- if (typeof window !== 'undefined' && window.location.search === '') {
- const fallback = stored.find((view) => view.isDefault === true);
- if (fallback) {
- applyView(fallback, { replace: true });
- }
- }
- });
-
- const saveCurrent = (name: string): SavedView | null => {
- const trimmed = name.trim();
- if (trimmed === '') return null;
- const query = typeof window !== 'undefined' ? window.location.search.replace(/^\?/, '') : '';
- const view: SavedView = {
- id: generateId(),
- name: trimmed,
- query,
- savedAt: Date.now(),
- version: CURRENT_VERSION,
- };
- const next = [...views(), view];
- setViews(next);
- writeStored(key, next);
- return view;
- };
-
- const removeView = (id: string): void => {
- const next = views().filter((entry) => entry.id !== id);
- setViews(next);
- writeStored(key, next);
- };
-
- const setDefault = (id: string): void => {
- const next = views().map((view) => ({
- ...view,
- isDefault: view.id === id,
- }));
- setViews(next);
- writeStored(key, next);
- };
-
- const clearDefault = (): void => {
- const next = views().map((view) => (view.isDefault ? { ...view, isDefault: false } : view));
- setViews(next);
- writeStored(key, next);
- };
-
- return { views, saveCurrent, removeView, applyView, setDefault, clearDefault };
-}
diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
index 23e783c578..168ce45882 100644
--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts
@@ -297,9 +297,7 @@ import addFilterMenuSource from '@/components/shared/FilterBar/AddFilterMenu.tsx
import filterCatalogSource from '@/components/shared/FilterBar/filterCatalog.ts?raw';
import filterBarOptionPresentationSource from '@/components/shared/FilterBar/filterOptionPresentation.tsx?raw';
import filterBarIndexSource from '@/components/shared/FilterBar/index.ts?raw';
-import savedViewsMenuSource from '@/components/shared/FilterBar/SavedViewsMenu.tsx?raw';
import viewOptionsMenuSource from '@/components/shared/FilterBar/ViewOptionsMenu.tsx?raw';
-import useSavedViewsSource from '@/components/shared/FilterBar/useSavedViews.ts?raw';
import storagePageControlsSource from '@/components/Storage/StoragePageControls.tsx?raw';
import orgSwitcherSource from '@/components/OrgSwitcher.tsx?raw';
import resourceDetailDrawerOverviewTabSource from '@/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx?raw';
@@ -8191,9 +8189,12 @@ describe('shared primitive guardrails', () => {
expect(filterBarIndexSource).toContain("export { FilterBar } from './FilterBar';");
expect(filterBarIndexSource).toContain("export { FilterChip } from './FilterChip';");
expect(filterBarIndexSource).toContain("export { AddFilterMenu } from './AddFilterMenu';");
- expect(filterBarIndexSource).toContain("export { SavedViewsMenu } from './SavedViewsMenu';");
expect(filterBarIndexSource).not.toContain('ViewOptionsMenu');
- expect(filterBarIndexSource).toContain("export { useSavedViews } from './useSavedViews';");
+ // Saved views were removed: URL-backed filters already make a filtered page
+ // a shareable, bookmarkable link, so the browser's own bookmarks cover the
+ // job the localStorage view library duplicated (worse: no sync, lost on
+ // clearing site data, not shareable).
+ expect(filterBarIndexSource).not.toContain('SavedViews');
expect(filterBarIndexSource).toContain(
"export { filterChipStatusDot } from './filterOptionPresentation';",
);
@@ -8311,31 +8312,11 @@ describe('shared primitive guardrails', () => {
expect(addFilterMenuSource).not.toContain('Search filters');
expect(addFilterMenuSource).not.toContain('Search values');
- // Saved views: per-page named filter combos persist to
- // localStorage under `pulse:filterbar:saved-views:<key>`. The hook owns
- // storage IO + URL navigation; the menu owns the dropdown chrome.
- expect(useSavedViewsSource).toContain(
- "import { useLocation, useNavigate } from '@solidjs/router';",
- );
- expect(useSavedViewsSource).toContain("'pulse:filterbar:saved-views:'");
- expect(useSavedViewsSource).toContain('export interface SavedView');
- expect(useSavedViewsSource).toContain('saveCurrent');
- expect(useSavedViewsSource).toContain('removeView');
- expect(useSavedViewsSource).toContain('applyView');
- expect(useSavedViewsSource).toContain('navigate(path,');
- expect(useSavedViewsSource).toContain('writeStored');
- expect(useSavedViewsSource).toContain('readStored');
// Hook is robust to malformed localStorage and SSR.
- expect(useSavedViewsSource).toContain("typeof window === 'undefined'");
- expect(useSavedViewsSource).toContain('JSON.parse');
- // saveCurrent must snapshot the full URL search string so saved views
// capture every URL-synced state (active filter chips AND the page's
// search query, which every page URL-syncs through `?q=...`). A future
// refactor that narrows the snapshot to a curated subset would silently
- // strip search from saved views.
- expect(useSavedViewsSource).toContain("window.location.search.replace(/^\\?/, '')");
- expect(savedViewsMenuSource).toContain("from './useSavedViews';");
expect(filterToolbarSource).toContain('export const FilterPopoverTrigger');
expect(filterToolbarSource).toContain('export const filterBottomNavAwarePanelClass');
expect(filterToolbarSource).toContain(
@@ -8344,8 +8325,6 @@ describe('shared primitive guardrails', () => {
expect(viewOptionsMenuSource).toContain('<FilterPopoverTrigger');
expect(viewOptionsMenuSource).toContain('class="static ml-auto shrink-0 sm:relative sm:ml-0"');
expect(viewOptionsMenuSource).toContain('filterBottomNavAwarePanelClass');
- expect(savedViewsMenuSource).toContain('<FilterPopoverTrigger');
- expect(savedViewsMenuSource).toContain('filterBottomNavAwarePanelClass');
expect(filterCatalogSource).toContain('leadingControls?: JSX.Element;');
expect(filterCatalogSource).toContain('viewOptions?: JSX.Element;');
expect(filterCatalogSource).toContain('trailingControls?: JSX.Element;');
@@ -8363,21 +8342,6 @@ describe('shared primitive guardrails', () => {
'showClearAll={() => Boolean(props.hasActiveFilters) || props.search().trim().length > 0}',
);
expect(sharedPlatformPageSource).toContain('onClearAll={props.onResetFilters}');
- expect(savedViewsMenuSource).toContain('class="relative shrink-0"');
- expect(savedViewsMenuSource).toContain('class="h-3.5 w-3.5"');
- expect(savedViewsMenuSource).toContain('aria-label="Saved views"');
- expect(savedViewsMenuSource).toContain('aria-haspopup="dialog"');
- expect(savedViewsMenuSource).toContain('role="dialog"');
- expect(savedViewsMenuSource).not.toContain('role="menu"');
- expect(savedViewsMenuSource).not.toContain('role="menuitem"');
- expect(savedViewsMenuSource).toContain('Save current view as...');
- expect(savedViewsMenuSource).toContain("event.key === 'Enter'");
- expect(savedViewsMenuSource).toContain('queueMicrotask(() => nameInputRef?.focus())');
- expect(savedViewsMenuSource).toContain('queueMicrotask(() => triggerRef?.focus())');
- expect(savedViewsMenuSource).toContain('for={nameInputId}');
- expect(savedViewsMenuSource).toContain('class={`${filterBottomNavAwarePanelClass} z-50 p-0`}');
- expect(savedViewsMenuSource).toContain('opacity-100 transition-opacity');
- expect(savedViewsMenuSource).toContain('sm:opacity-0');
// FilterBar consumers — each migrated page should declare a catalog of
// FilterDef entries rather than rendering the labelled-select row from
diff --git a/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx b/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx
index 436886efb0..888ccf66f1 100644
--- a/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx
+++ b/frontend-modern/src/features/alerts/AlertHistoryFiltersCard.tsx
@@ -60,7 +60,6 @@ export function AlertHistoryFiltersCard(props: AlertHistoryFiltersCardProps) {
role="group"
ariaLabel="Alert history filters"
isMobile={() => props.isMobile}
- savedViewsKey="alerts-history"
search={{
value: props.state.searchTerm,
setValue: props.state.setSearchTerm,
diff --git a/frontend-modern/src/features/docker/DockerContainersTable.tsx b/frontend-modern/src/features/docker/DockerContainersTable.tsx
index eecace62e0..514476e60c 100644
--- a/frontend-modern/src/features/docker/DockerContainersTable.tsx
+++ b/frontend-modern/src/features/docker/DockerContainersTable.tsx
@@ -281,9 +281,9 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (pro
: getWorkloadTableLayoutModeForContainer(measuredWidth);
});
// Search and status live in the URL, like the host scope below, so the
- // whole filter state is shareable and captured by saved views. That is what
- // makes exclusions persistent: search `-name`, save it as the default view,
- // and the containers stay hidden on every visit. URL writes replace the
+ // whole filter state is shareable and bookmarkable. That is what makes
+ // exclusions portable: search `-name`, bookmark the resulting URL, and the
+ // containers stay hidden every time you open it. URL writes replace the
// history entry so typing does not pile up back-button states.
const [searchParams, setSearchParams] = useSearchParams();
const searchFilter = () => {
@@ -731,7 +731,6 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (pro
onStatusChange={tableState.setStatus}
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
filters={scopeFilters()}
- savedViewsKey="docker-containers"
visible={scopedRows().length}
total={tableState.total()}
rowNoun="containers"
diff --git a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
index f88a784de6..4e60832272 100644
--- a/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
+++ b/frontend-modern/src/features/kubernetes/KubernetesPageSurface.tsx
@@ -194,9 +194,9 @@ type SharedToolbarState = {
};
// Search and status live in the URL, like the namespace scope below, so the
-// whole filter state is shareable and captured by saved views. That is what
-// makes -term exclusions persistent: search `-name`, save it as the default
-// view, and the noisy rows stay hidden on every visit. URL writes replace the
+// whole filter state is shareable and bookmarkable. That is what makes -term
+// exclusions portable: search `-name`, bookmark the resulting URL, and the
+// noisy rows stay hidden every time you open it. URL writes replace the
// history entry so typing does not pile up back-button states.
function createKubernetesSharedToolbar(): SharedToolbarState {
const [searchParams, setSearchParams] = useSearchParams();
@@ -253,9 +253,9 @@ type KubernetesInventoryScope = {
// Cluster and namespace scope for a shared-toolbar Kubernetes tab. The shared
// toolbar drives several stacked tables at once, so both facets pre-filter every
-// section rather than living on any one table. URL-backed scope is shareable,
-// captured by saved views, and lets the Overview cluster table drive the
-// workload inventory beneath it.
+// section rather than living on any one table. URL-backed scope is shareable and
+// bookmarkable, and lets the Overview cluster table drive the workload
+// inventory beneath it.
function createKubernetesInventoryScope(
sections: Accessor<Resource[][]>,
): KubernetesInventoryScope {
@@ -406,7 +406,6 @@ function KubernetesWorkloads(props: {
onStatusChange={toolbar.setStatus}
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
filters={scopeFilters()}
- savedViewsKey="kubernetes-workloads"
leadingControls={
<Show when={(props.attentionCount ?? 0) > 0}>
<div
@@ -522,7 +521,6 @@ function KubernetesServices(props: { model: KubernetesPageModel }) {
onStatusChange={toolbar.setStatus}
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
filters={scope.scopeFilters()}
- savedViewsKey="kubernetes-services"
visible={visibleRows()}
total={totalRows()}
rowNoun="rows"
@@ -596,7 +594,6 @@ function KubernetesConfiguration(props: { model: KubernetesPageModel }) {
onStatusChange={toolbar.setStatus}
statusOptions={PLATFORM_HEALTH_FILTER_OPTIONS}
filters={scope.scopeFilters()}
- savedViewsKey="kubernetes-config"
visible={visibleRows()}
total={totalRows()}
rowNoun="rows"
diff --git a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
index ea3601716a..6489e978b5 100644
--- a/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
+++ b/frontend-modern/src/features/kubernetes/__tests__/KubernetesPageSurfaceUrlFilters.test.tsx
@@ -5,7 +5,7 @@ import type { Resource } from '@/types/resource';
import { KubernetesPageSurface } from '../KubernetesPageSurface';
// URL-backed shared-toolbar filters: the workloads / services / configuration
-// tabs read search (q) and status from the URL so saved views capture -term
+// tabs read search (q) and status from the URL so bookmarks capture -term
// exclusions, mirroring the Docker containers table. These tests render the
// real surface with a real router; only the data hooks are mocked.
diff --git a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
index 02dacde9fb..bb886e2184 100644
--- a/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
+++ b/frontend-modern/src/features/platformPage/sharedPlatformPage.tsx
@@ -1237,12 +1237,11 @@ export function PlatformTableToolbar<T extends string | number>(props: {
hasActiveFilters?: boolean;
onResetFilters?: () => void;
// Optional scope filters (host / node / namespace / pool ...) appended after
- // the status facet, plus an optional saved-views storage key. Tables opt into
+ // the status facet. Tables opt into
// richer combinable filtering without bypassing the shared toolbar; the
// status facet stays the inline segmented control and scope filters render as
// chips behind "+ Filter".
filters?: FilterDef[];
- savedViewsKey?: string;
/**
* Compact consumer-owned context that belongs beside the table controls,
* such as an attention count with a focused review action.
@@ -1267,7 +1266,7 @@ export function PlatformTableToolbar<T extends string | number>(props: {
// collapse) instead of a bespoke search + segmented-status row. The public
// prop surface is unchanged: search passes straight through and the single
// status facet is modelled as an inline segmented control. Tables that want
- // additional scope filters or saved views opt in via the FilterBar directly.
+ // additional scope filters opt in via the FilterBar directly.
const allFilters: FilterDef[] = [
{
id: 'status',
@@ -1309,7 +1308,6 @@ export function PlatformTableToolbar<T extends string | number>(props: {
}}
filters={allFilters}
showAddFilterLabel={false}
- savedViewsKey={props.savedViewsKey}
leadingControls={props.leadingControls}
viewOptions={
<>
diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
index 90a22146df..dd3c971306 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupsTable.tsx
@@ -715,7 +715,6 @@ export const ProxmoxBackupsTable: Component<{
placeholder: 'Search backups by workload, node, source, or status',
}}
filters={buildBackupsFilters()}
- savedViewsKey="proxmox-backups"
showClearAll={hasActiveBackupsFilters}
onClearAll={resetBackupsFilters}
searchTrailing={
diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
index 8b7d88909f..f7e2030b42 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
@@ -343,7 +343,6 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {
<Show when={showSharedFilterToolbar()}>
<div data-summary-clear-ignore>
<WorkloadsFilter
- savedViewsKey={workloadsState.savedViewsKey()}
search={workloadsState.search}
setSearch={workloadsState.setSearch}
viewMode={workloadsState.viewMode}
diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
index d77fa6a448..437c69e341 100644
--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx
@@ -4,6 +4,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { Resource } from '@/types/resource';
import { ProxmoxPageSurface } from '../ProxmoxPageSurface';
import proxmoxPageSurfaceSource from '../ProxmoxPageSurface.tsx?raw';
+import proxmoxBackupsTableSource from '../ProxmoxBackupsTable.tsx?raw';
const mockUseUnifiedResources = vi.fn();
const mockPathname = vi.hoisted(() => vi.fn(() => '/proxmox/overview'));
@@ -272,6 +273,16 @@ describe('ProxmoxPageSurface contract', () => {
);
});
+ it('keeps Proxmox workload and backup filters free of a saved-views affordance', () => {
+ // Saved views persisted the page's URL query string to localStorage. The
+ // browser's own bookmarks already do that and survive a cleared cache, so
+ // the control was removed; PROXMOX_BACKUPS_QUERY_PARAMS keeps the backup
+ // toolbar URL-owned and therefore still shareable.
+ expect(proxmoxPageSurfaceSource).not.toContain('savedViewsKey');
+ expect(proxmoxBackupsTableSource).not.toContain('savedViewsKey');
+ expect(proxmoxBackupsTableSource).not.toContain('SavedViews');
+ });
+
it('places workload controls beside the workload table they affect', () => {
const nodesTableIndex = proxmoxPageSurfaceSource.indexOf('<ProxmoxNodesTable');
const workloadFilterIndex = proxmoxPageSurfaceSource.indexOf('<WorkloadsFilter');
diff --git a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
index 5911effec9..3e9d2eec78 100644
--- a/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
+++ b/frontend-modern/src/features/standalone/AgentsMachinesTable.tsx
@@ -1172,7 +1172,6 @@ export const AgentsMachinesTable: Component<{
externalStatus?: () => PlatformResourceStatusFilter;
onExternalStatusChange?: (value: PlatformResourceStatusFilter) => void;
onResetFilters?: () => void;
- savedViewsKey?: string;
}> = (props) => {
const [locallyRemovedResourceIds, setLocallyRemovedResourceIds] = createSignal<
Record<string, boolean>
@@ -1412,7 +1411,6 @@ 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"
diff --git a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
index 2b20e99640..e6b1c3924b 100644
--- a/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
+++ b/frontend-modern/src/features/standalone/StandalonePageSurface.tsx
@@ -356,7 +356,6 @@ export function StandalonePageSurface() {
externalStatus={machineStatusFilter}
onExternalStatusChange={setMachineStatusFilter}
onResetFilters={resetMachineFilters}
- savedViewsKey="standalone-machines"
/>
</Show>
</div>
diff --git a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
index 55493025a0..3844161589 100644
--- a/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
+++ b/frontend-modern/src/features/standalone/__tests__/StandalonePageSurface.test.tsx
@@ -19,7 +19,6 @@ const mocks = vi.hoisted(() => ({
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[] }) => (
@@ -168,7 +167,6 @@ describe('StandalonePageSurface', () => {
{ 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/features/vmware/VmwarePageSurface.tsx b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
index f0f2447da6..627aa583a9 100644
--- a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
+++ b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
@@ -390,7 +390,6 @@ function VmwareOverview(props: VmwareOverviewProps) {
<Show when={showSharedFilterToolbar()}>
<div data-summary-clear-ignore>
<WorkloadsFilter
- savedViewsKey={workloadsState.savedViewsKey()}
search={workloadsState.search}
setSearch={workloadsState.setSearch}
viewMode={workloadsState.viewMode}
diff --git a/frontend-modern/src/pages/__tests__/Alerts.readOnly.test.tsx b/frontend-modern/src/pages/__tests__/Alerts.readOnly.test.tsx
index 7e9def8e65..020f34eb98 100644
--- a/frontend-modern/src/pages/__tests__/Alerts.readOnly.test.tsx
+++ b/frontend-modern/src/pages/__tests__/Alerts.readOnly.test.tsx
@@ -3,6 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { Alerts } from '@/pages/Alerts';
import alertsPageSource from '@/pages/Alerts.tsx?raw';
+import alertHistoryFiltersCardSource from '@/features/alerts/AlertHistoryFiltersCard.tsx?raw';
const navigateSpy = vi.hoisted(() => vi.fn());
const presentationPolicyIsReadOnlyMock = vi.hoisted(() => vi.fn(() => false));
@@ -117,6 +118,14 @@ describe('Alerts read-only presentation', () => {
afterEach(() => cleanup());
+ it('keeps alert history narrowing URL-owned with no saved-views affordance', () => {
+ // Saved views stored the page's URL query string in localStorage. Bookmarks
+ // already do that, and better, so the control was removed; history filters
+ // stay URL-owned and the filtered page remains a shareable link.
+ expect(alertHistoryFiltersCardSource).not.toContain('savedViewsKey');
+ expect(alertHistoryFiltersCardSource).not.toContain('SavedViews');
+ });
+
it('keeps the mobile tab shell on shared scroll classes instead of inline styles', () => {
expect(alertsPageSource).toContain('touch-scroll');
expect(alertsPageSource).toContain('scrollbar-hide');