Commit Graph
448 Commits
Author SHA1 Message Date
bchanot 552733b4c8 docs(docs): IDENTITY.md (routes, session, providers, MFA gap, manual validation); CLAUDE.md map + architecture; SUPABASE.md wiring; CHANGELOG; plan note; Step 7 verify contract 2026-10-11 23:39:08 +02:00
bchanot aa1985eead test(app): identity step — auth store, locale sync, login/signup, guards, shell, dashboard, account
- tests/helpers/fakeSupabase: in-memory auth events + profiles/profile_roles builder
- validation schemas and safeNextPath; classifyAuthError mapping (packages/supabase)
- LoginRoute (unavailable, validation, next path, phrased failure, OAuth buttons, show password)
- SignupRoute (policy, mismatch, metadata + redirect, user exists)
- RequireAuth / RedirectIfSignedIn, AppLayout (nav, active, drawer, sign out), Dashboard, Account forms
2026-10-11 23:33:25 +02:00
bchanot c517ea267b feat(app): identity screens and /app shell — auth store, login/signup/reset flows, dashboard, account
- state/authStore: session subscription (initialize + onAuthStateChange), profile + roles load, recovery flag, URL failure; services/localeSync: profiles.locale <-> localeStore
- routes: /login, /signup, /forgot-password, /reset-password, /auth/callback; guards RequireAuth (next=) and RedirectIfSignedIn; /app (dashboard), /app/account behind the guard
- shell: AppLayout (desktop sidebar, light top bar, mobile drawer), SidebarNav, UserBadge, SignOutButton
- account: personal / professional / preferences / security sections, one save each, Zod validation with i18n keys
- ui: Icon, FormField, Notice, ButtonLink (buttonClassName shared), PasswordField, OAuthButtons (config-driven)
- Home header: Mon espace / Se connecter when Supabase is configured; local tool routes untouched
- i18n: auth.*, shell.*, dashboard.*, account.*, home.space.* in fr + en
2026-10-11 23:29:13 +02:00
bchanot 0f7292f9b3 test(config): authProviders parsing; fixture carries the new field 2026-10-11 23:16:57 +02:00
bchanot b10b227ee9 feat(supabase): auth, profile and roles services; professional columns on profiles; OAuth + TOTP config
- packages/supabase: signIn/signUp/OAuth/reset/updatePassword/signOut wrappers with a closed AuthFailure kind, fetch/update own profile, own platform roles
- migration 20261011100000: practice_name, professional_title, siret (format-checked, column grants); pgTAP 009; database.types regenerated
- config.toml: TOTP enroll/verify on, [auth.external.google|apple] via env(), wildcard redirect URLs
- app config: authProviders (APP_AUTH_PROVIDERS / VITE_AUTH_PROVIDERS), entrypoint env.js, DEPLOY table
- TODO: Step 7 plan
2026-10-11 23:16:13 +02:00
bchanot c746952d7f Merge feature/step-06-pdf-archives into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-11 17:32:15 +02:00
bchanot 62b2b9d86a fix(pdf): candidates sorted by data offset, JSON depth pre-scan before parse, budget wording; chore(memory): BLK-009 mitigated with gate, EVAL-014, journal, TODO, CLAUDE.md import notes 2026-10-11 17:31:07 +02:00
bchanot 3a6e92625a fix(pdf): inflater fed in 16 KiB slices (browser memory bound), shared 16 MiB candidate budget, monotonic bounded endstream search, JSON object pre-check 2026-10-11 17:08:56 +02:00
bchanot 6adc38b027 docs: hardening §4 commit pointer 2026-10-11 16:42:46 +02:00
bchanot 60ee71208f fix(pdf): bounded attachment extraction by byte scan — no pdf-lib parse on import, export without object streams (BLK-009) 2026-10-11 16:42:45 +02:00
bchanot 62b8a43e09 feat(home): import messages open with a full-restoration or partial-recovery headline; BDR-040 recorded 2026-10-11 16:31:37 +02:00
bchanot de2bd0437e chore(memory): BLK-009 attachment scan contract 2026-10-11 16:29:15 +02:00
bchanot 6688c3c60e chore(memory): journal + TODO 6.8 after the first manual-test round 2026-10-11 16:16:14 +02:00
bchanot e8f1734424 feat(editor): tell the practitioner when a restored draft was rebased on a different sheet 2026-10-11 16:15:13 +02:00
bchanot 5ed4a4b620 docs: PDF import hardening analysis (BLK-009) — byte-scan reader and object-stream-free export now, worker and parser replacement before external users 2026-10-11 16:12:22 +02:00
bchanot 293a6e0b36 fix(pdf): bundle the branding assets into the app (no fetch at export), export returns its warnings and the editor reports missing elements 2026-10-11 16:09:39 +02:00
bchanot 80e95ca61d docs(pdf): PNG budget wording (pixel cap bounds decoder memory); chore(memory): EVAL-013, journal, TODO 6.6 closed and 6.8 awaiting user 2026-10-11 15:06:12 +02:00
bchanot cb95627a11 fix(pdf): PNG gate inflates IDAT natively against the exact raw size, validates IHDR fields, refuses zero dimensions and interlace (UPNG inflateRaw spin) 2026-10-11 14:52:03 +02:00
bchanot 0ceb357b18 fix(pdf): PNG chunk allowlist and mandatory empty IEND — text and profile chunks refused (UPNG nextZero spin) 2026-10-11 14:29:56 +02:00
bchanot 3a26c61119 fix(pdf): link URIs as ASCII hex (readable by poppler), PNG budget walks the chunk list (second IHDR and APNG refused) 2026-10-11 14:14:10 +02:00
bchanot dfd04e0bd7 chore(memory): step 6 security fix 2 contract 2026-10-11 14:07:19 +02:00
bchanot 1cc92f664b chore(memory): security-fix contract — oracle of criterion 1 corrected, evidence recorded 2026-10-11 13:58:26 +02:00
bchanot 1f417b21fd fix(pdf): security hardening — hex-encoded link URIs, strict branding URL schema, branding and labels re-validated at export, PNG dimension budget, CSS escape and parenthesis rules in the sanitiser, finite raster size, file size checked before read 2026-10-11 13:54:18 +02:00
bchanot 4930704d8a chore(memory): BLK-009 pdf-lib uncapped object-stream inflation on load 2026-10-11 13:43:30 +02:00
bchanot 51eb7da4a3 chore(memory): step 6 security fix contract 2026-10-11 13:43:06 +02:00
bchanot f2a64bcb0a chore(memory): step 6 verify contract — oracles of criteria 6/7 fixed, scope widened, deleted tests authorised with replacements, docker evidence 2026-10-11 13:40:55 +02:00
bchanot 83115b484d docs: CLAUDE.md on the Step 6 pipeline (architecture, conventions, folder map); TODO 6.4-6.5; LRN-046 2026-10-11 13:33:59 +02:00
bchanot 9bd5173a9c feat(app): export and import through @faunosteo/pdf — snapshot, archived branding and labels, browser rasterizer, imported archive kept in session, explicit rebase with messages; legacy PDF modules removed 2026-10-11 13:32:14 +02:00
bchanot 20dafc0b00 chore(memory): step 6 whole-step verification contract 2026-10-11 13:12:37 +02:00
bchanot 9e681232cf docs: step 6 sync — README layout and docs list, WORKSPACE package rule, DEPLOY rollback note, CHANGELOG entry 2026-10-11 13:11:44 +02:00
bchanot ad48758f8c docs(pdf): PDF-FORMAT.md written for real — pages, archive envelope v1, snapshot, layered reading, rebase, limits, compare tool 2026-10-11 13:11:04 +02:00
bchanot c17956031d feat(pdf): @faunosteo/pdf engine — explicit inputs, envelope v1 attachment, layered reader, xmldom composition, allowlist SVG sanitiser, WinAnsi guard, rasterizer adapter; goldens reproduced 2026-10-11 13:09:17 +02:00
bchanot e7419cb4cb chore(memory): TODO step 6 phases 0-2 done 2026-10-11 12:31:15 +02:00
bchanot cdc0943f35 feat(domain): archive contracts — sheet snapshot (lean document, caps, integrity), envelope v1 layered reader, branding and label schemas, report rebase, sheet index moved from the app; bundle carries asset hashes 2026-10-11 12:30:57 +02:00
bchanot 8b86b926c8 test(pdf): step 6 phase 0 freeze — demo report, bare v3 PDF, 39 goldens (text, images, links, views) and route characterisation tests 2026-10-11 12:13:36 +02:00
bchanot 694092610d feat(anatomy): composeViewSvg with tree-level highlight and halo, review drawing on the shared composer 2026-10-11 12:05:56 +02:00
bchanot 4c6c5151f8 docs: step 6 implementation contract (types, envelope v1, read, rebase, session, messages, goldens) + BDR-039 2026-10-11 11:59:08 +02:00
bchanot 72f19521d3 Merge chore/step-06-pdf-archive-analysis into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-11 11:52:14 +02:00
bchanot 81342009fe docs: step 6 autonomous PDF archives analysis and plan (snapshot content, envelope v1, compatibility, limits, tests) 2026-10-10 23:17:23 +02:00
bchanot 072d761261 chore(memory): LRN-045 permanent will-change blurs composited text
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-10 22:43:11 +02:00
bchanot 91131713b1 Merge feature/step-05-app-on-canonical-sheet into develop
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-10 22:16:24 +02:00
bchanot 271a8b6515 chore(memory): journal + TODO 5.11/5.12 + contract — hotfix findings picker blur, Step 5 validated 2026-10-10 22:16:18 +02:00
bchanot 1f0b710b6e fix(editor): drop the permanent will-change on the findings list, its text blurred on screen 2026-10-10 22:15:09 +02:00
bchanot 9cedaccbb3 chore(memory): EVAL-012, LRN-044, journal, TODO 5.8-5.10 closed 2026-10-10 16:06:00 +02:00
bchanot 388e209ea9 fix(pdf): report:compare --diff follows the privacy default, generic reason on a malformed attachment, Unicode control and format characters escaped, regular files only 2026-10-10 16:01:12 +02:00
bchanot b1b3e4927e fix(pdf,tests): report:compare escapes control characters, prints names and free text only with --full, stats before read, missing file as a per-file failure; inferRegionCode regression test; import.ts JSDoc reattached 2026-10-10 15:53:07 +02:00
bchanot dc78a00835 feat(pdf): archive check tool pnpm report:compare (attachment vs its v3 reading, unresolved items flagged, --diff/--summary/--identity); readAttachedDocument split out of extractReportJson; stale scaffold:species script removed; docs 2026-10-10 15:44:20 +02:00
bchanot 1e0491f3bc test(anatomy,app): every legacy catalog leaf (612) and annotation (27) through the v2 to v3 migration against the draft document, the sheet index and a PDF roundtrip 2026-10-10 15:44:20 +02:00
bchanot e7f4167ada fix(domain,app): own-key lookups for untrusted ids in the v2 migration, attachment and PDF size caps; EVAL-011, journal, TODO 2026-10-10 12:23:03 +02:00
bchanot 17a6d9b323 test(app): former PDF, observation card, route and schema assertions restored on v3; foreign JSON attachment reported as no_attachment; doc counts 2026-10-10 12:21:19 +02:00