From 82a38713cefcaf3430dd76dbc14ccf6a6500df6c Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Fri, 29 Aug 2025 07:17:13 +0000 Subject: [PATCH] fix: properly implement Node column in list view addresses #370 - added Node column that only appears in flat/list view mode, positioned between VMID and Uptime columns. This allows users to see which node each guest belongs to when viewing the flat list, while keeping the cleaner view when in grouped mode. --- .../src/components/Dashboard/Dashboard.tsx | 14 +++++++++----- .../src/components/Dashboard/GuestRow.tsx | 11 ++++++----- rebuild.sh | 13 +++++++++++++ 3 files changed, 28 insertions(+), 10 deletions(-) create mode 100755 rebuild.sh diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx index b67fe351d..8cf0f5809 100644 --- a/frontend-modern/src/components/Dashboard/Dashboard.tsx +++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx @@ -63,10 +63,6 @@ export function Dashboard(props: DashboardProps) { (storedGroupingMode === 'grouped' || storedGroupingMode === 'flat') ? storedGroupingMode : 'grouped' ); - // Debug logging - createEffect(() => { - console.log('[Dashboard] Grouping mode:', groupingMode()); - }); const [showFilters, setShowFilters] = createSignal( localStorage.getItem('dashboardShowFilters') !== null @@ -699,6 +695,14 @@ export function Dashboard(props: DashboardProps) { > VMID {sortKey() === 'vmid' && (sortDirection() === 'asc' ? '▲' : '▼')} + + handleSort('node')} + > + Node {sortKey() === 'node' && (sortDirection() === 'asc' ? '▲' : '▼')} + + handleSort('uptime')} @@ -777,7 +781,7 @@ export function Dashboard(props: DashboardProps) { return ( (props.customUrl); - // Debug logging - createEffect(() => { - console.log('[GuestRow] showNode:', props.showNode, 'node:', props.guest.node, 'name:', props.guest.name); - }); - // Create guest ID for metadata const guestId = createMemo(() => { return props.guest.id || `${props.guest.node}-${props.guest.vmid}`; @@ -160,6 +155,12 @@ export function GuestRow(props: GuestRowProps) { {props.guest.vmid} + {/* Node (only in list view) */} + + + {props.guest.node} + + {/* Uptime */}