Commit Graph
1091 Commits
Author SHA1 Message Date
bchanot 7dda61d2ae feat(app): history reads Défaire / Refaire (R1, D5)
FR names Défaire / Refaire; title = name + shortcut (Ctrl+Z ou ⌘Z /
Ctrl+Maj+Z ou ⇧⌘Z), aria-label = name, aria-keyshortcuts adds Meta forms.
New keys editor.history.{undo,redo}_shortcut (fr, en). FR prose use_parent_body
and repair.body_one/_other say Défaire. Dialog Annuler unchanged.

Assertion map (R-24):
- editor-history-buttons.test.tsx UNDO/REDO constants 'Annuler la dernière
  modification' / 'Rétablir la dernière modification annulée' → 'Défaire la
  dernière modification' / 'Refaire la dernière modification défaite'
- :80-81 title === UNDO/REDO → title `${UNDO} (Ctrl+Z ou ⌘Z)` / `${REDO}
  (Ctrl+Maj+Z ou ⇧⌘Z)`
- :82-83 aria-keyshortcuts 'Control+Z' / 'Control+Shift+Z' → 'Control+Z
  Meta+Z' / 'Control+Shift+Z Meta+Shift+Z'
- visible labels ['Annuler','Rétablir'] → ['Défaire','Refaire']
- tool column absence /Annuler|Rétablir/ → /Défaire|Refaire/ (also
  editor-annotations-tab.test.tsx:514)
- Rétablir button lookup by literal name → REDO constant
- added: EN names unchanged with title '(Ctrl+Z or ⌘Z)'; FR prose contains
  Défaire while use_parent_cancel stays 'Annuler'
- e2e titles/comments only: Annuler/Rétablir → Défaire/Refaire
2026-11-12 12:39:01 +01:00
bchanot 5803854860 chore(tasks): R1 owner gate outcomes G1, G2 and gated criteria 2026-11-12 12:23:05 +01:00
bchanot 4923edefc0 chore(tasks): R1 and D6b contract and plan (rev 3, challenged) 2026-11-12 12:19:34 +01:00
bchanot 541706cba9 docs(app): R1 criteria for deselecting by a click on the drawing (D6b)
Owner U1 manual test 2026-11-12: a click outside any annotation must deselect. D6b supersedes D6's deferral to U2; code change and tests named, implementation awaits the go.
2026-11-12 11:15:31 +01:00
bchanot 7a6eccf824 chore(memory): db:trial accounts and equine drawing checkpoint, host observation 2026-11-11 23:04:22 +01:00
bchanot 3189a1917d chore(memory): BDR-112 db:trial one-factor owner grant, contract and plan 2026-11-11 22:37:57 +01:00
bchanot 45d74536f5 feat(supabase): db:trial grants owner with one verified TOTP factor
Owner decision 2026-11-11: on the trial stack one verified factor suffices
for owner as for admin, a second one optional. The count before the typed
confirmation and the recount inside the grant transaction stay; SQL, aal2
and the rule for every other stack are unchanged.
2026-11-11 22:37:40 +01:00
bchanot 0573d66864 chore(memory): BDR-111 trial app on the LAN address during dev 2026-11-11 22:10:18 +01:00
bchanot 6ceced5c06 chore(memory): TR_PW rotation, init log fix, LRN-127 2026-11-11 19:54:42 +01:00
bchanot 5f63d2229c fix(supabase): db:trial database logs no statement from its first start
The image's init (migrate.sh) sent the supabase_admin password as SQL text
while its postgresql.conf logged DDL, so the password reached the container
log. The server now starts with -c log_statement=none, which the entrypoint
also hands to the init server; a harness check pins it, and DEPLOY.md makes
the post-init log scan a production prerequisite.
2026-11-11 19:53:56 +01:00
bchanot c6c984b954 chore(memory): db:trial first create, LRN-123..126, owner arbitrations
First create at 255dd67 done; post-create checks interrupted at check 3 (TR_PW in the db container log, written by the image's init). Contract records the owner's arbitrations of 2026-11-11; TODO lists the follow-up lots.
2026-11-11 15:54:33 +01:00
bchanot 255dd67f2c chore(memory): journal — db:trial closure reviews 2026-11-11 14:44:14 +01:00
bchanot 953ae41b86 docs(supabase): db:trial app comment and TODO review tick
The cmd_app shortcut comment matches SUPABASE.md on the rotate-secrets 401 window; TODO ticks the reviews and lists the app no-lock shortcut.
2026-11-11 14:43:41 +01:00
bchanot f2cbf6814f fix(supabase): db:trial second re-review fixes
Post-create scan covers pg_stat_statements and labels each count; log path defined; rotate-secrets 401 window documented; plan shows image state unknown without a daemon; start_containers checks the app host before recreating GoTrue; truthful restore and destroy way-out messages; harness checks read stdin from /dev/null. Harness 372/0.
2026-11-11 14:36:12 +01:00
bchanot d3bdbbe0ba fix(supabase): db:trial closure review fixes
Strict absent detection (stderr sentence per kind, measured on Docker 29.9.3), tri-state container_running, empty-volume check before restore, quieter DB init and rotation logging, backup/migrate refuse while the app runs, lock first in start/stop, truthful rotate-secrets and post-create checks. Stub reproduces Docker's stdout/stderr split. Harness 364/0.
2026-11-11 14:16:32 +01:00
bchanot a78da9f4e2 docs(supabase): db:trial review record and contract file scope 2026-11-10 23:13:23 +01:00
bchanot f7bf0c85cb docs(supabase): db:trial operating guide 2026-11-10 22:59:29 +01:00
bchanot 3b687a218e feat(supabase): db:trial accounts, grants, equine drawings, app
account: confirmed account through GoTrue's admin API, hidden password typed
twice. grant: owner/admin by the operator path (factors counted in SQL and again
in the transaction, names sanitised); catalogue rights mirror grant_catalog_right
(admin first for sheet_editor), audit row, no implicit admin. Every grant typed
at a terminal. assets: R5.5 tool through the gateway. app: Vite stopped and
waited on exit. 323 stub-only harness cases.
2026-11-10 22:33:49 +01:00
bchanot b85614aa09 feat(supabase): db:trial backup, restore, destroy, migrate, rotations
Cold read-only backups proven before any change (checksums covering
the folder, entry counts, keys, images); typed confirmations at a
terminal only; rotate-secrets in one explicit transaction with a commit
marker, no secrets.prev; destroy refuses without a restorable backup and
names the manual way out. Harness: 210 stub-only cases.
2026-11-10 19:08:33 +01:00
bchanot 1a7b952f2f feat(supabase): db:trial foundation (plan, create, start, stop, status)
scripts/db-trial.sh builds the persistent manual trial stack on
literal faunosteo_trial_* names, loopback 58xxx ports, named volumes
and a 700 state folder outside any git work tree; it refuses
SANDBOX_* variables, a remote Docker daemon, a missing or failing
ss, and checks each container's exact loopback publication and the
gateway identity. The stub harness (scripts/db-trial-check.sh,
87 cases, no daemon reachable) proves it; db-sandbox.sh refuses a
trial state folder (additions only). Nothing is created here.
2026-11-10 14:05:56 +01:00
bchanot 9f60d841eb fix(app): trial dev server serves one of two known stacks only (R13)
trial.config.ts no longer accepts any loopback gateway. A literal
table (vite/trial-targets.ts) holds the db:sandbox trial target
(5193, gateway 57801, issuer db-sandbox) and the db:trial target
(5194, gateway 58801, issuer faunosteo-trial, gateway identity
probe); the gateway picks the entry by exact match and the app
port, app URL and anon key issuer must match it, with no default
and no fallback. Tests cover both mix-ups, the probe and the
values db-sandbox.sh passes today.
2026-11-10 13:40:42 +01:00
bchanot 60087bab30 docs(docs): db:trial implementation plan and gated contract 2026-11-10 13:36:14 +01:00
bchanot b682f78209 test(supabase): sandbox suites refuse every target but the sandbox
The sandbox suites (stack.ts and its importers, the shell Playwright
config) stop before their first request unless the container, the
four loopback URLs and the key issuer are exactly the db:sandbox
ones; the LAN config accepts the 5193 trial app only. Drift and
wiring tests tie the constants to scripts/db-sandbox.sh.
2026-11-10 13:36:08 +01:00
bchanot b215b89cf9 chore(memory): BDR-110 R0 graphic validation 2026-11-09 17:42:44 +01:00
bchanot 9bfc5a1567 docs(docs): R0 last graphic corrections and final graphic validation 2026-11-09 17:42:43 +01:00
bchanot a8c9b8377e chore(memory): BDR-109 R0 graphic verdict 2026-11-09 17:01:27 +01:00
bchanot 9e676bb811 docs(docs): R0 owner graphic corrections, arbitrations settled, impeccable observations 2026-11-09 17:01:26 +01:00
bchanot 45f1cce460 chore(memory): BDR-108 R0 owner decisions and graphic checkpoint 2026-11-09 16:27:47 +01:00
bchanot 84aba41b7d docs(docs): R0 owner decisions, A1-A15 table, R3 SQL checkpoint proposal 2026-11-09 16:27:46 +01:00
bchanot 95009069ca chore(memory): BDR-107 trial arbitrations, R0-R4 and anomalies A-C tracking 2026-11-09 16:13:06 +01:00
bchanot 3d64146164 docs(docs): R0 boards, U1 corrections plan and trial stack plan
Owner brief of 2026-11-09 after the first U1 trial. Boards 23-30 (proposal), lots R0-R4 with arbitrations A1-A15, persistent trial stack plan. No code.
2026-11-09 16:13:04 +01:00
bchanot 8cb681e2fa chore(memory): U1 owner checkpoint decisions, RR-13, LRN-120 to 122
BDR-106 owner decisions at the U1 checkpoint; TODO U1 line closed up
to the open owner checkpoint, admin.spec:717 confirmation and kept
reservations; RR-13 rights list server paging track; contract
clarification; journal.
2026-11-09 12:47:42 +01:00
bchanot b1045088c5 docs(docs): U1 execution record and owner checkpoint reservations
Checkpoint page §7: criteria and gates, exact shell suite at da95b84
(188 passed, 90 skipped, 4 failed in admin.spec.ts:717), the five
out-of-scope files and three one-for-one assertion rewrites accepted
by the owner with their justification, reservations kept in U1.
Owner trial: canvas widths, trial-lan not run, the admin failures.
2026-11-09 12:47:42 +01:00
bchanot da95b846e4 docs(app): final review wording and TODO shortcut
Owner trial: references search wording (citation, DOI, URL), the N4 error message returns on widening. TODO: harvest the sheetDocument.ts parse-cache shortcut (limit and upgrade path).
2026-11-09 12:19:38 +01:00
bchanot 0467885527 fix(editor): final review fixes (touch undo guard, focus, save line)
Important 1: a touch press fires pointer leave between up and click; only a
mouse leave (or a pointer cancel) forgets the refused field, so Annuler no
longer undoes an unrelated change. Important 2: the LAN spec reads the
revision before the attach, through shownRevision, which throws instead of NaN
(spec stays not run). Minor 1: refocusIfHidden refocuses a still shown element
the commit blurred (references search on a 1 024 px crossing). Minor 2:
discardChanges keeps lastSave (reload path still drops it). Minor 3: the
overview filter term lives in UiState / the read-only twin, not the card.
Minor 4: categories section drops its inner h3 and the unused
editor.general.categories keys. AC8: badge test.

Assertions rewritten or added (R-24):
- editor-tabs-general « Général no longer holds the categories editor »:
  queryByText of the deleted heading (now vacuous) -> queryByLabelText of the
  category name fields.
- editor-focus-request « Annotations: selects the annotation »: findAllByText
  /anno-b|Sélection/ -> the properties panel holds Centre x = 20 (anno-b) and
  owns the focused heading.
- editor-shell-layout panel walk: added after.at(-1) === 'side'.
- editor-recovery title « Annuler les modifications » -> « Abandonner ».
- new: touch/cancel/mouse press, references search crossing, discard keeps
  lastSave, filter kept, one categories heading, badge 1/2/0, shownRevision.
2026-11-09 12:19:32 +01:00
bchanot 942d52a835 docs(app): U1 limits N4, N6 and repair result, file scope rulings
The fresh verifier found three counter-check limits missing from the
owner trial list and five files added outside FILE SCOPE by lot rulings;
both recorded.
2026-11-08 22:45:01 +01:00
bchanot 81fba4631a docs(app): U1 owner trial, plan and tests pointers
U1 demo and known limits in the owner trial guide, tooling moved to U6 in
the plan and tests, TODO lots A-H, AC19 and AC20 evidence.
2026-11-08 21:42:27 +01:00
bchanot 606f7ba268 fix(app): crossing focus for any element in a hidden part
Focus held by any element that a crossing hides or unmounts (button, tool,
canvas, link) goes to the shown tab, decided by the element leaving the page,
not by tag; a field still commits first; visible focus stays.
History pair: remembered field must be connected, and a pointer-down off a
field keeps it. TextField.commit compares with the latest committed value.
Open-panel axe settles and checks dialogs like the other places.

R-24: no assertion rewritten or deleted; one Chromium case and three unit
tests added.
2026-11-08 20:43:27 +01:00
bchanot a474ddaa40 test(app): browser journeys of the four-tab editor shell
New specs editor-shell-{journeys,crossing,layout}: four tabs, cross-tab
undo, typed text then header undo, Shift+Tab to Annuler with a refused field,
Ctrl+Z in and out of a field, Aller a per issue kind, save line states,
every kept part across a 1 024 px crossing, drag across it, confirmations
closing, withheld decision, widths, axe, keyboard order, canvas widths with
and without the panel; equine commit-to-paint with every place visited.

R-24 mapping: editor-shell B2b `:focus` count 0 after the crossing is now
focus on #editor-tab-annotations (focus goes to the shown tab, not body).
Prettier re-wrapped two Lot F lines in editor-shell.spec.ts; no assertion
changed there.
2026-11-08 20:23:40 +01:00
bchanot 0bb150f860 fix(app): focus the shown tab after a crossing, one commit per typed field
- A field blurred by a 1 024 px crossing or a read-only switch hands its
  focus to the shown tab (or Plus), never to body (focusRequest, useViewport).
- TextField no longer commits a blurred value twice when it unmounts before
  the render that brings the new value: one undo step, one count.
- Annuler and Retablir share the field left by Tab, so Shift+Tab to Annuler
  and Enter still skips the undo of a refused field.
- Adding a reference clears the finding filter and the search.

Unit tests: no-loss (focus on tab and on Plus, one undo entry), history
buttons (field kept across the pair), references panel (add clears, refused
add keeps).
2026-11-08 20:23:40 +01:00
bchanot 9c03cf2413 docs(i18n): U1 label proposals, verbatim EN cells 2026-11-08 19:35:10 +01:00
bchanot 23900f31d9 docs(i18n): U1 label proposals
Add Lot B2b and F sections and per-lot removed keys. No dictionary
removal needed: the dead keys were already deleted by Lots B1 and E.
2026-11-08 19:33:29 +01:00
bchanot 925d843521 style(app): wrap Lot F lines over 100 columns 2026-11-08 19:30:46 +01:00
bchanot 62fb8dc7b8 fix(app): Lot F review polish (tests, drawer default)
Measure kept as a canvas-width annotation, no console.log; positive
two-frame wait replaces the fixed sleep; 64rem listener asserted
absent in the editor; drawer default read from DEFAULT_SHELL; long
test lines wrapped.
2026-11-08 19:29:36 +01:00
bchanot 580ff28214 feat(app): editor sidebar hidden below 1 280 px, menu one tap away
AC9: on the draft editor path AppLayout uses the xl class set (sidebar
from 1 280 px, menu button and brand below); other pages keep lg.
AppLayout split: Sidebar and TopBar in ShellChrome.tsx. MobileDrawer
takes closesFrom ('64rem' | '80rem') and also closes at setup when
its query already matches.

Rewritten assertions (R-24):
- shell.AppLayout "opens the mobile drawer" and shell.navigation
  "carries the same entries into the mobile drawer": stub a narrow
  matchMedia, the drawer now closes at setup at the happy-dom width.
New: unit tests (class sets, 64rem/80rem close, setup close, leave
guard on a drawer link) and editor-shell.spec F journeys (sidebar at
1024/1180/1279/1280, one-tap menu, drawer open at 1180, guard).
2026-11-08 19:25:49 +01:00
bchanot 89da8d3f55 fix(editor): keyboard refused-commit rule, missing history tests
Keyboard activation after a refused blur commit skips the undo and refocuses the field. Adds restore, Général-from-Annotations and DeleteDialog tests; SaveLine helpers.
2026-11-08 18:09:10 +01:00
bchanot 99b669bf8f feat(editor): header history, save line and Abandonner les modifications
Header Annuler/Retablir on every tab (aria-disabled, commit on pointerdown,
refused blur commit skips the undo). Save line: unsaved count selector
(savedDistance), saveLineState forms, server save time via readSaveTime
(lastSave in the store, never the browser clock). Discard relabelled and
names the stored copy. Tool column pair removed, glyphs in EditorGlyph.

Rewritten or removed assertions (R-24):
- editor-route.test: Revision 3 / unsaved text / Annuler les modifications
  -> save-line testid, Abandonner label, copy sentence in the dialog
- editor-route-conflict, editor-route-recovery: Revision n and copy_cap/
  copy_quota text queries -> save-line testid
- editor-no-loss: discard button label
- editor-annotations-tab: tool column undo/redo test -> no pair left
  (behaviour moved to editor-history-buttons.test)
- e2e journey/annotations/recovery/structures/support saveDraft/lan:
  undo/redo and revision/unsaved text -> historyButton, saveLine helpers;
  structures toHaveCount(0) on old text -> exact Revision n line
- editor-shell clickability: header Annuler/Retablir added
2026-11-08 17:55:49 +01:00
bchanot ab51ea764d feat(editor): references side panel with filter, search and counts
Non-modal panel in a relative container after the tab row (scrim over the
tab panels, which are inert while it is open). Chip "Citées par" opened
from a finding's Citations block, "Tout afficher (N)", accent- and
case-insensitive search on citation, DOI and URL, "citée n fois" per card
(citationCounts, memoised TS read; the core stays the authority for
refused deletions). Up/down only without filter or search. "Aller à" a
reference clears a hiding search then focuses the card.

Rewritten assertions (R-24): editor-shell "the references panel keeps its
form text and no id repeats" closes the panel before reaching the inert
tab panels. Added: Chromium clickability at 1 024 and 1 280 px (top and
scrolled), editor-structures count and search, unit
editor-references-panel, editor-citations, navigation clear_cited_by.
2026-11-08 17:33:26 +01:00
bchanot cf9c300c80 test(editor): view row switches the canvas view 2026-11-08 17:18:02 +01:00
bchanot 7cca88592f test(editor): scoped overview card queries, group names 2026-11-07 03:03:39 +01:00