Repository navigation
Description
Part of #2792.
Problem
The two tables on Settings › Sandboxes hand DataTable every row at once, with no search and no count footer. The devices table also puts Add device in the section header instead of the table's addAction. Teams, Members and the other settings lists (#2792) do both the other way.
Current behaviour
Paths are under services/platform/app/features/settings/sandboxes/ at feature-train af2a43153661f168db194210edfb4299249086fc.
- Sessions (
sandboxes-settings.tsx:474-511, shown to managers): a plainDataTablewithdata={data?.sessions ?? []}anderror={error}. It has noonRetry, no window, no search and no count footer. - Devices (
sandbox-devices.tsx:250-327): Add device sits inSettingsSection actionand is disabled while the hub is not configured. Below it is a plainDataTablewithdata={devices}anderror={error}. It has noonRetry, no window, no search and 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).
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 both tables 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 device's name, for one).
- Create a device through the devices table's
addAction,disabledwhile the hub is not configured. Keep the hub notice above the table. - Keep
stickyLayoutoff: both tables sit in a scrolling settings page.
Acceptance criteria
- Both tables show at most
DEFAULT_LIST_PAGE_SIZErows before they load more, and close on the shared count footer. - Add device is the devices table's
addAction, with the same permission and hub rules as today. - Stopping a session, removing a device and the failed-read state work. The existing Sandboxes tests stay green.
- Every new string (search placeholder, entity labels) is in every shipped locale.
- A component test pins the toolbar 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. - bug(platform): Settings › Usage says "No storage limit applies to you" when the read fails; Sandboxes Try again does nothing #4832, item 2: on these two tables Try again does nothing, because
onRetryis missing.useListPagederivesonRetryfrom the data source'sretry, so the two changes touch the same lines. Whichever lands second builds on the other.
Activity
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes 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 commit1a516a352a3d5ad5f0fea2626b8b6a6d5e30aa84(refactor(platform): sandboxes 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-257.refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern
refactor(platform): sandboxes tables follow the settings list pattern