Skip to content

v3.9.0 — consolidated PDF report (option 21) + binary REST report endpoints, suite 5,584 checks

Choose a tag to compare

@Abolfazlrwm Abolfazlrwm released this 23 Nov 10:57
· 2 commits to main since this release

The roadmap's next two steps landed together — one printable file for everything, and the reports on the wire.

Added

  • Consolidated PDF report (manager option 21) — reports/all_reports_YYYY-MM.pdf: a cover page (title, month, contents) plus one full page per report — monthly, loyalty, dashboard. The pages are embedded straight from the same png::render* functions the PNG files use, so file, image and screen can never drift apart. The writer is hand-rolled like everything else here: objects, xref, trailer — still zero dependencies, and the bytes are fully deterministic (no timestamps), which the suite pins.
  • Binary REST endpoints — GET /reports/monthly.png, /reports/loyalty.png, /reports/dashboard.png and /reports/all.pdf serve the very same rasters from memory (image/png / application/pdf), with the same 400/404 parameter discipline as the JSON routes.
  • Renderer refactor — Png now exposes render* builders + encodePng; TUI, PDF and REST share one code path per report.
  • 22 new suite checks (5,562 → 5,582... make that 5,584): PDF structure (4 pages, 3 embedded images, xref/trailer, byte determinism), invalid-month rejection, and every binary endpoint over the seeded fleet.

Suite: 5,584 checks, 0 failures · Try it: admin / manager123 → option 21, or curl -s -o dashboard.png "http://127.0.0.1:8080/reports/dashboard.png" after --serve.

Full changelog: https://github.com/Abolfazlrwm/Car-Rental-System/blob/main/CHANGELOG.md