Simpl-Resultat/src/hooks
le king fu 1a44788f07
All checks were successful
PR Check — Frontend / frontend (pull_request) Successful in 3m16s
fix(reports): open the category zoom on the clicked card category, fill its left box
The category zoom now reads the zoomed category from the `cat` query param
written by the report cards' links, and writes it back (replace) when the
selection changes, so a click on a card opens the zoom on that category and
the selector and the URL always agree. Data read for another category is
never shown.

getCategoryZoom sums each direct child over its whole subtree (bounded
recursive CTE), so the donut of a first-level category shows its
subcategories instead of nothing, and returns the key figures of the
period's transactions (count, average, largest, smallest), oriented like the
total and computed in SQL over every row, a split transaction counting once
for its net in the scope. When the donut has no part to draw (a leaf, the
subcategories left out), the box beside the evolution chart shows those
figures; "No data" only when there is no transaction.

test: reproduces #548 (hook mounted on ?cat=, level-1 parts on real SQLite,
leaf metrics, render of the box)

Fixes #548

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 17:13:43 -05:00
..
useAdjustments.test.ts feat: pick an adjustment line's category in a combobox (#429) 2026-10-18 18:34:49 -04:00
useAdjustments.ts feat: pick an adjustment line's category in a combobox (#429) 2026-10-18 18:34:49 -04:00
useAuth.ts feat: Maximus Account OAuth2 PKCE + machine activation + subscription check (#51, #53) 2026-04-10 14:18:51 -04:00
useBalanceAccounts.ts feat(balance): account form vehicle field + category rename via custom_label (#203) 2026-06-01 20:50:40 -04:00
useBalanceOverview.test.ts feat(balance): add useBalanceOverview hook 2026-04-25 16:06:38 -04:00
useBalanceOverview.ts feat(balance): per-security drill-down + latent gain in accounts table (#216) 2026-06-06 13:49:57 -04:00
useBudget.test.ts test(categories): pin the rules the review of #393 left green (#393) 2026-10-19 20:59:07 -04:00
useBudget.ts fix(transactions): show the import-first card on the count alone (#384) 2026-10-18 20:30:42 -04:00
useBudget.wiring.test.ts fix(transactions): show the import-first card on the count alone (#384) 2026-10-18 20:30:42 -04:00
useCartes.test.ts feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
useCartes.ts feat(reports/cartes): Mensuel/YTD toggle on KPI cards + user guide section (#102) 2026-04-19 09:49:21 -04:00
useCategories.test.ts test(categories): a failed re-read of the categories shows in the window (#393) 2026-10-20 20:15:05 -04:00
useCategories.ts fix(categories): a reattachment keeps a form open behind the window (#393) 2026-10-20 19:41:17 -04:00
useCategoryMigration.test.ts feat(categories): merge custom categories into the standard taxonomy (#259) 2026-07-19 19:43:47 +00:00
useCategoryMigration.ts feat(categories): merge custom categories into the standard taxonomy (#259) 2026-07-19 19:43:47 +00:00
useCategoryTaxonomy.ts feat(categories): add categoryTaxonomyService + useCategoryTaxonomy hook (#116) 2026-04-20 20:53:15 -04:00
useCategoryZoom.ts fix(reports): open the category zoom on the clicked card category, fill its left box 2026-11-15 17:13:43 -05:00
useCategoryZoom.wiring.test.ts fix(reports): open the category zoom on the clicked card category, fill its left box 2026-11-15 17:13:43 -05:00
useCollapsibleGroups.ts feat(reports): collapse category hierarchy at every level (socle + 3 reports) 2026-07-15 20:58:18 -04:00
useCompare.test.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useCompare.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useCompare.wiring.test.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useDashboard.ts feat(dashboard): converge home page on the Cartes report model 2026-07-11 17:13:23 -04:00
useDataExport.test.ts test: pin the export of each mode and a recurring adjustment in backups (#520) 2026-11-04 23:38:08 -05:00
useDataExport.ts fix: carry the budget in SREF backups and keep it on restore (#520) 2026-11-04 23:32:58 -05:00
useDataImport.test.ts fix: carry the budget in SREF backups and keep it on restore (#520) 2026-11-04 23:32:58 -05:00
useDataImport.ts fix: carry the budget in SREF backups and keep it on restore (#520) 2026-11-04 23:32:58 -05:00
useDialogFocus.test.ts feat: focus of the upsell windows and ProfileFormModal as a dialog (#494) 2026-10-26 20:45:19 -04:00
useDialogFocus.ts feat: focus of the upsell windows and ProfileFormModal as a dialog (#494) 2026-10-26 20:45:19 -04:00
useEntitlement.ts feat(gating): license provider + entitlements matrix + useEntitlement (#297) 2026-07-19 21:05:10 -04:00
useFeedback.test.ts feat: feedback hub widget in Settings Logs card (#67) 2026-04-17 14:36:26 +00:00
useFeedback.ts feat: feedback hub widget in Settings Logs card (#67) 2026-04-17 14:36:26 +00:00
useHighlights.test.ts feat(reports/highlights): default reference month to previous month + YTD current year, user-changeable (#106) 2026-04-19 08:28:30 -04:00
useHighlights.ts feat(reports/highlights): default reference month to previous month + YTD current year, user-changeable (#106) 2026-04-19 08:28:30 -04:00
useImportHistory.test.ts fix: unlink Balance transfers from the window and the import history (#522) 2026-11-08 20:05:12 -05:00
useImportHistory.ts fix: unlink Balance transfers from the window and the import history (#522) 2026-11-08 20:05:12 -05:00
useImportWizard.executeImport.test.ts fix(import): name a source after its subfolder, read-only 2026-10-13 21:05:46 -04:00
useImportWizard.mount.test.ts feat(import): warn about the CSV files placed directly in the import folder 2026-10-13 20:59:20 -04:00
useImportWizard.samples.test.ts fix(import): clear the error banner when the folder is read again (#384) 2026-10-19 21:09:01 -04:00
useImportWizard.test.ts test(import): the sample folder messages name the folder in both languages (#384) 2026-10-19 21:09:01 -04:00
useImportWizard.ts fix(import): clear the error banner when the folder is read again (#384) 2026-10-19 21:09:01 -04:00
useIsPremium.test.ts feat(license): online revocation check — a revoked key falls back to Free (#365) 2026-10-02 14:45:34 -04:00
useIsPremium.ts feat(gating): license provider + entitlements matrix + useEntitlement (#297) 2026-07-19 21:05:10 -04:00
useLicenseMachines.test.ts fix(dialogs): wait for the confirmation before deleting or removing the key 2026-10-18 14:29:17 -04:00
useLicenseMachines.ts fix(dialogs): wait for the confirmation before deleting or removing the key 2026-10-18 14:29:17 -04:00
useOnboardingChecklist.test.ts feat(onboarding): visit steps, eight rows, "Got it" and one-time initialization 2026-10-13 21:32:20 -04:00
useOnboardingChecklist.ts feat(onboarding): visit steps, eight rows, "Got it" and one-time initialization 2026-10-13 21:32:20 -04:00
useOnboardingChecklist.wiring.test.ts docs: name the slot-order dependency and the known test limits (#437) 2026-10-18 19:59:54 -04:00
useReportsPeriod.test.ts test: fix the day of the Reports period tests in local time (#479) 2026-10-27 23:13:07 -04:00
useReportsPeriod.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useSnapshotEditor.test.ts feat(balance): CSV import of holdings in detailed snapshot 2026-07-04 18:04:12 -04:00
useSnapshotEditor.ts fix(import): read amounts with an anchored parser and a real debit/credit rule 2026-08-13 13:37:06 -04:00
useTheme.ts feat: add dark mode with famille-website-inspired warm gray palette 2026-02-13 12:28:11 +00:00
useTransactions.test.ts fix(transactions): show the import-first card on the count alone (#384) 2026-10-18 20:30:42 -04:00
useTransactions.ts fix(transactions): show the import-first card on the count alone (#384) 2026-10-18 20:30:42 -04:00
useTransactions.wiring.test.ts fix(transactions): show the import-first card on the count alone (#384) 2026-10-18 20:30:42 -04:00
useTrends.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useTrends.wiring.test.ts feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useUpdater.ts feat: gate auto-updates behind license entitlement (#48) 2026-04-09 15:52:59 -04:00