refactor(backoffice): shared DirectorySection wrapper for read-surface tables #57

Closed
opened 2026-07-04 12:11:53 +00:00 by momsse · 0 comments
Owner

Migré depuis viziertronic/octant#122 — ouvert le 2026-06-27 par @momsse.

The read-surface pages repeat the same section shell verbatim — section wrapper + h2 + ResultHandler (loading/framed) + framed div + DataTable — across 5 near-identical sections (3 in banking.tsx, 2 in documents.tsx). Now that formatMoney is shared, the section chrome is the next obvious extraction: a <DirectorySection title rows columns rowKey searchableText emptyMessage loadingMessage /> parameterised over the row type and atom result, so chrome changes happen once.

Surfaced in the #41 documents-slice review.

> _Migré depuis [viziertronic/octant#122](https://github.com/viziertronic/octant/issues/122) — ouvert le 2026-06-27 par @momsse._ The read-surface pages repeat the same section shell verbatim — `section` wrapper + `h2` + `ResultHandler` (loading/framed) + framed `div` + `DataTable` — across 5 near-identical sections (3 in `banking.tsx`, 2 in `documents.tsx`). Now that `formatMoney` is shared, the section chrome is the next obvious extraction: a `<DirectorySection title rows columns rowKey searchableText emptyMessage loadingMessage />` parameterised over the row type and atom result, so chrome changes happen once. Surfaced in the #41 documents-slice review.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
momsse/octant#57
No description provided.