docs(docs): R2 labels table, Rust exception, trial protocol

V1-2-6_R2_LABELS.md: the 45 i18n keys R2 adds, changes or removes
(FR, provisional EN, where, status) with the ambiguities and the
pending add-draft cancel question. RUST_ARCHITECTURE_REVIEW Part II:
class C rows for the display-only reference modules (BDR-114 A).
U1_CORRECTIONS §R2 status; BROWSER_TESTS: the two new specs, five
tabs, editor-equine never run, the admin.spec crash risk;
OWNER_TRIAL §4.10 db:trial protocol for R2 and stale four-tab /
old-panel text updated; CLAUDE.md tree.
This commit is contained in:
bchanot committed 2026-11-12 22:49:17 +01:00
1 parent 4b7d2542fd
commit 2182307c62
6 files changed
+285 -13

No files matched your search

+32
View File
@@ -171,6 +171,38 @@ The criteria below are the contract as written.
### R2 — The Références tab (D1 to D4)
Status (2026-11-12): built on `feature/v1-2-anatomical-sheets`, awaiting the owner's validation (nothing merged,
nothing deployed). Commits: `65a8fd3` (plan, rev 4 after the owner's GO), `fc3fec7` R2.0 (the panel's place renamed
`citations`), `4499bc7` R2.1 (fifth tab, panel from a finding), `c21995b` R2.2 (collapsible tiles), `3baac4d` R2.3
(search, sort, count, add), `8db6f42` R2.4 (contextual panel, board 25), `4b7d254` R2.5 (non-regression sweep).
Labels: `V1-2-6_R2_LABELS.md`. Decision record: BDR-114. What the build settled against the text below:
- The panel opens from a finding only (owner, 2026-11-12). The family's former trigger is removed; a family keeps
its inline list and « Retirer ».
- « Retirer de ce constat » removes that one citation (the reference stays in the document) and marks the finding
« À confirmer » (core rule, `edit.rs`); one « Défaire » restores the citation and the status together.
- Zero state: when the last citation is gone the panel stays open with « Ce constat ne cite plus aucune
référence. » and closes on a tab change.
- Selecting a tab closes the panel. Every close (✕, Escape outside a field, scrim, tab, « Aller à », « Tout
afficher », element gone) records one pending move applied after the exit: the focus goes back to the trigger,
else to the active tab button.
- A read-only flip (window under 1 024 px) keeps the panel open, in its read view.
- Motion goes through `motion/react` (slide in 180 ms, out 140 ms, none under reduced motion, callbacks still
fire), not through the Tailwind `motion-reduce:` text below: deviation approved by the owner, 2026-11-12.
- The Places area keeps a permanent `dvh` minimum height so that opening the panel never changes the document's
size; the panel fits the visible viewport at every scroll position.
- Limits: at 667 × 375 (landscape phone) and scroll 0 about 13 px of the panel show, because the trigger sits in
Places, itself below the fold, so a scroll comes first (the e2e skips that sample). A control below a field
whose blur-commit is refused can lose its first click, the error line shifting the layout: an editor-wide
pattern, not a regression, left out of R2. `admin.spec.ts` crashes during axe (« Target crashed ») under the
accumulated sandbox grants, not an R2 regression (`BROWSER_TESTS.md` §6). The add draft's missing cancel
control is an open question to the owner (`V1-2-6_R2_LABELS.md` §4).
- Gates at `4b7d254`: typecheck, lint, `test:run` (app 1488), build, `e2e:ui` 251; `e2e:shell` sweep of 21 specs
without `editor-equine`: 219 passed, 116 skipped, 3 failed (all `admin.spec.ts`), full-row guard clean.
`editor-equine.spec.ts` was updated for typecheck and never run.
Original plan text:
- Tab model: `EDITOR_TABS` gains `references` between `findings` and `verification` (`apps/app/src/editor/tabs.ts:6-11`),
`SHOWN.small` keeps it under « Plus » (:18). The id collides with the panel's `data-place` name `references`: the
panel place is renamed first (internal name, no visible effect). Touched with it: `navigation.ts` `targetOfKey`