chore: initial scaffold
Generated by /init-project. React 19 + TS strict + Vite 6 + Tailwind 4 + shadcn/ui + motion + pdf-lib + Zod + Zustand + react-router 7. Empty skeleton, no business logic. Docker multi-stage + nginx + Traefik labels commented. AGPL-3.0-or-later.
This commit is contained in:
commit
a115e785a7
88 files changed
+12149
No files matched your search
@@ -0,0 +1,56 @@
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
|
||||
import type { Finding } from '../schema/finding';
|
||||
import type { Report } from '../schema/report';
|
||||
|
||||
interface ReportState {
|
||||
report: Report | null;
|
||||
selection: string[];
|
||||
hydrate: (r: Report) => void;
|
||||
reset: () => void;
|
||||
toggleZone: (zoneId: string) => void;
|
||||
clearSelection: () => void;
|
||||
addFinding: (f: Finding) => void;
|
||||
updateFinding: (id: string, patch: Partial<Finding>) => void;
|
||||
removeFinding: (id: string) => void;
|
||||
setConclusion: (text: string) => void;
|
||||
setRecommendations: (text: string) => void;
|
||||
setNextAppointment: (date: string | undefined) => void;
|
||||
}
|
||||
|
||||
export const useReportStore = create<ReportState>()(
|
||||
persist(
|
||||
(set) => ({
|
||||
report: null,
|
||||
selection: [],
|
||||
hydrate: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
reset: () => set({ report: null, selection: [] }),
|
||||
toggleZone: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
clearSelection: () => set({ selection: [] }),
|
||||
addFinding: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
updateFinding: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
removeFinding: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
setConclusion: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
setRecommendations: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
setNextAppointment: () => {
|
||||
// implemented in feature task
|
||||
},
|
||||
}),
|
||||
{ name: 'osteo-report-draft' },
|
||||
),
|
||||
);
|
||||
Reference in new issue
Block a user