Simpl-Resultat/src
le king fu 36c04ad6b8 fix: a split's offset line takes its parent's manual flag (#454)
`autoCategorizeTransactions` picks every row without a category whose
`is_manually_categorized` is 0, the children of a split included. The
offset line kept the flag 0 whatever its parent's, so a split parent set
to « Aucune catégorie » by hand lost its offset line to « Catégoriser
automatiquement »: the keyword of the parent's description sent it alone
to its category. With −120 « EPICERIE METRO » split as −50 to B, then set
to no category, the totals went from NULL −70 and B −50 to 1111 +50,
B −50 and NULL −120 (scenario R-S3 of the review of PR #515).

- propagateCategoryToOffsets reads the parent's flag, after the caller's
  UPDATE of the parent, and writes it on the offset line with its
  category, through toSqlFlag (a base written before #390 may hold the
  TEXT 'true').
- saveSplitAdjustment gives the offset line its parent's flag when it
  writes the split, so a split made under a parent categorized, or set to
  no category, by hand does not lose it either. The entries keep the
  column's default, 0.

Tests: a scenario test on a real SQLite database (node:sqlite, the schema
of a new profile with its seed, foreign keys on, the real services
through an adapter local to the file), unit tests of both copies (flag 1,
flag 0 and the TEXT 'true'), and the tests that pinned the offset line's
UPDATE and, since #513, its INSERT, which change on purpose.

Refs #454

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:36:55 -04:00
..
__fixtures__ feat(onboarding): create_sample_import_folders command, sample CSV templates and detection test (#354) 2026-10-03 19:50:41 -04:00
__integration__ fix: a split's offset line takes its parent's manual flag (#454) 2026-10-28 21:36:55 -04:00
components fix: a split's offset line follows its parent when it is recategorized (#454) 2026-10-27 22:13:08 -04:00
contexts feat(onboarding): visit steps, eight rows, "Got it" and one-time initialization 2026-10-13 21:32:20 -04:00
data feat(categories): add v1 IPC seed, i18n keys, and migration v8 (#115) 2026-04-19 16:41:55 -04:00
hooks test: fix the day of the Reports period tests in local time (#479) 2026-10-27 23:13:07 -04:00
i18n feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
pages test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
services fix: a split's offset line takes its parent's manual flag (#454) 2026-10-28 21:36:55 -04:00
shared docs(release): name what the step-0 commands cannot see (#466) 2026-10-24 23:42:19 -04:00
test test: share texts and move the last local find copies onto src/test/elementTree.ts (#495) 2026-10-26 20:12:04 -04:00
utils feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
App.tsx fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
main.tsx fix: replace the home and profile folders exactly in the Journal (#497) 2026-10-26 21:24:35 -04:00
styles.contrast.test.ts fix(onboarding): give the focus ring back to the highlighted control 2026-10-08 21:05:30 -04:00
styles.css fix(onboarding): give the focus ring back to the highlighted control 2026-10-08 21:05:30 -04:00
vite-env.d.ts Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00