feat: add uncategorized transaction count and percentage to transactions page; adjust table height for better layout
This commit is contained in:
@@ -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() {
|
||||
<PageLayout>
|
||||
<PageHeader
|
||||
title="Transactions"
|
||||
description={`${totalTransactions} transaction${totalTransactions > 1 ? "s" : ""}`}
|
||||
description={
|
||||
totalTransactions > 0
|
||||
? `${totalTransactions} transaction${totalTransactions > 1 ? "s" : ""} • ${uncategorizedPercent}% non catégorisées`
|
||||
: `${totalTransactions} transaction${totalTransactions > 1 ? "s" : ""}`
|
||||
}
|
||||
actions={
|
||||
<OFXImportDialog onImportComplete={invalidateAll}>
|
||||
<Button className="md:h-10 md:px-5">
|
||||
|
||||
Reference in New Issue
Block a user