Skip to content

Improvement: Legal hold tables follow the settings list pattern (toolbar filters and create, count footer) #5159

Closed

Description

@tale-code-bot

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.

References:

  • services/platform/app/features/settings/teams/components/teams-table.tsx
  • services/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 entityLabel each;
    • 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.configs with onClear while the page keeps the value), so they render in its toolbar. Drop the outside DataTableFilters bars and their isFilterAffordanceDisabled workaround: 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, and legal-hold-read-failure.test.tsx;
    • the row actions.

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_SIZE rows 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

Activity

  1. added
    improvement
    service: platform
    agent-ready
    on Oct 30, 2026
  2. added a commit that references this issue on Nov 1, 2026
    eb6fa6f
  3. added a commit that references this issue on Nov 2, 2026
    6189cf4
  4. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    Done on the feature line: feature train #5279 landed on release/0.6 by rebase at 2026-11-02 01:30:34 UTC. This issue's change is commit 6189cf439e78239d4d84e11dbfc379eb7db0ed0a (refactor(platform): legal hold tables follow the settings list pattern) on release/0.6, and it ships with Tale 0.6.0. GitHub closes issues itself only for commits that reach main, so the feature-train role closes this one now. Board task: TALE-255.

  5. added 15 commits that reference this issue on Nov 2, 2026
    d1922c1
    8533410
    569f2d0
    b8ba0c1
    c550fc7
    2ca57f5
    29d9417
    576bfcb
    60d9f7b
    58888ef
    9f39c9e
    6f22cf4
    66031d4
    c8c7e98
    63889d4
  6. added a commit that references this issue on Nov 15, 2026
    4514b5c
  7. added a commit that references this issue on Nov 23, 2026
    f0eb94e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions