- 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>
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
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>
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>
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>
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>
Header with brand link + FR/EN segmented toggle reading/writing
osteo:locale localStorage key. 76 translation keys covering all
UI strings. View state tracked for re-render on locale switch.
Co-Authored-By: Claude <noreply@anthropic.com>
Compact header (Brand + LanguageSwitcher) above the SVG editor.
All 58 hardcoded strings in JSX template and vanilla JS replaced with
t() calls via TFn passed to initSvgEditor. Editor re-inits on locale
change. CSS drop overlay uses data-drop-label attr for translated text.
Co-Authored-By: Claude <noreply@anthropic.com>
New /editors route listing SVG editor and pathology editor with
descriptions and CTAs. Footer gains Éditeurs link, Paws iin Harmony
credit, and pipe-separated layout. 69 i18n keys added (editors.*,
footer.*, svg_editor.*) in both FR and EN dicts.
Co-Authored-By: Claude <noreply@anthropic.com>
Custom floating tooltip replaces native SVG <title> — follows cursor,
shows zone name in active locale (FR/EN), dark pill style with 120ms
fade. getAnnotatedElement() helper added to svgConvention.ts.
Co-Authored-By: Claude <noreply@anthropic.com>
Add pathology-editor.html to folder structure, specs listing, and
README feature list.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Standalone HTML page for editing species pathology JSON via SVG-based
zone selection. Supports pre-wired species list and manual SVG+JSON
upload. Features fuzzy zone matching (ported from zoneMatch.ts),
recursive tree editor with full CRUD, auto ID generation, and safe
JSON export preserving all zones and root fields.
Includes SVG sanitization (script/foreignObject/on* stripping),
unsaved changes protection, and French error messages.
Also copies pathologies.json to public/ for HTTP access from the editor.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract AppShell with useLocation to conditionally hide Footer on
/svg-editor. Add max-height: 100% + width: auto to SVG canvas CSS
so loaded SVGs fill available space without overflowing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wrap standalone vanilla JS SVG annotation editor (~1630 lines) into
React via useRef+useEffect. CSS restyled to Zoosteo design tokens.
Route registered at /svg-editor with noindex meta tag and back-to-home
link. DOMParser used for safe SVG file loading. Zero behavior loss
from original editor.html.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previous 16px / 180ms transition was barely visible on a 360-420px
wide mobile viewport. Adjustments:
- Slide distance 16px → 32px so the off-position is clearly off-axis
on small screens.
- Duration 180ms → 220ms — slightly longer keeps the slide visible
through the iOS/Android touch-event paint cycle.
- Hint with willChange: 'transform, opacity' so mobile Safari
promotes the ul to its own compositor layer up front, avoiding a
first-frame flicker on weaker GPUs.
No behavioural change to direction logic; tests still 155/155.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Opening a finding category (e.g. "Dysfonction ostéopathique") and
backing out felt abrupt — list content swapped instantly with no
visual continuity. Now the list animates a short slide+fade between
levels:
- Drill down → new list enters from the right (+16px → 0).
- Back / breadcrumb up → new list enters from the left (-16px → 0).
Implementation:
- Wrap the list in `motion.ul` keyed by the path string so React
remounts when the level changes; motion's `initial`/`animate`
variants then play on every remount.
- A direction state (1 | -1) feeds the `enter` variant via `custom`
so forward vs. back have opposite slide directions.
- All path mutations go through `goInto` / `goBack` / `goToDepth`
helpers that set direction before calling `setPath`.
- 180ms ease-out — perceptible but does not block interaction.
AnimatePresence was deliberately omitted: it defers DOM swap, which
broke the existing synchronous `getByLabelText` assertions in
components.FindingsTreePicker.test.tsx. The key-based remount keeps
the new content reachable immediately while still providing a
direction-aware entrance.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Navigating to /editor (either from /new or by re-importing a PDF)
landed the user at the bottom of the page because the browser
restored its previous scroll position on a long route. Force a
one-shot scroll to (0,0) on mount with an empty-deps effect so the
report opens at the header.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Make the header consistent across Home, New report, and Editor:
- Tagline (cfg.tagline) now sits next to the brand on the left for
every page, instead of right-aligned on Home only.
- LanguageSwitcher moved to the far right of the action group on
every page (previously sandwiched between brand and report info on
Editor).
- Dropped the redundant "← Accueil" ghost button on New report and
Editor headers; the brand itself is already a link to "/", so two
controls were doing the same job. Aria label preserved on the
brand link.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`listen ${PORT:-8080};` in docker/nginx.conf used bash-style default
expansion. envsubst (GNU gettext) does not implement `:-default`; it
either leaves the token literal or substitutes only `${PORT}` and
keeps `:-8080`, producing `listen 8080:-8080;`. Either way nginx
errors with "invalid port in '${PORT:-8080}' of the listen
directive" and the container restart-loops.
entrypoint.sh already exports PORT with a bash default
(`PORT="${PORT:-8080}"`) before calling envsubst, so the template
only needs `${PORT}`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>