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 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-07-23 21:50:22 +02:00
committed by GitHub
co-authored by Claude Fable 5
parent 1ccf7ab81f
commit 7a6f9dd167
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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}
@@ -157,7 +157,7 @@ export default function TransactionHistoryList({
<div className="ml-auto">
<ContextPicker
value={sourceFilter}
onChange={(id) => setSourceFilter(id as SourceFilter)}
onChange={(id) => onSourceFilterChange(id as SourceFilter)}
triggerLabel={
sourceFilter === 'all'
? t('source_all')