From 7a6f9dd16767a1efa7bf6fb843cf74590ad96679 Mon Sep 17 00:00:00 2001 From: Jakob Wennberg <149234542+jakobwennberg@users.noreply.github.com> Date: Thu, 23 Jul 2026 21:50:22 +0200 Subject: [PATCH] fix(transactions): reconcile #1105's lifted source filter with the account picker (#1134) The history view now takes the shared, persisted source filter as props (main's design), with the page narrowing per-account selections to the bank bucket for the history split. Removes the duplicate local type/state left by the rebase. Co-authored-by: Claude Fable 5 --- app/(dashboard)/transactions/page.tsx | 5 +++-- components/transactions/TransactionHistoryList.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/(dashboard)/transactions/page.tsx b/app/(dashboard)/transactions/page.tsx index 52e90bd4..0a293891 100644 --- a/app/(dashboard)/transactions/page.tsx +++ b/app/(dashboard)/transactions/page.tsx @@ -37,7 +37,6 @@ import type { TransactionWithInvoice, ViewMode, CategorizeHandler, - SourceFilter, } from '@/components/transactions/transaction-types' import type { SkattekontoTransactionWithSuggestion, @@ -2460,7 +2459,9 @@ export default function TransactionsPage() { transactions={transactions} skvRows={skvRows} searchTerm={searchTerm} - sourceFilter={sourceFilter} + sourceFilter={ + sourceFilter === 'all' || sourceFilter === 'skatteverket' ? sourceFilter : 'bank' + } onSourceFilterChange={handleSourceFilterChange} jeUnderlagStatus={jeUnderlagStatus} onOpenMatchDialog={openMatchDialog} diff --git a/components/transactions/TransactionHistoryList.tsx b/components/transactions/TransactionHistoryList.tsx index bd45352a..324e64f2 100644 --- a/components/transactions/TransactionHistoryList.tsx +++ b/components/transactions/TransactionHistoryList.tsx @@ -157,7 +157,7 @@ export default function TransactionHistoryList({
setSourceFilter(id as SourceFilter)} + onChange={(id) => onSourceFilterChange(id as SourceFilter)} triggerLabel={ sourceFilter === 'all' ? t('source_all')