diff --git a/docs/plans/formatters.md b/docs/plans/formatters.md index cf641e6..eb6da19 100644 --- a/docs/plans/formatters.md +++ b/docs/plans/formatters.md @@ -1,12 +1,12 @@ # Plan: CP437 blocks, modules and ntfy printing -Status: **draft.** Phase 1 can start; the remaining open questions only affect phases 3-5. Nothing here is built yet. Each phase runs in its own session, briefed from its section. +Status: **phase 1 in progress.** Every design decision for phases 1-4 is made; the open questions left are an assumed default, config values, a calibration check and the second printer. Each phase runs in its own session, briefed from its section. ## Decisions (owner, 2026-11-29) - **ntfy server:** self-hosted at a public URL. The subscriber authenticates - with a token. Attachments come from a public host, so no safehttp - PrivateHosts exception is needed; drop it from phase 4. + with a token. Attachments come from a public host, so no private-network + exception in safehttp is needed. - **Which priorities print:** configurable per subscription (minimum priority, and whether priorities 1-2 print in the compact form). Default: all priorities, 1-2 compact. @@ -17,6 +17,21 @@ Status: **draft.** Phase 1 can start; the remaining open questions only affect p lines'). Footer time zone and format come from config, default local time and "02 Jan 15:04". +## Decisions (owner, 2026-11-30) + +- **Links:** every link prints as a QR code: the click URL and the view + actions, deduplicated, at most 3. `[ntfy.format] qr` defaults to "all". +- **Image attachments** print (`images = true`). +- **Edited messages** print again, marked "(updated)" (`updates = "print"`). +- **Paper budget:** 5 receipts per 10 minutes per subscription by default, + configurable; the rest fold into one digest receipt. Priority 5 always + prints. +- **Quiet hours:** wanted, as a morning digest, and part of phase 4. During + a configured window only priority 5 prints; everything else is held and + printed as one digest receipt when the window ends. Window, days and time + zone come from config (default 22:00-07:00 every day, local time); off + unless configured. + ## Overview FOUNDATION @@ -25,14 +40,14 @@ The plan starts from Design 1 (components): layout blocks inside the existing el - list in phase 2 Ideas taken from the other designs: - From Design 2 (templates): fit boxes, a hand-written markdown subset with no new dependency, a plain fallback receipt, a since=