FEAT-758: Incohérence dans le calcul du nombre de repas recommandés par Noé

📃 TICKET NOTION 📃

Summary

  • Fixed phantom days-of-presence entries: the API was creating an extra empty entry (start:22h / end:22h same day); the slot filter now uses slot.end.isAfter(currentDayStart) instead of a day-diff comparison, so same-day end boundaries no longer leak into the next bucket.
  • Bulletproofed days-of-presence calc: added unit tests for computeDaysOfPresence pinning the process TZ to UTC and asserting bucketing by Europe/Paris midnight, per-day meal flags, and the rolled-up counter.
  • Timezone-aware dashboard: when the user's local timezone differs from Europe/Paris, the participant dashboard surfaces a warning so attendance day counts aren't misread.

Commits

  • 4a26156c feat: add warning if timezone differs so that people know when data is possibly incorrect.
  • 47593cef test(api): adding bulletproofing tests for the days of presence calculation.
  • 2ad18793 fix(front): days of presence were not properly created (one last entry was created at start:22h and end:22h of the same day, weird. Now preventing this with better boundary comparisons.
Edited by JulesLecuir

Merge request reports

Loading
Loading