Bastien Chanot and Claude
a3afdcb763
chore(domain): drop equine findings JSON v1.1 + refactor plan
...
Adds the schema-v1.1 hierarchical findings JSON authored by the
domain expert at src/domain/species/equine/pathologies.json
(3-zone sample: sphenoid/ssb/atm — placeholder before full-body
authoring).
JSON is inert: not yet imported by the loader (still exports the
empty Pathology[]), so build and tests stay green.
TODO rewritten to sequence the V1 refactor:
- B0 findings schema + JSON loader with Zod parse at boot
- B1 ReportSchema v2 (observation.findings = path + snapshot)
- B2 FindingsTreePicker replacing flat PathologyPicker
- B3 i18n FR/EN site + PDF (locale store, dict, switcher)
- B4 PDF observationPage rendering findings
- B5 stub cleanup
- C full horse.json authoring + QA + docs + deploy
Known fixup: JSON species.id is "horse" but registry uses
"equine"; align JSON to "equine" at integration time.
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 07:44:10 +02:00
Bastien Chanot and Claude
50ad18f4ed
chore(tasks): refresh TODO to reflect actual V1 state
...
Scaffold-era checklist was stale: most Phase 2-5 items already
shipped (full editor flow, PDF roundtrip, Docker, identity edit
dialog, etc.). Rewrite to capture what's actually done vs what
remains for V1/MVP ship.
Remaining for V1: equine pathology DB (40-60 source-cited entries,
currently empty array), stub cleanup (Toast/ZoneTooltip unused,
ObservationEditor never created), PDF QA pass, Docker deploy
validation, doc finalization, Scaleway production deploy.
Post-V1 ideas (Capacitor mobile, accounts/cloud, RDV) captured
in Phase C so they don't get pulled into MVP by mistake.
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 07:02:27 +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
66e040d0e4
chore(memory): journal — editor nav + edit-infos feat
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 06:29:37 +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
57c9925578
chore(memory): journal hotfix + picker preselect
...
Co-Authored-By: Claude <noreply@anthropic.com >
2026-05-19 05:18:37 +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
abd4f78a46
chore(memory): log MVP delivery in journal
...
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-18 22:02:45 +02:00
Bastien Chanot and Claude Opus 4.7
0aa8f46f5c
test(qa): document MVP manual QA checklist outcome
...
Capture the plan §23.2 walkthrough as an unticked checklist with
deliberate TODO markers. Automated browser QA was out of scope for the
/init-project session; this file is the handoff for a manual pnpm dev
verification before delivery. Includes the matching automated coverage
table so reviewers know what is already enforced by CI.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-18 22:01:02 +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
Bastien Chanot
27afb719f5
clean all
2026-05-18 19:40:08 +02:00
ZenQuality
b5b2e163c9
feat: domain core — schemas, store, equine data, PDF roundtrip
...
Phase A — Domain & schemas (15 tests):
- Zod schemas: ReportSchema, FindingSchema, PractitionerSchema, SeveritySchema
- Types derived via z.infer (single source of truth)
- newId() helper with optional prefix
Phase B — Equine anatomy + pathology DB (7 tests):
- 26 macro zones, axial subzones C1-7/T1-18/L1-6/S1-5
- 31 pathologies, each citing Merck Vet Manual, PubMed, IMAIOS or LCAO
- Placeholder SVGs (lateral L/R + dorsal) with data-zone convention
- Species registry: equine registered, 8 others remain stubs
Phase C — Zustand store (8 tests):
- Single source of truth with persist middleware (localStorage key osteo-report-draft)
- Actions: hydrate, reset, toggleZone, addFinding, updateFinding, removeFinding, setConclusion/Recommendations/NextAppointment
Phase H/I — PDF export + import roundtrip (2 tests):
- A4 portrait, pdf-lib StandardFonts
- Header (practitioner + animal), anatomy pages (per used view), findings
table, conclusion/recommendations/RDV page, page footer with date+page#
- Attachment: base64 data URI workaround (pdf-lib treats raw string as
base64 input, and rejects cross-realm Uint8Array in jsdom tests)
- Import: walks Catalog→Names→EmbeddedFiles→Names array→F stream; inflates
via pako directly (bypasses pdf-lib's reference-equality FlateDecode check
which fails across module realms in vitest); validates with ReportSchema
Tooling:
- Add pako 2.x + @types/pako (already transitive of pdf-lib)
- Switch vitest 2 → 3 (already done in prior commit)
- Add 8 test files (34 tests total green)
2026-05-17 07:06:59 +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