From aeeb75c226a32a741dfdab03489a721fbc19f111 Mon Sep 17 00:00:00 2001 From: Joerg Date: Mon, 19 Jan 2026 13:47:36 +0100 Subject: [PATCH] feat: add QSO count display to filter section - Shows count of QSOs matching current filters next to "Filters" heading - Displays "Showing X filtered QSOs" when filters are active - Displays "Showing X total QSOs" when no filters applied - Uses existing pagination.totalCount from backend API Co-Authored-By: Claude Sonnet 4.5 --- src/frontend/src/routes/qsos/+page.svelte | 38 +++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/routes/qsos/+page.svelte b/src/frontend/src/routes/qsos/+page.svelte index 1240de5..66dc76b 100644 --- a/src/frontend/src/routes/qsos/+page.svelte +++ b/src/frontend/src/routes/qsos/+page.svelte @@ -278,6 +278,10 @@ loadQSOs(); } + function hasActiveFilters() { + return !!(filters.band || filters.mode || filters.search || (filters.confirmationType && filters.confirmationType !== 'all')); + } + function openQSODetailModal(qso) { selectedQSO = qso; showQSODetailModal = true; @@ -561,7 +565,18 @@ {/if}
-

Filters

+
+

Filters

+ {#if pagination && !loading} +
+ {#if hasActiveFilters()} + Showing {pagination.totalCount} filtered QSOs + {:else} + Showing {pagination.totalCount} total QSOs + {/if} +
+ {/if} +