From 72f0b4a8f130ccba2e2d7a8183aa5cd1baf1a31b Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Mon, 18 Aug 2025 17:48:24 +0000 Subject: [PATCH] cleanup: remove redundant filter status messages - Remove 'Showing guests for node' message in Dashboard - Remove 'Showing only backups from PBS' message in Backups - Filter section already shows 'Active' badge when filters applied - Cleaner UI without duplicate information --- .../src/components/Backups/UnifiedBackups.tsx | 18 +------------ .../src/components/Dashboard/Dashboard.tsx | 26 +------------------ 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/frontend-modern/src/components/Backups/UnifiedBackups.tsx b/frontend-modern/src/components/Backups/UnifiedBackups.tsx index 0049ff974..7ad0c0f96 100644 --- a/frontend-modern/src/components/Backups/UnifiedBackups.tsx +++ b/frontend-modern/src/components/Backups/UnifiedBackups.tsx @@ -695,22 +695,7 @@ const UnifiedBackups: Component = () => {
{/* PBS Status Summary */} 0}> -
- -
- Showing only backups from PBS server: {selectedPBSInstance()} - -
-
-
+
{(instance) => (
{
)}
-
diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index 3a4e19260..3a542088a 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -26,16 +26,6 @@ export function Dashboard(props: DashboardProps) { const [search, setSearch] = createSignal(''); const [isSearchLocked, setIsSearchLocked] = createSignal(false); - // Extract selected node from search term - const selectedNode = createMemo(() => { - const searchStr = search(); - const match = searchStr.match(/node:(\S+)/); - if (match && props.nodes.some(node => node.name === match[1])) { - return match[1]; - } - return null; - }); - // Initialize from localStorage with proper type checking const storedViewMode = localStorage.getItem('dashboardViewMode'); const [viewMode, setViewMode] = createSignal( @@ -330,21 +320,7 @@ export function Dashboard(props: DashboardProps) { return (
{/* Node Summary Cards - Adaptive Layout */} -
- -
- Showing guests for node: {selectedNode()} - -
-
+
0}> {/* Regular cards for 1-4 nodes */}