feat: enhance TransactionsPage with total count and amount display; update CategoryCard and ParentCategoryRow to link to transaction filters by category; implement localStorage for transaction period preference
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m57s

This commit is contained in:
Julien Froidefond
2025-12-21 08:33:19 +01:00
parent 8b62cd8385
commit 82e27524b5
4 changed files with 24 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import {
useTransactions,
useDuplicateIds,
} from "@/lib/hooks";
import { useLocalStorage } from "@/hooks/use-local-storage";
import type { TransactionsPaginatedParams } from "@/services/banking.service";
import type { Category } from "@/lib/types";
@@ -30,7 +31,7 @@ export function useTransactionsPage() {
"all",
]);
const [showReconciled, setShowReconciled] = useState<string>("all");
const [period, setPeriod] = useState<Period>("3months");
const [period, setPeriod] = useLocalStorage<Period>("transactions-period", "3months");
const [customStartDate, setCustomStartDate] = useState<Date | undefined>(
undefined,
);