From 2d6ed809e2149d19ccefc004c354951231484c62 Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Fri, 22 May 2026 21:44:21 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20rename=20Zoosteo=20=E2=86=92=20Faunost?= =?UTF-8?q?eo=20across=20entire=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .claude/memory/decisions.md | 2 +- .claude/memory/journal.md | 16 ++++++++++++--- CHANGELOG.md | 10 +++++----- CLAUDE.md | 4 ++-- DEPLOY.md | 20 +++++++++---------- README.md | 4 ++-- docker-compose.yml | 2 +- docker/entrypoint.sh | 8 ++++---- docs/ADDING-A-SPECIES.md | 2 +- .../2026-05-22-pathology-editor-design.md | 2 +- index.html | 2 +- package.json | 2 +- pathology-editor.html | 6 +++--- src/config/env.ts | 6 +++--- src/i18n/en.ts | 6 +++--- src/i18n/fr.ts | 4 ++-- src/pdf/attachment.ts | 2 +- tests/unit/components.Brand.test.tsx | 2 +- 18 files changed, 55 insertions(+), 45 deletions(-) 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 ``, OG `site_name`. | -| `APP_BRAND_NAME` | yes | `Zoosteo` | Header brand block, PDF header. Praticien-visible identity. | -| `APP_FOOTER_NAME` | yes | `Zoosteo` | Footer copyright line. | +| `APP_SITE_NAME` | yes | `Faunosteo` | Browser `<title>`, OG `site_name`. | +| `APP_BRAND_NAME` | yes | `Faunosteo` | Header brand block, PDF header. Praticien-visible identity. | +| `APP_FOOTER_NAME` | yes | `Faunosteo` | Footer copyright line. | | `APP_TAGLINE` | yes | `Bilans d'ostéopathie animalière` | Hero tagline on Home. | | `PORT` | no | `8080` | Container listen port. Override to relocate the loopback bind. | @@ -145,8 +145,8 @@ docker info | grep -i 'logging driver\|live restore' ```bash # As your non-root deploy user (see Hardening §1 if you have not made one yet) cd ~ -git clone https://git.bchanot.fr/bchanot/zoosteo.git -cd zoosteo +git clone https://git.bchanot.fr/bchanot/faunosteo.git +cd faunosteo # Configure identity cp .env.example .env @@ -174,7 +174,7 @@ This project has no `scripts/deploy.sh` yet. Pull-and-recompose from the VPS is the path: ```bash -cd ~/zoosteo +cd ~/faunosteo git fetch origin git reset --hard origin/master # default branch is "master" on this remote docker compose up --build -d @@ -224,7 +224,7 @@ set -e DEST="/var/backups/osteo" DATE="$(date -u +%Y%m%d)" mkdir -p "$DEST" -cp /home/<deploy-user>/zoosteo/.env "$DEST/env-$DATE" +cp /home/<deploy-user>/faunosteo/.env "$DEST/env-$DATE" chmod 600 "$DEST/env-$DATE" find "$DEST" -name 'env-*' -mtime +30 -delete ``` @@ -257,7 +257,7 @@ aws s3 sync /var/backups/osteo s3://<bucket>/osteo/ --storage-class STANDARD_IA ```bash docker compose down -cp /var/backups/osteo/env-<date> /home/<deploy-user>/zoosteo/.env +cp /var/backups/osteo/env-<date> /home/<deploy-user>/faunosteo/.env docker compose up --build -d curl -sI https://zoosteo.fr/ ``` @@ -493,7 +493,7 @@ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@zoost ## Rollback ```bash -cd ~/zoosteo +cd ~/faunosteo git reflog | head -20 # find the known-good SHA git reset --hard <known-good-sha> docker compose up --build -d @@ -615,7 +615,7 @@ from `/var/lib/docker/containers/<id>/*.log` anyway, lower the cap in (`/etc/docker/daemon.json`). Host nginx logs in `/var/log/nginx/`; rotate via logrotate (default Ubuntu config). Certbot logs in `/var/log/letsencrypt/`. -- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' zoosteo-web)`. +- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' faunosteo-web)`. - **Key rotation**: `.env` carries no secret material, but if `APP_BRAND_NAME` etc. need to change, edit `.env` + `docker compose up -d` (no rebuild — `entrypoint.sh` reads env on container start). diff --git a/README.md b/README.md index bf7043f7..5dfaf0e4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Zoosteo +# Faunosteo Web app for veterinary osteopaths to write session bilans on animal anatomy SVGs — click zones, build observations, export a self-contained PDF with the @@ -87,7 +87,7 @@ pnpm build # tsc + vite build → dist/ ```bash pnpm build # production build → dist/ -docker build -t zoosteo . # multi-stage Docker image +docker build -t faunosteo . # multi-stage Docker image docker compose up --build # run with env_file: .env ``` diff --git a/docker-compose.yml b/docker-compose.yml index 8c15bd27..267df6fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: app: - container_name: zoosteo-web + container_name: faunosteo-web build: context: . dockerfile: Dockerfile diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 3044e58d..4bf2733a 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -9,14 +9,14 @@ ENV_JS="/usr/share/nginx/html/env.js" cat > "$ENV_JS" <<EOF window.__APP_CONFIG__ = { - siteName: "${APP_SITE_NAME:-Zoosteo}", - brandName: "${APP_BRAND_NAME:-Zoosteo}", - footerName: "${APP_FOOTER_NAME:-Zoosteo}", + siteName: "${APP_SITE_NAME:-Faunosteo}", + brandName: "${APP_BRAND_NAME:-Faunosteo}", + footerName: "${APP_FOOTER_NAME:-Faunosteo}", tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}" }; EOF -echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Zoosteo}" +echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Faunosteo}" # Replace PORT placeholder in nginx config if needed # (nginx:alpine supports envsubst via templates; we keep it explicit) diff --git a/docs/ADDING-A-SPECIES.md b/docs/ADDING-A-SPECIES.md index af5850fa..b7d1954a 100644 --- a/docs/ADDING-A-SPECIES.md +++ b/docs/ADDING-A-SPECIES.md @@ -1,6 +1,6 @@ # Adding a New Species -Zoosteo ships with one species (`equine`). Adding a new one is +Faunosteo ships with one species (`equine`). Adding a new one is mostly authoring work — anatomy SVGs and a findings JSON — backed by a small amount of boilerplate that the project can scaffold for you. diff --git a/docs/superpowers/specs/2026-05-22-pathology-editor-design.md b/docs/superpowers/specs/2026-05-22-pathology-editor-design.md index a424a5d3..e327312c 100644 --- a/docs/superpowers/specs/2026-05-22-pathology-editor-design.md +++ b/docs/superpowers/specs/2026-05-22-pathology-editor-design.md @@ -340,7 +340,7 @@ Approximate structure: <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="robots" content="noindex,nofollow"> - <title>Zoosteo — Éditeur de pathologies + Faunosteo — Éditeur de pathologies diff --git a/index.html b/index.html index ebce602b..c9af9de5 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - Zoosteo + Faunosteo