fix(editor): name vertex handles after their zone, in a named group

Criterion 18: « Sommet {n} de {nom} », « Ajouter un sommet après le sommet
{n} de {nom} », « Retirer le sommet {n} de {nom} » (EN « Vertex {n} of
{name} » …), {nom} the zone's display name in the current locale; the
handle group is a role="group" named « Sommets de {nom} ».

Tests: no assertion removed; every unit and e2e locator that read the old
names now reads the same handle with the zone name appended (fixtures: N,
Vertèbres thoraciques, Zone dessinée, Zone clavier). New unit tests in
editor-zone-edit cover the FR names, the group and the EN locale.
This commit is contained in:
bchanot committed 2026-11-18 14:09:24 +01:00
1 parent fab641c278
commit b6aa2819ea
15 files changed
+165 -67

No files matched your search

+4 -1
View File
@@ -185,7 +185,10 @@ the same layer, in this order: one « + » at the midpoint of each segment
(wrapping from the last vertex to the first), then one vertex handle per
vertex, then the « − » bubble of the chosen vertex, a rounded rectangle drawn
just above that vertex. Each is a `role="button"` with `tabindex="0"`, so Tab and
Shift+Tab walk them in document order. A « + » is not drawn while its segment
Shift+Tab walk them in document order. They sit in one `<g role="group">` named
« Sommets de {nom} »; each name carries the shape's display name in the current
locale: « Sommet {n} de {nom} », « Ajouter un sommet après le sommet {n} de
{nom} », « Retirer le sommet {n} de {nom} ». A « + » is not drawn while its segment
is shorter than two hit radii on screen at the current zoom (R-9); Insert on
a vertex still reaches it. The « − » bubble is `aria-disabled` and greyed
while the polygon has three vertices. Above 40 vertices (`HANDLE_CAP`, T18)
+5 -2
View File
@@ -816,8 +816,11 @@ Interprétations et écarts par rapport aux planches :
de texte gardent leur propre annulation.
Libellés inventés pendant la construction (français / anglais) :
- « Sommet {n} » / « Vertex {n} » ; « Ajouter un sommet après le sommet {n} » / « Add a vertex after vertex {n} » ;
« Retirer le sommet {n} » / « Remove vertex {n} » (noms des poignées, lus par les lecteurs d'écran).
- « Sommet {n} de {nom} » / « Vertex {n} of {name} » ; « Ajouter un sommet après le sommet {n} de {nom} » /
« Add a vertex after vertex {n} of {name} » ; « Retirer le sommet {n} de {nom} » / « Remove vertex {n} of {name} »
(noms des poignées, lus par les lecteurs d'écran ; {nom} est le nom de la zone dans la langue choisie, par exemple
« Sommet 3 de Vertèbres thoraciques ») ; « Sommets de {nom} » / « Vertices of {name} » (nom du groupe des
poignées).
- « Accès {nom} » / « Link {name} » (nom de la poignée d'un accès).
- « Sommet déplacé » / « Vertex moved ».
- « Taille refusée : {texte} » / « Size refused: {text} ».
+1 -1
View File
@@ -62,7 +62,7 @@ Implemented (plan `.claude/tasks/plans/2026-11-17-v1-2-6-u2.md`, rev 3; boards `
| Layout (A14) | `expectNoShift` (`e2e/support/layout.ts`) at 1 024, 1 180 and 1 280 px: no box of the canvas, the strip, the aside or the header moves, `scrollHeight` and the scrollbar gutter are unchanged, and the layout-shift sum is zero around selection, strip content, a message showing and expiring, the hint, a dialog opening and closing, mode entry and exit, and the first commit's save line; `scrollbar-gutter: stable` on the editor page only (`editor-annotations.spec.ts`) |
| Keyboard | create a zone, add and remove a vertex, move the zone, validate, without a pointer; Ctrl+Z on a focused handle after arrow moves only cancels the preview and a later Enter commits nothing stale; after undoing « + », « − » never removes the wrong vertex; « Désélectionner » commits a pending series |
| Paths (T16) | a path annotation gets no handle, no « + » or « − », no zone move in either mode, no keyboard move; its `d` is byte-identical after every gesture on its neighbours, a save and a reload; « Remplacer par un polygone » stays the only change: explicit, validated by the core, the path kept while tracing, on Escape and on a refusal; one undo entry restoring the exact `d`, redo restoring the polygon (owner, BDR-101) |
| Accessibility | axe on selection, tracing, move states and the dialog in read and edit modes; handle names (« Point {nom} », « Sommet {n} », « Ajouter un sommet après le sommet {n} », « Retirer le sommet {n} »); live-region message after a move; WCAG 2.5.7: the move mode with four arrow buttons is the single-pointer path without dragging (A11) |
| Accessibility | axe on selection, tracing, move states and the dialog in read and edit modes; handle names (« Point {nom} », « Sommet {n} de {nom} », « Ajouter un sommet après le sommet {n} de {nom} », « Retirer le sommet {n} de {nom} », the handle group « Sommets de {nom} »); live-region message after a move; WCAG 2.5.7: the move mode with four arrow buttons is the single-pointer path without dragging (A11) |
| Performance | commit latency under the 500 ms budget for drag, insert and remove, a measure run by hand at the gates (`e2e/support/measure-commit.ts`, `editor-measure-commit.spec.ts`, `MEASURE_COMMIT=1`) on a run-seeded equine-sized draft, never on the historical copy nor through `editor-equine.spec.ts`. Measured 2026-11-18 on a production build under `vite preview`, Chromium mouse at 1 280 px, CPU ×4, from the release to the painted frame showing the new geometry with the undo entry: median / max drag 176.9 / 209.2 ms, « + » 176.2 / 177.6 ms, « − » 168.2 / 170.3 ms (three runs each; figures in plan Task 10); the drag smoothness is a measure, not an assertion (`e2e/support/measure-drag.ts`, `editor-measure-drag.spec.ts`, run by hand). Measured 2026-11-18 on a production build under `vite preview`, Chromium touch at 1 180 px, CPU ×4: frame work p95 4.2 to 4.7 ms with the loupe (technique A), 4.0 to 4.4 ms outline only (B), 3.6 to 4.2 ms without a loupe; technique A kept. The figures are in plan Task 8; the owner's tablet trial is the real check |
## U3 · Category panel and own colour