diff --git a/docs/design/v1-2-6-constats/20-constats-recherche.png b/docs/design/v1-2-6-constats/20-constats-recherche.png index e2136bc8..31eeda9e 100644 Binary files a/docs/design/v1-2-6-constats/20-constats-recherche.png and b/docs/design/v1-2-6-constats/20-constats-recherche.png differ diff --git a/docs/design/v1-2-6-constats/21-constats-filtre-schema.png b/docs/design/v1-2-6-constats/21-constats-filtre-schema.png index e61ebdf9..c3d58e69 100644 Binary files a/docs/design/v1-2-6-constats/21-constats-filtre-schema.png and b/docs/design/v1-2-6-constats/21-constats-filtre-schema.png differ diff --git a/docs/design/v1-2-6-constats/REVUE.md b/docs/design/v1-2-6-constats/REVUE.md index 60c95195..6206b362 100644 --- a/docs/design/v1-2-6-constats/REVUE.md +++ b/docs/design/v1-2-6-constats/REVUE.md @@ -2,7 +2,7 @@ Brief propriétaire du 2026-11-06 « Nouvelle exigence UX : navigation bidirectionnelle entre annotations et constats ». Contrat `.claude/tasks/contracts/2026-11-06-v1-2-6-findings-nav-design.md`. Étude, placement, risques, tests et -décisions F1 à F16 : `docs/development/V1-2-6_UX_FINDINGS_NAV.md`. Aucun code n'est écrit avant l'approbation. +décisions F1 à F21 : `docs/development/V1-2-6_UX_FINDINGS_NAV.md`. Aucun code n'est écrit avant l'approbation. | Fichier | Contenu | |---|---| @@ -42,3 +42,9 @@ Conventions : - Vérificateur neuf, tour 1 : ECARTS(4). Corrigé : cardinalité des accès (plusieurs à un), sous-arbres « Anamnèse » (trois variantes), preuve de l'oracle du critère 7 consignée, décisions F13 à F16 ajoutées ; verdict de la revue consigné ici. +- Vérificateur neuf, tour 2 : ECARTS(2). Corrigé : derniers noms de la fiche saisis dans la source (nom de vue de la + pastille, « Grasset » en 19 D et dans la note de la planche 20) désormais calculés ; décisions F17 à F21 ajoutées + (effacements partiels, nombre hors filtre, ordre de la liste des zones, pointillé, présentation des résultats). +- SHOULD de la revue non appliqués, avec la raison : deux présentations des résultats gardées (arbre en 20, liste + compacte en 21 quand le volet prend la largeur), soumises au propriétaire en F21 ; onglet « Plus » du téléphone + montré avec le nom de l'onglet actif à côté, sans nom accessible détaillé (relève du plan U1, choix 5). diff --git a/docs/design/v1-2-6-constats/maquettes.html b/docs/design/v1-2-6-constats/maquettes.html index d65e70cd..7005fd6c 100644 --- a/docs/design/v1-2-6-constats/maquettes.html +++ b/docs/design/v1-2-6-constats/maquettes.html @@ -339,7 +339,7 @@ function toolbar(on, o = {}) { ` } const bigPills = (z) => `${vchip()}
${ico('minus')}${z}${ico('plus')}${ico('fit')}
` -const vchip = (v = 'Vue latérale gauche') => `${ico('layers', 'sm')}${v}` +const vchip = (v = DOC.views[0].fr) => `${ico('layers', 'sm')}${v}` const zoom = (z = '100 %') => `${vchip()}
${ico('minus', 'sm')}${z}${ico('plus', 'sm')}${ico('fit', 'sm')}
` const sw = (c, o, cls = '') => `` const catSel = (k) => `${sw(CATS[k].c, CATS[k].o)}${CATS[k].fr}${ico('down', 'sm')}` @@ -474,7 +474,7 @@ document.getElementById('b17').innerHTML = editor({ body: stage((u) => ring(STIF const trig = ANN.find((a) => a.kind === 'detail_trigger') const access = `
C. Accès à une vue détaillée
${vframe(560, 300, `
${ico('crop', 'sm')}${nameOf(trig)}
PropriétésConstats
Un accès ouvre la vue « ${viewName(DETAIL)} » : il ne représente pas une région, il n'a pas de zone de constats (champ vide dans la fiche). L'onglet « Constats » du volet est grisé avec cette raison.
`)}
` - const dup = `
D. Zone montrée par deux annotations (cas illustratif)
${vframe(560, 360, `
${selHead(STIFLE)}${zoneLine(STIFLE, { also: 'Aussi sur le schéma : Grasset, vue « Membre postérieur » (la sélectionner)' })}
+ const dup = `
D. Zone montrée par deux annotations (cas illustratif)
${vframe(560, 360, `
${selHead(STIFLE)}${zoneLine(STIFLE, { also: `Aussi sur le schéma : ${short(nameOf(STIFLE))}, vue « Membre postérieur » (la sélectionner)` })}
Dans « Filtrer sur le schéma » : l'annotation cliquée est cochée, l'autre annotation de la même zone est cernée en pointillé ; la zone compte une fois.
${note(`Le brouillon équin n'a aucune zone montrée par deux annotations (${DOC.zones.filter((z) => annOfZone(z.id).length > 1).length} sur ${DOC.zones.length}) ; la vue « Membre postérieur » est inventée pour l'exemple. Règle : les constats sont ceux de la zone, comptés et listés une fois (dédoublonnage par zone ; le bilan, lui, sépare aussi par côté) ; dans « Filtrer sur le schéma », sélectionner l'une des deux annotations retient la zone une fois et marque l'autre en pointillé.`)}`)}
` document.getElementById('b19').innerHTML = change + none + access + dup @@ -519,7 +519,7 @@ document.getElementById('b17').innerHTML = editor({ body: stage((u) => ring(STIF
` document.getElementById('b20').innerHTML = editor({ tab: 'Constats', body: `
${bar}
${rows}
${detail}
` }) - + `
${note(`Recherche : sur le nom des constats en français et en anglais, sans tenir compte des accents ni de la casse, dès la frappe. Les branches sans résultat se replient ; les ancêtres d'un résultat restent visibles en gris. La liste est montrée défilée jusqu'au grasset (${pl(Math.max(0, zonesOf(matches('restriction')).indexOf(STIFLE.zone) - 2), 'zone', 'zones')} au-dessus). « Ajouter… » ouvre le choix zone, famille ou constat, comme aujourd'hui. Le compteur est annoncé poliment aux lecteurs d'écran après une courte pause de frappe.`, 'flex:1')}${note(`« Sur le schéma » : passe à l'onglet Annotations, sélectionne l'annotation de la zone et ouvre son volet « Constats » (navigation inverse de la planche 17). Plusieurs annotations : la première, les autres listées dans le volet.
Filtres : états d'interface, gardés en changeant d'onglet, jamais enregistrés ni écrits dans la fiche.`, 'flex:1')}
` + + `
${note(`Recherche : sur le nom des constats en français et en anglais, sans tenir compte des accents ni de la casse, dès la frappe. Les branches sans résultat se replient ; les ancêtres d'un résultat restent visibles en gris. La liste est montrée défilée jusqu'à « ${short(nameOf(STIFLE))} » (${pl(Math.max(0, zonesOf(matches('restriction')).indexOf(STIFLE.zone) - 2), 'zone', 'zones')} au-dessus). « Ajouter… » ouvre le choix zone, famille ou constat, comme aujourd'hui. Le compteur est annoncé poliment aux lecteurs d'écran après une courte pause de frappe.`, 'flex:1')}${note(`« Sur le schéma » : passe à l'onglet Annotations, sélectionne l'annotation de la zone et ouvre son volet « Constats » (navigation inverse de la planche 17). Plusieurs annotations : la première, les autres listées dans le volet.
Filtres : états d'interface, gardés en changeant d'onglet, jamais enregistrés ni écrits dans la fiche.`, 'flex:1')}
` } @@ -540,7 +540,7 @@ document.getElementById('b17').innerHTML = editor({ body: stage((u) => ring(STIF const left = `
${ico('search', 'sm')}${Q}${ico('close', 'sm')}
Texte : ${Q} ${ico('close', 'sm')}${ico('layers', 'sm')}Schéma : ${pl(ids.length, 'zone', 'zones')} ${ico('close', 'sm')}
-
${pl(ms.length, 'constat', 'constats')} dans ${pl(zs.length, 'zone', 'zones')}Réinitialiser les filtres
+
${pl(ms.length, 'constat', 'constats')} dans ${pl(zs.length, 'zone', 'zones')}${ico('undo', 'sm')}Réinitialiser les filtres
${rows}
` const views = DOC.views.map((v) => `${ico('check', 'sm')}${v.fr}`).join('') const panel = `
diff --git a/docs/design/v1-2-6-constats/planche-contact.png b/docs/design/v1-2-6-constats/planche-contact.png index 26a4718d..e7d5b338 100644 Binary files a/docs/design/v1-2-6-constats/planche-contact.png and b/docs/design/v1-2-6-constats/planche-contact.png differ diff --git a/docs/development/V1-2-6_UX_FINDINGS_NAV.md b/docs/development/V1-2-6_UX_FINDINGS_NAV.md index c4aef0a7..3f8f779f 100644 --- a/docs/development/V1-2-6_UX_FINDINGS_NAV.md +++ b/docs/development/V1-2-6_UX_FINDINGS_NAV.md @@ -168,7 +168,7 @@ authorisation. ## 7. Decisions to take (owner) -None is decided by this proposal; each has a recommendation (F1 to F16). +None is decided by this proposal; each has a recommendation (F1 to F21). | Id | Question | Recommendation | |---|---|---| @@ -183,11 +183,16 @@ None is decided by this proposal; each has a recommendation (F1 to F16). | F9 | Editing a finding from the drawing | in the side column, with the shared detail component; « Ouvrir dans Constats » for the tree context | | F10 | Filter lifetime | kept while the page lives (tab changes included), cleared by « Réinitialiser les filtres » and on reload; a filtered zone or annotation removed by an undo leaves the filter silently narrower with its chip updated | | F11 | « Sur le schéma » from a zone named by several annotations | selects the first in document order and lists the others in the segment | -| F12 | Multi-annotation marking in the filter panel | accent outline and check disc (board 21), a new page state recorded in `docs/ANNOTATION-RENDERING.md` before any code | +| F12 | Multi-annotation marking in the filter panel | accent outline and check disc (board 21; F20 for the other annotation of a picked zone), a new page state recorded in `docs/ANNOTATION-RENDERING.md` before any code | | F13 | Finding detail while the filter panel is open | hidden, the tree takes the width; it comes back when the panel closes (board 21) | | F14 | Grouping of the keyboard list of annotations | by annotation category (colour), as the drawing shows them, with a caption saying so; not by finding family (board 22 B) | | F15 | Choosing a zone already shown by another annotation | allowed, with a notice naming the other annotation before the change is applied (board 19 A) | | F16 | « Constats » segment of a detail trigger | shown disabled with its reason rather than hidden, so the panel keeps the same layout (board 19 C) | +| F17 | Partial clears beside the general reset | « Effacer la sélection » in the filter panel (board 21), « Retirer le filtre du schéma » in the empty state (board 22 A), and a ✕ on each filter chip (« Texte », « Schéma ») to drop one filter; « Réinitialiser les filtres » clears all, same button on every board | +| F18 | No-result state | says how many findings match the text outside the drawing filter and offers to remove that filter (board 22 A) | +| F19 | Zone picker of « Changer » | current zone first with a « zone actuelle » tag, then the zones in document order, each with the number of annotations that show it (board 19 A) | +| F20 | Other annotation of a picked zone in the filter | dashed outline on the drawing, the zone counted once (board 19 D); completes F12 | +| F21 | How search results are shown | in the tree: branches without a result folded, ancestors in grey, the matched text highlighted, a result count per zone and a « Sur le schéma » link (board 20); while the filter panel is open, a compact list per zone with the family as a prefix, because the panel takes the width (board 21) | ## 8. Out of scope