docs(docs): U2 status as built, trial measures and gate failures stated as proven
This commit is contained in:
1 parent
fa00e57652
commit
7cb1aee7a1
3 files changed
+10
-10
No files matched your search
@@ -914,13 +914,12 @@ Limites connues :
|
||||
#### Mesures
|
||||
Deux mesures ont été faites sur un brouillon équin créé pour l'occasion sur la sandbox, jamais sur la copie de
|
||||
travail ni sur la fiche historique, avec Chromium sur ordinateur et un processeur ralenti quatre fois :
|
||||
- la fluidité de la loupe (2026-11-18, version de production) : le travail d'une image pendant un glisser au doigt
|
||||
reste sous 4,5 ms dans 95 % des cas sur la version finale (p95 3,9 à 4,5 ms avec la loupe ; 3,6 à 4,2 ms sans, mesuré
|
||||
avant), loin des 16 ms d'une image ;
|
||||
- le délai d'enregistrement d'un geste (2026-11-18, version de production, souris) : du relâchement de la souris à
|
||||
- la fluidité de la loupe (2026-11-19, version de production, code final) : du handler à l'image affichée, le travail
|
||||
d'un glisser au doigt avec la loupe a une médiane de 3,6 ms et un p95 de 5,3 ms, loin des 16 ms d'une image ;
|
||||
- le délai d'enregistrement d'un geste (2026-11-19, version de production, souris) : du relâchement de la souris à
|
||||
l'image où la nouvelle forme est affichée et où « Défaire » est disponible, trois essais par geste. Médiane et
|
||||
maximum sur la version finale : glisser d'un sommet 175 et 202 ms, « + » 175 et 178 ms, « − » 170 et 182 ms, sous la
|
||||
limite de 500 ms.
|
||||
maximum sur le code final : glisser d'un sommet 178,7 et 210,3 ms, « + » 185,4 et 186,7 ms, « − » 178,4 et
|
||||
185,1 ms, sous la limite de 500 ms.
|
||||
|
||||
Ces chiffres viennent d'un navigateur piloté par ordinateur. Le vrai contrôle est votre essai sur la tablette : si un
|
||||
glisser, un « + » ou un « − » vous paraît lent ou saccadé, notez le geste et la vue.
|
||||
|
||||
@@ -478,8 +478,9 @@ Status: implemented on `feature/v1-2-anatomical-sheets` (lots A to H; Lot I, gat
|
||||
|
||||
### U2 · Direct manipulation of points and polygons
|
||||
|
||||
- Status: implemented on `feature/v1-2-anatomical-sheets` (plan `.claude/tasks/plans/2026-11-17-v1-2-6-u2.md`, Tasks 1
|
||||
to 9; gates and owner checkpoint, Task 10, pending). The boards are `docs/design/v1-2-6-u2/` (A1 to A15 and the three
|
||||
- Status: implemented on `feature/v1-2-anatomical-sheets` (plan `.claude/tasks/plans/2026-11-17-v1-2-6-u2.md`, rev 4,
|
||||
Tasks 1 to 16 and the final fix rounds done; gates run on the final head, figures in `V1-2-6_UX_TESTS.md`; owner
|
||||
trial pending). The boards are `docs/design/v1-2-6-u2/` (A1 to A15 and the three
|
||||
adjustments, validated 2026-11-17).
|
||||
- Objective: boards 02 to 06, 13 and 31 to 33 of `v1-2-6-u2/` for points and polygons (curve handles excluded, curves
|
||||
lot): point move and size slider snapping to the radii of the view with the red minimum mark; vertex drag; « + » per
|
||||
|
||||
@@ -50,12 +50,12 @@ Implemented (contract `.claude/tasks/contracts/2026-11-06-v1-2-6-ux-u1-1123.md`)
|
||||
|
||||
## U2 · Points and polygons
|
||||
|
||||
Implemented (plan `.claude/tasks/plans/2026-11-17-v1-2-6-u2.md`, rev 4; boards `docs/design/v1-2-6-u2/`, A1 to A15 and the three adjustments). Rule numbers (R-n) are the plan's. Gates (plan Task 16) on the final head, 2026-11-19 (code at f5a6eafc, this page's figures added after): `pnpm check:all` exit 0 (app 2 137, core-wasm 67, supabase 182 tests, e2e:ui 253); the shell suite without `editor-equine.spec.ts` 325 passed, 19 failed, 5 not run, the failures being the admin, catalogue-integrity, catalogue and admin-sheets-list tests that fail the same way before U2 (sandbox data), plus one `editor-shell-layout.spec.ts` « Page crashed » that passes alone three times repeated (39 passed); `pnpm db:sandbox test` 105 passed, 10 skipped, and `test-db` Files=21 Tests=1958 FAIL on `014_animals_relations` (2) and `021_sheet_verification_jobs` (23), identical to before U2, which changes no SQL (run at 0aa0f6bc); `up fresh` is the owner's call; both opt-in measures rerun (figures in the Performance row). The owner trial is pending. The suites run on the sandbox only (`pnpm db:sandbox`).
|
||||
Implemented (plan `.claude/tasks/plans/2026-11-17-v1-2-6-u2.md`, rev 4; boards `docs/design/v1-2-6-u2/`, A1 to A15 and the three adjustments). Rule numbers (R-n) are the plan's. Gates (plan Task 16) on the final head, 2026-11-19 (code at f5a6eafc, this page's figures added after): `pnpm check:all` exit 0 (app 2 137, core-wasm 67, supabase 182 tests, e2e:ui 253); the shell suite without `editor-equine.spec.ts` 325 passed, 19 failed, 5 not run, the admin (6) and catalogue-integrity tests failing the same way before U2 (sandbox data), the catalogue and admin-sheets-list tests failing only under the parallel run with « Target crashed » and passing 16/16 with one worker (`--workers=1`, 2026-11-19), plus one `editor-shell-layout.spec.ts` « Page crashed » that passes alone three times repeated (39 passed); `pnpm db:sandbox test` 105 passed, 10 skipped, and `test-db` Files=21 Tests=1958 FAIL on `014_animals_relations` (2) and `021_sheet_verification_jobs` (23), identical to before U2, which changes no SQL (run at 0aa0f6bc); `up fresh` is the owner's call; both opt-in measures rerun (figures in the Performance row). The owner trial is pending. The suites run on the sandbox only (`pnpm db:sandbox`).
|
||||
|
||||
| Kind | Tests |
|
||||
|---|---|
|
||||
| Unit (tables) | the press machine (`annotations.press.test.ts`): slop per kind (4, 6 and 10 CSS px), click and drag decisions, handle priority (vertex over « − » over « + », nearest first), double click within 400 ms and 8 px opens the dialog and never inserts, a second pointer cancels; slider stops, most-used radius, snap within 8 CSS px, range (`pointSize`); midpoint insert after the segment start, « − » refused at 3 vertices (`message.vertex_min`), vertex move, no-op move, the 40-vertex cap, « + » hidden under two hit radii (`polygonEdit`); Escape action (`escape`); `missingFields` names only the missing fields in form order; keyboard map (arrows by 0.5 % of the frame's longer side, Shift ×10, Insert and Delete on a vertex, Backspace while tracing, Enter, Escape, roving focus); arrows pan only when the box itself is focused (`useFraming`, catalogue defaults unchanged); two pointers translate without scaling (`twoPointerPan`) |
|
||||
| Unit (state) | every preview, keyboard series and chosen vertex carries the `documentText` it was computed on, and a stale stamp is refused (`annotations.workStore.test.ts`); a preview is cancelled and restored, never committed, on undo, document replacement, tab change and a second pointer; redo is held (the header « Refaire » `aria-disabled`, Ctrl+Shift+Z inert) while a move mode, a redraw or uncommitted arrow or slider steps are pending, so the pending work is kept, never dropped (`editor-zone-edit.test.tsx` « final review I-1 »); a held « Refaire » or « Défaire » (a creation holds both) carries its reason as the accessible description only when its cause alone holds it (something to redo or to undo), a press shows the reason in the message line and does nothing else (a mouse press no longer commits a pending series), a mouse or touch press on « Défaire » over pending work only cancels it and keeps the redo stack, Ctrl+Z during a hold is silent, and a press while another tab is shown leaves the hidden line empty and keeps the description (`holdOf`, `HistoryButtons.tsx`, `editor-history-buttons.test.tsx`); « + » and Backspace on a focused vertex handle insert and remove like Insert and Delete, and after an undo the keys act on the focused handle (`useZoneEdit.ts`); a Safari tap (no focus move) on a tool, a view chip or an overview row (annotation or view) after a keyboard series commits it and lands the focus on the pressed control, never on `body`; the zone handles remount per annotation, so a row tap from a focused vertex of another zone lands on the row (`editor-zone-edit.test.tsx`); a resumed trace gets the polygon handles on its pending shape, named « cette nouvelle zone » or « ce nouvel accès » while the form has no name, with no interior drag and no handle above 40 vertices (`editor-creation-dialog.test.tsx`); an undo with a move mode, a slider or a series pending only cancels the preview (R-13); during a creation undo is inactive and « Défaire » is hidden (A12); the message line: « Point déplacé · Défaire » calls the same `undo()` as the header, any commit, undo or redo closes it, a refusal is `role="alert"` without « Défaire », 6 s, a mouse hover or the keyboard focus inside the line pauses it (WCAG 2.2.1) and a touch does not; the hint after a futile finger drag only when the line is free and never after a two-finger gesture worked (R-1); the slider commits once on release (history depth after a keyboard walk); the strip keeps a fixed height and truncates a long name before the status; dialogs mounted outside `EditOnly`: the width flip and the mode flip keep the draft, disable the save and commit nothing (R-14); a creation, a started move mode or a started redraw asks before a tab, a section, a view chip, a tool, Back, Escape, sign-out or leaving the editor, and a document change made elsewhere announces the dropped work (R-12, R-13); `Dialog` `anchor`, a click on the veil does nothing (R-6); undo history cap 8 MiB, about 47 equine steps (R-15) |
|
||||
| Unit (state) | every preview, keyboard series and chosen vertex carries the `documentText` it was computed on, and a stale stamp is refused (`annotations.workStore.test.ts`); a preview is cancelled and restored, never committed, on undo, document replacement, tab change and a second pointer; redo is held (the header « Refaire » `aria-disabled`, Ctrl+Shift+Z inert) while a move mode, a redraw or uncommitted arrow or slider steps are pending, so the pending work is kept, never dropped (`editor-zone-edit.test.tsx` « final review I-1 »); a held « Refaire » or « Défaire » (a creation holds both) carries its reason as the accessible description only when its cause alone holds it (something to redo or to undo), a press shows the reason in the message line and does nothing else (a mouse press no longer commits a pending series), a mouse or touch press on « Défaire » over pending work only cancels it and keeps the redo stack, Ctrl+Z during a hold is silent, and a press while another tab is shown leaves the hidden line empty and keeps the description (`holdOf`, `HistoryButtons.tsx`, `editor-history-buttons.test.tsx`); « + » and Backspace on a focused vertex handle insert and remove like Insert and Delete, and after an undo the keys act on the focused handle (`useZoneEdit.ts`); a Safari tap (no focus move) on a tool, a view chip, an editor tab or an overview row (annotation or view) after a keyboard series commits it and lands the focus on the pressed control, never on `body`; the zone handles remount per annotation, so a row tap from a focused vertex of another zone lands on the row (`editor-zone-edit.test.tsx`); a resumed trace gets the polygon handles on its pending shape, named « cette nouvelle zone » or « ce nouvel accès » while the form has no name, with no interior drag and no handle above 40 vertices (`editor-creation-dialog.test.tsx`); an undo with a move mode, a slider or a series pending only cancels the preview (R-13); during a creation undo is inactive and « Défaire » is hidden (A12); the message line: « Point déplacé · Défaire » calls the same `undo()` as the header, any commit, undo or redo closes it, a refusal is `role="alert"` without « Défaire », 6 s, a mouse hover or the keyboard focus inside the line pauses it (WCAG 2.2.1) and a touch does not; the hint after a futile finger drag only when the line is free and never after a two-finger gesture worked (R-1); the slider commits once on release (history depth after a keyboard walk); the strip keeps a fixed height and truncates a long name before the status; dialogs mounted outside `EditOnly`: the width flip and the mode flip keep the draft, disable the save and commit nothing (R-14); a creation, a started move mode or a started redraw asks before a tab, a section, a view chip, a tool, Back, Escape, sign-out or leaving the editor, and a document change made elsewhere announces the dropped work (R-12, R-13); `Dialog` `anchor`, a click on the veil does nothing (R-6); undo history cap 8 MiB, about 47 equine steps (R-15) |
|
||||
| Core | the per-view minimum visible radius (`PreviewState.min_point_radius`) equals the `marker_too_small` threshold on the equine views and on edge frames (`sheet_preview.rs`, `editor-min-point-radius.test.ts`) |
|
||||
| E2E mouse | drag a vertex, « + », « − », zone drag on a selected zone, redraw accepted, redraw refused by `interior_too_small` keeps and restores the old shape, undo and redo of each (`editor-zones.spec.ts`); a point: handle drag, size by a click on the track, the move mode (`editor-annotations.spec.ts`); the properties dialog opens over the right column and never over the drawing, a click on the veil does nothing, a double click on the selected zone opens it and inserts no vertex, a typed form then Back asks, a width crossing below 1 024 px keeps the draft (`editor-properties.spec.ts`); « Défaire » in the message line undoes the same entry as the header button, which carries the accessible name « Défaire la dernière modification » (T15; EN « Undo the last change »); during a held arrow series a mouse press on « Défaire » cancels it and « Refaire » restores the earlier move (`editor-annotations.spec.ts`); a Tab and Shift+Tab walk over the drawing place's native controls, and a keyboard Delete whose next vertex starts under the strip, land below the strip at 1 024, 1 180 and 1 280 px (`editor-geometry.spec.ts`) |
|
||||
| E2E touch (`hasTouch`, 1 024, 1 180, 1 280 px; CDP `Input.dispatchTouchEvent`) | one finger drags a vertex and the point under the loupe; every handle hit circle is at least 44 px; one finger off the handles moves nothing and shows the hint once, with no hint over a page scroll; two fingers zoom and pan; finger 1 on a vertex handle then finger 2: the drag is cancelled, the shape restored, nothing committed, the pinch zooms (Review Focus 1); the move mode by a finger; a tap on the selected shape opens the dialog and it stays open (Review Focus 5), with a chosen vertex it unchooses; the trace closes from a finger within 22 px; page scroll over the canvas with a selection and outside it (`editor-touch.spec.ts`, `editor-properties.spec.ts`, `editor-deselect.spec.ts`) |
|
||||
|
||||
Reference in new issue
Block a user