Feature/treatment overlays #32

Merged
willemjan merged 2 commits from feature/treatment-overlays into feature/insulin-profile 2026-09-05 20:47:10 +00:00
2 Commits
Author SHA1 Message Date
willemjan a3d89c4d21 Merge pull request 'Redesign PDF report: landscape pages, headers/footers, icon, daily stats' (#31) from feature/pdf-report-redesign into feature/treatment-overlays
Reviewed-on: #31
2026-09-05 20:45:16 +00:00
willemjan f2c3f97b1f Redesign the PDF report: landscape pages, headers/footers, icon, daily stats
Every report section now gets its own landscape A4 page (or, for
Dagoverzicht, one page per day) via a GlucoseReportPDF(FPDF) subclass
with a real header (section title, report version, insulin/pump/sensor
type from new REPORT_* env vars) and footer (page number, generation
timestamp, Nightscout link) on every page, plus an original SVG icon
in the header — inspired by the LibreView AGP report.

New "Insulineprofiel" PDF section mirrors the dashboard page (basal
bar chart, ISF/carb-ratio segments, DIA). Each Dagoverzicht day now
draws the same basal/bolus/carb/target overlays as the interactive
charts (matplotlib port of the Plotly helpers from #30) plus a new
per-day stats block (reporting.daily_stats: avg/min/max glucose,
total/basal/bolus/SMB insulin, hypo/hyper counts and durations).

Builds on #29 (profile data) and #30 (overlay logic/colors).
2026-09-05 22:44:14 +02:00