docs(docs): U2 tests, plan, rendering and Rust review aligned
This commit is contained in:
1 parent
0ca1f20452
commit
6e42d2ada1
12 files changed
+93
-53
No files matched your search
@@ -309,6 +309,9 @@ concrete constraint.
|
||||
| `apps/app/src/admin/sheetList.ts` (`searchSheets`, `sortSheets`, `SHEET_SORTS`) and `matchesSheetName` in `apps/app/src/catalogue/useCatalogue.ts` | the admin official sheet list (R3): search on the name in French or English (`folded`, the catalogue's rule, now shared), sort by `last_modified_at` (newest first) or by name, ties by name then id | TS, `Intl.Collator` of the current language | portable, but the collation needs the browser's ICU data (a Rust equivalent would ship its own); filters and orders the loaded list for display, never writes; the date itself is computed by the server (M9) and checked at the client boundary | no | none; called in the render of the list page and the home card | none | `admin.sheetList.test.ts`, the catalogue suites | **C**: display-only search and ordering over server data, no business rule, no mutation; owner validation of the R3 plan, 2026-11-16 (as BDR-114 (A)); `shortcut:` until RR-13 pages the list on the server, where search and sort move | n/a |
|
||||
| `formatShortParisDateTime` in `apps/app/src/admin/labels.ts` | the « 9 nov. 2026, 12:06 » / « 9 Nov 2026, 12:06 » date of the admin list and home card (A8), Paris time | TS, `Intl.DateTimeFormat` (`fr-FR`, `en-GB`, `Europe/Paris`), one formatter per language | screen date formatting needs the browser's ICU and time zone data | no | none | none | `admin.labels.test.ts` (ratified strings, the Paris summer offset) | **C**: screen date formatting (as `lib/dates.ts`); owner validation of the R3 plan, 2026-11-16 | n/a |
|
||||
| `cardFailure` in `apps/app/src/catalogue/failure.ts`, `apps/app/src/components/catalogue/CardFailure.tsx` | how a catalogue card shows the closed failure kind of its version (R4, board 30): integrity class (A10 text, no retry), size limits (D1), other kinds with « Réessayer », tone and glyph | TS, React | portable (a set lookup), but it only maps kinds the core already decided to a line, a tone and a button; the check itself stays the core's `check_published` | no | none; called in the card's render | none | `routes.catalogue.test.tsx` (test 11 lists every member of `CatalogueFailure`), `components.Notice.test.tsx` | **C**: display formatting of closed kinds, no business rule, no mutation; owner validation of the R4 plan, 2026-11-17 (R-8) | n/a |
|
||||
| `apps/app/src/editor/annotations/{press,escape}.ts` | the press machine of the editor drawing (click or drag, which handle, which annotation, what a second pointer cancels, double click) and the Escape priority across the workspace (V1-2.6 U2) | TS | portable (pure functions), but pointer and keyboard event handling is DOM and UI; each result is a proposal that goes through `sheet.edit` and the core's verdict | no | none; called in event handlers | none | `annotations.press.test.ts`, `editor-escape.test.tsx` | **C**: pointer and keyboard event handling, DOM and UI (CLAUDE.md « kept as is »); owner validation of the U2 plan, 2026-11-17 (R-17) | n/a |
|
||||
| `apps/app/src/editor/annotations/missingFields.ts` | which required fields of the annotation form are missing, as i18n keys, in form order (V1-2.6 U2, board 33) | TS | portable, but it is a UI form rule over i18n keys; the document's own rules stay the core's | no | none | none | `annotations.missingFields.test.ts` | **C**: UI form rule over i18n keys (CLAUDE.md « kept as is »); owner validation of the U2 plan, 2026-11-17 (R-17) | n/a |
|
||||
| `apps/app/src/editor/annotations/{polygonEdit,pointSize}.ts` | preview arithmetic while a handle moves: midpoint, vertex removal, vertex move, handle cap, « + » visibility; point-size stops, most used radius, snap, slider range (V1-2.6 U2) | TS | portable, but it runs at interaction rate on every pointer move, and UX plan §1.3 and §2 G, ratified at U0, place it in the page; each result is committed through `sheet.edit`, and no core rule is copied: the minimum point radius comes from the core (`PreviewState.min_point_radius`) | no | none; called in event handlers | none | `annotations.polygonEdit.test.ts`, `annotations.pointSize.test.ts` | **C**: interaction-rate preview arithmetic, the core judges the end state; owner validation of the U2 plan, 2026-11-17 (R-17) | n/a |
|
||||
| `i18n/*` (281 keys ×2, `useT`, `pickLocaleLabel`) | UI strings | TS | UI data and hook; the engine's 25 archived labels move with the engine | no | | | parity test | **C** | n/a |
|
||||
| `config/env.ts`, `lib/supabase.ts`, providers, guards, routes, components, styles | runtime config, React | TS | glue | no | | | | **C** | n/a |
|
||||
| `vite/sheet-bundle.ts`, ESLint, Vite, vitest configs | build tooling | Node | Vite plugin API is JavaScript | no | | | | **C** | n/a |
|
||||
@@ -347,6 +350,12 @@ concrete constraint.
|
||||
Same exception for the catalogue card's failure line (R4, owner validation
|
||||
of the plan, 2026-11-17, R-8): it shows the kind the core answered, never
|
||||
decides or bypasses the check.
|
||||
Same exception for the annotation editor's page-side modules (V1-2.6 U2, owner
|
||||
validation of the plan, 2026-11-17, R-17): `press.ts`, `escape.ts`,
|
||||
`missingFields.ts`, `polygonEdit.ts` and `pointSize.ts` under
|
||||
`apps/app/src/editor/annotations/` handle pointer and keyboard events, a UI
|
||||
form rule and interaction-rate preview arithmetic. Every end state goes
|
||||
through `sheet.edit` and the core's verdict; no core rule is copied.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user