Three impactful fixes from the post-impl code review:
1. EditorRoute.onExport now catches PDF generation failures, logs to
console, and alerts the praticien in French — previously errors were
swallowed by try/finally with only `setExporting(false)`.
2. VertebraPicker onConfirm reads the active observation from the store
at confirm time instead of closing over the render-scope `activeObs`.
Prevents mutating a stale observation if the praticien switches active
observation while the picker is open.
3. readPersistedDraft validates the parsed JSON with ReportSchema instead
of a raw `as Report` cast. Corrupted drafts now return null cleanly
rather than poisoning the store.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace the placeholder with a full 7-step walkthrough: SVG convention,
file placement under public/, species manifest at src/domain/species/<id>/,
registry wiring, vertebral formula, pathology seed (empty allowed in v1),
and the two mirror tests (registry + real-SVG parse + pathologies schema).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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>
Escape French apostrophes/quotes in JSX text per react/no-unescaped-entities
and replace the report?.observations.length dependency with a derived
observationsCount value so react-hooks/exhaustive-deps is satisfied without
re-firing on every report change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wire index.html to actually load /env.js before the Vite bundle so the
runtime config injected by docker/entrypoint.sh takes effect. Add a
public/env.js stub so local dev and static builds don't 404 — the Docker
container overwrites it via the entrypoint.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>