Commit Graph
1299 Commits
Author SHA1 Message Date
bchanot 1deb037fac feat(editor): fixed edit strip and message line without layout shift
U2 Task 3 (A6, A14, R-2). A fixed-height strip over the drawing and the
right column replaces the tool line, the sr-only selection tag of the
edit body and TracingBar: lead (name + status, type + detail), notice
(refusal, first geometry issue + n, unmeasured view with its link, no
category, no child view), commands (Fermer le trace, Retirer le dernier
sommet, Annuler le trace). A fixed-height line under the drawing holds
the add buttons and the gesture message: a kept drop says « Point
deplace » with « Defaire » (same store undo as the header), a refused
drop says « Deplacement refuse : ... » as a red alert. 6 s, held by
mouse hover and focus inside, closed by any commit, undo or redo.
trace_pop and Backspace remove the last vertex. The busy « Aller a »
target is the strip's tracing commands. scrollbar-gutter stable, scoped
to the editor. e2e helper expectNoShift (boxes, scroll height, gutter,
client width, layout-shift sum). DraftHeader untouched: no shift seen.

Rewritten assertions (old -> new):
- tab unit « Sélection : point » on annotation-selection-tag -> strip
  detail « Point »
- tab unit tag sr-only, not live -> strip lead outside any live region
- tab unit « 1 sommet posé. » -> « 1 sommet posé » (board 04 wording)
- tab unit D6b tag present / « zone » -> strip detail « Point » /
  « Zone · 3 sommets »
- keep-alive, sections, escape units: tracing-bar -> tracing-commands
- e2e selectionTag helper -> strip title with data-selection; the
  twin's tag is twinSelectionTag (deselect 375 px describe)
- e2e deselect « tag position absolute » (edit) -> strip height 64 px,
  drawing top unchanged; twin Escape test keeps tag 0, properties 0,
  overview visible
- e2e deselect and journey tracing-bar / annotation-selection-tag ->
  tracing-commands / selectionTag
- e2e historyButton scoped to history-buttons (the message's
  « Défaire » has the same accessible name)
2026-11-17 17:45:41 +01:00
bchanot b2d78f9621 fix(editor): one press is either a pan or a click
useFraming takes an optional panning gate read on each one-pointer move;
the editor passes the press machine's drag-with-pan phase, so a zoomed
pen within its 6 px slop or a mouse wiggle no longer pans and clicks.
Catalogue: no options, behaviour unchanged.

Test added: « a press is either a pan or a click, never both (R-8) »
(pen 5 px clicks without pan, pen 8 px pans without click, mouse wiggle
clicks without pan). No assertion removed.
2026-11-17 17:10:45 +01:00
bchanot 35e4a4c75a refactor(editor): keep the press and block-drag helpers within 5 locals
Split onClick (place / select click), onPointerDown (targetAt) and
useBlockDrag (dragActions) to respect the 5-locals limit. No behaviour
change; no test changed.
2026-11-17 17:01:39 +01:00
bchanot 08d266c89f refactor(editor): one press machine for clicks, drags and taps on the drawing
press.ts (pure: slop per pointer kind, nearest handle, press target, click
and drag actions, double click, stepPress) is now the editor canvas's only
decider; useCanvasGestures no longer uses clickHandler, useEmptyTap,
swallowClick nor useMoveGesture (deleted), and the box has no onClick.
canPan = dragAction(press target).type === 'pan' at pointer-down; framing
keys only when the box itself is the target. workStore.ts holds the U2
work with stale stamps: dropStale on every documentText change, reset on
a new session (editorStore subscription). The catalogue keeps useFraming
defaults and useEmptyTap, unchanged.

Named change (A13): a finger drag on a selected zone's (or circle link's)
interior moves nothing; the selected point is its own handle and still
moves by any pointer. Second observable change: touch and pen taps are
decided at the pointer-up from the press target, no longer from the
following click (no browser touch adjustment toward a marker).

tests/setup.ts: happy-dom has no elementsFromPoint; a shim answers the
pointerdown target and its ancestors.

Rewritten tests (editor-annotations-tab.test.tsx, D6b):
- "a touch tap deselects in its own click, not at the pointer-up" ->
  "a touch tap deselects at the pointer-up" (deselected after pointerup)
- "a touch tap whose click lands on a marker (adjustment) selects that
  marker" -> "a touch tap is decided by its press: a click adjusted toward
  a marker selects nothing" (deselected, announced, marker b not current)
- "a pen tap deselects in its own click, like a touch tap" -> "a pen tap
  deselects at the pointer-up, like a mouse tap"
- "a pen tap whose click lands on a marker selects that marker" -> "a pen
  tap is decided by its press: a click landing on a marker selects
  nothing"
Added: "a finger drags the selected point (its handle), never a selected
zone (A13)".
Drive-only changes, assertions unchanged: canvas fireEvent.click(x, y)
-> pressAt (pointerdown + pointerup) in the tab suite (C26, tracing,
paths, H3, H6, H8, filter reselect), editor-keep-alive and
editor-sections; drag moves carry buttons: 1 (C34, polygon block move,
H8 lostpointercapture and read-only, editor-no-loss drag in flight),
since a move without a button is a hover.
2026-11-17 16:56:35 +01:00
bchanot 5ca2b7e3ad feat(domain): per-view minimum point radius in preview state
PreviewState.min_point_radius maps a view id to the smallest point
hitbox radius that passes TooSmall on the smallest preview, so the
sheet editor can mark it on a size slider. Twin constants named in
layer.rs; frame.rs shares one first-view drawing lookup.
2026-11-17 16:33:40 +01:00
bchanot 56c75b12ef docs(docs): U2 plan rev 3 with owner answers, implementation contract, BDR-123 2026-11-17 16:24:26 +01:00
bchanot 838ae42a51 chore(memory): journal U2 plan rev 2 2026-11-17 16:16:14 +01:00
bchanot 8c5a8871e5 docs(docs): U2 plan rev 2 final pass, D2 added 2026-11-17 16:16:07 +01:00
bchanot 31d0c415ec docs(docs): U2 technical plan rev 2 after three challenges, D1 open 2026-11-17 16:10:55 +01:00
bchanot 6de5e56e33 docs(docs): U2 technical plan rev 1 2026-11-17 15:46:08 +01:00
bchanot 29073a956b docs(docs): U2 boards and A1-A15 validated by owner, three adjustments, BDR-122 2026-11-17 15:34:46 +01:00
bchanot 272a7b54e4 docs(docs): U2 boards re-check fixes, A15, notes aligned, owner gate 2026-11-17 13:26:33 +01:00
bchanot 8bdb23ab0f docs(docs): U2 boards review fixes, arbitrations A11-A14, controls recorded 2026-11-17 13:13:02 +01:00
bchanot bc19481b93 docs(docs): V1-2.6 U2 boards 02-06, 13, 31-33, review and arbitrations 2026-11-17 12:54:12 +01:00
bchanot c42c65509b docs(docs): R4 closed by owner validation 2026-11-17, BDR-121 2026-11-17 12:29:09 +01:00
bchanot b6408f177f docs(docs): R4 verifier passes recorded, owner trial pending 2026-11-17 01:33:26 +01:00
bchanot 8224edad65 docs(docs): R4 trial catalogue count wording 2026-11-17 01:25:47 +01:00
bchanot fbf5a0e096 docs(docs): R4 check:all and verifier-gap tests recorded 2026-11-17 01:25:43 +01:00
bchanot 2c9d837e7b docs(docs): R4 contract evidence lines, criterion 9 oracle, scope rulings 2026-11-17 01:18:32 +01:00
bchanot 83f2d8bede test(app): card glyph per failure and focus rule after retry 2026-11-17 01:18:20 +01:00
bchanot 04b723cc54 chore(docs): R4 final fix wave recorded, check:all pending 2026-11-17 01:07:11 +01:00
bchanot e79118cecf docs(docs): R4 final fix wave as built, results and trial step
Busy look, stopped-engine tone, focus when no retry is left, board 30
deviation fixed, cleanup name check, write-budget row as R4's own, row C
built by R4 pending the owner's validation, exact results of the wave.
2026-11-17 01:07:11 +01:00
bchanot 3bea19f16b test(app): e2e cleanup checks the seeded name before archiving
D4 identity check: the integrity spec reads each own sheet's name by its
captured id and archives it only when it is exactly the seeded name.
seedGrant checks the account id as a captured id, now shared from
records.ts.
2026-11-17 01:04:27 +01:00
bchanot 1e5058577f fix(app): failure row fits Réessayer and Consulter side by side
Board 30: in a three-column card at 1280 px the two buttons wrapped by a
few pixels. The failure row narrows their padding only there; the wrap
stays as the fallback. The network e2e now checks both on one row.
2026-11-17 01:04:03 +01:00
bchanot 2930f4919f style(app): wrap R4 lines over 100 columns 2026-11-17 00:59:34 +01:00
bchanot b378cf066f fix(app): card retry keeps focus and voice when no retry is left
A retry ending on a failure with no retry (network to integrity, engine
stopped for good) keeps the polite region and moves focus to Consulter.
Busy look on Réessayer, error tone once the engine stopped, one attempt
for two calls in one tick; tests for the stopped engine, two core cards
and no blob URL after unmount.
2026-11-17 00:59:30 +01:00
bchanot 4a7919c763 chore(docs): R4 Tasks 1 to 3 done, census recorded, gates pending 2026-11-17 00:31:53 +01:00
bchanot e1cdd9d25c docs(docs): R4 catalogue card integrity warning as built 2026-11-17 00:31:52 +01:00
bchanot dadd8e5d29 test(app): catalogue card integrity and retry on the sandbox 2026-11-17 00:24:14 +01:00
bchanot 6ad8d8347c feat(app): catalogue cards say an integrity or load failure (board 30) 2026-11-17 00:14:14 +01:00
bchanot f061111e25 feat(ui): notice warning tone, glyph and non-live option 2026-11-17 00:08:45 +01:00
bchanot 7575c67c47 docs(docs): R4 plan rev 3 validated, contract 2026-11-17 00:05:15 +01:00
bchanot b895ecf136 docs(docs): R4 card integrity plan rev 2, owner decisions pending 2026-11-16 23:47:51 +01:00
bchanot dc67c4aaca docs(docs): R3 closed by owner validation 2026-11-16, BDR-120 2026-11-16 23:34:34 +01:00
bchanot 5774d52144 docs(docs): R3 phone filters review rounds and check:all recorded 2026-11-16 20:55:10 +01:00
bchanot a50796b89f fix(app): closed filters panel has no height; e2e asserts it at 375 px 2026-11-16 20:47:34 +01:00
bchanot ca701787ce docs(docs): owner message verbatim, happy-dom, trial step 10 wording 2026-11-16 20:39:01 +01:00
bchanot 7a129dc763 fix(app): filters toggle layout, constant spacing, one active-count helper 2026-11-16 20:39:01 +01:00
bchanot c25a994c0e docs(docs): R3 phone filters, trial step 4.15, verifier gap closed 2026-11-16 20:33:15 +01:00
bchanot d3b8292aaf chore(app): mark the phone filters panel shortcut at its site 2026-11-16 20:33:14 +01:00
bchanot 6d2ba0dbf2 test(app): phone filters panel on the sandbox sheet list spec 2026-11-16 20:31:36 +01:00
bchanot 9efc7b7647 feat(app): collapsible sheet filters on phone, one empty announcement 2026-11-16 20:30:27 +01:00
bchanot 5014a45053 chore(docs): R3 verifier and check:all results recorded 2026-11-16 18:21:17 +01:00
bchanot a8ab6689e8 chore(docs): R3 contract verification result recorded 2026-11-16 18:19:54 +01:00
bchanot bcdacbbb9a docs(app): R3 gate results, fix wave run, deploy order, trial steps
- CHANGELOG: the six shell failures split into the four Target crashed
  of BLK-015 and the two A0 lookup timeouts (counted as BLK-015, not A/B
  proven); pgTAP 014 / 021 not proven by a run without M9; the intro
  names the R3 entry's branch
- owner trial 4.15: steps strictly in order (step 5 shows what two
  sheets prove, the move back to the top is step 9's last action), how
  to open the working copy, the trimmed text, no Claude sentence, the
  re-save sentence removed
- deploy order (database first, then the application) and its
  fail-closed consequence in the SQL checkpoint and SUPABASE.md
- design review, code review and security gate results, the fix wave
  run, the owner decisions left open; verifier, check:all and the owner
  trial still pending
- TODO: fix wave line, three follow-ups
2026-11-16 18:11:12 +01:00
bchanot ea5512af02 test(app): sheet list spec binds its SQL values, pins UTC, checks Escape
- the three fixture statements pass every value through literal(); the
  sheet, draft and actor ids are refused unless they have the uuid shape
- test.use({ timezoneId: 'UTC' }): a row still in Paris time proves the
  page sets the zone itself, whatever the host's
- the home ordering loop first asserts one <time> per item
- ratifiedDate escapes the dictionary text (escaped, now exported by
  support/admin.ts)
- the long-search check types the text again and presses Escape: field
  empty and focused, count back (Chromium's native type=search included)

R-24: no assertion removed or rewritten. Added: 'one date per home item'
(toHaveLength) before the unchanged ordering loop; the Escape block after
the unchanged button block. ratifiedDate builds the same pattern for the
current dictionaries (no RegExp character in them).

Run: admin-sheets-list 4 passed (fr, en x desktop, 375).
2026-11-16 18:10:13 +01:00
bchanot 8bb2486a34 fix(app): Administration home cards laid out as board 29 B
- the grid aligns its cards at the start; Espèces and Accès et
  habilitations stack in one right-hand column at their own height
- when the sheets card is refused, that column spans the grid and lays
  its cards side by side, so no half of the page stays empty
- the card's sheet name links are 44 px tall on the phone, unchanged
  from sm up
- the card item keeps the list row's rhythm (space-y-1), a larger gap
  only above the working copy action

No test changed.
2026-11-16 17:59:47 +01:00
bchanot 1758276087 refactor(app): sheet list hooks split, rows memoised, phone clear button
- useSearch holds the query, its field and clearSearch; useListView keeps
  the filters and the sort (8 bindings down to 5)
- the search term is folded once per search (sheetNameMatcher beside
  matchesSheetName, whose signature and behaviour stay), each date read
  once before the sort, the shown rows memoised on list, filters, search,
  sort and language
- long className strings hoisted into module constants, no class changed
- the no-result block's clear button takes the page's 44 px phone height
- labels.ts: the SheetSummary alias removed; ResultsProps declared first

No test changed: the existing unit suites are the oracle.
2026-11-16 17:57:18 +01:00
bchanot 374e300895 fix(supabase): refuse a last_modified_at a Date cannot read
The timestamp shape check lets an offset such as +99:99 through, which
Date.parse reads as NaN and the date formatter would throw on. The key
now also requires a readable date, so the case folds into unavailable.
Test added beside the existing refusal test; no assertion changed.
2026-11-16 17:54:54 +01:00
bchanot 72ec758278 chore(docs): R3 Task 8 documents done, gates pending, shortcuts harvested 2026-11-16 17:48:07 +01:00