feat(editor): findings tree picker + scope disclaimer + PDF render
Replaces the flat PathologyPicker with FindingsTreePicker — breadcrumb navigation, drill into intermediate categories, toggle leaves, optional vet-referral badge, optional description rendering. One picker per zone that has a catalog entry; zones without a tree fall back to the free-text input (renamed FreeTextFindingInput to match the new vocabulary). EditorRoute now loads SpeciesFindings instead of a Pathology[] and shows the scope_disclaimer once per session via a sessionStorage flag so the practitioner is reminded of the legal perimeter the first time. PDF observationPage renders findings via the snapshotted FR label and prefixes ⚠ on vet-referral items, keeping the existing layout pipeline intact (LRN-007/008/009 still apply). Also drops the unused Toast and ZoneTooltip stubs, refreshes the CLAUDE.md folder map, and adds a FindingsTreePicker test covering navigation, leaf toggle, vet-referral flag, and back-out. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d08d773d74
commit
b67f4cd82b
12 files changed
+473
-186
No files matched your search
@@ -121,11 +121,11 @@ osteo/
|
||||
│ │ │ ├─ observation.ts
|
||||
│ │ │ ├─ practitioner.ts
|
||||
│ │ │ ├─ animal.ts
|
||||
│ │ │ └─ pathology.ts
|
||||
│ │ │ └─ findings.ts
|
||||
│ │ └─ species/
|
||||
│ │ ├─ types.ts ← SpeciesManifest interface
|
||||
│ │ ├─ registry.ts ← getSpecies(), getAllSpecies()
|
||||
│ │ └─ equine/{index,vertebrae,pathologies}.ts
|
||||
│ │ └─ equine/{index,vertebrae,pathologies}.{ts,json}
|
||||
│ ├─ state/
|
||||
│ │ ├─ reportStore.ts ← Zustand store
|
||||
│ │ └─ practitionerCache.ts ← localStorage prefill
|
||||
@@ -134,11 +134,11 @@ osteo/
|
||||
│ │ ├─ svgConvention.ts ← parseSvgBones()
|
||||
│ │ └─ svgLoader.ts ← loadSvg(), svgToPngDataUrl()
|
||||
│ ├─ components/
|
||||
│ │ ├─ ui/{Button,Card,Dialog,Input,Label,Select,Textarea,Badge,Chip,Toast}.tsx
|
||||
│ │ ├─ canvas/{AnatomyCanvas,DetailModal,ZoneTooltip}.tsx
|
||||
│ │ ├─ observation/{ObservationList,ObservationCard,ObservationEditor,
|
||||
│ │ │ PathologyPicker,VertebraPicker,SeveritySelector,
|
||||
│ │ │ FreeTextPathologyInput}.tsx
|
||||
│ │ ├─ ui/{Button,Card,Dialog,Input,Label,Select,Textarea,Badge,Chip}.tsx
|
||||
│ │ ├─ canvas/{AnatomyCanvas,DetailModal}.tsx
|
||||
│ │ ├─ observation/{ObservationList,ObservationCard,FindingsTreePicker,
|
||||
│ │ │ VertebraPicker,SeveritySelector,
|
||||
│ │ │ FreeTextFindingInput}.tsx
|
||||
│ │ ├─ report/{ReportHeader,PractitionerForm,AnimalForm,
|
||||
│ │ │ ConclusionPanel,NextAppointmentPicker}.tsx
|
||||
│ │ └─ brand/Brand.tsx
|
||||
|
||||
Reference in new issue
Block a user