diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index 3f222f4d..3e142d69 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -140,7 +140,7 @@ Status: closed. ## BDR-017 | 2026-05-22 | SVG editor: vanilla JS wrap over React rewrite -editor.html = ~1630-line standalone SVG annotation tool (DOM manipulation, drag/drop, polygon editing, zoom, categories, export). Integrated into React app via `useRef` + `useEffect` mounting all vanilla JS logic into container refs. Only CSS restyled to Zoosteo tokens. +editor.html = ~1630-line standalone SVG annotation tool (DOM manipulation, drag/drop, polygon editing, zoom, categories, export). Integrated into React app via `useRef` + `useEffect` mounting all vanilla JS logic into container refs. Only CSS restyled to Faunosteo tokens. Alt rejected: full React rewrite (convert all state to Zustand/useState, all DOM ops to React) — massive effort ~10x, high risk of subtle behavior differences in drag/polygon/zoom interactions. Status: closed. diff --git a/.claude/memory/journal.md b/.claude/memory/journal.md index f8a6ec11..729cd85f 100644 --- a/.claude/memory/journal.md +++ b/.claude/memory/journal.md @@ -75,10 +75,10 @@ User dropped catalog v1.2→v2.0 in place. pathologies.json now schema_version " - TODO Phase C item 1 "Author full horse.json" → done. B4 still has scope_disclaimer footer decision open. - NEXT: B4 disclaimer footer call + C QA + Scaleway deploy. - hotfix(pdf): PDF export crashed `WinAnsi cannot encode "⚠"` on any obs carrying a requires_vet_referral leaf — StandardFonts.Helvetica is WinAnsi-only. Swapped `⚠ ` PDF marker → `(!) ` (UI keeps ⚠). Regression test added on `widthOfTextAtSize` + prefixed label. LRN-021, EVAL-003 captured. 155/155 green. Follow-up: migrate PDF body to embedded TTF (Inter/Fraunces per CLAUDE.md spec) so future non-Latin-1 glyphs work. -- chore: rename project `osteo-report` → `zoosteo` (Gitea repo moved). 15 files: repo URLs (CHANGELOG, DEPLOY, package.json), brand strings (env.ts DEFAULTS, entrypoint.sh fallbacks, i18n fr/en, pdf attachment metadata, index.html title, Brand test, scaffold banner, README/CLAUDE/CHANGELOG/ADDING-A-SPECIES headings), example URL osteo.example.com → zoosteo.fr in DEPLOY.md. PDF FILENAME `osteo-report.json` + startsWith contract preserved. 155/155 tests green. Commit 7dd4f63 + push. +- chore: rename project `osteo-report` → `zoosteo` → `faunosteo` (Gitea repo moved). 15 files: repo URLs (CHANGELOG, DEPLOY, package.json), brand strings (env.ts DEFAULTS, entrypoint.sh fallbacks, i18n fr/en, pdf attachment metadata, index.html title, Brand test, scaffold banner, README/CLAUDE/CHANGELOG/ADDING-A-SPECIES headings), example URL osteo.example.com → zoosteo.fr in DEPLOY.md. PDF FILENAME `osteo-report.json` + startsWith contract preserved. 155/155 tests green. Commit 7dd4f63 + push. - fix(docker): pin `pnpm@11.1.3` in Dockerfile:7. `corepack prepare pnpm@latest` re-resolved to pnpm >=11.4 on VPS cold build, which needs Node 22.13 → `ERR_UNKNOWN_BUILTIN_MODULE: node:sqlite` on Node 20 image. Commit 7dccde7 + push. BLK-005 + LRN-022 captured. - fix(docker) v2: 11.1.3 pin insufficient — pnpm 11.x ENTIRE LINE imports `node:sqlite` (not just 11.4+). Local dev was misleading because pnpm install never re-ran on host. Downgrade Dockerfile to `pnpm@10.13.1` (last 10.x cached on host, reads lockfile v9 unchanged). Commit 990c8e7 + push. BLK-005 + LRN-022 corrected with iteration log. -- chore(docker): pin `container_name: zoosteo-web` in docker-compose.yml — Compose v2 always appends `-1` replica suffix; single-instance service doesn't need scaling. DEPLOY.md log-prune command updated. Commit 7d214ed. +- chore(docker): pin `container_name: faunosteo-web` in docker-compose.yml — Compose v2 always appends `-1` replica suffix; single-instance service doesn't need scaling. DEPLOY.md log-prune command updated. Commit 7d214ed. - fix(docker): nginx template used bash-style `${PORT:-8080}` but envsubst doesn't support `:-default`. Switched to plain `${PORT}` since entrypoint.sh already exports PORT with default. Commit 0fcc526. - feat(ui): global footer (© year + brand + "Powered by ZenQuality" logo linking to zenquality.fr). New Footer.tsx mounted via flex-column layout in App.tsx so it sticks bottom on every route. Two i18n keys added (footer.all_rights_reserved, footer.powered_by). Commit caac149. - feat(ui): unify header — tagline next to brand on left for every page; LanguageSwitcher far right everywhere; dropped redundant "← Accueil" button on /new + /editor (brand is already a link to /). 3 files. Commit 1b01744 part 1. @@ -87,9 +87,19 @@ User dropped catalog v1.2→v2.0 in place. pathologies.json now schema_version " --- +## 2026-05-22 (session 2) + +- feat: locale-aware hover tooltip on anatomy zones (AnatomyCanvas custom floating tooltip, replaces native SVG title). +- feat: /editors listing page + footer "Éditeurs" link + "Paws iin Harmony" credit. +- feat(i18n): SVG editor header navbar + 58 FR/EN keys; pathology editor header + 76 FR/EN keys. Both editors fully bilingual. +- fix(ui): 3 iterations on vertical centering — h-full→flex-1 on route containers (LRN-027). App.tsx main needs flex flex-col for children to grow. +- Commits 569e571..89e010c (9 commits). 155/155 tests green throughout. + +--- + ## 2026-05-22 -Integrated standalone editor.html (~1630 lines vanilla JS SVG annotation tool) into React app at /svg-editor route. Vanilla JS wrapped in useRef+useEffect — zero behavior loss. CSS restyled to Zoosteo tokens (warm palette, accent vars, serif headings). DOMParser used for safe SVG loading (no innerHTML). Page noindexed via dynamic meta tag. 3 files created (SvgEditorRoute.tsx, svg-editor.css), 1 modified (App.tsx route registration), CLAUDE.md folder structure updated. +Integrated standalone editor.html (~1630 lines vanilla JS SVG annotation tool) into React app at /svg-editor route. Vanilla JS wrapped in useRef+useEffect — zero behavior loss. CSS restyled to Faunosteo tokens (warm palette, accent vars, serif headings). DOMParser used for safe SVG loading (no innerHTML). Page noindexed via dynamic meta tag. 3 files created (SvgEditorRoute.tsx, svg-editor.css), 1 modified (App.tsx route registration), CLAUDE.md folder structure updated. - 155/155 tests green, typecheck clean, build OK (941KB main). No regressions. - BDR-017 (vanilla wrap decision), LRN-022 (DOMParser SVG loading) captured. - feat(editor): standalone pathology-editor.html — JSON pathology tree editor with SVG zone selection. 1390 lines vanilla JS/CSS, zero deps. Pre-wired species list + manual upload. Fuzzy zone matching ported from zoneMatch.ts. Recursive tree editor: add/edit/delete nodes, sources management, auto ID generation. SVG sanitized (scripts/foreignObject/on* stripped). Export full JSON preserving all zones. public/species/equine/pathologies.json added for HTTP access. Docs synced (CLAUDE.md + README). diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a1ac312..da706308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -All notable changes to **Zoosteo** are documented here. +All notable changes to **Faunosteo** are documented here. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow [Semantic Versioning](https://semver.org/). @@ -105,7 +105,7 @@ restores the session for a follow-up. - **PDF date format** — locale-aware via `formatDate(iso, locale)`, replacing the FR-only `formatDateFr` helper. - **Default branch** — `main` → `master` (matches the Gitea remote at - `https://git.bchanot.fr/bchanot/zoosteo.git`). + `https://git.bchanot.fr/bchanot/faunosteo.git`). ### Fixed @@ -183,7 +183,7 @@ These were never tagged but are reflected in git history on `master`. catalog landed, `requires_vet_referral` becomes the sole source of truth, PDF vet marker swapped to a WinAnsi-safe surrogate. Docs refreshed, `DEPLOY.md` + `CHANGELOG.md` written, default branch - renamed `master`, repo pushed to `https://git.bchanot.fr/bchanot/zoosteo.git`. + renamed `master`, repo pushed to `https://git.bchanot.fr/bchanot/faunosteo.git`. -[Unreleased]: https://git.bchanot.fr/bchanot/zoosteo/compare/v1.0.0...HEAD -[1.0.0]: https://git.bchanot.fr/bchanot/zoosteo/releases/tag/v1.0.0 +[Unreleased]: https://git.bchanot.fr/bchanot/faunosteo/compare/v1.0.0...HEAD +[1.0.0]: https://git.bchanot.fr/bchanot/faunosteo/releases/tag/v1.0.0 diff --git a/CLAUDE.md b/CLAUDE.md index fa2a31ec..ed84cf81 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ -# Zoosteo — CLAUDE.md +# Faunosteo — CLAUDE.md # Generated by scaffolder 2026-05-18. Single source of truth for Claude in this repo. # Global rules: ~/.claude/CLAUDE.md — this file extends or overrides them. @@ -68,7 +68,7 @@ pnpm format ```bash # Build image -docker build -t zoosteo . +docker build -t faunosteo . # Run with compose (reads .env for APP_* vars) docker compose up --build diff --git a/DEPLOY.md b/DEPLOY.md index 3f89f0dc..f2602061 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -30,9 +30,9 @@ each one explicitly. | Variable | Required | Default | Notes | | ----------------- | -------- | ---------------- | ------------------------------------------------------------------------------------ | -| `APP_SITE_NAME` | yes | `Zoosteo` | Browser `