Open-source personal finance manager. Self-hosted, privacy-first.
feat: let the transaction list hide ignored rows (#640)
Tássio Noronhae9cdb0ad5c60
diff --git a/backend/app/api/transactions.py b/backend/app/api/transactions.pyindex eea4fb25..2e0ef390 100644--- a/backend/app/api/transactions.py+++ b/backend/app/api/transactions.py@@ -98,6 +98,7 @@ async def list_transactions(include_opening_balance: bool = Query(False),exclude_transfers: bool = Query(False),user_pnl_only: bool = Query(False, description="Return only rows that count toward dashboard/user income/expense totals"),+ exclude_ignored: bool = Query(False, description="Drop rows the user marked ignored, or whose category is ignored"),tags: Optional[List[str]] = Query(None),min_amount: Optional[float] = Query(None, ge=0, description="Filter to transactions with absolute amount >= this value (primary currency)."),max_amount: Optional[float] = Query(None, ge=0, description="Filter to transactions with absolute amount <= this value (primary currency)."),@@ -115,6 +116,7 @@ async def list_transactions(include_opening_balance=include_opening_balance, search=q, uncategorized=uncategorized,txn_type=type, exclude_transfers=exclude_transfers,user_pnl_only=user_pnl_only,+ exclude_ignored=exclude_ignored,status=status,accounting_mode=accounting_mode,tags=tags,@@ -167,6 +169,7 @@ async def export_transactions(uncategorized: bool = Query(False),type: Optional[str] = Query(None),status: Optional[str] = Query(None),+ exclude_ignored: bool = Query(False, description="Drop rows the user marked ignored, or whose category is ignored"),tags: Optional[List[str]] = Query(None),transaction_ids: Optional[List[uuid.UUID]] = Query(None, description="If set, exports exactly these rows (scoped to the workspace); other filters are ignored."),ctx: WorkspaceContext = Depends(current_workspace),@@ -190,6 +193,7 @@ async def export_transactions(payee_id=payee_id, from_date=from_date, to_date=to_date,search=q, uncategorized=uncategorized, txn_type=type, status=status, skip_pagination=True,accounting_mode=accounting_mode,+ exclude_ignored=exclude_ignored,tags=tags,)diff --git a/backend/app/services/_query_filters.py b/backend/app/services/_query_filters.pyindex 8ed6545d..7b252584 100644--- a/backend/app/services/_query_filters.py+++ b/backend/app/services/_query_filters.py@@ -94,6 +94,30 @@ def reporting_date_col(accounting_mode: str):return func.coalesce(Transaction.effective_bill_date, base)+def is_not_ignored():+ """SQL filter: the row is not one the user told us to disregard.++ Only the ignore signal, without the transfer/settlement family that+ `counts_as_pnl` folds in, because hiding rows from a *list* is a+ different question from leaving them out of a *total*: a transfer still+ belongs in the ledger the user is reading.++ Matches what the UI badges as ignored, which is the transaction flag or+ its category's — see `TransactionRead.reflect_ignored_category`. A list+ that hid one but not the other would leave visibly-ignored rows behind+ and look broken.+ """+ return and_(+ Transaction.is_ignored.is_(False),+ or_(+ Transaction.category_id.is_(None),+ Transaction.category_id.not_in(+ select(Category.id).where(Category.is_ignored.is_(True))+ ),+ ),+ )++def counts_as_pnl():"""SQL filter: True when a transaction should contribute to income/expense totals.diff --git a/backend/app/services/transaction_service.py b/backend/app/services/transaction_service.pyindex 0019442f..dd8b8077 100644--- a/backend/app/services/transaction_service.py+++ b/backend/app/services/transaction_service.py@@ -26,7 +26,12 @@ from app.services import split_servicefrom app.services.credit_card_service import apply_effective_datefrom app.services.rule_service import apply_rules_to_transactionfrom app.services.fx_rate_service import stamp_primary_amount, convert as fx_convert-from app.services._query_filters import counts_as_pnl, counts_as_user_pnl, reporting_date_col+from app.services._query_filters import (+ counts_as_pnl,+ counts_as_user_pnl,+ is_not_ignored,+ reporting_date_col,+)from app.services.recurring_transaction_service import _advance_date@@ -124,6 +129,7 @@ async def get_transactions(status: Optional[str] = None,include_summary: bool = False,user_pnl_only: bool = False,+ exclude_ignored: bool = False,) -> tuple[list[Transaction], int, Optional[dict]]:"""List transactions for a workspace.@@ -258,6 +264,11 @@ async def get_transactions(base_query = base_query.where(Transaction.transfer_pair_id.is_(None))if user_pnl_only:base_query = base_query.where(Account.is_closed == False, counts_as_user_pnl())+ if exclude_ignored:+ # Only drops rows; the summary below keeps computing over the same+ # filtered set, so the totals a hidden list shows stay the totals of+ # what it is showing.+ base_query = base_query.where(is_not_ignored())if txn_type:base_query = base_query.where(Transaction.type == txn_type)if status:diff --git a/backend/tests/test_transactions_api.py b/backend/tests/test_transactions_api.pyindex 77cea431..0bfadfc0 100644--- a/backend/tests/test_transactions_api.py+++ b/backend/tests/test_transactions_api.py@@ -798,3 +798,73 @@ async def test_list_transactions_summary_respects_filters(assert summary["income"] == pytest.approx(0.0)assert summary["expense"] == pytest.approx(25.5)assert summary["net"] == pytest.approx(-25.5)+++async def test_list_transactions_includes_ignored_by_default(+ client: AsyncClient, auth_headers, session: AsyncSession, test_transactions: list[Transaction],+):+ """The flag has to be asked for: an ignored row is still part of the ledger."""+ test_transactions[0].is_ignored = True+ await session.commit()++ response = await client.get("/api/transactions", headers=auth_headers)++ assert response.status_code == 200+ data = response.json()+ assert data["total"] == len(test_transactions)+ assert test_transactions[0].description in [item["description"] for item in data["items"]]+++async def test_list_transactions_exclude_ignored(+ client: AsyncClient, auth_headers, session: AsyncSession, test_transactions: list[Transaction],+):+ test_transactions[0].is_ignored = True+ await session.commit()++ response = await client.get("/api/transactions?exclude_ignored=true", headers=auth_headers)++ assert response.status_code == 200+ data = response.json()+ descriptions = [item["description"] for item in data["items"]]+ assert test_transactions[0].description not in descriptions+ # `total` drives the pager, so it has to shrink with the rows.+ assert data["total"] == len(test_transactions) - 1+++async def test_list_transactions_exclude_ignored_drops_rows_in_an_ignored_category(+ client: AsyncClient,+ auth_headers,+ session: AsyncSession,+ test_transactions: list[Transaction],+ test_categories: list[Category],+):+ """The list badges a row as ignored when its category is, so hiding must+ follow the badge rather than the column."""+ test_categories[0].is_ignored = True+ await session.commit()++ in_ignored_category = [t.description for t in test_transactions if t.category_id == test_categories[0].id]+ assert in_ignored_category, "fixture no longer has a transaction in this category"++ response = await client.get("/api/transactions?exclude_ignored=true", headers=auth_headers)++ descriptions = [item["description"] for item in response.json()["items"]]+ for description in in_ignored_category:+ assert description not in descriptions+++async def test_export_transactions_exclude_ignored(+ client: AsyncClient, auth_headers, session: AsyncSession, test_transactions: list[Transaction],+):+ """The CSV is the list you are looking at, so it takes the same filter."""+ test_transactions[0].is_ignored = True+ await session.commit()++ response = await client.get("/api/transactions/export?exclude_ignored=true", headers=auth_headers)++ assert response.status_code == 200+ assert test_transactions[0].description not in response.textdiff --git a/frontend/src/components/mobile-transactions-filter-menu.tsx b/frontend/src/components/mobile-transactions-filter-menu.tsxindex 8b50dedc..03fda1a5 100644--- a/frontend/src/components/mobile-transactions-filter-menu.tsx+++ b/frontend/src/components/mobile-transactions-filter-menu.tsx@@ -7,6 +7,7 @@ import {ChevronLeft,ChevronRight,Coins,+ EyeClosed,ListChecks,Store,Tag,@@ -34,6 +35,7 @@ export type MobileFilterView =| 'group'| 'type'| 'status'+ | 'ignored'| 'date'| 'amount'@@ -60,6 +62,7 @@ interface MobileTransactionsFilterMenuProps {groupId: stringtype: stringstatus: string+ hideIgnored: booleanfrom: stringto: stringminAmount: string@@ -78,6 +81,7 @@ interface MobileTransactionsFilterMenuProps {onGroupIdChange: (value: string) => voidonTypeChange: (value: string) => voidonStatusChange: (value: string) => void+ onHideIgnoredChange: (value: boolean) => voidonDateRangeChange: (from: string, to: string) => voidonAmountRangeChange: (min: string, max: string) => voidonApplyAmountRange: () => void@@ -438,6 +442,7 @@ function buildRootOptions({ view: 'group', icon: Users, label: labels.group, summary: summaries.group },{ view: 'type', icon: ArrowUpDown, label: labels.type, summary: summaries.type },{ view: 'status', icon: ListChecks, label: labels.status, summary: summaries.status },+ { view: 'ignored', icon: EyeClosed, label: labels.ignored, summary: summaries.ignored },{ view: 'date', icon: CalendarIcon, label: labels.date, summary: summaries.date },{ view: 'amount', icon: Coins, label: labels.amount, summary: summaries.amount },]@@ -453,6 +458,7 @@ function buildLabels(group: t('splitGroups.group'),type: t('transactions.type'),status: t('transactions.status'),+ ignored: t('transactions.ignoredRows'),date: t('transactions.filtersBar.date'),amount: t('transactions.filtersBar.amount'),}@@ -487,6 +493,13 @@ function MobileFilterDetail({const options = [allOption, { value: 'pending', label: t('transactions.statusPending') }, { value: 'posted', label: t('transactions.statusPosted') }]return <MobileSelectionView options={options} selectedValue={menu.status} onChange={menu.onStatusChange} />}+ if (menu.view === 'ignored') {+ const options = [+ { value: 'show', label: t('transactions.ignoredShow') },+ { value: 'hide', label: t('transactions.ignoredHide') },+ ]+ return <MobileSelectionView options={options} selectedValue={menu.hideIgnored ? 'hide' : 'show'} onChange={(value) => menu.onHideIgnoredChange(value === 'hide')} />+ }if (menu.view === 'date') {return <MobileDateView from={menu.from} to={menu.to} presets={menu.datePresets} onChange={menu.onDateRangeChange} onOpenCustomRange={menu.onOpenCustomRange} />}diff --git a/frontend/src/components/transactions-filter-bar.tsx b/frontend/src/components/transactions-filter-bar.tsxindex 7a97f222..8e6b7891 100644--- a/frontend/src/components/transactions-filter-bar.tsx+++ b/frontend/src/components/transactions-filter-bar.tsx@@ -9,6 +9,7 @@ import {Check,ChevronRight,Coins,+ EyeClosed,ListChecks,ListFilter,Search,@@ -68,6 +69,8 @@ interface TransactionsFilterBarProps {onTypeChange: (value: string) => voidfilterStatus: stringonStatusChange: (value: string) => void+ hideIgnored: boolean+ onHideIgnoredChange: (value: boolean) => voidfilterFrom: stringfilterTo: stringonDateRangeChange: (from: string, to: string) => void@@ -105,6 +108,8 @@ export function TransactionsFilterBar({onTypeChange,filterStatus,onStatusChange,+ hideIgnored,+ onHideIgnoredChange,filterFrom,filterTo,onDateRangeChange,@@ -197,6 +202,7 @@ export function TransactionsFilterBar({!!filterGroupId ||!!filterType ||!!filterStatus ||+ hideIgnored ||!!filterFrom ||!!filterTo ||!!filterMinAmount ||@@ -426,6 +432,7 @@ export function TransactionsFilterBar({group: selectedGroup?.name,type: typeLabel,status: statusLabel,+ ignored: hideIgnored ? t('transactions.ignoredHide') : undefined,date: dateLabel,amount: amountLabel,}}@@ -439,6 +446,8 @@ export function TransactionsFilterBar({onTypeChange={onTypeChange}status={filterStatus}onStatusChange={onStatusChange}+ hideIgnored={hideIgnored}+ onHideIgnoredChange={onHideIgnoredChange}onDateRangeChange={onDateRangeChange}onAmountRangeChange={onAmountRangeChange}onApplyAmountRange={applyAmountRange}@@ -796,6 +805,20 @@ export function TransactionsFilterBar({</DropdownMenuPortal></DropdownMenuSub>+ {/* Ignored rows: a visibility switch rather than a filter+ value, so it reads as one line instead of a submenu. */}+ <DropdownMenuItem+ onSelect={(e) => {+ e.preventDefault()+ onHideIgnoredChange(!hideIgnored)+ }}+ className="gap-2 text-[13px]"+ >+ <EyeClosed size={14} className="text-muted-foreground" />+ <span className="flex-1">{t('transactions.hideIgnored')}</span>+ {hideIgnored && <Check size={13} className="text-primary" />}+ </DropdownMenuItem>+{/* Date range submenu with presets */}<DropdownMenuSub><DropdownMenuSubTrigger className="gap-2 text-[13px]">@@ -1059,6 +1082,14 @@ export function TransactionsFilterBar({onRemove={() => onStatusChange('')}/>)}+ {hideIgnored && (+ <FilterChip+ icon={<EyeClosed size={12} />}+ label={t('transactions.hideIgnored')}+ value={t('transactions.ignoredHiddenValue')}+ onRemove={() => onHideIgnoredChange(false)}+ />+ )}{dateLabel && (<FilterChipicon={<CalendarIcon size={12} />}diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.tsindex b350fe4c..68d382ac 100644--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@ -455,6 +455,7 @@ export const transactions = {include_opening_balance?: booleanexclude_transfers?: booleanuser_pnl_only?: boolean+ exclude_ignored?: booleantags?: string[]min_amount?: numbermax_amount?: number@@ -646,6 +647,7 @@ export const transactions = {to?: stringq?: stringtags?: string[]+ exclude_ignored?: booleantransaction_ids?: string[]}): Promise<void> => {const { data } = await api.get('/transactions/export', {diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.jsonindex d950b5e3..0e5b3fc7 100644--- a/frontend/src/locales/de.json+++ b/frontend/src/locales/de.json@@ -375,6 +375,11 @@"typeIncome": "Einnahme","statusPending": "Ausstehend","statusPosted": "Gebucht",+ "hideIgnored": "Ignorierte ausblenden",+ "ignoredRows": "Ignorierte Transaktionen",+ "ignoredShow": "Anzeigen",+ "ignoredHide": "Ausblenden",+ "ignoredHiddenValue": "Ausgeblendet","statusCleared": "Abgewickelt","sortAsc": "Aufsteigend sortieren","sortDesc": "Absteigend sortieren",diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.jsonindex da99eb85..7ef7c1ec 100644--- a/frontend/src/locales/en.json+++ b/frontend/src/locales/en.json@@ -375,6 +375,11 @@"typeIncome": "Income","statusPending": "Pending","statusPosted": "Posted",+ "hideIgnored": "Hide ignored",+ "ignoredRows": "Ignored transactions",+ "ignoredShow": "Show",+ "ignoredHide": "Hide",+ "ignoredHiddenValue": "Hidden","statusCleared": "Cleared","sortAsc": "Sort ascending","sortDesc": "Sort descending",diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.jsonindex d902daea..de065b42 100644--- a/frontend/src/locales/es.json+++ b/frontend/src/locales/es.json@@ -375,6 +375,11 @@"typeIncome": "Ingreso","statusPending": "Pendiente","statusPosted": "Registrada",+ "hideIgnored": "Ocultar ignoradas",+ "ignoredRows": "Transacciones ignoradas",+ "ignoredShow": "Mostrar",+ "ignoredHide": "Ocultar",+ "ignoredHiddenValue": "Ocultas","statusCleared": "Conciliada","sortAsc": "Orden ascendente","sortDesc": "Orden descendente",diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.jsonindex 65bd3164..048d1d6a 100644--- a/frontend/src/locales/fr.json+++ b/frontend/src/locales/fr.json@@ -375,6 +375,11 @@"typeIncome": "Revenu","statusPending": "En attente","statusPosted": "Comptabilisée",+ "hideIgnored": "Masquer les ignorées",+ "ignoredRows": "Transactions ignorées",+ "ignoredShow": "Afficher",+ "ignoredHide": "Masquer",+ "ignoredHiddenValue": "Masquées","statusCleared": "Rapprochée","sortAsc": "Trier par ordre croissant","sortDesc": "Trier par ordre décroissant",diff --git a/frontend/src/locales/it.json b/frontend/src/locales/it.jsonindex 5adcb1b1..094a3ad9 100644--- a/frontend/src/locales/it.json+++ b/frontend/src/locales/it.json@@ -375,6 +375,11 @@"typeIncome": "Entrata","statusPending": "In sospeso","statusPosted": "Registrata",+ "hideIgnored": "Nascondi ignorate",+ "ignoredRows": "Transazioni ignorate",+ "ignoredShow": "Mostra",+ "ignoredHide": "Nascondi",+ "ignoredHiddenValue": "Nascoste","statusCleared": "Contabilizzata","sortAsc": "Ordine crescente","sortDesc": "Ordine decrescente",diff --git a/frontend/src/locales/pl.json b/frontend/src/locales/pl.jsonindex cc713ad9..b9f18791 100644--- a/frontend/src/locales/pl.json+++ b/frontend/src/locales/pl.json@@ -384,6 +384,11 @@"typeIncome": "Przychód","statusPending": "Oczekująca","statusPosted": "Zaksięgowana",+ "hideIgnored": "Ukryj ignorowane",+ "ignoredRows": "Ignorowane transakcje",+ "ignoredShow": "Pokaż",+ "ignoredHide": "Ukryj",+ "ignoredHiddenValue": "Ukryte","statusCleared": "Rozliczona","sortAsc": "Sortuj rosnąco","sortDesc": "Sortuj malejąco",diff --git a/frontend/src/locales/pt-BR.json b/frontend/src/locales/pt-BR.jsonindex a5f0eb52..a475ae30 100644--- a/frontend/src/locales/pt-BR.json+++ b/frontend/src/locales/pt-BR.json@@ -375,6 +375,11 @@"typeIncome": "Receita","statusPending": "Pendente","statusPosted": "Lançada",+ "hideIgnored": "Ocultar ignoradas",+ "ignoredRows": "Transações ignoradas",+ "ignoredShow": "Mostrar",+ "ignoredHide": "Ocultar",+ "ignoredHiddenValue": "Ocultas","statusCleared": "Compensada","sortAsc": "Ordem crescente","sortDesc": "Ordem decrescente",diff --git a/frontend/src/locales/pt-PT.json b/frontend/src/locales/pt-PT.jsonindex 78f30211..10474cf3 100644--- a/frontend/src/locales/pt-PT.json+++ b/frontend/src/locales/pt-PT.json@@ -375,6 +375,11 @@"typeIncome": "Receita","statusPending": "Pendente","statusPosted": "Lançada",+ "hideIgnored": "Ocultar ignoradas",+ "ignoredRows": "Transações ignoradas",+ "ignoredShow": "Mostrar",+ "ignoredHide": "Ocultar",+ "ignoredHiddenValue": "Ocultas","statusCleared": "Compensada","sortAsc": "Ordem crescente","sortDesc": "Ordem decrescente",diff --git a/frontend/src/locales/ru.json b/frontend/src/locales/ru.jsonindex 0d2ac708..42c1a7d9 100644--- a/frontend/src/locales/ru.json+++ b/frontend/src/locales/ru.json@@ -375,6 +375,11 @@"typeIncome": "Приход","statusPending": "Ожидается","statusPosted": "Проведена",+ "hideIgnored": "Скрыть игнорируемые",+ "ignoredRows": "Игнорируемые транзакции",+ "ignoredShow": "Показывать",+ "ignoredHide": "Скрывать",+ "ignoredHiddenValue": "Скрыты","statusCleared": "Проведена","sortAsc": "Сортировка по возрастанию","sortDesc": "Сортировка по убыванию",diff --git a/frontend/src/locales/uk.json b/frontend/src/locales/uk.jsonindex 4764f84e..2e452f0c 100644--- a/frontend/src/locales/uk.json+++ b/frontend/src/locales/uk.json@@ -375,6 +375,11 @@"typeIncome": "Надходження","statusPending": "Очікується","statusPosted": "Проведена",+ "hideIgnored": "Приховати ігноровані",+ "ignoredRows": "Ігноровані транзакції",+ "ignoredShow": "Показувати",+ "ignoredHide": "Приховувати",+ "ignoredHiddenValue": "Приховані","statusCleared": "Проведена","sortAsc": "Сортування за зростанням","sortDesc": "Сортування за спаданням",diff --git a/frontend/src/pages/transactions.tsx b/frontend/src/pages/transactions.tsxindex 01d128ee..d999dbaf 100644--- a/frontend/src/pages/transactions.tsx+++ b/frontend/src/pages/transactions.tsx@@ -78,6 +78,8 @@ function parseHashtags(notes: string | null): string[] {return matches ?? []}+const HIDE_IGNORED_STORAGE_KEY = 'securo.transactions.hideIgnored'+export default function TransactionsPage() {const { t, i18n } = useTranslation()const [searchParams] = useSearchParams()@@ -150,6 +152,18 @@ export default function TransactionsPage() {const [filterGroupId, setFilterGroupId] = useState<string>(searchParams.get('group_id') ?? '')const [filterType, setFilterType] = useState<string>(searchParams.get('type') ?? '')const [filterStatus, setFilterStatus] = useState<string>(searchParams.get('status') ?? '')+ // Hiding ignored rows is a reading preference, not a query someone re-picks+ // every visit, so it outlives the page the way page size and columns do. The+ // URL still wins when present, so a shared link shows what its sender saw.+ const [hideIgnored, setHideIgnored] = useState<boolean>(() => {+ const fromUrl = searchParams.get('hide_ignored')+ if (fromUrl !== null) return fromUrl === 'true'+ try {+ return localStorage.getItem(HIDE_IGNORED_STORAGE_KEY) === 'true'+ } catch {+ return false+ }+ })const [filterMinAmount, setFilterMinAmount] = useState<string>(searchParams.get('min_amount') ?? '')const [filterMaxAmount, setFilterMaxAmount] = useState<string>(searchParams.get('max_amount') ?? '')const [tagFilters, setTagFilters] = useState<string[]>([])@@ -228,6 +242,8 @@ export default function TransactionsPage() {setFilterGroupId(searchParams.get('group_id') ?? '')setFilterType(searchParams.get('type') ?? '')setFilterStatus(searchParams.get('status') ?? '')+ const urlHideIgnored = searchParams.get('hide_ignored')+ if (urlHideIgnored !== null) setHideIgnored(urlHideIgnored === 'true')const categories = searchParams.get('category_id');setFilterCategoryIds(categories ? categories.split(',') : []);setFilterUncategorized(searchParams.get('uncategorized') === '1');@@ -270,6 +286,7 @@ export default function TransactionsPage() {['to', filterTo],['min_amount', filterMinAmount],['max_amount', filterMaxAmount],+ ['hide_ignored', hideIgnored ? 'true' : ''],].filter(([, v]) => v.length),);@@ -294,6 +311,7 @@ export default function TransactionsPage() {filterTo,filterMinAmount,filterMaxAmount,+ hideIgnored,]);useEffect(() => {@@ -360,7 +378,7 @@ export default function TransactionsPage() {&& activeAccountIds !== null && activeAccountIds.length === 0const { data, isLoading } = useQuery({- queryKey: ['transactions', page, limit, effectiveAccountIds, filterCategoryIds, filterUncategorized, filterPayee, filterGroupId, filterType, filterStatus, filterFrom, filterTo, filterMinAmount, filterMaxAmount, searchQuery, tagFilters, isMobile ? 'date' : grid.sortBy, isMobile ? 'desc' : grid.sortDir],+ queryKey: ['transactions', page, limit, effectiveAccountIds, filterCategoryIds, filterUncategorized, filterPayee, filterGroupId, filterType, filterStatus, filterFrom, filterTo, filterMinAmount, filterMaxAmount, hideIgnored, searchQuery, tagFilters, isMobile ? 'date' : grid.sortBy, isMobile ? 'desc' : grid.sortDir],enabled: !noAccounts,queryFn: () =>transactions.list({@@ -379,6 +397,7 @@ export default function TransactionsPage() {max_amount: filterMaxAmount ? Number(filterMaxAmount) : undefined,q: searchQuery || undefined,tags: tagFilters.length > 0 ? tagFilters : undefined,+ exclude_ignored: hideIgnored ? true : undefined,// Mobile has no column headers to change sort; force date-desc so// the date grouping always works correctly....(isMobile ? { sort_by: 'date', sort_dir: 'desc' as const } : grid.apiSort),@@ -913,6 +932,16 @@ export default function TransactionsPage() {}}+ const handleHideIgnoredChange = (next: boolean) => {+ setHideIgnored(next)+ setPage(1)+ try {+ localStorage.setItem(HIDE_IGNORED_STORAGE_KEY, String(next))+ } catch {+ // Private mode or a full quota: the filter still applies for this visit.+ }+ }+const handleExport = async () => {setExporting(true)try {@@ -932,6 +961,7 @@ export default function TransactionsPage() {to: filterTo || undefined,q: searchQuery || undefined,tags: tagFilters.length > 0 ? tagFilters : undefined,+ exclude_ignored: hideIgnored ? true : undefined,})}toast.success(t('transactions.exportSuccess'))@@ -1339,6 +1369,8 @@ export default function TransactionsPage() {onTypeChange={(v) => { setFilterType(v); setPage(1) }}filterStatus={filterStatus}onStatusChange={(v) => { setFilterStatus(v); setPage(1) }}+ hideIgnored={hideIgnored}+ onHideIgnoredChange={handleHideIgnoredChange}filterFrom={filterFrom}filterTo={filterTo}onDateRangeChange={(from, to) => { setFilterFrom(from); setFilterTo(to); setPage(1) }}@@ -1357,6 +1389,7 @@ export default function TransactionsPage() {setFilterStatus('')setFilterMinAmount('')setFilterMaxAmount('')+ handleHideIgnoredChange(false)setSearchInput('')setSearchQuery('')clearTagFilters()