Commit Graph
766 Commits
Author SHA1 Message Date
bchanot 5c3661963f Merge chore/memory-v2 into develop 2026-11-14 13:11:00 +01:00
bchanot 8b7eeb6edd chore(githooks): refresh pre-commit from the gitflow lib 2026-11-14 13:10:41 +01:00
bchanot fa41bc2e5b chore(memory): noisy-rewrite BDR-080, LRN-080 promoted to rule line
/prune-memory step D (recall feedback 2026-11-12): BDR-080 title and
lesson narrowed to the V1-1 DEV recette; LRN-080 status implemented,
promoted to rule line .claude/rules/database.md (the rule itself is a
separate /feat in this repo).
2026-11-13 11:52:44 +01:00
bchanot 530af1bbfc chore(memory): registries upgraded to format 2 (memory.sh upgrade)
Index-only dates and statuses become body lines, frontmatter format: 2,
Index tables removed. memory.sh check rc 0 before and after; digest
statuses unchanged (BLK-008, BLK-009 open).
2026-11-13 11:51:25 +01:00
bchanot a1fc76c698 Merge chore/todo-actionable into develop 2026-11-13 00:32:27 +01:00
bchanot 9e5eba7975 chore(tasks): ## Actionable section for the session digest 2026-11-13 00:08:07 +01:00
bchanot 4eab981fe2 Merge bugfix/avatar-e2e-sandbox-only into develop 2026-11-02 11:24:52 +01:00
bchanot 09655b2552 chore(memory): BLK-013, LRN-095, journal and RR-11 for the avatar e2e sandbox bugfix 2026-11-02 11:24:14 +01:00
bchanot d3dfd03213 test(supabase): avatar e2e clients refuse HTTP redirects
The suite's supabase-js clients followed redirects by default, so a 3xx
from the sandbox gateway would have carried the apikey header to another
origin. `noRedirectFetch` (`redirect: 'error'`) is passed as `global.fetch`
of both client factories; a regression test with two loopback servers
proves REST, auth and Storage calls stop at the 302. Live proof j and a
second 5/5 run are in the audit log; no production client changes.
2026-11-02 11:22:51 +01:00
bchanot e8da0d96d9 docs(supabase): sandbox prerequisite of e2e:avatar, db-sandbox.sh among dev-env consumers 2026-11-02 10:47:53 +01:00
bchanot 3a4614bc86 fix(supabase): e2e:avatar runs on the sandbox only, DEV runner removed
scripts/avatar-e2e.sh read the DEV keys through `supabase status`, started
the worker on the DEV network and let the suite write and purge on DEV.
Port the V1-2 sandbox runner (`db-sandbox.sh avatar-e2e`: loopback gateway,
worker in a 600 env file) and the guarded suite (fixed URL, container and
key issuer, per-run accounts); refusals and the positive run proven under
strace in .claude/audits/2026-11-02-avatar-e2e-sandbox-only.md.
2026-11-02 10:45:03 +01:00
bchanot 6287e5bb9f Merge bugfix/sheet-assets-e2e-sandbox-only into develop 2026-11-02 00:34:05 +01:00
bchanot 882905ed21 fix(supabase): sheet-assets guard review LOWs (one destination, no anon key at build, issuer wording) 2026-11-02 00:34:04 +01:00
bchanot e24e747d90 fix(supabase): sheet-assets e2e can no longer reach DEV
The runner read the DEV keys from supabase status and targeted
http://127.0.0.1:54321 (two read-only incidents on 2026-11-01). It now
refuses, before building or any request, every URL but the sandbox gateway
and every key not issued by the sandbox; no DEV URL, port or key remains.
Same bytes as the V1-2 runner; that branch brings the sandbox command.
2026-11-02 00:24:02 +01:00
bchanot 9135d73cfa merge: integrate V1-1 clients and animals into develop
ci / rust (push) Canceled after 0s
ci / check (push) Canceled after 0s
ci / docker (push) Canceled after 0s
ci / supabase (push) Canceled after 0s
2026-10-27 19:54:09 +01:00
bchanot f93412c8e9 docs(supabase): close RESP-01, AVATAR-01 class A, AVATAR-02 ticket 2026-10-27 19:44:36 +01:00
bchanot 7e40c44a64 chore(memory): RESP-01 fix, AVATAR-01 diagnosis, LRN-094 2026-10-27 19:37:55 +01:00
bchanot 8c8478c052 docs(supabase): DEV acceptance run, RESP-01 and AVATAR-01 recorded 2026-10-27 19:37:55 +01:00
bchanot a70166ea11 fix(app): dashboard cards keep the screen width with a long e-mail
The card grid had no explicit column below md: its implicit auto track
took the cards' min-content, so the account e-mail never truncated and
pushed the page sideways. One minmax(0,1fr) column; the e-mail wraps.
e2e/shell/responsive.spec.ts sweeps 320-430 px and desktop (RESP-01).
2026-10-27 19:37:54 +01:00
bchanot dd5a23c39d chore(memory): journal — CLAUDE.md split into .claude/rules/ (0b) 2026-10-27 16:05:06 +01:00
bchanot 7a75974dc3 chore(docs): split 11 CLAUDE.md sections into .claude/rules/ 2026-10-27 16:04:30 +01:00
bchanot 78aacc09e1 chore(memory): DEV migration, db:test run 1, pgTAP fix, LRN-093 2026-10-27 14:44:03 +01:00
bchanot 7244648b4c test(supabase): pgTAP 007 and 010 independent of the base's data 2026-10-27 14:44:03 +01:00
bchanot 6c36e2f22d docs(supabase): sandbox role prerequisite for the DEV restore check 2026-10-27 13:52:05 +01:00
bchanot 545a161f69 chore(memory): restore check rehearsal 2, LRN-091 2026-10-26 22:00:52 +01:00
bchanot fcac11294b docs(supabase): restore check on a filtered TOC that must exit 0 2026-10-26 22:00:51 +01:00
bchanot a2507fc083 docs(supabase): restore check reads pg_restore exit and every error 2026-10-26 21:46:02 +01:00
bchanot 9570089147 chore(memory): V1-1.6 validated, DEV checkpoint prep, BDR-080, LRN-090 2026-10-26 18:29:29 +01:00
bchanot e3b841799a docs(supabase): DEV procedure with read-only checks and sandbox restore
Preflight of DEV recorded; backup adds row fingerprints and Storage bytes; restore check runs on the isolated stack; post-migration SQL, test effects, failure and restore effects; browser acceptance aligned on the owner brief.
2026-10-26 18:29:28 +01:00
bchanot 9f585e9185 chore(memory): EVAL-041, V1-1.6 journal, TODO, gate outcomes in contract §11.8 2026-10-26 18:03:03 +01:00
bchanot e7fd7e34e6 test(supabase): the audit privacy check no longer reads a uuid as a date
014 #237 matched « 20[0-9]{2}- » inside a workspace uuid on a long-lived stack.
The pattern now reads the metadata without workspace_id, still over every
audit row. It would have stopped the DEV procedure at db:test. Found by the
V1-1.6 verifier.
2026-10-26 17:53:37 +01:00
bchanot 10413478fb test(app): every shell suite drops late replays after a test
The client journey could fail after it passed: since V1-1.6 the client page
reloads its animals after a restore, and that replay outlived the test. One
support helper unroutes without waiting, for the three shell specs. Found by
the V1-1.6 verifier. Memory: BDR-079, LRN-087 to 089.
2026-10-26 17:38:52 +01:00
bchanot 212392263c chore(memory): V1-1.6 progress in TODO, gate contract 2026-10-26 17:24:56 +01:00
bchanot e215e9b2cb docs(docs): V1-1.6 as built, D11 drawer only, closure inventory, DEV steps
Contract §11.8 and §15; D11 and U3 decided, D12 open; SUPABASE.md §3.3 gains
the rehearsed restore check and the owner's browser acceptance on DEV; browser,
test and frontend docs, design README, CLAUDE.md map.
2026-10-26 17:24:19 +01:00
bchanot 3e968eeeab test(app): Playwright animal and relation journeys on the sandbox
Ten journeys, FR and EN, desktop and 375 px, axe on every state. Seeds go
through quoted SQL literals; db:sandbox e2e-shell passes its arguments to
Playwright.
2026-10-26 17:11:29 +01:00
bchanot 930499cd25 feat(app): animal screens, relation panels, animals on the client page
Routes /app/animals, new, :animalId, edit under one workspace gate; list with
species filter; form (D-R7, U3 birth, no default sex or role, optional first
client); page with current and former relations, end, dates, void; client page
links its animals, adds one pre-associated, links an existing one. Card now
passes aria-labelledby, which it silently dropped.
2026-10-26 17:11:28 +01:00
bchanot e22357630f feat(supabase): animals and relations access layer
animals.ts: POST search with species filter and a probe row, read by id with
explicit columns, create with the optional first client in one call, update,
archive. relations.ts: an animal's relations in one select (voided left out),
create, end, dates, void. Kinds duplicate_relation and already_ended added.
2026-10-26 17:11:23 +01:00
bchanot 3c2b503fc9 chore(memory): BDR-078, LRN-085/086, EVAL-040, V1-1.5 journal, TODO, gate contract 2026-10-26 02:31:53 +01:00
bchanot d8e86a4229 docs(docs): V1-1.5 counts after the gate fixes, what the gates found 2026-10-26 02:22:34 +01:00
bchanot 567ad40c80 fix(app): the « Client introuvable » screen focuses its heading too
Every client screen focuses its heading when it opens (contract §11.7); the
not-found screen did not. Unit and Chromium tests now assert the focus.
Found by the V1-1.5 verifier.
2026-10-26 02:11:15 +01:00
bchanot e1c1980949 fix(app): a re-read of the same account keeps its workspace on screen
USER_UPDATED (or a retry) set the workspace back to loading, which unmounted
the client routes and lost an open form's typed values. A ready workspace now
stays until the answer; found by the V1-1.5 security audit.
2026-10-26 02:08:25 +01:00
bchanot ae0bd3f8d8 docs(docs): V1-1.5 clients screens as built, owner choices, tests
Contract §11.7 (U1, U2, animals read-only, first-animal section deferred;
access layer, workspace state, routes, form, page, leave guard, focus,
deviations, counts), FRONTEND_ARCHITECTURE note, design README owners row,
TEST_STRATEGY, SUPABASE.md access layer and DEV note, CLAUDE.md map.
2026-10-26 02:01:55 +01:00
bchanot db81928dfa fix(app): no HTML report for the shell suite, it kept typed passwords
The report's step titles held what the tests typed, the throwaway sandbox
accounts' passwords included, contrary to BROWSER_TESTS.md. The shell suite
keeps the terminal output and failure screenshots; the old report deleted.
2026-10-26 02:00:33 +01:00
bchanot d33a8f6dad test(app): client journeys in Chromium on the isolated stack
Create, search, edit, archive, archived filter, restore; pages of 25;
keyboard only; two accounts; a concurrent edit; a retry after a lost answer
sends the same request id; network failures; the leave guard; a change of
language; FR/EN, desktop and 375 px, axe on every state. signIn shared.
2026-10-26 01:59:26 +01:00
bchanot b38e62770e feat(app): clients list, page, create, edit, archive and restore
Routes /app/clients, /new, /:clientId, /:clientId/edit behind a workspace
gate that remounts per workspace; debounced POST search, archived toggle and
« Afficher plus » pages; form on field-limits (D-R7) with the phone entry
rule and ISO countries; request id per creation intent; conflict shows the
saved values; archive confirmation with the sole-owner preview; animals
read-only; leave guard on in-app links; Clients entry after the dashboard.
2026-10-26 01:59:25 +01:00
bchanot ff028ec071 feat(app): personal workspace in the account store, reset on account change
The store reads the personal workspace with the account (ready, loading,
inactive, unconfirmed, missing, error; never created in the browser). A
change of account drops profile, roles, avatar and workspace at once, and a
late answer for the previous account is ignored. generateUuid gives v4 ids on
the plain-HTTP LAN origin, where crypto.randomUUID is missing.
2026-10-26 01:59:25 +01:00
bchanot a0e069959b feat(supabase): workspaces and clients access layer with closed failures
fetchPersonalWorkspaceId, client search (keyset, one probe row), read by id
with explicit columns, create (request id), update (every field), archive,
client animals and archive preview, species labels; RecordFailure kinds of
contract §9.4 plus session_expired and network; RPC answers checked by Zod.
Unit tests and the same functions against real PostgREST on the sandbox.
2026-10-26 01:34:45 +01:00
bchanot 6251051618 chore(memory): BDR-077, LRN-083/084, EVAL-039, V1-1.4 journal, TODO, gate contract 2026-10-26 01:15:52 +01:00
bchanot bc6a7ddb6f docs(docs): V1-1.4 animals and relations as built, DEV procedure to M3
Contract §8.3 (differences, relation states, caps, lock order across M2 and
M3, concurrency results, migration states, mutations, residuals), helpers
and derived values; SUPABASE.md §3.3 procedure from DEV's current state to
M3 (not run) and §3.5; TEST_STRATEGY, plan note, backend table, CLAUDE.md.
2026-10-26 01:06:24 +01:00
bchanot d7845b7339 chore(ci): check:all names each browser suite PASSED, SKIPPED or NOT RUN
A failing stage prints FAILED with its name and exits non-zero; e2e:shell is
reported NOT RUN (it needs the isolated stack); both suites keep their own
commands.
2026-10-26 01:02:54 +01:00