bchanot
ce2ec26112
feat(app): application on the canonical sheet — report v3 store with v2 draft migration, bundled SheetProvider (SHEET_BUNDLE), annotation layer rendered from the document, zone interaction service, pickers and cards on the sheet index, PDF v3 export with v2 archive import; legacy registry, matchers, editors and assets removed
2026-10-10 11:36:14 +02:00
bchanot
0a17e390cf
feat(anatomy): report migration map and sheet reference generated by the pipeline, pure annotation-layer renderer (legacy marker look) shared with the app, app review drawings, marker colours as document data
2026-10-10 11:17:34 +02:00
bchanot
70bf992017
feat(domain): report document v3 (annotation ids, sheet ref, severity codes, unresolved findings), v2 schema as input, v2→v3 migration with map; annotation colour override
2026-10-10 11:11:25 +02:00
bchanot
cce0bdcd9c
test(app): freeze golden v2 PDFs exported by the current pipeline (step 5.0, synthetic reports)
2026-10-10 11:06:53 +02:00
bchanot
199e328298
Merge chore/step-05-migration-analysis into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-10 11:04:23 +02:00
bchanot
734c0d91fd
docs: step 5 migration analysis (report v3, adapter + migration map, sheet provider, annotation layer, service/store split, risks, tests, decisions D1–D8); TODO plan; plan note
2026-10-10 10:54:04 +02:00
bchanot
ce3d9634b3
Merge feature/step-04c-equine-curation into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-10 10:33:04 +02:00
bchanot
866e84f75b
docs(chore): step 4c validated — head view check, migration limit BLK-008, review semantics, .env.example expected change, BDR-037, TODO follow-up
2026-10-10 10:32:57 +02:00
bchanot
c0c17fcf5f
feat(supabase): SQL gate reports non-http(s) reference urls (reference.url.scheme), pgTAP 008 cases; EVAL-010, journal, TODO 4c
2026-10-10 10:10:45 +02:00
bchanot
34be7e23df
docs: schema v2 migration listed, one cleaned asset in the draft, curation file list; CHG-021 rationale names no uncited author
2026-10-10 10:05:29 +02:00
bchanot
ed3c70df59
fix(species): JSAVA 2018 citation completed (Le Roux & Carstens, DOI), access dates on undated web references; DEPLOY.md log path uses faunosteo_app
2026-10-10 09:57:21 +02:00
bchanot
6034909674
fix(anatomy): B/C changes leave every touched finding and annotation at to_confirm (applier rule, reviewed refused), typed test reads, docs numbers
2026-10-10 09:03:00 +02:00
bchanot
37550c29a5
fix(species): B-level head changes marked to_confirm instead of reviewed, question on the legal scope text
2026-10-10 02:02:16 +02:00
bchanot
55bd83d09c
chore(memory): BDR-036 schema v2 + changeset, LRN-042 authoring and SVG audit, journal, TODO 4c
2026-10-10 01:53:12 +02:00
bchanot
c8ebcde913
docs: step 4c curation layout, review drawings, plan and changelog entries
2026-10-10 01:53:11 +02:00
bchanot
4ba937b02f
feat(species): equine curation changeset — 44 research-backed changes, 48 references, draft regenerated (811 nodes, carpus zone, 9 points relocated)
2026-10-10 01:53:10 +02:00
bchanot
1a96a1555c
feat(anatomy): before/after review drawings per view, questions of every level in the report, tests on the real changeset
2026-10-10 01:53:10 +02:00
bchanot
6870d87910
feat(anatomy): curation pipeline — changeset schema, applier with before/after records, cleaned single asset, draft seed, changelog + review report generators; seed layout legacy-import/curation/draft
2026-10-09 16:50:08 +02:00
bchanot
3dbbfdf1df
feat(domain): sheet document schema v2 — references registry, review_status, vertebral count_range; SQL gate + pgTAP 008
2026-10-09 16:30:58 +02:00
bchanot
6c5b2b7754
chore(docker): faunosteo_ naming convention for Docker resources (compose project + container), documented CLI limit
2026-10-09 16:26:06 +02:00
bchanot
584b165bfa
Merge feature/step-04b-equine-import into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-09 16:13:50 +02:00
bchanot
dee4ce43d9
fix(supabase): confirmed uploads gate asset reads (hash claim), seeds-listed test, Dockerfile workspace manifests; importer declares every authored label, real in=out control
2026-10-09 00:50:36 +02:00
bchanot
bbfb8d6203
chore(chore): capitalize Step 4b — BDR-034, LRN-041, journal, TODO
2026-10-09 00:39:44 +02:00
bchanot
e5a0445b19
test(supabase): equine seed + storage pgTAP on both engines; docs for Step 4b; upload script resolves from caller dir
2026-10-09 00:38:49 +02:00
bchanot
52bfc11553
feat(domain): equine legacy importer (packages/anatomy) + generated official equine sheet seed as draft
2026-10-09 00:38:48 +02:00
bchanot
f4682cdba5
feat(supabase): sheet asset Storage bucket + read policy through the sheet, shim storage tables, seeds in the PGlite harness, upload script
2026-10-09 00:28:34 +02:00
bchanot
12f0b21fdf
feat(domain): finding kind observation → consultation_reason; Step 4 business decisions in spec + memory (BDR-033)
2026-10-09 00:24:22 +02:00
bchanot
1cc70c3589
Merge feature/step-04-anatomical-sheet-model into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-09 00:23:08 +02:00
bchanot
5d32bed829
docs(docs): sheet model spec matches the hardened code (counter, SQL-only codes, census, migration list)
2026-10-09 00:05:39 +02:00
bchanot
d3fa65af29
fix(supabase): revoke PUBLIC EXECUTE on private helpers, audited visibility RPC, input caps, authz-first RPCs, +32 pgTAP checks
2026-10-08 23:59:39 +02:00
bchanot
6966c54a2e
docs(docs): Step 4 sheet model in CLAUDE.md, SUPABASE.md, WORKSPACE, README, plan note, changelog
2026-10-08 23:45:01 +02:00
bchanot
8cac8b1a68
feat(supabase): regenerated types, row aliases, publishSheetVersion gate, schema test
2026-10-08 23:42:44 +02:00
bchanot
f4ceaf68f9
feat(supabase): anatomical sheets, immutable versions, assets, lifecycle RPCs, RLS + pgTAP
2026-10-08 23:42:43 +02:00
bchanot
36812f4625
feat(domain): canonical anatomical sheet document, integrity rules, tests
2026-10-08 23:42:42 +02:00
bchanot
aea8902711
docs(docs): anatomical sheet model spec (Step 4) + TODO plan
2026-10-08 23:42:42 +02:00
bchanot
da444309ae
Merge chore/supabase-cli-gitignore into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-08 23:19:14 +02:00
bchanot
7891e36bdb
chore(chore): mark Step 3 validated in TODO + journal
2026-10-08 23:19:08 +02:00
bchanot
e5f81a4ebe
chore(supabase): ignore Supabase CLI local state (.branches, .temp)
2026-10-08 23:15:54 +02:00
bchanot
7ea0b1f905
Merge feature/step-03-supabase-foundation into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-08 23:15:14 +02:00
bchanot
fcdcfb53b2
docs(docs): real-stack verification notes; BLK-006 resolved, EVAL-007, LRN-037
2026-10-08 23:04:22 +02:00
bchanot
8b233e5cf0
chore(supabase): adopt CLI-generated database.types.ts; db:types scripts pipe through prettier
2026-10-08 23:04:21 +02:00
bchanot
a2e33fe4a2
test(supabase): make pgTAP counts seed-agnostic (real stack carries seed accounts)
2026-10-08 23:04:20 +02:00
bchanot
d5a5a720a1
chore(chore): capitalize step 3 — BDR-026..029, LRN-035/036, BLK-006, EVAL-006, journal, TODO
2026-10-08 22:48:17 +02:00
bchanot
1e7d0327cc
fix(supabase): no USAGE on schema private for anon; pin it and RPC EXECUTE in pgTAP
2026-10-08 22:47:20 +02:00
bchanot
1dd45a3109
docs(docs): SUPABASE.md runbook + CLAUDE/README/DEPLOY/WORKSPACE updated for the Supabase foundation
2026-10-08 22:46:38 +02:00
bchanot
5511a2158a
ci(ci): supabase job — start stack, pgTAP on the real image, generated types diff
2026-10-08 22:46:37 +02:00
bchanot
ab04b2e43d
style(supabase): prettier pass on the new TypeScript files
2026-10-08 22:46:37 +02:00
bchanot
d239374d81
feat(app): optional Supabase connection in runtime config + lazy typed client
...
- env.ts: supabase: SupabaseConnection | null resolved from env.js
(supabaseUrl/supabaseAnonKey), VITE_SUPABASE_*, else null; half config refused
- lib/supabase.ts: getSupabaseClient() null when unconfigured, one client per URL
- entrypoint.sh writes the two public values; .env.example placeholders
- Dockerfile copies packages/supabase manifest for the install layer
- no UI change; 7 new tests (278 app)
2026-10-08 22:43:18 +02:00
bchanot
ce76c6597a
feat(supabase): @faunosteo/supabase package with PGlite harness and typed client
...
- tests/db: PGlite (PostgreSQL 17 WASM) applies the Supabase shim + migrations and
runs supabase/tests/*.sql through pgTAP without Docker
- schema-types test pins tables, columns, enums, RPC args, RLS-on, no using(true)
- database.types.ts in supabase gen types format; createBrowserClient (PKCE)
- Supabase CLI pinned as root devDependency; db:* root scripts
2026-10-08 22:20:54 +02:00
bchanot
2d5ff0c33e
feat(supabase): foundation migrations (audit, profiles, platform roles) + pgTAP suite
...
- schemas private/audit, set_updated_at, append-only audit.audit_logs, private.log_event
- profiles created by auth.users trigger; own-row RLS; column-level UPDATE grant
- platform_role enum (owner/admin/moderator/support), profile_roles history table,
is_platform_* helpers, grant/revoke RPCs audited; writes only via RPC
- config.toml (public schema only, strong passwords, no edge runtime), local seed
- 79 pgTAP checks: allowed and denied paths for every policy
2026-10-08 22:20:54 +02:00
bchanot
62c5a3ac86
chore(chore): plan step 3 Supabase foundation in TODO
2026-10-08 22:06:37 +02:00
bchanot
d9a7bd70b8
chore(chore): refresh gitflow post-commit/post-merge hooks (fail-closed autopush)
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
2026-10-08 22:06:19 +02:00
bchanot
ab8451210b
chore(chore): capitalize step 2 decisions, learning and journal
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
2026-10-08 21:57:05 +02:00
bchanot
49596022c9
Merge feature/step-02-monorepo-workspace into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
2026-10-08 21:56:42 +02:00
bchanot
02052f3622
docs(docs): restore 2026-05 design specs and plans under docs/history
...
Purged from docs/superpowers by the gitflow finish of step 1 (BDR-065);
that path is purged at every finish, so the records live under
docs/history/superpowers/ instead. References updated.
2026-10-08 21:51:13 +02:00
bchanot
8673475293
chore(workspace): move the app to apps/app under a pnpm workspace (step 2)
...
144 files moved with git mv (pure renames). Root package.json delegates
dev/typecheck/test:run/lint/build to the packages; Node 24 LTS and
pnpm 10.13.1 pinned (.nvmrc, .node-version, engines, packageManager,
root devDependency, engine-strict). Dockerfile builds @faunosteo/app on
node:24-alpine and copies apps/app/dist; nginx and runtime config
unchanged. CI workflow for Gitea Actions. packages/ reserved (README only).
Docs synced: WORKSPACE.md, CLAUDE.md, README, DEPLOY, CHANGELOG, plan.
271/271 tests, typecheck, lint, build green from the root.
2026-10-08 21:51:13 +02:00
bchanot
c8d48ab4cc
Merge feature/step-01-characterisation-tests into develop
2026-10-08 21:41:52 +02:00
bchanot
8f217d8103
chore: purge transient planning artifacts (BDR-065)
2026-10-08 21:41:51 +02:00
bchanot
e9047a99d2
chore(chore): capitalize step 0-1 learnings, eval and journal
2026-10-08 21:41:40 +02:00
bchanot
e84cbaf884
test(tests): add characterisation suite of the current app (step 1)
...
Seven files, 91 cases, on the real SVGs and catalog: catalog invariants,
SVG <-> catalog mapping table, pathology-editor matcher parity, click chain
through the DOM, full PDF export/import, schema and persistence, i18n and
species. Two golden Report v2 fixtures. No application file changed.
Report: docs/development/CHARACTERIZATION_REPORT.md. 271/271 green.
2026-10-08 21:41:39 +02:00
bchanot
b0cce2cd8c
docs(docs): add SaaS implementation plan and architecture docs (step 0)
...
Eight documents under docs/development/ confronting the approved business
architecture with the audited code: 27-step plan, repository migration map,
domain map, frontend/backend architecture, migration and test strategy,
open questions. Reference document placed at the repository root.
2026-10-08 21:41:39 +02:00
bastien
2ae1e48b7e
chore(chore): refresh gitflow hooks (gitleaks backstop, auto-push, ref protection)
...
pre-commit gains a gitleaks secret scan on every branch, a per-repo
gitflow.protect opt-out, and exempts .githooks/** like .claude/**.
Adds the generated post-commit, post-merge and reference-transaction
hooks from the gitflow lib.
2026-10-06 23:53:24 +02:00
bastien
021569f44c
Merge chore/anatomical-audit into develop
2026-10-06 23:52:45 +02:00
bastien
e471d41c6b
docs(docs): add anatomical audit of existing SVG, catalog and report systems
...
Read-only technical audit before the SaaS redesign: 13 reports,
a logical anatomical-sheet JSON built from real horse data, verbatim
copies of the 52 relevant source files, and a self-contained ZIP.
2026-10-06 23:51:35 +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
b5b2e163c9
feat: domain core — schemas, store, equine data, PDF roundtrip
...
Phase A — Domain & schemas (15 tests):
- Zod schemas: ReportSchema, FindingSchema, PractitionerSchema, SeveritySchema
- Types derived via z.infer (single source of truth)
- newId() helper with optional prefix
Phase B — Equine anatomy + pathology DB (7 tests):
- 26 macro zones, axial subzones C1-7/T1-18/L1-6/S1-5
- 31 pathologies, each citing Merck Vet Manual, PubMed, IMAIOS or LCAO
- Placeholder SVGs (lateral L/R + dorsal) with data-zone convention
- Species registry: equine registered, 8 others remain stubs
Phase C — Zustand store (8 tests):
- Single source of truth with persist middleware (localStorage key osteo-report-draft)
- Actions: hydrate, reset, toggleZone, addFinding, updateFinding, removeFinding, setConclusion/Recommendations/NextAppointment
Phase H/I — PDF export + import roundtrip (2 tests):
- A4 portrait, pdf-lib StandardFonts
- Header (practitioner + animal), anatomy pages (per used view), findings
table, conclusion/recommendations/RDV page, page footer with date+page#
- Attachment: base64 data URI workaround (pdf-lib treats raw string as
base64 input, and rejects cross-realm Uint8Array in jsdom tests)
- Import: walks Catalog→Names→EmbeddedFiles→Names array→F stream; inflates
via pako directly (bypasses pdf-lib's reference-equality FlateDecode check
which fails across module realms in vitest); validates with ReportSchema
Tooling:
- Add pako 2.x + @types/pako (already transitive of pdf-lib)
- Switch vitest 2 → 3 (already done in prior commit)
- Add 8 test files (34 tests total green)
2026-05-17 07:06:59 +02:00
ZenQuality
4c465a5743
docs: initial README
2026-05-17 06:48:28 +02:00
ZenQuality
3fb77c3530
chore: scaffold fixes — React 19 JSX, vitest v3, @types/node, lint scoping
...
- React 19 dropped global JSX namespace; stub return types removed (TS infer)
- vitest 2 pulled vite 5 alongside project vite 6 → upgrade vitest to 3 (dedupes)
- Add @types/node to devDeps so vite/vitest configs compile
- ESLint flat config: scope strictTypeChecked to src/ + tests/, ignore config files
- tsconfig.app.json: include tests/, add vitest/globals to types
- vite.config.ts + vitest.config.ts: use import.meta.dirname instead of __dirname
- pdf/export + pdf/import: stub returns Promise.reject so require-await rule clears
- tests/unit/smoke.test.ts: keep vitest run from exiting 1 with no tests
2026-05-17 06:47:52 +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