Simpl-Resultat/src/hooks
le king fu ce25ddc191 feat: open the Reports on « Cette année » and let « Tout » reach every date (#479)
Without any period in the URL, the Reports opened on the whole calendar
year (January 1st to December 31st, months to come included) under the
« Personnalisé » button. They now open on « Cette année », the year to
date (January 1st to today), as the Dashboard does, with its button lit
(decision 1 of Max, 2026-10-20). « Tout » showed the current calendar
year too: resolveReportsPeriod replaced its empty range by that year.
It now leaves `from` and `to` absent, and the services add no date
clause (decision 2).

- computeDateRange takes `today` as a last optional parameter (default:
  the current day); no existing caller changes, the Dashboard included.
- resolveReportsPeriod: a bookmark with two valid dates is kept as it
  is; a valid preset other than `custom` gets its range for `today`
  (`all`: none); anything else (no parameter, an invalid period,
  `custom` without two valid dates) falls back to « Cette année ».
  currentYearRange is gone; `from` and `to` are optional in
  UseReportsPeriodResult.
- getCategoryZoom takes optional bounds: its four queries skip a bound
  bound to NULL, `($2 IS NULL OR t.date >= $2) AND ($3 IS NULL OR
  t.date <= $3)`, with the same parameters in the same order
  ([id, from ?? null, to ?? null]). In the per-child query the
  condition stays in the LEFT JOIN's ON, so a subcategory without any
  transaction in the period keeps its row (total 0).
- useTrends and useCategoryZoom pass absent bounds through.
- useCompare: syncReferenceOnPeriodChange takes an absent `to`; on
  « Tout » the reference month shown does not move, and a later switch
  to a dated period syncs it to the end of that period (decision of
  Max, 2026-10-27). The ref is typed `string | undefined`, so a direct
  opening on ?period=all works.
- Texts fixed by Max (2026-10-27): reports.help.tips[2] and
  reports.hub.trendsDescription, FR and EN, no longer say "12 months":
  Trends follows the period selector.

Tests: the default, a custom bookmark, `custom` without dates, a preset
and `all` resolved for a fixed day; computeDateRange with `today`;
getCategoryZoom without bounds ([42, null, null] in every query, no
bare date condition), with bounds, and the per-child bounds in the ON;
the sync on « Tout »; wiring tests (src/test/hookHarness.ts) of
useCompare (mount on « Cette année » or « Tout », « Tout » then a dated
period, a user-picked month kept), useTrends (both views) and
useCategoryZoom (absent bounds reach the service).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 23:04:27 -04: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 feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -04:00
useCategoryZoom.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
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.ts fix(export): preserve import sources and templates across data export/import 2026-08-14 10:58:52 -04:00
useDataImport.ts fix(export): preserve import sources and templates across data export/import 2026-08-14 10:58:52 -04: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.ts feat: 12-month budget grid, import UX improvements, confirmation dialogs (v0.2.4) 2026-02-14 12:59:11 +00: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 feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -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