Skip to content

Improvement: Competences register follows the settings list pattern (search, page size, count footer) #5160

Closed

Description

@tale-code-bot

Part of #2792.

Problem

Settings › Governance › Competences already keeps its status filter and its Grant competence button in the table's toolbar. But it hands DataTable every row at once, with no search and no count footer. Teams, Members and the other settings lists (#2792) do have both.

Current behaviour

services/platform/app/features/settings/governance/competences/competences-page.tsx at feature-train af2a43153661f168db194210edfb4299249086fc:

  • :109-150 builds the rows on the client from useCompetences and useMembers, then filters them by status. The filter is multi-select and defaults to Active; an empty register ignores it.
  • :356-399 renders SettingsPage fitToContainer fullWidth with DataTable stickyLayout data={visibleRows} filters={filterConfigs} addAction={…}.
  • There is no useListPage, so:
    • there is no display window: every grant ever recorded renders at once;
    • there is no search by holder or competence;
    • there is no count footer.

The pattern

Decided on #2792; Teams and Members implement it.

  • useListPage (@tale/ui/use-list-page) hands DataTable its 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, and filters.configs with onClear for 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 stickyLayout off (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). A page that is a collection screen (SettingsPage fitToContainer) keeps it on.

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 the rows with useListPage:
    • { type: 'query', data: visibleRows, error, retry };
    • pageSize: DEFAULT_LIST_PAGE_SIZE;
    • an entityLabel;
    • a toolbar search over the holder's name and email and the competence's label. The label is translated, so search it through an accessor.
  • Keep the status facet as filters.configs with onClear, with the default Active and the empty-register rule.
  • Keep stickyLayout with fitToContainer: this page is a collection screen.
  • Keep addAction, the revoke flow and the failed-read state.

Acceptance criteria

  • Competences shows a toolbar search, at most DEFAULT_LIST_PAGE_SIZE rows before it loads more, and the shared count footer.
  • The status filter keeps its default and its empty-register rule.
  • Granting, revoking and the failed-read state behave as today. competences-page.test.tsx stays green.
  • Every new string (search placeholder, entity labels) is in every shipped locale.
  • A component test pins the search, the page size and the footer.
  • 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
    b244941
  3. added a commit that references this issue on Nov 2, 2026
    91c1104
  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 91c1104b61e01ed9c5e09772a57ebbae20803b53 (refactor(platform): page and search the competences register) 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-256.

  5. added 15 commits that reference this issue on Nov 2, 2026
    d535f2a
    bb9518e
    2d2fc62
    d3a7d4f
    20fba9d
    c62d5f5
    757f94f
    2d81649
    1877e32
    0dd879b
    5f8ce98
    53c3b7a
    d2e54b2
    83e5190
    e9cf113
  6. added a commit that references this issue on Nov 15, 2026
    cf2d31f
  7. added a commit that references this issue on Nov 23, 2026
    e443c5f
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