From fee1899f602a32d0b3e316b386cf5d6c3266c5b9 Mon Sep 17 00:00:00 2001 From: bchanot Date: Sun, 22 Nov 2026 01:56:51 +0100 Subject: [PATCH] =?UTF-8?q?chore(memory):=20contract=20=E2=80=94=20ship-fe?= =?UTF-8?q?ature=20detail=20views=20phase=201=20=C2=B7=20TODO=20+0=20/=20-?= =?UTF-8?q?0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...26-11-22-detail-views-graphic-crop-0134.md | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 .claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md 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 new file mode 100644 index 00000000..8804616e --- /dev/null +++ b/.claude/tasks/contracts/2026-11-22-detail-views-graphic-crop-0134.md @@ -0,0 +1,96 @@ +# CONTRACT — detail-views-graphic-crop +- date: 2026-11-22 | flow: ship-feature | branch: feature/v1-2-anatomical-sheets +- status: active (phase 1: analysis, arbitrations and mockups for the owner's graphic validation; no product code before that approval) + +## REQUEST (verbatim — IMMUTABLE) +FAUNOSTEO — Validation du critère 32 et nouvelle demande U2 + +J'ai terminé tous mes essais manuels du critère 32 sur db:trial. + +Résultats : +- Souris : A1 à A6, tous OK. +- Clavier : B1 à B6, tous OK. +- Tablette et téléphone : C1 à C8, tous OK. +- Stabilité et nettoyage : D1 à D4, tous OK. + +Les six vues temporaires ont été supprimées et la fiche enregistrée. + +Je valide définitivement le critère 32. +BLK-016 peut être marqué résolu. + +Je valide également les deux leçons de capitalisation proposées, avec leur contexte et leurs limites. + +En revanche, j'ai une nouvelle demande concernant la création des vues anatomiques. + +1. Créer une vue par sélection graphique + +Je ne souhaite pas devoir renseigner manuellement les coordonnées de recadrage. + +Je veux pouvoir : +- Choisir la vue parente. +- Voir cette vue directement sur le schéma. +- Tracer un rectangle de sélection à la souris ou au toucher. +- Ajuster ce rectangle avant validation. +- Donner un nom à la nouvelle vue. +- Enregistrer la vue de détail correspondant au recadrage. + +Ce fonctionnement doit être naturel sur ordinateur et adapté au tactile. + +2. Afficher les vues de détail sur leur vue parente + +Comme pour la tête du cheval actuellement, une vue de détail doit disposer d'un accès visible directement sur le dessin d'origine. + +Je souhaite : +- Identifier visuellement la zone correspondant à une vue de détail. +- Pouvoir cliquer ou toucher cette zone pour ouvrir la vue. +- Pouvoir revenir à la vue parente. +- Gérer plusieurs vues de détail sur une même vue. +- Conserver la cohérence avec la hiérarchie actuelle des vues. + +L'accès sur le dessin doit compléter la rangée de vues, pas la remplacer. + +3. Modifier une vue existante + +Je souhaite également pouvoir retrouver et ajuster le recadrage d'une vue déjà créée, sans devoir saisir des coordonnées. + +4. Travail attendu + +Analyse l'implémentation actuelle des vues, les liens parent/enfant et le mécanisme déjà utilisé pour la tête du cheval. + +Privilégie la réutilisation des structures et composants existants. + +Je te laisse autonome sur la solution UX et technique, notamment : +- la distinction entre recadrage et zone cliquable ; +- les interactions avec les annotations existantes ; +- le zoom et les déplacements du dessin ; +- les gestes tactiles ; +- l'accessibilité ; +- l'historique Défaire/Refaire et la sauvegarde. + +Comme cette demande modifie l'expérience de création des vues, prépare d'abord les maquettes et le parcours utilisateur correspondants pour ma validation graphique. + +Après mon accord sur le design, tu pourras organiser son implémentation avec ton processus habituel. + +Le critère 32 est validé, mais U2 reste ouvert pour cette nouvelle demande et sa validation finale. + +Présente-moi ton analyse, tes éventuels arbitrages et les maquettes avant de coder cette fonctionnalité. + +## CLARIFICATIONS +Q: UX and technical choices (crop vs clickable zone, annotations, zoom and pan, touch, accessibility, Undo/Redo and saving) / A: delegated by the owner (« Je te laisse autonome sur la solution UX et technique ») — the choices are made in the board's arbitrations and submitted with the mockups; none binds before the owner's graphic validation. +Q: Phase / A: owner: mockups and the user journey first, analysis and arbitrations presented, no product code before the design agreement; then the usual process (plan, challenge, validation gate, subagent-driven implementation, verifier and security gates). +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. + +## ACCEPTANCE CRITERIA +Phase 1 (this run, before any product code): +1. A versioned board under docs/design/v1-2-6-u2-detail-views/ (board HTML, rendered PNG, README.md in French) shows the user journey for: creating a detail view by drawing a rectangle on the parent drawing (mouse and touch), adjusting it before validation, naming it, saving it; showing and opening a detail view from its access on the parent drawing, going back to the parent, several detail views on one view; finding and adjusting an existing view's crop without typed coordinates. +2. The README lists the analysis of the current implementation (views, parent/child links, the horse head mechanism) and every arbitration with its reason, the in-force decisions it honours or proposes to change (named), and what stays out of scope. +3. The board uses the real equine draft data (views, annotations, drawing) and the U2 layout as built (strip, chip row of criterion 32, tool column, add row, dialogs over the right column), with no external resource. +4. No file under apps/, crates/, packages/ or supabase/ changes in phase 1. + CHECK: cd /home/bchanot/Documents/faunosteo-v1-2 && test -z "$(git diff --name-only 80991bad..HEAD -- apps crates packages supabase)" && test -z "$(git status --porcelain -- apps crates packages supabase)" && echo PHASE1-NO-PRODUCT-CODE + EXPECT: PHASE1-NO-PRODUCT-CODE + EVIDENCE: MET exit=0 marker-found :: PHASE1-NO-PRODUCT-CODE +Phase 2 criteria are appended, tagged [gated ], after the owner's design approval. + +## FILE SCOPE +Phase 1: docs/design/v1-2-6-u2-detail-views/ (new), docs/design/README.md (index line), .claude/tasks/ (contract, plan). +Phase 2 (after approval, to be fixed by the plan): apps/app/src/components/editor/{annotations,views}/, apps/app/src/editor/{annotations,state}/, apps/app/src/i18n/{fr,en}.ts, apps/app/src/components/canvas/ (bilan modal), apps/app/src/components/catalogue/, tests (unit, e2e/shell), docs/ANNOTATION-RENDERING.md, docs/development/V1-2-6_*.md; crates/core only if a rule or query must move to Rust (BDR-043).