Simpl-Resultat/src
le king fu 37b832e084
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 1m46s
fix(import): stop a generic bank signature from claiming, and misreading, a richer file
Review finding on #330, two defects with one root cause.

Desjardins' fingerprint is date/description/montant/solde — four labels any
Canadian bank could emit — and MIN_SIGNATURE_LABELS = 4 did not deliver the
property it promised, because matching was by SUBSET. Any
Date;Description;Montant;Solde file was announced 'Format Desjardins reconnu'.
A variant built only from generic labels must now describe the header exactly;
one carrying a discriminating label (chequenumber, categorie, memo) keeps
subset matching, so extra columns stay fine once something identifies the bank.

Worse, a matched signature's single amount column short-circuited the
sparse-complementary scan instead of being arbitrated against it. A
Date;Description;Debit;Credit;Montant;Solde file reads correctly as debit/credit
before #330 and became one unsigned column after, importing every deposit as an
expense. The scan now runs first; a signature's amount column only wins when the
pair contains it — which is what RBC's genuine Cheque Number / CAD$ case needs,
and it still passes.

Refs #330

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 12:03:07 -04:00
..
__fixtures__ feat(import): recognise known bank layouts and report format drift 2026-08-13 14:54:46 -04:00
__integration__ fix(import): persist the import format and restore it faithfully 2026-08-13 13:16:52 -04:00
components fix(export): preserve import sources and templates across data export/import 2026-08-14 10:58:52 -04:00
contexts fix(gating): keep key-validation errors out of the load lifecycle (#297) 2026-07-20 21:21:18 -04:00
data feat(categories): add v1 IPC seed, i18n keys, and migration v8 (#115) 2026-04-19 16:41:55 -04:00
hooks fix(export): preserve import sources and templates across data export/import 2026-08-14 10:58:52 -04:00
i18n docs: architecture, ADR 0019, user guide and changelog for the import format 2026-08-14 11:13:25 -04:00
pages feat(import): recognise known bank layouts and report format drift 2026-08-13 14:54:46 -04:00
services fix(export): preserve import sources and templates across data export/import 2026-08-14 10:58:52 -04:00
shared fix(import): persist the import format and restore it faithfully 2026-08-13 13:16:52 -04:00
utils fix(import): stop a generic bank signature from claiming, and misreading, a richer file 2026-08-14 12:03:07 -04:00
App.tsx feat(gating): gate routes and Sidebar for budget, advanced reports, balance 2026-07-20 22:12:51 -04:00
main.tsx feat(gating): license provider + entitlements matrix + useEntitlement (#297) 2026-07-19 21:05:10 -04:00
styles.css feat(categories): add categories standard guide page (#117) 2026-04-20 21:02:38 -04:00
vite-env.d.ts Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00