Commit Graph
100 Commits
Author SHA1 Message Date
bchanot 9d89daed19 test(editor): pending creation announcement on « Aller à » 2026-11-06 20:59:11 +01:00
bchanot 79a09f8b25 test(editor): keep-alive paths, neutral place visibility
Place visibility context moves to lib/placeVisibility.ts so the catalogue
no longer imports from components/editor. Adds tests: selection survival,
unmeasured hint round trip, keyboard tab move and « Aller à » with a field
focused, replace-tracing kept, announcements. Parse-sharing test uses
object identity. Early exits are two statements; shortcut comment on the
parse cache.

R-24:
- editor-equine.spec.ts:118, editor-geometry.spec.ts:376,
  editor-recovery.spec.ts:39, editor-signout.spec.ts:26: page.getByLabel
  ('Nom (FR)') -> place(page, 'general').getByLabel(...)
- editor-shell.spec.ts: toHaveCount(0) on the visible query -> count 1
  on the raw selector and toBeHidden()
- editor-keep-alive.test.tsx: JSON.parse stack-trace count -> same
  object reference across places
2026-11-06 20:57:08 +01:00
bchanot 6689827a8d feat(editor): kept-mounted tabs, sections and references panel
Each visited tab, Annotations section and the references panel stay
mounted in a KeptPlace (hidden, nested visibility). Composed canvases
detach while hidden. One JSON.parse per document text. Focus requests
reach only their owning place.

Rewritten assertions (R-24):
- editor-route.test.tsx:127: annotations testid toBeNull -> not.toBeVisible
- editor-sections.test.tsx: place('annotations.drawing') toBeNull -> not.toBeVisible
- editor-journey.spec.ts:311: page-wide getByLabel('Nom (FR)') -> scoped to place 'general'
- editor-tabs-lists.test.tsx: ReferencesPanel `open` prop dropped (the wrapper hides it)
- editor-annotations-tab, editor-focus-request, editor-sections tests: props gain `visited`
No assertion removed.
2026-11-06 20:50:40 +01:00
bchanot ca184da4d9 refactor(editor): split B1 navigation hooks, category count on the overview card 2026-11-06 20:31:26 +01:00
bchanot bc2dba7c14 feat(editor): four tabs, Annotations sections, references from the header
U1 Lot B1. Four tabs (Général, Annotations, Constats, Vérification); views,
categories and regions become full-width Annotations sections opened from the
overview panel; references move to a header-toggled panel (minimal, Lot D
completes it); « Aller à » goes through EditorTarget and the navigation hook.
EditorWorkspace owns the navigation; DraftHeader split in HeaderActions and
SaveLine; EditorTabs split in TabList and MoreTabs.

R-24, assertions removed or rewritten (file: old -> new):
unit
- editor-route.test: seven tab names -> four; « Plus » at 800 px with
  Références clicked -> no « Plus »; below 640 px five others -> Général,
  Constats, and Constats opens the findings tab; + references panel cases
- editor-route-recovery.test: tab Références + editor-tab-references label ->
  header button + editor-references-panel labelled by its heading
- editor-mode.test: small tier `more` of five -> [general, findings]
- editor-focus-request.test: {key,serial} -> {target,serial}; ReferencesTab and
  VertebraeTab -> ReferencesPanel and RegionsSection; issueTarget tab/key ->
  target place/section/key (vertebrae tab -> annotations/regions); consumed
  context (serial) -> (serial, outcome); annotation case adds heading focus
- editor-verification.test: onGoTo('annotations', key) -> navigate(targetOfKey
  (key), opener); props onSelectTab/onGoTo -> navigate
- editor-annotations-tab.test: props onSelectTab -> navigate + section props;
  no_category text « (onglet Général) » -> « (Annotations, section
  Catégories) »
- editor-tabs-general.test: categories cases render GeneralTab ->
  CategoriesSection(doc); + Général holds no categories editor
- editor-tabs-lists.test: tab imports -> panel and section; read-only
  references « no button » -> only « Fermer les références »
- editor-tabs-views, editor-drawing-upload, editor-repair.test: ViewsTab ->
  ViewsSection import, assertions kept; editor-findings.test: navigate prop
e2e
- support/editor selectTab: exact name -> pattern (error badge in the name);
  + place, openSection, showDrawing, backToDrawing, openReferences, TABS
- support/warm-up: seven tabs -> four + sections + references panel
- editor-access: seven-tab axe loops -> four tabs + three sections + panel
  (edit and read-only); narrow widths add panel overflow and axe
- editor-drawings: tab Vues -> openSection views; tab Annotations ->
  showDrawing
- editor-structures: tab Général (categories) -> openSection categories, axe
  label « general tab » -> « categories section »; tab Références ->
  openReferences/closeReferences; tab Vertèbres -> openSection regions; tab
  Annotations -> showDrawing
- editor-geometry: three tab Vues -> openSection views
- editor-equine: tab Général (categories add) -> openSection categories; five
  tabs loop -> two tabs + sections + panel; tab Annotations -> showDrawing
- editor-journey: tab Vues, tab Général (category), tab Annotations ->
  openSection views/categories, showDrawing; frozen axe scrolls to the header
- lan/trial-lan (not run): tab Vues -> Annotations tab + views entry

Verified: typecheck, lint, vitest 107 files / 1125 tests, whole shell suite on
the sandbox 151 passed, 49 skipped, 0 failed.
2026-11-06 20:25:35 +01:00
bchanot 95b1b7e461 feat(editor): navigation model for the four-tab shell 2026-11-06 18:25:21 +01:00
bchanot 9ec232ac22 chore(docs): U1 contract, counter-check CONFORME, MINOR answers 2026-11-06 18:22:36 +01:00
bchanot 2c8b606be3 chore(docs): U1 contract, fourth pass fixes
« Reprendre » absent in read-only; withheld state per decision; picker
disabled while a decision is pending; parent pending line; panel open
withholds; route resync after a submission.
2026-11-06 18:11:50 +01:00
bchanot c834fe933a chore(docs): U1 contract, owner choice « Reprendre » for withheld dialogs 2026-11-06 18:02:06 +01:00
bchanot 4692b27959 chore(docs): U1 contract, third pass MINOR fixes
Route read-only until the store's canEdit matches the mode; repair
dialog offer and open split; upload notices outside the hidden part.
One MAJOR left for the owner.
2026-11-06 17:58:32 +01:00
bchanot 049d5146b4 chore(docs): U1 contract, re-check REMAINING(1) fixes
Dialogs of kept parts open only in edit mode in a visible place; ids
rule for both annotation bodies; kept parts mount at first edit render;
repair geometries lifted; N2, N4, N6, N7 stated.
2026-11-06 17:47:55 +01:00
bchanot 10fb2d84d4 chore(docs): U1 contract, counter-check REMAINING(4) fixes
Whole shell suite at B1, E, F; unmounted-forms clarification prevails
over the plan lines, B2 and H lists; distinct ids for read-only twins;
drawing actions kept hidden with dialogs closed; 9 MINOR answered.
2026-11-06 17:34:04 +01:00
bchanot ed6fb0d313 chore(docs): U1 contract amended, owner precautions resolved
AC3, AC4, AC5, AC7, AC17 and changes 2.6-2.9 applied as approved
(BDR-105); per-operation sandbox go; precautions 2.8 (no silent loss
on a 1 024 px crossing or recovery decision) and AC7 (save time rights)
resolved from the code facts, AC21 and AC22 added. Plan unchanged.
2026-11-06 17:15:59 +01:00
bchanot 1ed5c96e1b docs(docs): U2b F5, F9-F21 ratified with F3, F8, F11-F14, F22 precisions
Owner brief « Ratification finale U1 et autorisation conditionnelle
d'implémentation » (BDR-105): study §6 tests, §7 table, 7.2, 7.3,
UX plan U2b entry, REVUE and decisions pointer. No implementation.
2026-11-06 17:12:30 +01:00
bchanot 7defed1c55 chore(memory): BDR-104, U1 plan challenge reports, checkpoint contract 2026-11-06 15:53:43 +01:00
bchanot 13dee0908b docs(docs): U2b decisions F2-F22 recorded, U1 authorisation checkpoint
Owner arbitrations: F2 leaves, F3 fields, F4 model A, F8, F22 in the study
with their tests. U1 checkpoint page: 18 choices, exact AC amendments,
audits traced, sandbox reset scope, criteria per lot; no implicit deletion.
2026-11-06 15:53:43 +01:00
bchanot a43145a03f chore(memory): BDR-103, LRN-119, U2b decisions contract and TODO 2026-11-06 14:56:50 +01:00
bchanot 604f502b44 docs(docs): U2b principle, decisions F1-F22, F2/F3/F4 detail, U2b sub-step
Owner principle validation recorded: U2b after U2; full decision table with
alternatives, consequences and state; F2 groups, F3 field list and F4 view
semantics computed from the equine draft; boards shown with their decisions.
2026-11-06 14:56:49 +01:00
bchanot 567da677d7 docs(docs): complement after verifier CONFORME, trigger name per the core
Detail trigger shows its view's name as the core does; F7 cites the
current Catégorie labels; review record and TODO updated.
2026-11-06 13:28:48 +01:00
bchanot 00aaccfc79 docs(docs): complement boards compute the last names, decisions F17-F21
Verifier round 2: view chip and grasset names computed from the draft;
partial clears, out-of-filter count, zone picker order, dashed sibling
and result presentation listed as owner decisions.
2026-11-06 13:22:54 +01:00
bchanot 212126c6ce docs(docs): V1-2.6 annotations-findings complement, boards 17-22, study
Owner brief: bidirectional navigation between annotations and findings.
Relations audit (one finding_zone_id link, no new association), six
boards from the equine draft data, placement U2b, risks, tests, owner
decisions F1-F16. Design only; U1 plan untouched.
2026-11-06 13:15:15 +01:00
bchanot 2e46c14697 chore(docs): V1-2.6 UX U1 contract and challenged plan
Owner approach A and four choices recorded as gated clarifications.
Plan lots A to I after three blind challengers and one confirmation
pass; no application code, no DEV.
2026-11-06 12:37:04 +01:00
bchanot 846994b4ab chore(memory): BDR-102, T17 answered 2026-11-06 11:12:18 +01:00
bchanot 439cabd09e docs(docs): V1-2.6 T17 ratified, vertebral regions fallback entry 2026-11-06 11:12:17 +01:00
bchanot 452a346f17 chore(memory): BDR-101, TODO and journal for V1-2.6 U0 2026-11-06 11:06:12 +01:00
bchanot d9e3e34aff docs(docs): V1-2.6 UX U0, contract amendments, O22 checks, level-1 notes 2026-11-06 11:06:10 +01:00
bchanot a505b24bfd chore(memory): BDR-100, LRN-118, TODO and journal for the V1-2.6 ratification 2026-11-05 19:06:48 +01:00
bchanot bd444d6906 docs(docs): V1-2.6 UX owner ratification recorded, independent checks 2026-11-05 19:06:48 +01:00
bchanot e10f167a6d chore(memory): journal, V1-2.6 UX technical preparation 2026-11-05 17:33:00 +01:00
bchanot 871c8a6b45 chore(memory): TODO, V1-2.6 UX technical preparation and separate tracks 2026-11-05 17:32:53 +01:00
bchanot 14fb527552 docs(docs): V1-2.6 UX redesign technical plan, compatibility, tests, risks, decisions 2026-11-05 17:32:52 +01:00
bchanot f58cf2308f chore(memory): journal, V1-2.6 maquettes final corrections 2026-11-05 16:15:29 +01:00
bchanot d11cb5a44b docs(docs): V1-2.6 maquettes, delta conformance result 2026-11-05 16:14:42 +01:00
bchanot b5058b3417 docs(docs): V1-2.6 maquettes, header undo visible on Constats, review fixes 2026-11-05 16:09:52 +01:00
bchanot 7bc3d6544e docs(docs): V1-2.6 maquettes final corrections after the external review 2026-11-05 16:02:35 +01:00
bchanot 7722433a1c chore(memory): journal, V1-2.6 maquettes review archive 2026-11-05 15:36:44 +01:00
bchanot d21ffcc5dc docs(docs): V1-2.6 maquettes arbitrations, technical study, conformance result 2026-11-05 15:35:39 +01:00
bchanot 9f420d329d chore(docs): V1-2.6 maquettes contract in the verifier's format 2026-11-05 15:29:39 +01:00
bchanot 46ea996a61 docs(docs): V1-2.6 graphic editor maquettes and core feasibility audit 2026-11-05 15:16:28 +01:00
bchanot 37c9fdf6eb chore(memory): V1-2.6 ready for the owner trial on the LAN 2026-11-04 23:58:24 +01:00
bchanot 9b86f54336 docs(supabase): trial guide, exact status of the editor-launch route 2026-11-04 23:58:11 +01:00
bchanot 70c34bff5e chore(memory): V1-2.6 checkpoint report, final commit list and audit 2026-11-04 23:51:56 +01:00
bchanot 9e68bdd1fa docs(supabase): trial comments and guide state the refusals exactly 2026-11-04 23:51:55 +01:00
bchanot fe724b263e chore(memory): V1-2.6 checkpoint report, upgrade closing 2026-11-04 23:43:16 +01:00
bchanot 72b742f9d3 fix(supabase): LAN trial closes every upgrade socket, guide on CORS 2026-11-04 23:43:15 +01:00
bchanot b2941ebcb2 chore(memory): V1-2.6 checkpoint report, lot O commit list 2026-11-04 23:30:58 +01:00
bchanot 5a3ed97d7c chore(memory): V1-2.6 checkpoint report after the trial server hardening 2026-11-04 23:30:52 +01:00
bchanot 8531dd30d8 fix(supabase): LAN trial without CORS, hot-reload socket or editor launch 2026-11-04 23:30:52 +01:00
bchanot 671a1bde40 chore(memory): V1-2.6 checkpoint report, lot O commit list 2026-11-04 23:20:08 +01:00
bchanot be1a5c0173 chore(memory): V1-2.6 checkpoint report, host filter, scope line 2026-11-04 23:19:57 +01:00
bchanot 5207f87e66 fix(supabase): LAN trial answers its own host only, guide matches lot O 2026-11-04 23:19:57 +01:00
bchanot 060ee50464 chore(memory): V1-2.6 checkpoint report for the owner trial 2026-11-04 23:09:27 +01:00
bchanot fb95255759 fix(supabase): LAN trial serves the app sources only, no Postgres password in Vite 2026-11-04 23:03:47 +01:00
bchanot 25bdac4dd7 docs(docs): V1-2.6 state after lot O, trial host check in the guide 2026-11-04 22:53:55 +01:00
bchanot 2057b0ecbb style(i18n): single quotes on the zone label 2026-11-04 22:37:18 +01:00
bchanot d74c54ed05 feat(supabase): owner trial served on the LAN address, sandbox kept on loopback 2026-11-04 22:36:50 +01:00
bchanot a69eba569b fix(editor): free paths never reshaped on attach, category zone chosen explicitly 2026-11-04 22:14:59 +01:00
bchanot f1175bb3a1 chore(memory): V1-2.6 proposal for free-path point correction in the core 2026-11-04 22:09:34 +01:00
bchanot 924930a098 chore(memory): V1-2.6 last owner decisions as criteria 45-48, lot O plan 2026-11-04 22:07:40 +01:00
bchanot c2237a2f2f chore(memory): V1-2.6 ready for the owner trial 2026-11-04 21:17:28 +01:00
bchanot a09e24d952 chore(memory): V1-2.6 contract file scope amended for the gated criteria 2026-11-04 21:14:07 +01:00
bchanot 57a0690d7b chore(memory): V1-2.6 lot N state, trial verification, residuals 2026-11-04 21:13:33 +01:00
bchanot 6f0fa41c29 docs(docs): V1-2.6 state, final unit count 2026-11-04 21:04:06 +01:00
bchanot 5e0aa625a8 fix(editor): submission note sent as typed, copies purged again after sign-out 2026-11-04 20:50:16 +01:00
bchanot 6471b25812 docs(docs): V1-2.6 state after the checkpoint decisions 2026-11-04 20:35:54 +01:00
bchanot c5fd3c3df6 docs(docs): trial guide, port not yet released after down 2026-11-04 20:35:47 +01:00
bchanot 086d6e939b docs(docs): owner trial guide for the checkpoint decisions, SSH tunnel 2026-11-04 20:22:05 +01:00
bchanot 46fd861224 refactor(editor): applyRepair within the locals limit 2026-11-04 20:20:38 +01:00
bchanot 9c21fd3f86 fix(editor): repair dialog limits, pending drafts block apply, dialog wording 2026-11-04 20:17:51 +01:00
bchanot 3776a33b79 feat(editor): repair out-of-frame annotations when attaching a drawing 2026-11-04 20:10:07 +01:00
bchanot 4ab85adeb0 chore(memory): V1-2.6 lot N2 reviewed 2026-11-04 19:59:30 +01:00
bchanot bd4ba338af feat(app): sign-out warns before losing editor work, local copies purged 2026-11-04 19:58:21 +01:00
bchanot 8b6adcb7df chore(memory): V1-2.6 lot N1 reviewed 2026-11-04 19:42:35 +01:00
bchanot be4f468790 fix(editor): plurals, trimmed names, default tab, parent drawing confirmation 2026-11-04 19:40:43 +01:00
bchanot b42c6ae844 chore(memory): V1-2.6 lot N plan and rulings R19-R24 2026-11-04 19:20:20 +01:00
bchanot 18d8863c74 chore(memory): V1-2.6 owner checkpoint decisions as criteria 35-44 2026-11-04 19:15:29 +01:00
bchanot 67480b2fc2 chore(memory): LRN-115 to LRN-117, EVAL-042 from the V1-2.6 checkpoint 2026-11-04 19:14:56 +01:00
bchanot 283e459077 chore(memory): V1-2.6 lot M closed, owner checkpoint 2026-11-04 19:09:43 +01:00
bchanot 7a4ce9eb58 docs(docs): V1-2.6 state with the sandbox suites in contract order 2026-11-04 18:55:56 +01:00
bchanot 2b10471b0a test(supabase): TOTP step guard in the sandbox verify helper 2026-11-04 18:55:47 +01:00
bchanot 697cefa2dd fix(app): trial dev server pinned to loopback in its config 2026-11-04 18:32:38 +01:00
bchanot 3831a49f46 fix(app): EN tab name in two hints, trial server pinned to loopback 2026-11-04 18:32:06 +01:00
bchanot 5bd12261a5 docs(docs): V1-2.6 state with the final gate counts 2026-11-04 18:17:45 +01:00
bchanot 05c9b3e10b fix(editor): read-only undo, upload session check, restore and submit guards 2026-11-04 18:06:40 +01:00
bchanot 5979cd59ec chore(memory): V1-2.6 final review triage, owner questions m3 2026-11-04 17:58:21 +01:00
bchanot 0764eb122b docs(docs): trial guide, edge correction needs a large drawing 2026-11-04 17:42:31 +01:00
bchanot 653706fad5 test(editor): journey waits for the cleaning dialog to close, no refill 2026-11-04 17:42:21 +01:00
bchanot d10ba5d5dd fix(editor): verifier gaps: ratified wordings, copy messages, real SVG journeys 2026-11-04 17:27:45 +01:00
bchanot 9ba6d2b66c chore(memory): V1-2.6 lot M gates, verifier gaps, rulings R16-R18 2026-11-04 17:01:41 +01:00
bchanot f73980c952 chore(memory): V1-2.6 lot K ticked 2026-11-04 15:59:21 +01:00
bchanot 071b58a5f6 docs(docs): V1-2.6 state, AAL2 residual as a production prerequisite 2026-11-04 15:59:20 +01:00
bchanot de644925e9 chore(memory): V1-2.6 lot K closed 2026-11-04 15:54:08 +01:00
bchanot 4cc27a8231 test(editor): lot K review fixes, filled-document save proof 2026-11-04 15:52:15 +01:00
bchanot bb99edd2dd fix(editor): load the core's defaults-filled document, trial guide fixes 2026-11-04 15:35:19 +01:00
bchanot 0d167df271 chore(memory): V1-2.6 lot K committed, rulings R13-R15 2026-11-04 15:28:28 +01:00
bchanot 5097fd7484 test(editor): V1-2.6 browser journeys on the sandbox, touch drag and findings fixes 2026-11-04 15:27:35 +01:00
bchanot 7bbd096a16 chore(memory): V1-2.6 lot L closed 2026-11-04 14:13:10 +01:00
bchanot ac5fbfbc44 feat(supabase): owner trial sandbox commands and the V1-2.6 trial guide 2026-11-04 14:11:23 +01:00
bchanot aa5c10d73c chore(memory): V1-2.6 lot J closed 2026-11-04 14:10:06 +01:00
bchanot 3d589e1556 fix(app): a focus request is consumed once, not replayed on tab return 2026-11-04 14:09:30 +01:00