docs(docs): R4 catalogue card integrity warning as built

This commit is contained in:
bchanot committed 2026-11-17 00:31:52 +01:00
1 parent dadd8e5d29
commit e1cdd9d25c
6 files changed
+185 -5

No files matched your search

@@ -308,6 +308,7 @@ concrete constraint.
| `apps/app/src/components/editor/references/useReferenceView.ts` | search text and sort choice (React state), the finding filter read from the history view (navigation, not typed text), tile order handed to the tab | React hook | holds view state only and calls the pure functions above; it reaches no wasm call and no document write | no | none | none | `editor-references-view.test.tsx` | **C**: React state of a display view; BDR-114 (A) | n/a |
| `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 |
| `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 |
@@ -343,6 +344,9 @@ concrete constraint.
`apps/app/src/admin/{sheetList,labels}.ts` only filter, order and format the
list the server answered; the last-modification date is the server's
(M9). A rule the server must share moves to SQL or `crates/core`.
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.
---