204 Commits
Author SHA1 Message Date
Bastien Chanot 605ee7cd74 Merge feature/doc-sync into develop 2026-07-01 14:31:37 +02:00
Bastien ChanotandClaude Opus 4.8 744b9e6759 docs: 0.1.0 changelog + 174 tests + features + PDF fonts (no tag)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNaYKPEkjH1jbgoX1TwKMX
2026-07-01 14:31:37 +02:00
Bastien Chanot 2c501c310d Merge chore/reconcile-memory into develop 2026-07-01 14:27:49 +02:00
Bastien ChanotandClaude Opus 4.8 60119c6dcb chore(memory): reconcile TODO with main +41 commits (174 tests, version 0.1.0)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RNaYKPEkjH1jbgoX1TwKMX
2026-07-01 00:20:23 +02:00
Bastien Chanot 4991c10ef7 chore: adopt gitflow socle + pre-commit hook 2026-06-29 01:47:14 +02:00
Bastien ChanotandClaude Opus 4.8 6e2285250e i18n(lateral): rename 'Impair'/'Unpaired' to 'Unilatéral'/'Unilateral'
Practitioner-facing copy only — the displayed term for a zone with no left/right side. Internal token 'unpaired', data-anno-lateral attribute, and types are unchanged. Affects the SVG editor laterality dropdown and the lateral.unpaired key (FR + EN).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 00:28:58 +02:00
Bastien ChanotandClaude Opus 4.8 3f239d18d5 docs(memory): capitalize BDR-022 (keep pathology-editor standalone)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 23:55:05 +02:00
Bastien ChanotandClaude Opus 4.8 97f8a92906 docs(memory): capitalize LRN-029 (Vite public/ for standalone HTML)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 23:46:22 +02:00
Bastien ChanotandClaude Opus 4.8 2803cf7c7d fix(editor): serve pathology-editor.html from public/ so it ships to dist
The file lived at the repo root, where Vite never bundles it (only index.html is the build entry). In production nginx fell through to the SPA index.html and React showed 'Page introuvable' at /pathology-editor.html. Moving it under public/ makes Vite copy it verbatim into dist/, so nginx serves it as a real static file. The /editors link (href=/pathology-editor.html) is unchanged — public/ is the web root.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 23:41:53 +02:00
Bastien ChanotandClaude Opus 4.8 b7fd2fbbc0 docs(memory): log footer Paws logo feat in journal
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 03:07:30 +02:00
Bastien ChanotandClaude Opus 4.8 d9cf2fa393 feat(pdf): show Paws in Harmony logo in report footer
Rasterize Paws_in_harmony.svg via canvg and embed it as the partnership credit in the PDF footer, replacing the text handle. Falls back to the '@paws.iin.harmony' text if rasterization or fetch fails.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 02:46:35 +02:00
Bastien ChanotandClaude Opus 4.8 3a67da73e7 feat(ui): show Paws in Harmony logo in site footer
Replace the 'Paws iin Harmony' text credit in the partnership row with the Paws_in_harmony.svg logo served from public/, mirroring the ZenQuality logo treatment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 02:46:33 +02:00
Bastien ChanotandClaude Opus 4.7 4c196bbd08 docs: supersede BDR-018 with BDR-019 (unified spine picker)
Record the pivot from additive distribution to an authoritative full-spine
editor, the click-opens-own-tab precedence change, and the accepted
orphan-findings wart on prune.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 19:23:12 +02:00
Bastien ChanotandClaude Opus 4.7 38888cb3d1 feat(editor): unified spine picker — show all regions, click opens own tab
The vertebra picker now edits the whole spine at once instead of a single
zone. Seed it with the union of vertebrae across every spine zone of the
observation (collectSpineVertebrae) so switching tabs reveals selections made
on other zones. Clicking a zone always opens its own region tab (initialRegion
now takes priority over the first existing selection).

On confirm, syncSpineZones reconciles authoritatively per region: replace each
region's vertebrae (deselection sticks), prune a spine zone whose region drops
to zero, spawn a zone for a newly picked region. Non-spine zones and their
order are preserved untouched. Supersedes the additive distribute model.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 19:22:42 +02:00
Bastien ChanotandClaude Opus 4.7 fc7069c2cb docs: capitalize BDR-018 + LRN-028, sync lib folder map
Record vertebra picker distribution decision (target replaces, others union)
and the "drive derived UI by spawning the source-of-truth row" learning.
Add spineZones.ts to the CLAUDE.md src/lib folder map.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 18:58:31 +02:00
Bastien ChanotandClaude Opus 4.7 9544924165 feat(editor): cross-region vertebra picks spawn their spine zone
Picking vertebrae in a region tab other than the clicked zone now creates
(or additively merges) the matching spine zone, so the SVG highlights it,
it appears in the observation's selected zones, and its findings picker shows.

Extract distributeVertebraeToZones + findSpineZoneId + regionFromLabel into
src/lib/spineZones.ts (regionFromLabel re-exported from VertebraPicker for
back-compat). Target region replaces (deselection sticks); other regions union
(side-tab picks never wipe a pre-existing zone). Unmapped regions fall back to
the target zone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 18:14:01 +02:00
Bastien ChanotandClaude Opus 4.6 8e94196e5a chore(logos): add -com SVG variants and size generation script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 07:15:44 +02:00
Bastien ChanotandClaude Opus 4.6 09be33fd84 fix(pdf): use plain logo in header, -com in footer, enlarge footer logos
- Header: faunosteo_logo_horizontal (no .com)
- Footer: faunosteo-horizontal-com (with .com branding)
- Footer Faunosteo logo: 60x23 → 80x30
- Footer ZenQuality logo: 50x12 → 70x16

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 07:12:46 +02:00
Bastien ChanotandClaude Opus 4.6 f1c639d93e feat(pdf): generate PNG assets from SVG logos, use -com variant in footer
- Generated 24 PNGs (128/256/512/1024) from 6 SVG logos into public/assets/
- PDF footer now uses faunosteo-horizontal-com (with .com branding)
- Simplified logo.ts: both logos are pre-rasterized PNGs, removed SVG
  rasterization code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 07:02:40 +02:00
Bastien ChanotandClaude Opus 4.6 710171afda fix(pdf): use French ZenQuality logo in PDF footer
Swapped logo-horizontal-1024.png (dark) for logo-horizontal-fr-1024.png.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 06:30:30 +02:00
Bastien ChanotandClaude Opus 4.6 d0fdd3f157 fix(pdf): restore partnership label before Instagram handle in footer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:36:20 +02:00
Bastien ChanotandClaude Opus 4.6 d5e0ec531e fix(pdf): remove ineffective NewWindow flag from link annotations
Browser PDF viewers control link target behavior, not the PDF spec.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:32:01 +02:00
Bastien ChanotandClaude Opus 4.6 d313015950 fix(pdf): add NewWindow flag to link annotations
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:25:35 +02:00
Bastien ChanotandClaude Opus 4.6 cae585b564 fix(pdf): simplify footer to single line, use dark ZQ PNG logo
- Removed "faunosteo.com" text (logo alone is clickable)
- Replaced "In partnership with Paws iin Harmony" + separate handle
  with single "@paws.iin.harmony" link
- Swapped ZenQuality SVG for dark PNG (logo-horizontal-1024.png)
  which renders better on white pages
- Footer now: [Faunosteo logo] | [Powered by ZQ logo] | [@paws.iin.harmony]
  with page numbers below center

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:19:54 +02:00
Bastien ChanotandClaude Opus 4.6 4075945668 fix(pdf): logo on all pages, clickable links, ZenQuality logo, higher separator
- Header logo centered between practitioner/animal text on every page
- Added clickable link annotations (faunosteo.com, zenquality.fr, Instagram)
- Bundled ZenQuality SVG logo at public/brand/zenquality-logo.svg
- Footer separator moved above logo area
- Removed isFirstPage gating on header logo

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:13:35 +02:00
Bastien ChanotandClaude Opus 4.6 33a7f47fdf feat(pdf): add branding to PDF exports (header logo + footer links)
Header: centered Faunosteo logo on first page.
Footer: Faunosteo logo + faunosteo.com, ZenQuality logo + "Powered by",
Paws iin Harmony + @instagram handle, page numbers. Removed export date
and plain-text site name from footer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 05:03:15 +02:00
Bastien ChanotandClaude Opus 4.6 c853c681f9 feat(ui): separate findings pickers per side for bilateral zones
Bilateral zones now get distinct findings pickers (e.g. "Épaule (Gauche)"
and "Épaule (Droite)") instead of one shared picker. Finding schema gains
optional `side` field so pathologies are tracked per-side. PDF export
groups findings by zone+side with side label in section headers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 04:22:35 +02:00
Bastien ChanotandClaude Opus 4.6 53f62f7bf6 fix(docker): add no-cache header for species assets
SVG/JSON files under /species/ have no content hash in their filename,
so browsers could serve stale cached versions after updates. Adding
Cache-Control: no-cache forces revalidation on every request while
still allowing 304 Not Modified for unchanged files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-27 03:55:06 +02:00
Bastien Chanot 0c170bd349 added bilaterality 2026-05-27 02:49:42 +02:00
Bastien ChanotandClaude 2273602da9 feat(editor): add tabbed welcome screen with project SVG picker
Welcome screen now offers two tabs: "Project SVGs" with species and view
dropdowns that load anatomy SVGs from the species registry, and "Upload
a file" with the existing file import flow. Download filename dynamically
tracks the loaded file instead of hardcoded horse_anatomy_edited.svg.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-25 05:47:22 +02:00
Bastien ChanotandClaude Opus 4.6 c4ab6f60e4 fix(editor): use const for nextZones in lateral picker callback
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:23:58 +02:00
Bastien ChanotandClaude Opus 4.6 93503b7ce5 docs(anatomy): document data-anno-lateral attribute
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:22:33 +02:00
Bastien ChanotandClaude a4739df538 feat(editor): add laterality dropdown to SVG editor
Adds a Latéralité/Laterality select (unpaired / bilateral) to the SVG
editor edit panel. Value is persisted as data-anno-lateral on all
sibling elements via applyEdit and restored on selection via showEditPanel.
i18n keys added to both fr/en dicts.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:21:26 +02:00
Bastien ChanotandClaude 773b00282f feat(pdf): include laterality side in zone labels
Append side suffix (e.g. "(Gauche)" / "(Left)") after each zone label
in the PDF observation page, using the existing lateral.left/lateral.right
i18n keys.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:19:44 +02:00
Bastien ChanotandClaude 3323d4e45d feat(ui): display laterality side in zone badges
Pass t() into describeZone and append (G/D or L/R) when z.side is set.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:18:37 +02:00
Bastien ChanotandClaude 5a19ae1f32 feat(editor): integrate LateralityPicker in zone click flow
Insert bilateral check in onZoneClick between vertebral-precision
and unpaired toggle logic. Both-sides-present clears all matching
zones; otherwise opens LateralityPicker to let user pick L/R/both.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:18:25 +02:00
Bastien ChanotandClaude 20d60b939a feat(ui): add LateralityPicker modal component
Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:17:42 +02:00
Bastien ChanotandClaude 93b079feb7 chore(memory): update journal for schema laterality task
Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:16:02 +02:00
Bastien ChanotandClaude e0abb1efa1 feat(schema): add LateralSideSchema and Bone.lateral for laterality support
Exports LateralSideSchema (z.enum left/right) and LateralSide type.
Adds optional side field to ObservationZoneSchema for bilateral zone distinction.
Covers new schema with 6 dedicated tests (accepts/rejects for both types).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:15:33 +02:00
Bastien ChanotandClaude db50c67bb6 feat(anatomy): parse data-anno-lateral attribute from SVG
Read data-anno-lateral from annotated SVG elements and expose it as
Bone.lateral ('bilateral' | 'unpaired' | undefined). Follows the same
merge logic used for data-anno-special.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:15:02 +02:00
Bastien ChanotandClaude 2d5ff54b69 feat(i18n): add laterality translation keys (FR/EN)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-23 22:14:57 +02:00
Bastien ChanotandClaude Opus 4.6 c73af46c33 docs(plans): add laterality support implementation plan
10 tasks: schema, parser, i18n, LateralityPicker, EditorRoute integration,
ObservationCard display, PDF output, SVG editor dropdown, docs, verification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:12:06 +02:00
Bastien ChanotandClaude Opus 4.6 880de17dbe docs(specs): add laterality support design spec
Defines per-zone bilateral/unpaired SVG attribute, ObservationZone.side
schema field, LateralityPicker UI flow, and SVG editor integration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:09:50 +02:00
Bastien ChanotandClaude Opus 4.6 a73d8da263 fix(ui): responsive mobile — full phone/tablet adaptation across all components
Surgical CSS/className-only changes, zero behavior impact. 155/155 tests green.

- Dialog: tighter mobile padding (p-3/px-4), reduced max-height to 85vh
- Button: sm size h-8→h-9 (36px touch target), responsive text sizing
- VertebraPicker: 44px min-height touch targets on mobile region tabs
- SVG editor: sidebar stacks below canvas <768px, full-width mobile,
  zoom controls 40px, canvas min-height 40vh
- AnatomyCanvas: SVG child constrained to fit container
- EditorRoute: responsive gap/padding, canvas max-h-[55vh] on mobile
- ObservationList + ConclusionPanel: responsive section heading typography

Target: 375px+ (iPhone SE) usable, 768px+ (iPad) polished, desktop no regressions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 20:01:50 +02:00
Bastien ChanotandClaude Opus 4.6 1f30280762 feat(ui): unified AppHeader, logo brand, tagline update, and header simplification
- Brand component now renders horizontal SVG logo instead of text
- New AppHeader shared component replaces per-route header boilerplate
- Tagline updated to "Outils pour ostéopathes animaliers"
- All routes use AppHeader (HomeRoute, EditorsRoute, NewReportRoute, SvgEditorRoute)
- ReportHeader and Footer simplified
- DEPLOY.md URLs updated zoosteo.fr → faunosteo.com
- Logo assets added (favicon.svg, logo-horizontal.svg, apple-touch-icon.png)
- Removed unused eslint-disable directive in SvgEditorRoute

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 20:01:33 +02:00
Bastien ChanotandClaude Opus 4.6 2d6ed809e2 chore: rename Zoosteo → Faunosteo across entire project
Brand strings, config defaults, i18n dicts, PDF attachment metadata,
HTML titles, Docker container name, package name, repo URLs, deploy
paths, and all documentation updated. Git remote switched to
faunosteo.git. Domain URLs (zoosteo.fr) preserved — DNS update is
separate. 155/155 tests green.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-22 21:44:21 +02:00
Bastien ChanotandClaude 89e010cc5d fix(ui): vertical centering — h-full → flex-1 on route containers
h-full (height:100%) doesn't resolve when the parent only has flex-1
without an explicit height. flex-1 (flex-grow) works because the
parent App.tsx <main> IS a flex container — no explicit height needed.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-22 06:38:28 +02:00
Bastien ChanotandClaude 43fdb7e189 fix(ui): vertical centering — make app main a flex column
App.tsx <main> was flex-1 but not a flex container itself, so child
routes with h-full + grid place-items-center couldn't resolve their
height for vertical centering.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-22 06:33:27 +02:00
Bastien ChanotandClaude 66c737188b fix(ui): center editor cards and remove redundant title
Remove h1 heading from editors page, use same centered grid layout
as home page — cards vertically and horizontally centered in viewport.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-22 06:30:34 +02:00
Bastien ChanotandClaude 08fbf093a8 fix(ui): home and editors pages fit viewport without scroll
Replaced min-h-screen with h-full on both routes — App.tsx flex layout
already provides min-h-screen + flex-1, so the inner min-h-screen was
doubling the minimum height and pushing the footer off-screen.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-05-22 06:26:50 +02:00