chore: rename project from osteo-report to zoosteo

Remote moved to git.bchanot.fr/bchanot/zoosteo.git; brand strings
and production URL updated to match new identity.

- package.json: name → zoosteo
- src/config/env.ts: AppConfig DEFAULTS → "Zoosteo"
- docker/entrypoint.sh: APP_*_NAME fallbacks → "Zoosteo"
- src/i18n/{fr,en}.ts: import error message + PDF title prefix
- src/pdf/attachment.ts: embedded description metadata "state v2"
- index.html: <title> fallback
- scripts/scaffold-species.mjs: console banner
- tests/unit/components.Brand.test.tsx: regex
- README.md, CLAUDE.md, CHANGELOG.md, docs/ADDING-A-SPECIES.md:
  brand headings + intro lines
- DEPLOY.md: env defaults table + osteo.example.com → zoosteo.fr
  (clone URL, paths, certbot, curl, container name references)

PDF attachment FILENAME 'osteo-report.json' and the startsWith
contract in src/pdf/attachment.ts:35,40 are preserved — changing
them would break PDF import for every PDF already exported by the
app. docs/superpowers/** and .claude/audits/** left unchanged as
historical records.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude Opus 4.7 committed 2026-05-21 05:53:12 +02:00
1 parent fad3cb178a
commit 7dd4f633f8
14 files changed
+57 -57

No files matched your search

+5 -5
View File
@@ -1,6 +1,6 @@
# Changelog
All notable changes to **Osteo Report** are documented here.
All notable changes to **Zoosteo** 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/osteo-report.git`).
`https://git.bchanot.fr/bchanot/zoosteo.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/osteo-report.git`.
renamed `master`, repo pushed to `https://git.bchanot.fr/bchanot/zoosteo.git`.
[Unreleased]: https://git.bchanot.fr/bchanot/osteo-report/compare/v1.0.0...HEAD
[1.0.0]: https://git.bchanot.fr/bchanot/osteo-report/releases/tag/v1.0.0
[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
+2 -2
View File
@@ -1,4 +1,4 @@
# Osteo Report — CLAUDE.md
# Zoosteo — 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 osteo-report .
docker build -t zoosteo .
# Run with compose (reads .env for APP_* vars)
docker compose up --build
+32 -32
View File
@@ -30,9 +30,9 @@ each one explicitly.
| Variable | Required | Default | Notes |
| ----------------- | -------- | ---------------- | ------------------------------------------------------------------------------------ |
| `APP_SITE_NAME` | yes | `Osteo Report` | Browser `<title>`, OG `site_name`. |
| `APP_BRAND_NAME` | yes | `Osteo Report` | Header brand block, PDF header. Praticien-visible identity. |
| `APP_FOOTER_NAME` | yes | `Osteo Report` | Footer copyright line. |
| `APP_SITE_NAME` | yes | `Zoosteo` | Browser `<title>`, 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_TAGLINE` | yes | `Bilans d'ostéopathie animalière` | Hero tagline on Home. |
| `PORT` | no | `8080` | Container listen port. Override to relocate the loopback bind. |
@@ -59,8 +59,8 @@ DNS:
```text
# A record on your domain registrar / DNS provider
osteo.example.com → <vps-ipv4>
osteo.example.com (AAAA) → <vps-ipv6> # optional
zoosteo.fr → <vps-ipv4>
zoosteo.fr (AAAA) → <vps-ipv6> # optional
```
SSH key copied to the VPS before disabling password auth (see Hardening
@@ -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/osteo-report.git
cd osteo-report
git clone https://git.bchanot.fr/bchanot/zoosteo.git
cd zoosteo
# 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 ~/osteo-report
cd ~/zoosteo
git fetch origin
git reset --hard origin/master # default branch is "master" on this remote
docker compose up --build -d
@@ -185,7 +185,7 @@ Verify post-deploy:
```bash
docker compose ps
curl -sI https://osteo.example.com/ | head -3
curl -sI https://zoosteo.fr/ | head -3
```
For zero-downtime updates, `docker compose up --build -d` rebuilds the
@@ -224,7 +224,7 @@ set -e
DEST="/var/backups/osteo"
DATE="$(date -u +%Y%m%d)"
mkdir -p "$DEST"
cp /home/<deploy-user>/osteo-report/.env "$DEST/env-$DATE"
cp /home/<deploy-user>/zoosteo/.env "$DEST/env-$DATE"
chmod 600 "$DEST/env-$DATE"
find "$DEST" -name 'env-*' -mtime +30 -delete
```
@@ -257,9 +257,9 @@ 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>/osteo-report/.env
cp /var/backups/osteo/env-<date> /home/<deploy-user>/zoosteo/.env
docker compose up --build -d
curl -sI https://osteo.example.com/
curl -sI https://zoosteo.fr/
```
The praticien's exported PDFs are the real long-term store. If the VPS
@@ -280,7 +280,7 @@ VPS:
server {
listen 80;
listen [::]:80;
server_name osteo.example.com;
server_name zoosteo.fr;
# Certbot will rewrite this block to add the 301 redirect.
location /.well-known/acme-challenge/ {
root /var/www/letsencrypt;
@@ -298,7 +298,7 @@ server {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name osteo.example.com;
server_name zoosteo.fr;
# ssl_certificate + ssl_certificate_key written by certbot
@@ -318,7 +318,7 @@ Enable + obtain certificate:
```bash
ln -s /etc/nginx/sites-available/osteo /etc/nginx/sites-enabled/osteo
nginx -t && systemctl reload nginx
certbot --nginx -d osteo.example.com
certbot --nginx -d zoosteo.fr
systemctl status certbot.timer # auto-renew preinstalled on Ubuntu
```
@@ -340,10 +340,10 @@ Reload + verify:
```bash
nginx -t && systemctl reload nginx
curl -sI https://osteo.example.com/ | grep -iE 'strict-transport|x-frame|content-security'
curl -sI https://zoosteo.fr/ | grep -iE 'strict-transport|x-frame|content-security'
# Cross-check externally:
# https://securityheaders.com/?q=osteo.example.com
# https://www.ssllabs.com/ssltest/analyze.html?d=osteo.example.com
# https://securityheaders.com/?q=zoosteo.fr
# https://www.ssllabs.com/ssltest/analyze.html?d=zoosteo.fr
```
The `'unsafe-inline'` on `style-src` is needed because Tailwind injects
@@ -362,7 +362,7 @@ echo "deb [signed-by=/usr/share/keyrings/caddy-stable-archive-keyring.gpg] https
apt-get update && apt-get install -y caddy
cat > /etc/caddy/Caddyfile <<'EOF'
osteo.example.com {
zoosteo.fr {
encode gzip zstd
reverse_proxy 127.0.0.1:8080
header {
@@ -394,13 +394,13 @@ N/A. There is no build-time API URL var; the app is static.
```bash
# HTTPS redirect on port 80
curl -sI http://osteo.example.com/ | grep -i location # expect Location: https://...
curl -sI http://zoosteo.fr/ | grep -i location # expect Location: https://...
# TLS itself
curl -sI https://osteo.example.com/ | head -3 # expect HTTP/2 200
curl -sI https://zoosteo.fr/ | head -3 # expect HTTP/2 200
# env.js shipped fresh (no caching)
curl -sI https://osteo.example.com/env.js | grep -i cache-control
curl -sI https://zoosteo.fr/env.js | grep -i cache-control
# expect: Cache-Control: no-store, no-cache, must-revalidate
# Internal port is NOT publicly bound
@@ -439,7 +439,7 @@ Reload + verify on a second terminal *before* closing the first one:
```bash
systemctl reload ssh
ssh deploy@osteo.example.com 'echo ok'
ssh deploy@zoosteo.fr 'echo ok'
```
### 3. (Optional) Move SSH off port 22
@@ -451,7 +451,7 @@ ufw allow 2222/tcp # 1. UFW
# 2. Add 2222 to cloud security group
# 3. /etc/ssh/sshd_config: Port 2222 (keep Port 22 temporarily)
systemctl reload ssh
ssh -p 2222 deploy@osteo.example.com 'echo ok' # confirm
ssh -p 2222 deploy@zoosteo.fr 'echo ok' # confirm
# 4. Remove Port 22 from sshd_config + UFW + cloud SG
```
@@ -484,7 +484,7 @@ nmap -Pn -p 22,80,443,8080,2222 <vps-public-ip>
# 2222: open ← if SSH was moved
# Password-SSH attempt — should fail
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@osteo.example.com
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@zoosteo.fr
# Expect: Permission denied (publickey).
```
@@ -493,11 +493,11 @@ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no deploy@osteo
## Rollback
```bash
cd ~/osteo-report
cd ~/zoosteo
git reflog | head -20 # find the known-good SHA
git reset --hard <known-good-sha>
docker compose up --build -d
curl -sI https://osteo.example.com/ | head -1
curl -sI https://zoosteo.fr/ | head -1
```
Because there is no server-side state to corrupt, rollback is purely a
@@ -510,10 +510,10 @@ already exported are unaffected.
| URL | Expected |
| --------------------------------------- | ----------------------------------------- |
| `https://osteo.example.com/` | HTTP/2 200, HTML containing `<div id="root">` |
| `https://osteo.example.com/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` |
| `https://osteo.example.com/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` |
| `https://osteo.example.com/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) |
| `https://zoosteo.fr/` | HTTP/2 200, HTML containing `<div id="root">` |
| `https://zoosteo.fr/env.js` | HTTP/2 200, `Cache-Control: no-store, no-cache, must-revalidate`, body starts with `window.__APP_CONFIG__ = {` |
| `https://zoosteo.fr/assets/<hash>.js` | HTTP/2 200, `Cache-Control: public, max-age=31536000, immutable` |
| `https://zoosteo.fr/nonexistent` | HTTP/2 200 (SPA fallback serves `index.html`) |
| `http://127.0.0.1:8080/` (on VPS) | HTTP/1.1 200 |
There is no `/health` endpoint — the container only serves static assets.
@@ -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}}' osteo-report-app-1)`.
- **Manual log prune**: `docker compose logs --no-color > /tmp/x; truncate -s 0 $(docker inspect --format='{{.LogPath}}' zoosteo-app-1)`.
- **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).
+2 -2
View File
@@ -1,4 +1,4 @@
# Osteo Report
# Zoosteo
Web app for veterinary osteopaths to write session bilans on animal anatomy
SVGs — click zones, build observations, export a self-contained PDF with the
@@ -86,7 +86,7 @@ pnpm build # tsc + vite build → dist/
```bash
pnpm build # production build → dist/
docker build -t osteo-report . # multi-stage Docker image
docker build -t zoosteo . # multi-stage Docker image
docker compose up --build # run with env_file: .env
```
+4 -4
View File
@@ -9,14 +9,14 @@ ENV_JS="/usr/share/nginx/html/env.js"
cat > "$ENV_JS" <<EOF
window.__APP_CONFIG__ = {
siteName: "${APP_SITE_NAME:-Osteo Report}",
brandName: "${APP_BRAND_NAME:-Osteo Report}",
footerName: "${APP_FOOTER_NAME:-Osteo Report}",
siteName: "${APP_SITE_NAME:-Zoosteo}",
brandName: "${APP_BRAND_NAME:-Zoosteo}",
footerName: "${APP_FOOTER_NAME:-Zoosteo}",
tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}"
};
EOF
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Osteo Report}"
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Zoosteo}"
# Replace PORT placeholder in nginx config if needed
# (nginx:alpine supports envsubst via templates; we keep it explicit)
+1 -1
View File
@@ -1,6 +1,6 @@
# Adding a New Species
Osteo Report ships with one species (`equine`). Adding a new one is
Zoosteo 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.
+1 -1
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bilans d'ostéopathie animalière" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>Osteo Report</title>
<title>Zoosteo</title>
<!--
Runtime config injected by docker/entrypoint.sh at container start.
window.__APP_CONFIG__ overrides build-time VITE_APP_* values.
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "osteo-report",
"name": "zoosteo",
"version": "0.1.0",
"private": true,
"description": "Single-praticien veterinary osteopathy report app with PDF export/import",
+1 -1
View File
@@ -152,7 +152,7 @@ async function collectDetails() {
}
async function main() {
console.log('\nOsteo Report — new species scaffold')
console.log('\nZoosteo — new species scaffold')
console.log('-----------------------------------\n')
const id = await askRequired(
+3 -3
View File
@@ -21,9 +21,9 @@ declare global {
}
const DEFAULTS: AppConfig = {
siteName: 'Osteo Report',
brandName: 'Osteo Report',
footerName: 'Osteo Report',
siteName: 'Zoosteo',
brandName: 'Zoosteo',
footerName: 'Zoosteo',
tagline: "Bilans d'ostéopathie animalière",
}
+2 -2
View File
@@ -26,7 +26,7 @@ export const en: Dict = {
'home.import.error_generic': 'Failed to read the PDF.',
'home.import.error_invalid_pdf': 'This file is not a readable PDF.',
'home.import.error_no_attachment':
'This PDF was not generated by Osteo Report (no data detected).',
'This PDF was not generated by Zoosteo (no data detected).',
'home.import.error_incompatible_version':
'This PDF uses format v{version}, incompatible with the current version (v2). Re-export the report from a recent version of the app.',
@@ -133,7 +133,7 @@ export const en: Dict = {
'pdf.owner_prefix': 'Owner: ',
'pdf.siret_prefix': 'SIRET ',
'pdf.export_date_prefix': 'Exported on ',
'pdf.title.suffix.bilan': 'Osteo report — ',
'pdf.title.suffix.bilan': 'Zoosteo — ',
'pdf.subject': 'Animal osteopathic report',
'lang.switch_to_fr': 'Passer en français',
+1 -1
View File
@@ -30,7 +30,7 @@ export const fr: Dict = {
'home.import.error_invalid_pdf':
"Ce fichier n'est pas un PDF lisible.",
'home.import.error_no_attachment':
"Ce PDF n'a pas été généré par Osteo Report (pas de données détectées).",
"Ce PDF n'a pas été généré par Zoosteo (pas de données détectées).",
'home.import.error_incompatible_version':
"Ce PDF est au format v{version}, incompatible avec la version actuelle (v2). Réexportez le bilan depuis une version récente de l'application.",
+1 -1
View File
@@ -20,7 +20,7 @@ export async function attachReportJson(pdfDoc: PDFDocument, report: Report): Pro
const bytes = new TextEncoder().encode(JSON.stringify(report, null, 2))
await pdfDoc.attach(bytes, FILENAME, {
mimeType: 'application/json',
description: 'Osteo Report state v2',
description: 'Zoosteo state v2',
creationDate: new Date(),
modificationDate: new Date(),
afRelationship: AFRelationship.Data,
+1 -1
View File
@@ -10,6 +10,6 @@ describe('Brand', () => {
<Brand />
</ConfigProvider>,
)
expect(screen.getByText(/Osteo Report/i)).toBeInTheDocument()
expect(screen.getByText(/Zoosteo/i)).toBeInTheDocument()
})
})