Skip to content

[REQUEST] Features on Pages #304

Open

Description

@Eiron-Van

could you add a feature on the pages

  • when multiple pages are selected, you can add a selection like drafting multiple pages, instead of just the trash option
  • quick edit for pages
  • able to shift+click selection on the pages

Thanks

Environment
Plugin version:    0.8.9
WordPress version: unknown
User agent:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Viewport:          2133x1082
Platform:          Win32
Current URL:       https://senlo.ph/wp-admin/index.php?desktop_mode_portal=1#

Activity

  1. changed the title [-]Pages[/-] [+][REQUEST] Features on Pages[/+] on Jun 10, 2026
  2. added
    factory
    and removed
    factory
    on Nov 9, 2026
  3. added
    factory
    on Nov 21, 2026
  4. epeicher commented on Nov 21, 2026

    @epeicher
    Collaborator

    Factory intake: ACCEPT (risk medium, surfaces: ui)

    Summary

    • 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.

    1. 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.
    2. 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".
    3. 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).
    4. 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.
    5. 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.
    6. 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.
    7. 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.
    8. 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.

  5. added
    factory:needs-human
    and removed
    factory:needs-human
    factory
    on Nov 21, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions