Repository navigation
Description
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-150builds the rows on the client fromuseCompetencesanduseMembers, then filters them by status. The filter is multi-select and defaults to Active; an empty register ignores it.:356-399rendersSettingsPage fitToContainer fullWidthwithDataTable 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) 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). A page that is a collection screen (SettingsPage fitToContainer) keeps it on.
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 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.configswithonClear, with the default Active and the empty-register rule. - Keep
stickyLayoutwithfitToContainer: 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_SIZErows 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.tsxstays 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
- 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.
Activity
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
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 commit91c1104b61e01ed9c5e09772a57ebbae20803b53(refactor(platform): page and search the competences register) 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-256.refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register
refactor(platform): page and search the competences register