chore: initial scaffold + design spec + implementation plan

Skeleton for Osteo Report MVP. Build passes, 7 smoke tests green, real
Horse.svg + Horse_head.svg in public/species/equine/. Zod schemas are
the contract; store/anatomy/pdf modules are typed stubs throwing
"not implemented" awaiting implementation.

Spec: docs/superpowers/specs/2026-05-18-osteo-report-mvp-design.md
Plan: docs/superpowers/plans/2026-05-18-osteo-report-mvp.md (23 phases, ~70 TDD tasks)

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-18 20:55:10 +02:00
1 parent 12a3e48fdf
commit 8ca36b5ccd
104 files changed
+12448

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# Injects runtime env vars into /usr/share/nginx/html/env.js
# which is loaded by index.html before the React bundle.
# Values come from Docker env vars (set via env_file in docker-compose.yml).
set -e
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}",
tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}"
};
EOF
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Osteo Report}"
# Replace PORT placeholder in nginx config if needed
# (nginx:alpine supports envsubst via templates; we keep it explicit)
export PORT="${PORT:-8080}"
envsubst '${PORT}' < /etc/nginx/conf.d/default.conf > /tmp/nginx_default.conf
cp /tmp/nginx_default.conf /etc/nginx/conf.d/default.conf
exec nginx -g "daemon off;"
+23
View File
@@ -0,0 +1,23 @@
server {
listen ${PORT:-8080};
server_name _;
root /usr/share/nginx/html;
index index.html;
# Serve env.js with no-cache so runtime config is always fresh
location = /env.js {
add_header Cache-Control "no-store, no-cache, must-revalidate";
try_files $uri =404;
}
# Assets with long-lived cache (Vite hashes filenames)
location /assets/ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
# SPA fallback — serve index.html for all non-file routes
location / {
try_files $uri $uri/ /index.html;
}
}