Skip to content
SprecherEast
Issue 1189

feat: Plan data: open dates and daily series for the activity graphs

Back to our plan
Done
enhancementfrontenduxpriority: medium

Summary

Give the plan page the numbers its new graphs need: a count of finished issues per day, the running total done, and how many were open at the end of each day, all computed on the site's calendar.

Details

Part of #1188; the chosen design is in its comments. The plan already carries each issue's close time. "Still open over time" also needs each issue's open time, so the GitHub reader adds createdAt and the plan carries it. Everything is plain, tested code in the roadmap module's domain/, with no page changes. Days are counted in the site timezone, a quiet day is zero (never a gap), and only issues the plan shows are counted, so screened and not-planned issues never appear. The series end today and run a fixed number of days (14 for the graphs, 28 for the overall map, 7 for a heat map of one mission or project). The week, month and year fallback is a later step; the existing step rule in domain/activity.ts is left alone. Per-mission and per-project one-week series come from the same function so a mission's picture and its projects' pictures always add up.

Acceptance criteria

  • Not done: The reader hands over createdAt for every issue, and the plan carries it (tests first, including a missing value).
  • Not done: A tested function returns finished-per-day, done-in-total and open-at-end-of-day series for the whole plan over N days, on the site calendar, across a late-evening close and a daylight-saving change.
  • Not done: The same function gives a one-week series for any group of issues (a mission or a project).
  • Not done: Not-planned and screened issues are never counted; an empty plan gives all zeros.
  • Not done: The roadmap note says how the series are counted, in the same PR.

Files likely touched

src/modules/roadmap/data/github.ts, src/modules/roadmap/domain/ (types, a new series file, tests), src/modules/roadmap/README.md

Must not touch

Pages, UI code, other modules, src/platform/.


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab