make_pdf: plan-review layout (numbered steps, notes margin, id/version footer) #108

Merged
jfro merged 1 commit from feat-102-review-layout into main 2026-11-27 19:59:24 +00:00
Owner

What changed

PR #108 adds a plan-review template for make_pdf (numbered headings 1/1a and steps, a 60 mm dot-grid notes margin, a "plan-xyz v2 · p3/5" footer on every page); red-then-green test C10, CI green C11, full suite passes locally, and I checked a rendered page by eye.

Fixes #102

Red, then green

  • make_pdf has a plan-review template: headings numbered 1, 1a, 1b, 2 and steps 1., every footer reads "plan-xyz v2 · pN/M", no printed word reaches the 60 mm right margin, and the margin carries a dot grid.: bash -c 'source ~/.rmenv && eval "$(mise activate bash --shims)" && mix test test/rm_analyzer/reports_test.exs'
    • fails on the base (d14a89b): exit 1
    • passes on the branch (2e07875): exit 0

Checks

  • CI on PR #108's head (2e07875) passed (unused-deps check, warnings-as-errors compile, format, full mix test), and mix precommit passed locally with 1601 tests. (Upper Wolfjaw): bash -c 's=$(curl -s -H "Authorization: token $FORGEJO_TOKEN" https://git.knope.dev/api/v1/repos/jfro/rm-analyzer/commits/$(git rev-parse HEAD)/status | jq -r .state); echo "CI: $s"; [ "$s" = success ]', exit 0
  • Reviewed the diff, reran the reports tests (18 pass), and tried edge inputs (no plan_id, empty or "V3" version, special characters, numeric version, very long id): all handled, only a very long id wraps the footer. Real tablet screens untested. (Prover): bash -c 'source ~/.rmenv && eval "$(mise activate bash --shims)" && mix test test/rm_analyzer/reports_test.exs', exit 0

Shipping it

  • Goes live when it merges: no. Merging to main only runs CI; images are built from v* tags by Jeremy's own release run.
  • Undo: a revert puts it back.
  • Not tried on the real thing: Viewing it on the real tablet: checked on a rendered PNG only, not on an rM2 screen with the toolbar shown.
  • For later: On the Paper Pro Move the margin is capped at 38% of the page (about 35 mm), leaving a narrow text column. Margins aren't exposed in the make_pdf schema generally (the issue's optional item). The version isn't bumped automatically when make_pdf replaces_document_id sends v2 (from #103); the agent passes it.

Prover

Passed (Sonnet): Reviewed the diff, reran the reports tests (18 pass), and tried edge inputs (no plan_id, empty or "V3" version, special characters, numeric version, very long id): all handled, only a very long id wraps the footer. Real tablet screens untested.

Every command above was run by Fortysix's Basecamp itself, on the branch named.

## What changed PR #108 adds a plan-review template for make_pdf (numbered headings 1/1a and steps, a 60 mm dot-grid notes margin, a "plan-xyz v2 · p3/5" footer on every page); red-then-green test C10, CI green C11, full suite passes locally, and I checked a rendered page by eye. Fixes #102 ## Red, then green - make_pdf has a plan-review template: headings numbered 1, 1a, 1b, 2 and steps 1., every footer reads "plan-xyz v2 · pN/M", no printed word reaches the 60 mm right margin, and the margin carries a dot grid.: `bash -c 'source ~/.rmenv && eval "$(mise activate bash --shims)" && mix test test/rm_analyzer/reports_test.exs'` - fails on the base (d14a89b): exit 1 - passes on the branch (2e07875): exit 0 ## Checks - CI on PR #108's head (2e07875) passed (unused-deps check, warnings-as-errors compile, format, full mix test), and mix precommit passed locally with 1601 tests. (Upper Wolfjaw): `bash -c 's=$(curl -s -H "Authorization: token $FORGEJO_TOKEN" https://git.knope.dev/api/v1/repos/jfro/rm-analyzer/commits/$(git rev-parse HEAD)/status | jq -r .state); echo "CI: $s"; [ "$s" = success ]'`, exit 0 - Reviewed the diff, reran the reports tests (18 pass), and tried edge inputs (no plan_id, empty or "V3" version, special characters, numeric version, very long id): all handled, only a very long id wraps the footer. Real tablet screens untested. (Prover): `bash -c 'source ~/.rmenv && eval "$(mise activate bash --shims)" && mix test test/rm_analyzer/reports_test.exs'`, exit 0 ## Shipping it - Goes live when it merges: no. Merging to main only runs CI; images are built from v* tags by Jeremy's own release run. - Undo: a revert puts it back. - Not tried on the real thing: Viewing it on the real tablet: checked on a rendered PNG only, not on an rM2 screen with the toolbar shown. - For later: On the Paper Pro Move the margin is capped at 38% of the page (about 35 mm), leaving a narrow text column. Margins aren't exposed in the make_pdf schema generally (the issue's optional item). The version isn't bumped automatically when make_pdf replaces_document_id sends v2 (from #103); the agent passes it. ## Prover Passed (Sonnet): Reviewed the diff, reran the reports tests (18 pass), and tried edge inputs (no plan_id, empty or "V3" version, special characters, numeric version, very long id): all handled, only a very long id wraps the footer. Real tablet screens untested. Every command above was run by Fortysix's Basecamp itself, on the branch named.
jfro merged commit 9b1d8cb133 into main 2026-11-27 19:59:24 +00:00
jfro deleted branch feat-102-review-layout 2026-11-27 19:59:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer!108
No description provided.