docs(docs): R4 closed by owner validation 2026-11-17, BDR-121

This commit is contained in:
bchanot committed 2026-11-17 12:29:09 +01:00
1 parent b6408f177f
commit c42c65509b
8 files changed
+98 -5

No files matched your search

+12
View File
@@ -977,3 +977,15 @@ Apply: a guard asks only layers the move actually removes; before showing a ques
## LRN-142 — Transactional dialog owns side-effect creations and explicit commit (2026-11-15)
Context: R2 closure, owner db:trial trials 2026-11-14/15 drove Rev 4-6. Pattern: in dialog that edits draft, side-effect creations (new reference) belong to draft, written with save as one batch (one undo); abandon = no write. Select browses only, explicit action button commits choice; save refuses pending uncommitted choice with message + focus. Reason: arrow keys on native select fire change, silent draft edits. Apply: any future transactional dialog (U2 annotation properties dialog).
## LRN-143 — E2E cleanup on persistent stack: archive own rows by captured id + name read-back (2026-11-17)
Context: R4 e2e on persistent sandbox seeded published sheets; app never deletes sheet with published history (`delete_anatomical_sheet` refuses + needs aal2). Pattern: clean only own rows: capture ids at seed, UUID-guard every id before SQL text (`capturedId`), read name back by id and compare exact seeded name (mismatch → archive nothing, fail run), archive via app's status RPC, revoke own grant by id, read back; data guard before/after (0 removed, 0 changed). Never match by pattern.
Apply: e2e fixtures on shared persistent stack → reachable end state (archive) over delete; identity check by id + name before any write; guard diff proves no pre-existing row touched.
## LRN-144 — Per-card retry in lists: no live line, polite region on retry, focus rule (2026-11-17)
Pattern: list of N cards each with own failure + retry. No live region on card lines (burst of N announcements at load). Retry: line + button stay mounted, button aria-disabled (not disabled, keeps focus), card aria-busy, clicks ignored by ref guard (two calls same tick = one attempt). Polite sr-only region empty at load, cleared at each attempt, says new line on repeat failure; stays mounted once a retry ran. When attempt settles without « Réessayer », move focus to card's « Consulter » only if focus was on removed button or body.
Apply: any per-item retry in lists/grids; test focus on body vs elsewhere, repeat failure, failure with no retry left.
## LRN-145 — Single-request failure e2e via route.fallback + remount; 0fr grid row keeps child padding (2026-11-17)
Pattern: (1) Playwright: fail one request (one version) with route.abort for its URL and route.fallback() for the rest; remount the component (search filter out/in) instead of page reload so failure state is reached without reload side effects; DevTools offline + search is the manual equivalent. (2) CSS collapse grid-rows 0fr→1fr: padding/border on the 0fr row's direct child stays visible (R3 phone panel kept 12 px); put padding on an inner wrapper inside the min-h-0 overflow-hidden child, assert closed height 0.
Apply: single-request failure e2e; any CSS-only collapsible panel.