Documentation
¶
Overview ¶
Package report renders the stakeholder snapshot as a one-page PDF.
It computes nothing. Everything on the page comes from `internal/publish/snapshot.Snapshot` — the same document the stakeholder bundle publishes — so a figure in the PDF and the same figure in the web snapshot cannot disagree. The spend section is gated there, at build time, by `show_spend_to_stakeholder`; this package renders `Budget.Enabled` and has no opinion of its own about who may see it.
One page is a requirement, not a target: a report that spills onto a second page has stopped being the thing you glance at before a meeting. The layout leaves the milestone table the only section that grows, and caps it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Compress is fpdf's stream compression. On by default in the command —
// a compressed A4 page is a few kB — and OFF in tests, where the point is
// to read the text back out of the bytes without a decompressor.
Compress bool
// Now dates the footer's freshness line. Zero means the snapshot's own
// GeneratedAt is the only date on the page.
Now time.Time
}
Options tunes the rendering.