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

+83
View File
@@ -0,0 +1,83 @@
import { create } from 'zustand'
import type { Report } from '@/domain/schema/report'
import type { Observation } from '@/domain/schema/observation'
export interface ReportStore {
/** Currently open report, or null if no session active */
report: Report | null
/** Index of the currently active observation (0-based) */
activeObservationIndex: number
/** Starts a new report from a partial template */
initReport: (draft: Omit<Report, 'id' | 'createdAt' | 'version'>) => void
/** Replaces the entire report (used after PDF import) */
hydrateReport: (report: Report) => void
/** Adds a new empty observation and sets it as active */
addObservation: () => void
/** Removes observation at given index */
removeObservation: (index: number) => void
/** Moves observation up (index - 1) */
moveObservationUp: (index: number) => void
/** Moves observation down (index + 1) */
moveObservationDown: (index: number) => void
/** Replaces the observation at given index */
updateObservation: (index: number, obs: Observation) => void
/** Sets active observation index */
setActiveObservation: (index: number) => void
/** Updates conclusion text */
setConclusion: (text: string) => void
/** Updates recommendations text */
setRecommendations: (text: string) => void
/** Clears the store (after export or cancel) */
reset: () => void
}
export const useReportStore = create<ReportStore>(() => ({
report: null,
activeObservationIndex: 0,
initReport: () => {
throw new Error('not implemented')
},
hydrateReport: () => {
throw new Error('not implemented')
},
addObservation: () => {
throw new Error('not implemented')
},
removeObservation: () => {
throw new Error('not implemented')
},
moveObservationUp: () => {
throw new Error('not implemented')
},
moveObservationDown: () => {
throw new Error('not implemented')
},
updateObservation: () => {
throw new Error('not implemented')
},
setActiveObservation: () => {
throw new Error('not implemented')
},
setConclusion: () => {
throw new Error('not implemented')
},
setRecommendations: () => {
throw new Error('not implemented')
},
reset: () => {
throw new Error('not implemented')
},
}))