Commit Graph
1253 Commits
Author SHA1 Message Date
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
bchanot b9e5d32918 docs(app): owner trial steps for the R3 sheet list and home card 2026-11-16 17:47:53 +01:00
bchanot a86020d6e3 docs(app): R3 sheet list documents as built, M9 applied
V1-2-6_U1_CORRECTIONS §R3 as built (A7 split superseded by D2, exact
results, deviations), the SQL checkpoint applied with corrections F2 to
F4, the owner's answers and the date limits F7, M9 in §12.3, db:sandbox
migrate, the sheet list spec and its named failures, class C rows, the
design deviations, CLAUDE.md and CHANGELOG. Gates pending.
2026-11-16 17:47:49 +01:00
bchanot 73ed37546f chore(docs): R3 contract from the owner's three messages 2026-11-16 17:40:08 +01:00
bchanot 1adb19b479 chore(docs): R3 Task 7 done, sweep results recorded 2026-11-16 17:38:52 +01:00
bchanot b4a5254068 test(app): shell proof of the sheet list search, sort and dates
admin-sheets-list.spec.ts (sandbox, fr and en, desktop and 375 px): three
draft sheets of this run, the oldest saved last; search, count line against
the list answer of the same load, order by last modification then by name,
the Paris date format, a search cut at 100 characters and its clearing, axe
and no sideways scroll on the searched list, the empty state and
/app/admin; the home's latest changes. Teardown soft-deletes only the ids
this run created (D7).

allSheetsLink (e2e/support/admin.ts): the sheets card link named
admin.home.all_sheets or admin.home.see_all with any number.

R-24, locators rewritten (assertions unchanged):
- admin.spec.ts A1: areaCard(...).getByRole('link', { name:
  dict['admin.home.all_sheets'] }) -> allSheetsLink(areaCard(...), dict)
- admin.spec.ts access per right: sheets.getByRole('link', { name:
  dict['admin.home.all_sheets'] }) -> allSheetsLink(sheets, dict)
- editor-journey.spec.ts createSheetFromAdmin: section locator
  .getByRole('link', { name: dict['admin.home.all_sheets'] }) ->
  allSheetsLink(section locator, dict)
2026-11-16 17:34:43 +01:00
bchanot 2326e1cb15 chore(docs): R3 Task 6 done 2026-11-16 17:18:20 +01:00
bchanot de2424f519 feat(app): Administration home lists the latest modified sheets
Board 29 B: five latest sheets with badges, detail line and date; footer
link shows the total from two sheets. R-24: no existing assertion removed
or rewritten; seven cases added.
2026-11-16 17:17:27 +01:00
bchanot 856667d070 chore(docs): R3 Task 5 done 2026-11-16 17:05:37 +01:00
bchanot 423125c18f feat(app): search, sort, count and date on the official sheet list
Boards 28 and 29 A: name search with clear button and Escape, « Trier
par » (last modification by default, or name), a polite count line,
« Modifiée le … » on each row in a <time>, and the search no-result
block. The detail line moves to labels.ts as sheetDetails.

R-24: no existing assertion removed or rewritten; six tests added.
2026-11-16 17:03:08 +01:00
bchanot a950e403c2 chore(docs): R3 Task 4 done 2026-11-16 16:46:22 +01:00
bchanot f3b58abe70 feat(app): search, sort and date format of the admin sheet list 2026-11-16 16:45:23 +01:00
bchanot d5852f5f8e chore(docs): R3 Task 3 done 2026-11-16 15:48:50 +01:00
bchanot d9a5846d0d feat(supabase): admin sheet summary carries last_modified_at
Schema requires last_modified_at as an ISO 8601 timestamp with offset. Fixtures in routes.admin.test.tsx and editorRoute.tsx gain the key.
2026-11-16 15:47:54 +01:00
bchanot f5e92dc5a9 chore(docs): R3 Task 2 done, db:trial migrated to M9, pgTAP 014/021 kept open 2026-11-16 15:44:42 +01:00
bchanot 2bf219f2f4 chore(docs): R3 Task 1 done, sandbox migrated to M9, trial checkpoint pending 2026-11-16 14:39:57 +01:00
bchanot 21c9a81e0c feat(supabase): db:sandbox migrate, forward only on the running sandbox 2026-11-16 14:33:10 +01:00
bchanotandClaude f3712b2baa test(supabase): pgTAP 022 sheet-newer case on its own fixture
WK sequence restored (flag, dated, save, now). New SR fixture proves a sheet
row newer than its versions. Plan 73 to 74.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-16 14:32:01 +01:00
bchanotandClaude a76a54dbb7 test(supabase): pgTAP 022 covers a sheet row newer than its versions
Plan 72 to 73. Fails under coalesce(max(version), sheet), passes under greatest.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-16 14:30:34 +01:00
bchanotandClaude e3495df088 feat(supabase): last_modified_at in the admin sheet summary (M9)
Admin sheet summary answers last_modified_at: newest of the sheet row and
its versions' updated_at. Read change only, body otherwise identical to M7.
pgTAP 022: plan 60 to 72, 12 assertions added, none changed.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-16 01:15:49 +01:00
bchanot 2277e41b09 chore(docs): R3 plan rev 2b validated by the owner, TODO subtasks
Plan .claude/tasks/plans/2026-11-16-r3-sheet-list-0017.md: audit F1-F14,
three fresh challenges folded, owner answers D1-D7 and precisions P1-P4.
RR-13 scope widened to admin list paging (D4); D5 kept as a follow-up.
2026-11-16 01:13:26 +01:00
bchanot 98178dea26 chore(memory): R2 closed by the owner, BDR-118/119 shipped, LRN-142 2026-11-15 23:55:04 +01:00
bchanot 4942be4336 docs(docs): record the owner's R2 validation and closure 2026-11-15 23:55:03 +01:00
bchanot 54e09a76ce docs(docs): 4.14 check 3 expects no new undo step 2026-11-15 21:14:55 +01:00
bchanot 55f1abc6c8 chore(memory): BDR R2 Rev 6 citations draft 2026-11-15 21:14:42 +01:00
bchanot 6de88bbb7c chore(memory): R2 Rev 6 decision, plan and contract 32-36 2026-11-15 21:14:34 +01:00
bchanot 8681e66ec9 docs(docs): record the R2 full sweep counts and failures 2026-11-15 21:14:18 +01:00
bchanot 52d5613fe5 test(editor): keyboard-only cite and save restores in one undo 2026-11-15 20:50:49 +01:00
bchanot 3e94f732c7 fix(editor): citation notices, literal citation text, local limits 2026-11-15 20:50:48 +01:00
bchanot c93787c947 docs(docs): R2 pre-closure adjustments, limits and checks 2026-11-15 20:11:54 +01:00
bchanot ee7912768c fix(editor): draft notice after the reference dialog, locale list 2026-11-15 20:08:55 +01:00
bchanot 1d119c3684 fix(editor): stale cite choice reset, pending line under the add row 2026-11-15 20:00:28 +01:00
bchanot 70eb2fcbb4 feat(editor): a reference made in the citations draft saves with it 2026-11-15 19:55:41 +01:00
bchanot 8c3fcca0b9 feat(editor): « Citer » button and family labels in references 2026-11-15 19:40:47 +01:00
bchanot 240c2ba0e7 feat(editor): dialog close button is a 44 px touch box 2026-11-15 19:40:46 +01:00
bchanot ae02f48853 chore(memory): BDR-118 references dialog, plan Rev 5, contract 26-31 2026-11-15 17:49:49 +01:00
bchanot ebd1d6ddbe docs(docs): rev 5 final fix labels, trial step and folder map 2026-11-15 17:44:00 +01:00
bchanot 5059641c04 fix(editor): edit mode focuses the draft, tile edit call 2026-11-15 17:43:43 +01:00
bchanot 6c0f913104 fix(editor): forget the citing form on Back, refuse sparse paths 2026-11-15 17:42:26 +01:00
bchanot 7a5684aace fix(editor): an explicit discard of the citations draft says nothing 2026-11-15 17:04:28 +01:00
bchanot 82bdf8de71 docs(docs): cite label and delete hint of the references dialog 2026-11-15 16:58:51 +01:00
bchanot 11c2b0c5ee fix(editor): Task 12 review minors, delete hint and cite label 2026-11-15 16:58:50 +01:00
bchanot 8c420d4b53 docs(docs): record the R2 follow-up of 2026-11-15 2026-11-15 16:52:12 +01:00
bchanot 2579d4c7ae test(editor): e2e on the references dialog's edit mode 2026-11-15 16:46:05 +01:00
bchanot 3dc5820e3a feat(editor): edit mode of the references dialog
« Modifier » turns the references dialog into a draft of adds and removes,
saved as one update on the current citations. A new layer, citations,
guards it between the finding and the reference dialogs: close, Back,
POP refusal and the leave cascade ask it. « Modifier la référence » and
« Nouvelle référence » stack the reference dialog over it; a creation it
started joins its draft.
2026-11-15 16:39:43 +01:00
bchanot d9dbcf1609 fix(editor): dialog trigger for references, Task 11 review minors 2026-11-15 16:25:32 +01:00
bchanot da755f9768 fix(editor): Plus rows hover tint, axe on an active row, line limits 2026-11-15 16:21:01 +01:00