chore(memory): R2 closure BDR-117, LRN-139..141, plan Rev 4, contract 19-25
This commit is contained in:
1 parent
be0f6d8beb
commit
b41c24b29d
5 files changed
+94
-1
No files matched your search
@@ -233,3 +233,55 @@ resolved targets and POP landings, scroll captured before dispatch (rob-11, cor-
|
||||
creation replaced before close (cor-17); fr/en prettier exemption stated (cor-18); flip notice from the mode (rob-16);
|
||||
announcer joins messages (rob-17); wrapper copied into the worktree (rob-14); skippable entry untested (rob-10);
|
||||
adapter as its own hook, MemoryRouter-tolerant (rob-15); pin off under a filter (cor-9).
|
||||
|
||||
## Rev 4: owner trial 2026-11-14 (R2 validated; last adjustments, autonomous mandate)
|
||||
|
||||
Owner brief 2026-11-14: R2 main journeys validated. Accepted limits: same-instant move vs Back race, « Aller à » opens in
|
||||
view mode, search kept across tabs, first outside tap only closes « Plus ». Android Back to verify on a real phone.
|
||||
BLK-015 tracked separately. Probe (controller, pinned Chromium 156.0.8078.4, scratch page): a same-document `traverse`
|
||||
`navigate` event is cancelable for a history-menu jump of -3 (CDP Page.navigateToHistoryEntry, userInitiated true), with
|
||||
or without prior activation, and preventDefault keeps the page on its entry.
|
||||
|
||||
### Task 6: citing references moves to the edit mode (owner item 1)
|
||||
- View mode (finding node): « Références citées » + « X références » (opens the side sheet) only; no « Citer une
|
||||
référence », no remove. Family (category, no sheet per D2): label + read-only list, no « Retirer ».
|
||||
- Edit mode (node and family): same label and button, plus the editable list of the DRAFT citations (each « Retirer »)
|
||||
and « Citer une référence ». Citation changes live in the form draft (dirty check, « Abandonner les modifications ? »),
|
||||
and « Enregistrer » writes names, descriptions, flag and citations as ONE undoable operation; pristine save none.
|
||||
- The button always agrees with what the form shows: in edit mode it counts the draft and the sheet opened from the form
|
||||
lists the draft's references. The side sheet becomes read-only for the finding: « Retirer de ce constat » leaves it
|
||||
(removal only in the edit form); « Modifier » (the reference), « Aller à », « Tout afficher » stay.
|
||||
- Creation dialog: no citations (unchanged). Tests: unit (view has no cite control; edit stages add/remove; one undo
|
||||
restores names and citations together; Annuler with only a citation change asks), e2e on the finding dialog.
|
||||
|
||||
### Task 7: deletion, undo and Back; « Plus » keyboard focus (owner item 3, points 1 and 2)
|
||||
- Deleting a finding (from its dialog or anywhere) closes its dialog by popping the dialog entry, never by replace: the
|
||||
first Back after a deletion has a visible effect (limit 1 lifted). A later Forward onto the deleted element's entry
|
||||
follows the existing gone rule.
|
||||
- The first « Défaire » after a deletion restores the finding at once and visibly: its row exists, its branch expanded,
|
||||
selected, scrolled into view and focused (Constats tab shown); no second « Défaire » needed. Same for « Refaire » of a
|
||||
creation. Tests: unit + e2e (delete, one header « Défaire », row visible and selected; one Back after delete moves).
|
||||
- « Plus »: choosing an entry (keyboard, also pointer) moves the focus to the new tab's panel (`role=tabpanel`,
|
||||
`tabIndex=-1`, labelled by its tab) once the overlay is gone; focus ring only for keyboard (`:focus-visible`). Tests
|
||||
unit + e2e at 375 (Enter on an entry: the panel of that tab is focused).
|
||||
|
||||
### Task 8: session tag in history; confirmation before a multi-entry leave (owner item 3, points 3 and 4)
|
||||
- History entries carry `tag` (random 128-bit hex, crypto.getRandomValues) instead of `userId`; `sheetId` stays.
|
||||
The tag lives in sessionStorage with the SHA-256 digest of the account id (crypto.subtle), reused only when the
|
||||
digest matches the signed-in account, rotated on sign-out and on any account mismatch; storage failure → in-memory
|
||||
tag (a reload then restores nothing). No tag yet → no restore (fail closed). The left-draft flag key uses the tag; flags
|
||||
of a rotated tag are cleared. Entries with `userId` (older shape) read as foreign.
|
||||
- Navigation API guard (`navigation` feature-detected): while a finding or reference dialog is dirty, a same-document
|
||||
`traverse` whose destination leaves the editor route is cancelled when `event.cancelable`; the dialog's own
|
||||
« Abandonner les modifications ? » shows; « Continuer la saisie » stays; « Abandonner » traverses to the destination
|
||||
(`navigation.traverseTo(key)`) with no left-draft notice. Not cancelable or no API → the existing flag and notice.
|
||||
In-editor traversals keep the existing refusal path. Tests: unit with a navigation stub; e2e with CDP
|
||||
`Page.navigateToHistoryEntry` (jump of several entries out of the editor with a dirty dialog: confirm shown, URL and
|
||||
draft kept; Abandonner lands on the destination).
|
||||
|
||||
### Task 9: R2 closure docs and the U2 orientation
|
||||
- R2 validated by the owner's trial 2026-11-14: status lines (V1-2-6_U1_CORRECTIONS §R2, V1-2_ANATOMICAL_SHEETS notes),
|
||||
limits (accepted list; lifted: delete dead Back, « Plus » focus to body; changed: tag, leave guard), §4.11 steps
|
||||
adjusted, a §4.12 « Vérifications manuelles finales » list, labels, BROWSER_TESTS.
|
||||
- U2 orientation (controller text, `u2-orientation.md` in the SDD folder) into V1-2-6_UX_PLAN §U2, V1-2-6_UX_DECISIONS
|
||||
and docs/design/README.md (boards 02 to 06 and 13 to redraw at U2 planning, validated before U2 code).
|
||||
Reference in new issue
Block a user