Repository navigation
Closed
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementservice: platformPlatform service
Description
Part of #2792.
Problem
Teams and Members now page, search and create the same way (#2792). The four sections of Settings › Governance › Legal hold still use table chrome of their own:
- Two of them put their filter and their create button in a bar above the table, outside it.
- None of the client-side tables has a search, a count footer or a display window.
Current behaviour
Paths are under services/platform/app/features/settings/governance/legal-hold/ at feature-train af2a43153661f168db194210edfb4299249086fc.
| Section | Code | Chrome today |
|---|---|---|
| Matters | matters-section.tsx:157-208 |
A DataTableFilters bar (status) above the table carries Create matter in its actions. Below it is a plain DataTable with data={matters ?? []}: no search, no count footer, every row at once. The comment at :172-175 explains why the bar has to be disabled from outside: "the emptiness signal the table computes for itself never reaches it". |
| Active holds | active-holds-section.tsx:223-290 |
The same shape: the target-type filter and Place legal hold sit in a bar above a plain DataTable. |
| Release requests | release-requests-section.tsx:232-289 |
Two plain DataTables (pending and approved): no toolbar, no count footer, every row at once. |
| Release history | release-history-section.tsx:177-240 |
Server-paged rows (DEFAULT_LIST_PAGE_SIZE, infiniteScroll, count footer). Its status filter sits in a separate DataTableFilters bar above the table. |
The pattern
Decided on #2792; Teams and Members implement it.
useListPage(@tale/ui/use-list-page) handsDataTableits rows:{ type: 'query', data, error, retry }for a read that arrives whole,{ type: 'paginated', … }for cursor pages.pageSize: DEFAULT_LIST_PAGE_SIZE(20) with no page-size selector: the table shows one window of rows and loads more as the reader scrolls.- Search and filters sit in the table's own toolbar:
search, andfilters.configswithonClearfor a facet the page keeps itself. - The create button is
addAction. When the list is empty and its toolbar has no search or filter, the button moves into the empty state. - The frame closes on the shared count footer from
entityLabel("Showing all 12 members"). - A table inside a scrolling settings page keeps
stickyLayoutoff (Bug: Skills settings page cannot be scrolled with the mouse wheel over the table (sticky DataTable swallows wheel events) #2381, fix(platform): restore scrolling in the skills table #2436).
References:
services/platform/app/features/settings/teams/components/teams-table.tsxservices/platform/app/features/settings/organization/components/member-table.tsx- the guide
services/ui-docs/content/patterns/list-page.md
The guard services/platform/app/features/settings/list-conventions.test.ts holds two of these rules for every settings list: no page size of its own, and no create button in DataTable's actionMenu slot. It does not see a table with no display window, or a create button outside the table (a section header, a filter bar).
Proposed change
- Build matters, active holds and both release-request buckets with
useListPage:{ type: 'query', data, error, retry };pageSize: DEFAULT_LIST_PAGE_SIZE;- an
entityLabeleach; - a toolbar search where the rows carry text a reader looks for (a matter's name and case number, for one).
- Hand the facets (matter status, hold target type) to the table as its own
filters(filters.configswithonClearwhile the page keeps the value), so they render in its toolbar. Drop the outsideDataTableFiltersbars and theirisFilterAffordanceDisabledworkaround: a table works out for itself when its filters have nothing to filter. - Create through
addAction(Create matter, Place legal hold) instead of a button in a filter bar. - Release history keeps its server read. Move its status filter into the table's toolbar (
filters), and keep the single-select with a mandatory value (defaultValues: ['effected'],widensResultSet). - Keep what the sections already get right:
- the read-failure recovery:
useListReadRecovery,CatalogLoadError, andlegal-hold-read-failure.test.tsx; - the row actions.
- the read-failure recovery:
Acceptance criteria
- Each Legal hold table carries its search, filters and create button (those it has) in its own toolbar. Each shows at most
DEFAULT_LIST_PAGE_SIZErows before it loads more, and closes on the shared count footer. - No filter bar or create button of these tables sits outside the table.
- Failed reads, Try again and the row actions behave as today. The existing Legal hold tests stay green.
- Every new string (search placeholder, entity labels) is in every shipped locale.
- A component test pins the toolbar placement and the page size.
- Spot-check dark and light themes and a narrow settings width.
Affected service
Platform (web app)
Related
- Parent: Improvement: Align data tables and pagination across settings (Teams, Members, …) #2792. Its Members part landed in
d12b3b80d2d1fdb4cacccb2909e2b71218498ae7. The tables that stay different on purpose are listed there.
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetimprovementImprovementservice: platformPlatform service
Activity
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
tale-code-bot commentedon Nov 2, 2026
Done on the feature line: feature train #5279 landed on
release/0.6by rebase at 2026-11-02 01:30:34 UTC. This issue's change is commit6189cf439e78239d4d84e11dbfc379eb7db0ed0a(refactor(platform): legal hold tables follow the settings list pattern) onrelease/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reachmain, so the feature-train role closes this one now. Board task: TALE-255.refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern
refactor(platform): legal hold tables follow the settings list pattern