From 9e9be1563714779c9041d0d21717d40fcfc6f50b Mon Sep 17 00:00:00 2001 From: e35ventura Date: Tue, 12 May 2026 09:25:52 -0500 Subject: [PATCH] Dashboard reservations: show only ACTIVE holds, drop history rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Reservations card on the dashboard is a 'what's a miner currently holding for you' view, but it was also surfacing INITIATED, EXPIRED, and CANCELLED rows — duplicating lifecycle info already shown in the Transactions card and crowding the live holds. Filter the list to ACTIVE reservations only. Once a reservation becomes INITIATED it has a swap, so it belongs in Transactions; expired and cancelled rows are history with no actionable next step. The empty-state copy is updated to match ('No active reservations'). --- src/components/dashboard/ReservationsTracker.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/dashboard/ReservationsTracker.tsx b/src/components/dashboard/ReservationsTracker.tsx index e16897f..491bee7 100644 --- a/src/components/dashboard/ReservationsTracker.tsx +++ b/src/components/dashboard/ReservationsTracker.tsx @@ -52,12 +52,15 @@ const ReservationsTracker: React.FC = () => { return ; } + // Only show reservations that are still holding a miner. INITIATED have + // become swaps (visible in Transactions); EXPIRED/CANCELLED are history. + const active = reservations.filter((r: Reservation) => r.status === 'ACTIVE'); const trimmed = searchAddr.trim().toLowerCase(); const filtered = trimmed - ? reservations.filter((r: Reservation) => + ? active.filter((r: Reservation) => r.userFromAddress?.toLowerCase().includes(trimmed), ) - : reservations; + : active; const visible = filtered.slice(0, 3); const hiddenCount = filtered.length - visible.length; @@ -159,8 +162,8 @@ const ReservationsTracker: React.FC = () => { }} > {trimmed - ? 'No reservations match that address.' - : 'No reservations yet.'} + ? 'No active reservations match that address.' + : 'No active reservations.'} )}