Simpl-Resultat/src/pages
le king fu 0e996a5aa1 feat(transactions): inline transfer icon + FK error message
Issue #142 / Bilan #4 — non-regressive transfer awareness in the
transactions table + clean error mapping on bulk delete.

- `TransactionTable.tsx`: optional new prop
  `linkedTransfersByTxId?: Map<txId, links[]>`. When supplied, a small
  `<Link2>` icon appears next to the description for every linked
  transaction; tooltip lists the account name(s) and direction(s).
  Without the prop, the table renders byte-for-byte identical to
  before — preserves the spec's non-regression invariant.
- `TransactionsPage.tsx`: loads the linked-transfers map once on mount
  via `listAllLinkedTransfersForTooltip()` (one batch SELECT) and
  threads it through to the table. Failure to load the map degrades
  gracefully to an empty map (icon simply doesn't appear).
- `transactionService.ts`: new `deleteTransaction(id)` helper +
  `TransactionLinkedToBalanceError` (typed FK guard). Pre-checks
  `balance_account_transfers` before attempting the DELETE so the
  error carries the offending account names; falls back to the FK
  pattern matcher if a race linked the transaction between the
  SELECT and the DELETE.
- `importedFileService.ts`: both bulk delete paths
  (`deleteImportWithTransactions`, `deleteAllImportsWithTransactions`)
  now pre-check for any linked transfer and surface the same typed
  error before they would explode on FK RESTRICT. The pre-check has
  a `LIMIT 50` safety cap on the global path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 16:38:46 -04:00
..
AccountsPage.tsx feat(balance): improve category deletion UX with linked-accounts message 2026-04-25 15:01:44 -04:00
AdjustmentsPage.tsx fix: improve split indicator visibility and adjustments layout 2026-02-17 02:01:15 +00:00
BalancePage.tsx feat(balance): add LinkTransfersModal + return columns in accounts table 2026-04-25 16:38:24 -04:00
BudgetPage.tsx feat: 12-month budget grid, import UX improvements, confirmation dialogs (v0.2.4) 2026-02-14 12:59:11 +00:00
CategoriesMigrationPage.tsx feat(categories): add 3-step migration page + categoryMigrationService (#121) 2026-04-20 21:31:21 -04:00
CategoriesPage.tsx Bump version to 0.6.2 — Section subtotals and category detail fix 2026-03-06 16:22:36 -05:00
CategoriesStandardGuidePage.tsx feat(categories): add categories standard guide page (#117) 2026-04-20 21:02:38 -04:00
ChangelogPage.tsx Add bilingual changelog page and file-based release notes 2026-03-05 14:58:54 -05:00
DashboardPage.tsx feat(categories): add dashboard v1 discovery banner (#118) 2026-04-20 21:11:56 -04:00
DocsPage.tsx docs: update changelog, user guide, and docs page for v0.3.x features 2026-02-19 07:40:00 -05:00
ImportPage.tsx feat: persist template selection and add update template button 2026-02-15 13:16:55 +00:00
ProfileSelectionPage.tsx fix: wrap rehash updateProfile in try/catch for best-effort (#54) 2026-04-09 15:46:27 -04:00
ReportsCartesPage.tsx feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
ReportsCategoryPage.tsx feat: category zoom + secure AddKeywordDialog with context menu (#74) 2026-04-14 15:09:17 -04:00
ReportsComparePage.tsx feat(reports/compare): 8-column table with monthly + cumulative YTD blocks (#104) 2026-04-18 21:17:32 -04:00
ReportsHighlightsPage.tsx feat(reports/highlights): default reference month to previous month + YTD current year, user-changeable (#106) 2026-04-19 08:28:30 -04:00
ReportsPage.tsx feat(reports/cartes): new KPI dashboard sub-report with sparklines, top movers, budget adherence and seasonality (#97) 2026-04-15 19:44:58 -04:00
ReportsTrendsPage.tsx feat(reports/trends): add stacked-area chart option for category view (#105) 2026-04-19 07:23:49 -04:00
SettingsPage.tsx feat(categories): add categories standard guide page (#117) 2026-04-20 21:02:38 -04:00
SnapshotEditPage.tsx feat(balance): support priced kind in AccountForm + SnapshotLineRow 2026-04-25 15:01:38 -04:00
TransactionsPage.tsx feat(transactions): inline transfer icon + FK error message 2026-04-25 16:38:46 -04:00