Bastien Chanot and Claude Opus 4.6
a73d8da263
fix(ui): responsive mobile — full phone/tablet adaptation across all components
...
Surgical CSS/className-only changes, zero behavior impact. 155/155 tests green.
- Dialog: tighter mobile padding (p-3/px-4), reduced max-height to 85vh
- Button: sm size h-8→h-9 (36px touch target), responsive text sizing
- VertebraPicker: 44px min-height touch targets on mobile region tabs
- SVG editor: sidebar stacks below canvas <768px, full-width mobile,
zoom controls 40px, canvas min-height 40vh
- AnatomyCanvas: SVG child constrained to fit container
- EditorRoute: responsive gap/padding, canvas max-h-[55vh] on mobile
- ObservationList + ConclusionPanel: responsive section heading typography
Target: 375px+ (iPhone SE) usable, 768px+ (iPad) polished, desktop no regressions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-05-23 20:01:50 +02:00
Bastien Chanot and Claude Opus 4.7
b67f4cd82b
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 >
2026-05-20 03:49:11 +02:00
Bastien Chanot
afd58b386b
feat(ui): Dialog with backdrop + escape + motion fade
2026-05-18 21:18:18 +02:00
Bastien Chanot
a1453ec32e
feat(ui): Chip toggle
2026-05-18 21:17:32 +02:00
Bastien Chanot
03332246d3
feat(ui): Badge with tones
2026-05-18 21:17:12 +02:00
Bastien Chanot
b806bedc4f
feat(ui): Select
2026-05-18 21:16:56 +02:00
Bastien Chanot
2ac996605a
feat(ui): Textarea
2026-05-18 21:16:40 +02:00
Bastien Chanot
2cb1640384
feat(ui): Label
2026-05-18 21:16:23 +02:00
Bastien Chanot
92052a31c1
feat(ui): Input
2026-05-18 21:16:09 +02:00
Bastien Chanot
226678017f
feat(ui): Card
2026-05-18 21:15:53 +02:00
Bastien Chanot
fe5adcd249
feat(ui): Button with variants + sizes + disabled state
2026-05-18 21:15:33 +02:00
Bastien Chanot and Claude Opus 4.7
8ca36b5ccd
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 >
2026-05-18 20:55:10 +02:00
Bastien Chanot
27afb719f5
clean all
2026-05-18 19:40:08 +02:00
ZenQuality
f57d6ec3d3
feat: UI — home, new report form, editor with anatomy canvas + findings + PDF export
...
UI primitives (Tailwind, no shadcn CLI dependency):
- Button, Card, Input, Textarea, Label, Badge, Select, Dialog
- Brand, Header, Footer, Shell layout wrapper
Routes:
- HomeRoute: new bilan card + import PDF card with drag-drop, error toast
- NewReportRoute: 9-species selector (8 disabled badges 'à venir'),
practitioner block (fullName required + title/phone/email/SIRET/address optional),
animal+owner, sessionDate. Zod-validated form via react-hook-form
- EditorRoute: split view — anatomy canvas (3 tabs latéral L/R + dorsal) on the
left, findings panel + conclusion + export button on the right
- NotFoundRoute
Editor:
- AnatomyView: fetch SVG, DOMParser-based (no innerHTML), click delegation on
[data-zone], CSS-variable styling per state (default/selected/linked)
- AnatomyCanvas: animated tab switcher with motion shared layout
- ZoneSelection: chip bar of current selection, validate+reset buttons
- FindingEditor: modal dialog with severity radios, pathology multi-select
filtered by zones, free-text pathology input, linked-zones picker, comment
- FindingPanel: list of findings with hover-preview wired to canvas highlight
- ConclusionPanel: conclusion + recommendations + next appointment
- ExportButton: triggers PDF download
- rasterize.ts: SVG → PNG bytes via canvas (used by editor before PDF export)
ESLint: relax strict-type-checked to React-idiomatic level (no-confusing-void-expression
off, no-misused-promises allows void-return attributes, no-floating-promises is warn).
2 remaining errors fixed (label a11y + optional chain in HomeRoute).
PDF export Blob: copy bytes into fresh ArrayBuffer before Blob ctor — TS strict
rejects ArrayBufferLike|SharedArrayBuffer as BlobPart in lib.dom 2026.
Tests: 34/34 still green. Build 5.6s (motion 96KB, pdf-lib 523KB chunks).
2026-05-17 07:18:13 +02:00
ZenQuality
a115e785a7
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.
2026-05-17 06:43:11 +02:00