You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue asks for three separate features in the Pages window: more bulk actions (such as switching to draft), quick edit, and Shift+click selection.
Accepted, rescoped to one of them: Shift+click range selection. It is the smallest of the three and ships on its own.
It lands in the shared table and in the page cards, so the Posts window and every other list window with checkboxes gets it too.
Bulk status actions and quick edit are left out. Each one needs its own issue.
Scope
Build Shift+click range selection for the row checkboxes.
src/ui/components/os-table/os-table.ts, in selectable="multi" only. Remember the last row checkbox the user toggled (the anchor, kept by row id). A click on another row checkbox with Shift held gives every row between the anchor and the clicked row the clicked box's new state: checking selects the range, unchecking clears it. This is how wp-admin's own list tables behave.
The range is taken over the rows as painted: after the client-side column filters and the current sort. A row a filter is hiding is never swept in. This is the rule selectAll() and visibleRows already follow, and it matters because the selection feeds "Move to trash".
One os-table-selection-change event for the whole range, and the rows updated in place through _syncSelectionDom(), not a body repaint (see the note on select() about focus and scroll).
Fall back to a plain toggle when there is no anchor, when the anchor row is no longer visible, or in selectable="single". The change event does not carry shiftKey, so read it from the click.
apps/posts/parts/desk.ts: the card view ("Page directory" for Pages, "Writing desk" for Posts) is the window's default view, and its card checkboxes write to the same table selection. Give them the same Shift+click behaviour over the loaded cards in feed order, with the anchor in DeskState, so the bulk bar's count stays in step. <os-checkbox> emits os-checkbox-change without the modifier, so the card has to read Shift from the click as well.
No change to the header select-all checkbox, to "Select loaded", to the phone card layout of <os-table stacked>, or to what a click on the row itself does.
Tests: extend src/ui/components/os-table/os-table.test.ts with the range case (select, then clear, with a filter hiding a row in between), and apps/posts/posts.test.ts or apps/pages/pages.test.ts with one card case. No new test file.
Docs: the static help block on <os-table> and the selection section of docs/examples/data-table.md.
Left out:
More bulk actions, such as "Switch to draft" for the selected pages. Today the bulk bar ships "Move to trash" and "Restore" only (defaultBulkActions() in apps/posts/parts/columns.ts). A new one is a new server action that changes content, so it needs its own issue and its own review.
Quick edit for pages. This is the largest of the three (which fields, where the editor opens, how it saves) and needs its own issue that says which fields you want to edit.
Ctrl/Cmd+click, drag selection, and Shift+click on the row itself instead of its checkbox.
Selecting pages that are not loaded yet: a range covers only the rows on screen.
Why
The three requests are independent, so they would be three PRs, not one. Shift+click is the smallest and the least open to interpretation: <os-table> handles each row checkbox on its own today (a change listener that calls select() or deselect()) and keeps no anchor, so a range is one addition in one place, and the Pages and Posts windows share that table through apps/posts/parts/app.ts. The risk is medium, not low, because <os-table> is a documented kit component that the Users, Trash, Plugins and My WordPress windows also use, and because a wrong range could put rows the user did not mean to pick into a bulk trash. It touches no stored data and no permission check, so the only surface is the UI.
Activity
[-]Pages[/-][+][REQUEST] Features on Pages[/+]epeicher commentedon Nov 21, 2026
Factory intake: ACCEPT (risk medium, surfaces: ui)
Summary
Scope
Build Shift+click range selection for the row checkboxes.
src/ui/components/os-table/os-table.ts, inselectable="multi"only. Remember the last row checkbox the user toggled (the anchor, kept by row id). A click on another row checkbox with Shift held gives every row between the anchor and the clicked row the clicked box's new state: checking selects the range, unchecking clears it. This is how wp-admin's own list tables behave.selectAll()andvisibleRowsalready follow, and it matters because the selection feeds "Move to trash".os-table-selection-changeevent for the whole range, and the rows updated in place through_syncSelectionDom(), not a body repaint (see the note onselect()about focus and scroll).selectable="single". Thechangeevent does not carryshiftKey, so read it from the click.apps/posts/parts/desk.ts: the card view ("Page directory" for Pages, "Writing desk" for Posts) is the window's default view, and its card checkboxes write to the same table selection. Give them the same Shift+click behaviour over the loaded cards in feed order, with the anchor inDeskState, so the bulk bar's count stays in step.<os-checkbox>emitsos-checkbox-changewithout the modifier, so the card has to read Shift from the click as well.<os-table stacked>, or to what a click on the row itself does.src/ui/components/os-table/os-table.test.tswith the range case (select, then clear, with a filter hiding a row in between), andapps/posts/posts.test.tsorapps/pages/pages.test.tswith one card case. No new test file.static helpblock on<os-table>and the selection section ofdocs/examples/data-table.md.Left out:
defaultBulkActions()inapps/posts/parts/columns.ts). A new one is a new server action that changes content, so it needs its own issue and its own review.Why
The three requests are independent, so they would be three PRs, not one. Shift+click is the smallest and the least open to interpretation:
<os-table>handles each row checkbox on its own today (achangelistener that callsselect()ordeselect()) and keeps no anchor, so a range is one addition in one place, and the Pages and Posts windows share that table throughapps/posts/parts/app.ts. The risk is medium, not low, because<os-table>is a documented kit component that the Users, Trash, Plugins and My WordPress windows also use, and because a wrong range could put rows the user did not mean to pick into a bulk trash. It touches no stored data and no permission check, so the only surface is the UI.