Simpl-Resultat/src
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
..
__fixtures__ feat(onboarding): create_sample_import_folders command, sample CSV templates and detection test (#354) 2026-10-03 19:50:41 -04:00
__integration__ test: correct the seed priority comment of the onboarding samples test (#384) 2026-10-18 20:30:42 -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 feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -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 feat: open the Reports on « Cette année » and let « Tout » reach every date (#479) 2026-10-27 23:04:27 -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