From d61d9181c7090ecba5def7094eac54763463a5fe Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Sat, 20 Dec 2025 11:04:11 +0100 Subject: [PATCH] feat: add uncategorized transaction count and percentage to transactions page; adjust table height for better layout --- app/transactions/page.tsx | 11 ++++++++++- components/transactions/transaction-table.tsx | 4 ++-- services/banking.service.ts | 11 +++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/transactions/page.tsx b/app/transactions/page.tsx index ef1a023..71d00ac 100644 --- a/app/transactions/page.tsx +++ b/app/transactions/page.tsx @@ -112,6 +112,11 @@ export default function TransactionsPage() { const filteredTransactions = transactionsData?.transactions || []; const totalTransactions = transactionsData?.total || 0; const hasMore = transactionsData?.hasMore || false; + const uncategorizedCount = transactionsData?.uncategorizedCount || 0; + const uncategorizedPercent = + totalTransactions > 0 + ? Math.round((uncategorizedCount / totalTransactions) * 100) + : 0; // For filter comboboxes, we'll use empty arrays for now // They can be enhanced later with separate queries if needed @@ -133,7 +138,11 @@ export default function TransactionsPage() { 1 ? "s" : ""}`} + description={ + totalTransactions > 0 + ? `${totalTransactions} transaction${totalTransactions > 1 ? "s" : ""} • ${uncategorizedPercent}% non catégorisées` + : `${totalTransactions} transaction${totalTransactions > 1 ? "s" : ""}` + } actions={