diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index 00fc7214..db367645 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -56,3 +56,11 @@ Status: closed. pnpm@9 not available on host; corepack resolved 11.1.3. Package.json engine constraint set to >=9 for Docker (Docker uses corepack latest). Status: closed — deviation accepted. + +--- + +## BDR-008 | 2026-05-19 | PDF page layout — branded heading pattern + +Each PDF page leads with bold-uppercase accent eyebrow (size 9), Times 22 title, 2pt × 48pt accent rule under title. Section labels follow same eyebrow style (uppercase bold accent) above their values. Observation severity rendered as filled color-coded pill (sage / amber / red) next to the obs number. +Alts: plain text titles only — rejected (overlapped header rule + read unstyled). +Status: closed. diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index 4d237df9..f599d98f 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -23,3 +23,5 @@ Parser reads data-anno-special; convention doc updated. - VertebraPicker preselects region tab inferred from zone label (b3bd75d). +5 tests. - Hotfix: detailBones now accumulate across popup opens; merged allBones passed to ObservationList so detail-popup zone labels survive after modal close. - PDF rendering bugfix: titles cleared the header rule, zone-line wrap respects following blocks, non-selected zones hidden + data-anno-* stripped before raster, main SVG skipped when every zone lives in details. BLK-004, LRN-006, LRN-007 captured. +- PDF styling pass: eyebrow + Times 22 title + 2pt accent rule + uppercase accent section labels + color-coded severity pill (sage/amber/red). Eyebrow/title baseline gap raised to 27pt after first attempt still overlapped. BDR-008, LRN-008 captured. +- Commits this session: b9da4fa..d7ea99e (10 commits — bugfix + feat + hotfix + PDF styling). diff --git a/.claude/memory/learnings.md b/.claude/memory/learnings.md index 0d68a1bd..38a51148 100644 --- a/.claude/memory/learnings.md +++ b/.claude/memory/learnings.md @@ -57,3 +57,10 @@ Apply: any "screen → print" pipeline where the screen SVG has interaction laye pdf-lib's drawText({ maxWidth }) wraps the visible glyph run but the returned y is unchanged — caller must measure with widthOfTextAtSize and advance the cursor per wrapped line. Otherwise subsequent text blocks overlap the wrapped tail. Apply: any pdf-lib layout with variable-length user text. Always wrap explicitly + advance per line. + +--- + +## LRN-008 | 2026-05-19 | pdf-lib eyebrow + title vertical spacing + +Times-22 ascender ≈ 17pt. Eyebrow size-9 baseline above title baseline needs ≥22pt gap to clear the ascender + leave ≥6pt visual breathing. Header rule needs ≥30pt cushion below for a size-22 title (title baseline at height-120ish on A4). +Apply: any pdf-lib heading stack (eyebrow + title or chained headings). Compute from font.heightAtSize/widthOfTextAtSize, never eyeball pixel offsets.