Commit Graph
926 Commits
Author SHA1 Message Date
bchanot 7bf1404946 chore(memory): LRN-114 worktree loss, durable worktree, V1-2.6 execution ledger 2026-11-04 13:26:04 +01:00
bchanot 8343528be9 feat(app): editor views tab, drawing upload and cleaning, guarded crops 2026-11-04 13:02:30 +01:00
bchanot d163b2ce9a feat(app): editor Général, Références and Vertèbres tabs, delete with dependents 2026-11-04 12:46:55 +01:00
bchanot 6aba9711f0 feat(app): sheet draft editor route, modes, recovery offer and conflict dialog 2026-11-04 12:35:33 +01:00
bchanot b14509f221 fix(app): editor store keeps an unanswered copy across mode changes, refuses unsaved submit 2026-11-04 12:17:41 +01:00
bchanot 7f1d44065b feat(app): editor store, undo, recovery copy and geometry accept rules 2026-11-04 12:13:10 +01:00
bchanot f7e7bf4ee1 feat(supabase): sheet drawing register, upload, confirm accessors and save answer 2026-11-04 11:57:22 +01:00
bchanot cfd49c7b5b refactor(app): fold the cleaning preview bytes into addDrawing 2026-11-04 11:52:16 +01:00
bchanot bc43a1b86b fix(app): roll the preview back on a throwing accept or a non-trap failure 2026-11-04 11:50:59 +01:00
bchanot 173be5949a feat(app): editable sheet preview, edit wrappers, cleaning preview and ids 2026-11-04 11:48:01 +01:00
bchanot 2f824a947c feat(supabase): add draft_last_save to the sheet admin read (M8, sandbox only) 2026-11-04 11:40:22 +01:00
bchanot 2571978780 chore(memory): V1-2.6 owner GO, C26 repair rules, C32-C34 2026-11-04 11:32:18 +01:00
bchanot f34381c242 chore(memory): V1-2.6 owner arbitrations, plan revised, re-check REMAINING(1) 2026-11-03 22:04:29 +01:00
bchanot ee6decbe4e docs(docs): record the aal2 token residual risk as a production prerequisite 2026-11-03 22:04:28 +01:00
bchanot 4657abf1e3 chore(memory): V1-2.6 plan, contract, gate re-check REMAINING(2) 2026-11-03 21:27:30 +01:00
bchanot 7f618d05a2 chore(memory): BDR-099 V1-2.5 decisions, LRN-113 TOTP reuse, Storage 409, sandbox order 2026-11-03 11:05:44 +01:00
bchanot b4415a382f chore(memory): V1-2.5 VERIFIED after owner checkpoint corrections, journal 2026-11-03 00:14:26 +01:00
bchanot 431999e45c docs(docs): V1-2.5 checkpoint corrections in browser tests, identity, contract
Eight phone skips by design, the unreadable-permissions and live-region checks, species order and Paris expiry restated in contract 7.2 and 4, PermissionsUnavailable in the folder map.
2026-11-03 00:14:19 +01:00
bchanot f5456f330d test(supabase): concurrency seeding accepts Storage's duplicate answer
After e2e:shell seeds the same content-addressed drawing, Storage answers HTTP 400 with statusCode 409 (KeyAlreadyExists); any other 400 still fails. Docs: M7 adds no new write path; a TOTP code replays more than once within its span.
2026-11-02 23:31:49 +01:00
bchanot dcb1a94ee4 docs(supabase): V1-2.5 checkpoint decisions, TOTP reuse measured, lost-factor review
IDENTITY 4.1 asserted reuse span (step N and N+1), 4.2 lost authenticator paths and gaps, production prerequisite; V1-2 contract 12.3, 13, 17.10, 17.11; design README accepted deviations; REVUE L15 and object_conflict EN; M7 header.
2026-11-02 22:57:22 +01:00
bchanot 0499a39389 test(supabase): working-copy sandbox case holds on a fresh stack
The first call creates the copy on a fresh sandbox; the second must answer working_copy.exists. Was green only from the second run.
2026-11-02 22:57:21 +01:00
bchanot 51225cacf6 fix(app): grant expiry ends the chosen day in Paris; species order 0..9999 (V1-2.5 L2)
Owner checkpoint 2026-11-02: expiry 23:59:59.999 Europe/Paris (picker, validation, display), tests under non-Paris zones and DST days; M7 redefines create_species and update_inactive_species with the range check; pgTAP 015 and 022; « Relecteur ou relectrice »; object_conflict EN; setup key selectable, no Copy.
2026-11-02 21:29:33 +01:00
bchanot 4111efa1d1 fix(app): unreadable permissions show a retry, never the form (V1-2.5 L1)
Owner checkpoint 2026-11-02: creation page checks loading, server refusal, failed read, then the editor rule; Administration home shows the same notice. reloadAccess re-reads roles and grants without wiping held state; refreshAccount (no caller) removed. Zone panel live region always mounted. Unit and e2e for reviewer-only and editor.
2026-11-02 21:21:59 +01:00
bchanot 14ff890761 chore(memory): V1-2.5 checkpoint, LRN on inert drawer and GoTrue MFA, journal 2026-11-02 19:49:38 +01:00
bchanot 5db85ff19f fix(app): a failed account reload clears the own grant rows
Delta verifier note: the catch kept earlier catalogGrants beside status failed, against the field's doc; now emptied, test extended.
2026-11-02 19:49:19 +01:00
bchanot cea0f1cfec test(app): phone navigation waits for the drawer to close before typing
Root cause of the intermittent P1 failure at 375 px: the search was filled while the drawer's modal kept the page inert. Reproduced 1/16, then 32/32 with the wait; full shell suite 108 passed, 6 skipped by design.
2026-11-02 19:47:12 +01:00
bchanot e39f69ee6d fix(app): a failed account load no longer leaves own grants loading
Delta verifier: when the profile or roles read failed, the grant read never ran and the creation page waited forever; the catch now marks the grants failed (form shown, server decides). Store transition tests (ready, loading on change and sign-out, failed), red without the fix. Contract clarification states the failed-read behaviour for the owner.
2026-11-02 18:41:32 +01:00
bchanot f04bfdd040 fix(app): creation page waits for own grants; e2e never prints setup keys
Delta verifier: two remaining setup-key assertions now booleans. Its observation: the editor rule read grants before they loaded; authStore.catalogGrantsStatus (loading, ready, failed): the page waits, and a failed read leaves the decision to the server. App 654, e2e:ui 227, admin shell spec 14 + 6 skipped.
2026-11-02 18:33:57 +01:00
bchanot 02625a76b6 fix(app): sheet creation form only for editors; review findings (V1-2.5 K)
Verifier C4: /app/admin/sheets/new shows Accès non autorisé without sheet_editor (display rule, server unchanged), tests. Security: M7 restates get_sheet_version grants; e2e enrolment check never prints the setup key. Contract clarifications: phone skips, run evidence, one intermittent e2e failure tracked.
2026-11-02 18:18:54 +01:00
bchanot 3d2b5a5f1c docs(docs): V1-2.5 administration, MFA, catalogue documented
CLAUDE.md overview and folder map, IDENTITY §1 and §4, BROWSER_TESTS shell specs, V1-2 contract §16.6 state and §5.7.3-§5.7.4 pointers, design README owning steps with two deviations.
2026-11-02 17:48:50 +01:00
bchanot c12702bac1 chore(memory): V1-2.5 slice J done 2026-11-02 17:44:15 +01:00
bchanot 4f6c0ba407 test(app): V1-2.5 browser journeys A0, A1, S1, P1 on the sandbox (J)
Owner bootstrap with two factors, step-up, rights; sheet creation; species activation seen by the animal form; catalogue reader with search, zone panel, withdrawn and archived versions; access per right; axe and widths 320-430 / 375 / desktop, FR and EN. Shell suite 108 passed, 6 skipped by design.
2026-11-02 17:44:14 +01:00
bchanot a897dd8876 chore(memory): V1-2.5 slices G, H, I done 2026-11-02 17:18:56 +01:00
bchanot d6a772818e chore(memory): V1-2.5 label proposals for G, H, I 2026-11-02 17:18:55 +01:00
bchanot ff9d5c4a3d chore(memory): BDR-098 deprecated fingerprint 2026-11-02 17:18:28 +01:00
bchanot 0176b3184d feat(app): administration screens and anatomical catalogue (V1-2.5 G, H, I)
Administration page (board 10), species, rights, official sheets list with filters, creation from the core's empty document, overview with the working-copy action; catalogue list (search by sheet name), sheet and version pages through PreviewSheet with zoom and pan. App 650, typecheck, lint, build green.
2026-11-02 17:18:27 +01:00
bchanot 9f7824dc08 fix(supabase): get_sheet_version returns a deprecated version's fingerprint
PreviewSheet checks the fingerprint of published and deprecated versions; M5 gave it for published only, so no withdrawn version opened in the catalogue. Redefined in M7 (owner decision, BDR-098); pgTAP 022 +3, suite 1941 on the sandbox; contract §10, §12.3, §17.10.
2026-11-02 17:18:26 +01:00
bchanot ffefb91204 chore(memory): V1-2.5 slices E, F done 2026-11-02 16:49:38 +01:00
bchanot 4744e28986 feat(app): admin and catalogue entries, step-up guard, MFA in Mon compte (V1-2.5 E, F)
Nav hint from own grants and roles (never a control); RequireCatalog, RequireAdmin (no admin read before aal2), Accès non autorisé page, placeholder routes; TOTP factor list, enrolment with QR and one-time secret, removal, inline step-up for aal2 actions, step-up in password reset; auth kind aal2_required. App 601, e2e:ui 227.
2026-11-02 16:49:37 +01:00
bchanot 99488d71d9 chore(memory): V1-2.5 slice D done 2026-11-02 16:31:51 +01:00
bchanot c9ace9aff2 feat(supabase): MFA, species, rights, admin and catalogue access layer (V1-2.5 D)
mfa.ts (closed kinds, TOTP list incl. unverified, enrol, verify, unenrol, assurance); sheets.ts wrappers for species, working copy, account lookup, M7 reads, versions list, drawing download, own grants, with shape parsers. Unit 148, sandbox sheets-admin 5/5 x2.
2026-11-02 16:31:50 +01:00
bchanot a79e1f0af7 chore(memory): V1-2.5 slices A-C done in TODO 2026-11-02 16:19:59 +01:00
bchanot bbab0e61cb feat(domain): sheet.empty free op for a new sheet's document (V1-2.5 C)
Wraps create_empty_sheet_document; refusals invalid_shape / invalid_json; ts-rs SheetEmptyInput, core-wasm proof, app wrapper emptySheetDocument.
2026-11-02 16:19:49 +01:00
bchanot b0a4cbe588 feat(supabase): M7 admin read RPCs for official sheets (V1-2.5 B)
list_official_sheets_admin and get_official_sheet_admin: badges, version and round states, named actors; capability holders at aal2, one answer for unknown or forbidden ids, no write path. pgTAP 022 (40); sandbox fresh and upgrade from M6: 1938 pass, types match.
2026-11-02 16:19:48 +01:00
bchanot 78791bfb6b test(supabase): GoTrue MFA behaviour proven on the sandbox (V1-2.5 A)
Ten cases on the pinned GoTrue: aal1 cannot enrol a second factor or remove a verified one (no STOP); removal downgrades only the sessions verified with that factor; password change and reset need aal2 once a factor is verified. Findings in IDENTITY.md §4.1.
2026-11-02 16:19:47 +01:00
bchanot a701b04210 chore(memory): BDR-097 V1-2.5 start decisions, TODO plan 2026-11-02 16:06:55 +01:00
bchanot 3d80812cdb docs(docs): V1-2.5 start, prerequisites and owner answers
Contract §17.10 (V1-2.1 VERIFIED at ac71c5b, V1-2.2, V1-2.4 approved), §3 EN « Permission », §12.3 M7 admin reads, §16.6 SQL and working-copy action, §16.2 state; step contract and plan.
2026-11-02 16:06:54 +01:00
bchanot 994b04ee73 chore(memory): V1-2.4 TODO lines read as history after the approval 2026-11-02 16:04:15 +01:00
bchanot 410025715c chore(memory): BDR-096 V1-2.4 graphic approval, TODO, journal 2026-11-02 15:38:53 +01:00
bchanot 567f27e37d docs(docs): record the V1-2.4 owner graphic approval
V1-2.4 GRAPHICAL APPROVED: twelve boards and the « Accès non autorisé » page, unchanged. Contract §16.5 state, §17.9 (object_conflict FR, L14, L20 EN, L32 EN, messages checked at integration, L15 second sentence open), §3 and §11.3 pointers; REVUE.md labels and status; design README validated with owning steps.
2026-11-02 15:38:42 +01:00