From 2c8b606be339544332144934a7df7d2d05985294 Mon Sep 17 00:00:00 2001 From: bchanot Date: Fri, 6 Nov 2026 18:11:50 +0100 Subject: [PATCH] chore(docs): U1 contract, fourth pass fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit « Reprendre » absent in read-only; withheld state per decision; picker disabled while a decision is pending; parent pending line; panel open withholds; route resync after a submission. --- .../contracts/2026-11-06-v1-2-6-ux-u1-1123.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.claude/tasks/contracts/2026-11-06-v1-2-6-ux-u1-1123.md b/.claude/tasks/contracts/2026-11-06-v1-2-6-ux-u1-1123.md index 1e0be134..e3376890 100644 --- a/.claude/tasks/contracts/2026-11-06-v1-2-6-ux-u1-1123.md +++ b/.claude/tasks/contracts/2026-11-06-v1-2-6-ux-u1-1123.md @@ -327,6 +327,25 @@ itself: the view row's upload notice shows the decision as pending with a « Rep label, proposal C44); AC12 and AC13 unchanged. B2/H tests: a tab click and an arrow back onto Annotations keep focus on the tab; « Aller à » a view focuses its row; `dialog[open]` stays 0 until « Reprendre »; « Reprendre » opens the dialog with its state (candidate, offer with typed geometries, parent choice). +Q: Fourth pass (2026-11-06, fresh plan-challenger, REMAINING(1), 5 MINOR) / A: [gated 2026-11-06] fixes, +executor's: +- « Reprendre » in read-only (MAJOR): an `ActionButton readOnly={readOnly}`, absent in every read-only mode (AC11), + the pending text kept; clicking it is the only way a withheld dialog opens. B2 test: narrow with a withheld + decision shows the pending text and no « Reprendre »; after widening `dialog[open]` stays 0 until « Reprendre ». +- Withheld state: per decision object (candidate, offer, parent `asking`), held in `DrawingActions`, set in any render + where that decision exists while `readOnly`, its place hidden, or the references panel open; a new decision that + arrives in edit mode, place visible and panel closed, opens normally. Test: after a withheld decision ends, a new + one opens on its own. +- Pending decision and new actions: while a decision is pending (dialog withheld), the file picker and « Utiliser + l'illustration de la vue parente » are disabled with the pending notice as their description, so no pick silently + replaces a pending offer and its typed geometries. +- Parent choice: a withheld parent choice has its own pending line in the row's notices; the pending texts (cleaning, + repair, parent) and « Reprendre » are label proposals listed in the Lot G file (C44). +- References panel open: a place under the open panel counts as not visible for decision dialogs (withheld, then + « Reprendre »), so no modal opens over the panel and focus is never lost to `body`. +- Route resync after a submission: the route's `setCanEdit` effect depends on `[canEdit, sheet]`, so after + `submit()` sets the store's `canEdit` false and the refresh keeps the draft editable (`verification_failed`, + `changes_requested`, `withdrawn`), editing is re-enabled; test for each of those rounds. ## ACCEPTANCE CRITERIA 1. Four tabs from 1 024 px: Général, Annotations, Constats, Vérification, as an ARIA tablist (arrows, Home/End not