Bastien Chanot
f5307ce61c
chore(memory): /close — BDR-016 + LRN-020 + BLK-002 resolve + journal 2026-05-21
...
- BDR-016: pathologies.json v2.0 — boolean source of truth, generic
vet description_fr purged, full 26-zone horse coverage.
- LRN-020: forward-compat Zod schema absorbs catalog version bump
zero-code (optional fields + boolean-driven logic since B0).
- BLK-002 resolved — catalog no longer empty (612 leaves > 40-60 target).
- journal entry 2026-05-21 logs the in-place v2.0 swap, the hyoïde
case alignment fix, and the doc refresh.
- TODO refreshed: Phase C item 1 (full horse.json) done,
PATHOLOGIES-FORMAT.md v2.0 refresh done, B4 PDF observationPage
marked partially done (scope_disclaimer footer still TBD).
2026-05-21 03:23:38 +02:00
Bastien Chanot and Claude Opus 4.7
31bd82de58
chore(memory+docs): /ship-feature B3 capitalize — BDR-014/015 + LRN-017..019 + EVAL-002 + journal + TODO
...
Memory registry capitalization after B3 i18n FR/EN ship.
- decisions.md +BDR-014 (PDF locale = render preference, store-driven, not Report schema field — dual label snapshot already carried).
- decisions.md +BDR-015 (typed ImportError discriminant kind + foundVersion; UI resolves message via dict; review caught hardcoded FR in domain layer).
- learnings.md +LRN-017 (i18n dict parity test: Object.keys().sort() equality + non-empty value assertion — cheapest drift guard).
- learnings.md +LRN-018 (useT hook pattern: selector subscribe + dict closure-per-render, no prop drilling, missing-key dev-warn + key-literal fallback).
- learnings.md +LRN-019 (exhaustive-deps trap when closures over store values appear inside useMemo deps — inline or useCallback).
- evals.md +EVAL-002 (B3 review caught critical FR leak in pdf/import.ts + attachment.ts that grep+analyzer both missed — i18n migrations must enumerate ALL string-emitting files including error paths).
- journal.md session 3 entry under 2026-05-20.
- TODO.md B3 subsection rewritten as DONE with checked checkboxes + cross-refs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-20 07:43:11 +02:00
Bastien Chanot and Claude
bffa6fba26
chore(memory): /close — BDR-012/013 + LRN-013..016 + journal 2026-05-20 (session 2)
...
Capture the second-session findings-tree iteration learnings before
they fade:
Decisions
- BDR-012 species auto-discovery via Vite import.meta.glob default-export
contract (alternatives: hardcoded registry, runtime registerSpecies()).
- BDR-013 SVG↔JSON zone bridge via fuzzy FR/EN label match (alternatives:
rename SVG ids, add new data-anno-finding-zone attribute).
Learnings
- LRN-013 import.meta.glob + default-export as a plugin-discovery pattern.
- LRN-014 normalize + Levenshtein recipe for human-string cross-walk.
- LRN-015 per-source try/catch beats wrapping a loop with one outer catch.
- LRN-016 pdf-lib subset-font output: latin1/utf-8 bytes-grep won't find
user-visible text — extract the JSON attachment or test through a
refactored helper instead.
Journal
- Logs the 11 commits between b7b0945 and 70f21cc with one-line summaries
+ cross-refs to the new registry entries.
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-20 06:21:39 +02:00
Bastien Chanot and Claude Opus 4.7
b7b094535e
chore(memory): TODO + journal + BDR-009..011 + LRN-011..012
...
Mark B0/B1/B2/B5 done on TODO. Journal 2026-05-20 entry with the three
commit SHAs and a per-phase recap. Three new design decisions captured:
JSON snake_case kept in TS (BDR-009), snapshot labels at selection time
(BDR-010), hard-fail v1 PDF with FR-language message (BDR-011). Two new
learnings: Zod recursive schemas via z.lazy + explicit ZodType<T>
(LRN-011), once-per-session UX modal via sessionStorage flag (LRN-012).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-20 03:51:36 +02:00
Bastien Chanot and Claude
8a2f9cc7ff
chore(memory): LRN-010 — gate DOM-mutate effect on async-mount loaded state
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 06:56:28 +02:00
Bastien Chanot and Claude
19c9c15979
chore(memory): LRN-009 — pre-rasterize then reserve text in pdf layout
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 06:44:09 +02:00
Bastien Chanot and Claude
15a3ef2890
chore(memory): close session — BDR-008, LRN-008, journal
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 06:22:20 +02:00
Bastien Chanot and Claude
3bb229331e
chore(memory): capitalize PDF bugfix — BLK-004, LRN-006, LRN-007
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 05:32:38 +02:00
Bastien Chanot and Claude
6a0ab22f76
chore(memory): capitalize bugfix b9da4fa — BLK-003, LRN-004, LRN-005
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 04:59:00 +02:00
Bastien Chanot and Claude Opus 4.7
1109e33383
refactor(anatomy): rename SVG data attrs (bone → anno) per new convention
...
User updated the clickable-zone convention in the source SVGs:
data-bone-id → data-anno-id
data-bone-fr → data-anno-name-fr
data-bone-en → data-anno-name-en
data-category → data-anno-category
data-opens-detail → data-anno-opens-detail
Bulk-renamed across:
- public/species/equine/Horse.svg + Horse_head.svg (86 anno-attrs each)
- src/anatomy/svgConvention.ts (parser + getBoneIdFromEvent)
- src/anatomy/types.ts (doc strings)
- src/components/canvas/AnatomyCanvas.tsx (querySelector + delegated click)
- src/styles/index.css (`[data-bone-id]` selectors → `[data-anno-id]`)
- src/domain/species/types.ts + schema/observation.ts (doc strings)
- docs/{ANATOMY-SVG-CONVENTION,ADDING-A-SPECIES,superpowers/specs,plans}.md
- CLAUDE.md + .claude/{memory/learnings,tasks/TODO}.md
- tests/unit/{anatomy.svgConvention,anatomy.svgLoader,components.AnatomyCanvas}.test.tsx
Internal TS type names and field names (Bone, boneId, parseSvgBones,
getBoneIdFromEvent) are kept intentionally — they're the application's
logical shape and the persisted JSON contract. ObservationZone.boneId is
the identifier seen in already-exported PDFs; renaming it would break
re-import of those PDFs. Only the SVG-side attribute names change.
90/90 tests pass, lint clean, build clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-19 03:10:06 +02:00
Bastien Chanot and Claude Opus 4.7
8ca36b5ccd
chore: initial scaffold + design spec + implementation plan
...
Skeleton for Osteo Report MVP. Build passes, 7 smoke tests green, real
Horse.svg + Horse_head.svg in public/species/equine/. Zod schemas are
the contract; store/anatomy/pdf modules are typed stubs throwing
"not implemented" awaiting implementation.
Spec: docs/superpowers/specs/2026-05-18-osteo-report-mvp-design.md
Plan: docs/superpowers/plans/2026-05-18-osteo-report-mvp.md (23 phases, ~70 TDD tasks)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-18 20:55:10 +02:00
Bastien Chanot
12a3e48fdf
clean repo
2026-05-18 19:40:44 +02:00
ZenQuality
a115e785a7
chore: initial scaffold
...
Generated by /init-project. React 19 + TS strict + Vite 6 + Tailwind 4 +
shadcn/ui + motion + pdf-lib + Zod + Zustand + react-router 7. Empty
skeleton, no business logic. Docker multi-stage + nginx + Traefik labels
commented. AGPL-3.0-or-later.
2026-05-17 06:43:11 +02:00