diff --git a/.claude/memory/blockers.md b/.claude/memory/blockers.md index 82d16ffa..f4a3ef30 100644 --- a/.claude/memory/blockers.md +++ b/.claude/memory/blockers.md @@ -18,3 +18,12 @@ Status: resolved. 40-60 equine entries needed; source-cited from Merck Vet Manual, IMAIOS, PubMed, EVJ, WikiVet, LCAO. Client osteo will review post-scaffold. Status: open — Phase 2d. + +--- + +## BLK-003 | 2026-05-19 | Detail-popup zone clicks silently dropped + +Friction: clicks on head detail SVG zones did nothing. +Root: EditorRoute.onZoneClick looked up id in main-SVG bones map only → detail ids (point-*) undefined → early return. +Fix: parse detail SVG on detail open, store detailBones, fallback lookup `bones.get(id) ?? detailBones.get(id)`. +Status: resolved. diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index e1770632..22e41c37 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -10,3 +10,13 @@ Moved Horse.svg + Horse_head.svg to public/species/equine/. pnpm install + build + typecheck + tests passing. pnpm 11 used (corepack shim broken on host Node 20.20.0). - MVP scaffold+impl done. Editor flow works. PDF roundtrip green. Real SVG assets in repo. + +--- + +## 2026-05-19 + +Fixed 3 zone-interaction bugs (b9da4fa). Detail-popup clicks now resolved via detailBones map. +Spine zones (data-anno-special="vertebral-precision") auto-open VertebraPicker on click. +ObservationCard hides "Vertèbres…" button on non-special zones. +Parser reads data-anno-special; convention doc updated. +- BLK-003 resolved. LRN-004, LRN-005 captured. 91 tests green, lint clean, build OK. diff --git a/.claude/memory/learnings.md b/.claude/memory/learnings.md index f15c840a..007c0186 100644 --- a/.claude/memory/learnings.md +++ b/.claude/memory/learnings.md @@ -26,3 +26,19 @@ corepack shim on Node 20.20.0 throws ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING. Fix: install pnpm directly via get.pnpm.io/install.sh. Binary lands at ~/.local/share/pnpm/bin/pnpm. Apply: CI/dev envs without system pnpm. + +--- + +## LRN-004 | 2026-05-19 | SVG behavior hints via free-form data-anno-special + +Branch click handling on `data-anno-special` (free-form string), not on `data-anno-category`. +Why: category is free-form metadata (LRN follow-up to refactor BDR/cad94a4 chain); coupling logic to category re-introduces a closed enum and silently breaks when SVG author renames a slug. Hints stay opaque to parser, consumed only at use site. +Apply: any SVG-driven UI where authors add new annotation types regularly — use `data-anno-special` for behavior triggers, keep category for grouping/filters only. + +--- + +## LRN-005 | 2026-05-19 | Detail-popup needs its own bones map + +When a popup loads a separate SVG, its annotation ids are not in the parent's bones map. +Parse detail SVG on popup open and keep a `detailBones` map; fall back lookup `bones.get(id) ?? detailBones.get(id)` in shared click handler. +Apply: any nested/zoom-popup pattern where the child SVG has independent ids.