feat: add links to transaction pages from accounts and folders for improved navigation

This commit is contained in:
Julien Froidefond
2025-11-27 11:53:36 +01:00
parent 5eb37e631f
commit ef668510c8
3 changed files with 24 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ import {
} from "lucide-react";
import type { Account } from "@/lib/types";
import { cn } from "@/lib/utils";
import Link from "next/link";
const accountTypeIcons = {
CHECKING: Wallet,
@@ -235,9 +236,12 @@ export default function AccountsPage() {
{formatCurrency(account.balance)}
</div>
<div className="flex items-center justify-between text-sm text-muted-foreground">
<span>
<Link
href={`/transactions?accountId=${account.id}`}
className="hover:text-primary hover:underline"
>
{getTransactionCount(account.id)} transactions
</span>
</Link>
{folder && <span>{folder.name}</span>}
</div>
{account.lastImport && (