diff --git a/.claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md b/.claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md index 6600980d..9d79a402 100644 --- a/.claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md +++ b/.claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md @@ -81,6 +81,7 @@ Q: Phase / A: owner: mockups and the user journey first, analysis and arbitratio Q: Relation to the V1-2.6 UX plan / A: code fact (analysis 2026-11-22): the request maps onto plan step U4 « Detail view by rectangle (manual) » (docs/development/V1-2-6_UX_PLAN.md 616-631) and touches U6 (automatic access, internal category `cat-access`, BDR-101); the owner places it in U2 (« U2 reste ouvert pour cette nouvelle demande »). Board 08 (docs/design/v1-2-6/08-vue-detaillee-creation-desktop.png, validated 2026-11-05) is the prior reference. Q: Owner arbitrations on Q1-Q4 + aspect ratio (2026-11-22, second message) / A: [gated 2026-11-22] Q1 option B: bring forward only the minimum of the U6 internal access category; present the consequences (schema, Rust, SQL) before any such change. Q2 overlap allowed: annotations keep click/touch priority, the access must stay reachable even when heavily covered. Q3 new view starts empty, annotations stay on their view, any copy handled in U5; fix the contradictory caption of validated board 08. Q4 keep free-form accesses: create and edit rectangle, polygon and circle accesses; crop rectangle and access are distinct; an access may be generated at view creation then reshaped (like the head); avoid a fifth permanent button. 4:3 not validated: study free-ratio crops and their consistency in editor, bilan and PDF. Update analysis, arbitrations and mockups; final panels at readable size before graphic validation; then the implementation plan. Q: Owner review of board revision 2 (2026-11-22, third message) / A: [gated 2026-11-22] Validated: functional orientation; internal category principle (auto-created, holds generated and hand-drawn accesses, absent from anatomical categories, head access stays in Articulations); overlap + annotation priority on editor, catalogue and bilan + clickable label incl. keyboard; crop on parent, 8 handles, crop/access separation, auto access then reshape, rectangle/polygon/circle accesses, view+access in one Undo, back to parent, graphic recrop; new view empty (copy = U5); targeted PDF fix; new accesses grouped under « Accès aux vues détaillées » in the annotations list, not an ordinary category; labels hidden during recrop. To do: compatibility strategy for the `role` key (compatible evolution, versioning or controlled restriction; no silent incompatibility under one schema version without explicit justification; SQL and Rust consequences checked before applying); limit label conflicts near each other and at the drawing edge; NO arbitrary ratio bound (no 1:2-3:1), keep minimum sizes and justified technical limits; editor and bilan may keep a 4:3 space with neutral bands, nothing outside the crop in a detail view; PDF keeps proportions, no stretch; PDF fix with visual non-regression tests and a check of existing PDFs and goldens. Deliver: analysis, arbitrations and mockups updated; final panels at full resolution (creation, free crop, polygon and circle access, labels, bilan navigation, portrait and very elongated view) in an easily browsable folder or archive; graphic validation before the implementation plan. Technical solutions compatible with these decisions are delegated. +Q: Owner arbitrations on board revision 3 (2026-11-22, fourth message) / A: [gated 2026-11-22] Validated: reserved id `cat-access` instead of `role: navigation` now; schema v2, no new key, no SQL migration for this feature; plan must verify: no collision with an existing category, creation by the core, uniqueness and behaviour on removal or edit, read and rewrite by an N-1 application, compatibility with existing sheets, future transition to the U6 role. Free-ratio crops validated with justified technical limits, very elongated both ways, handle manipulation by mouse and touch; whole crop with neutral bands in editor and bilan; content outside the crop never visible in a detail view. PDF option validated: views with width/height >= 3:1 use the full available width, height per real proportions; no stretch, no squash, no drawing outside the crop, no overlap with notes or other PDF elements; layout may adapt; both Rust defects fixed in the plan; existing PDF test references checked without automatic regeneration, any needed change justified and submitted. D25 validated (five fixed positions, no tab over a tab or a point, never outside the drawing, leader when moved, long names abbreviated with full name reachable) plus an accessible behaviour when no position fits, so a view is never impossible to open. Panel 15 to be redrawn with real D25 phone behaviour (close accesses, crossing leaders); panel 17 needs no artificial above-right geometry, that case is covered by tests. Graphic validation still pending on full-resolution panels 11, 15, 17, 18, 19; then the implementation plan with the usual reviews. ## ACCEPTANCE CRITERIA Phase 1 (this run, before any product code):