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

+52
View File
@@ -0,0 +1,52 @@
/// <reference types="vite/client" />
/**
* Runtime application config.
* Resolution order:
* 1. window.__APP_CONFIG__ (injected by docker/entrypoint.sh)
* 2. import.meta.env.VITE_APP_* (build-time Vite defines)
* 3. Hard-coded defaults
*/
export interface AppConfig {
siteName: string
brandName: string
footerName: string
tagline: string
}
declare global {
interface Window {
__APP_CONFIG__?: Partial<AppConfig>
}
}
const DEFAULTS: AppConfig = {
siteName: 'Osteo Report',
brandName: 'Osteo Report',
footerName: 'Osteo Report',
tagline: "Bilans d'ostéopathie animalière",
}
function resolveConfig(): AppConfig {
const runtime = typeof window !== 'undefined' ? window.__APP_CONFIG__ : {}
return {
siteName:
runtime?.siteName ??
import.meta.env.VITE_APP_SITE_NAME ??
DEFAULTS.siteName,
brandName:
runtime?.brandName ??
import.meta.env.VITE_APP_BRAND_NAME ??
DEFAULTS.brandName,
footerName:
runtime?.footerName ??
import.meta.env.VITE_APP_FOOTER_NAME ??
DEFAULTS.footerName,
tagline:
runtime?.tagline ??
import.meta.env.VITE_APP_TAGLINE ??
DEFAULTS.tagline,
}
}
export const appConfig: AppConfig = resolveConfig()