Simpl-Resultat/src/components/categories-migration
le king fu 2314a64213 feat(categories): merge custom categories into the standard taxonomy (#259)
Custom categories with no standard match were shown as read-only text in
the migration wizard and force-parented under a catch-all bucket. They now
get the same inline target picker as seeded rows: picking a standard leaf
merges the custom category — its transactions, budgets, keywords and
suppliers are reassigned to the leaf — and deactivates it. Leaving a custom
unmapped keeps the previous behaviour and never blocks the wizard.

- Reducer: RESOLVE_ROW resolves rows in both plan.rows and plan.preserved;
  the Next-button guard still counts seeded rows only.
- Writer: the rewrite mapping now includes resolved preserved rows; the
  catch-all parent is created only when a custom is left unmerged; merged
  customs are deactivated instead of re-parented (shared isResolvedTarget
  helper across the three sites).
- UI: the preserved block renders MappingRow instead of plain text.
- i18n (FR/EN) + CHANGELOG (FR/EN).

Tests: reducer (resolve a preserved custom, guard unchanged, GO_NEXT still
proceeds) + writer (reassign to the chosen leaf, soft-delete, no empty
parent when all merged, orphan-free merge of a custom parent with an
unresolved child). 836 vitest green, tsc + vite build clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 19:43:47 +00:00
..
MappingRow.tsx polish(categories): honest doc + extract/test picker-options glue (#246 review) 2026-07-05 16:53:27 -04:00
migrationTargets.test.ts polish(categories): honest doc + extract/test picker-options glue (#246 review) 2026-07-05 16:53:27 -04:00
migrationTargets.ts polish(categories): honest doc + extract/test picker-options glue (#246 review) 2026-07-05 16:53:27 -04:00
StepConsent.tsx feat(categories): add 3-step migration page + categoryMigrationService (#121) 2026-04-20 21:31:21 -04:00
StepDiscover.tsx refactor(categories): unify both category trees' collapse state onto useCollapsibleGroups 2026-07-15 21:30:17 -04:00
StepSimulate.tsx feat(categories): merge custom categories into the standard taxonomy (#259) 2026-07-19 19:43:47 +00:00
TransactionPreviewPanel.tsx feat(categories): add 3-step migration page + categoryMigrationService (#121) 2026-04-20 21:31:21 -04:00