Repository navigation
Mobile: select several threads and act on them together (parity with web multi-select) #42719
TheWombRaider
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem or use case
On web and desktop I can mod-click or shift-click threads in the sidebar and then Settle, Snooze, Regenerate titles, Mark unread, Unpin or Delete them together.
docs/user/thread-sidebar.mdmentions this too: "On web and desktop, you can also snooze several selected threads together."The phone app has no equivalent. A long-press opens the menu for one thread, so clearing out a morning's worth of finished threads from my phone means doing long-press → Settle once per thread. Swipe-to-settle helps, but each swipe still settles only one thread, and Snooze takes a swipe plus a menu choice per thread.
Proposed solution
These are mockups in the current mobile style, with placeholder thread names. They aren't screenshots of a working build.
Bring web's existing multi-select to the mobile thread list, with the same bulk actions and no new ones. It needs no server or contract changes: like web, each bulk action sends one existing per-thread command for each thread.
Entering selection mode
Selection mode
Bulk actions
These are web's six actions, laid out for a phone:
The bar matches the swipe actions, with Settle as the main action and Snooze next to it. Delete sits in More so a mis-tap on a phone can't reach it. Actions that need operate access are disabled for read-only clients, the same way
threadActionRequiresOperateworks on web.Undo, confirmation and failures
thread-undo-notice.ts): it gains a count and can hold several undo plans, with the same 5s expiry, covering the same actions (Settle, Snooze, Unpin). Web's merging of consecutive single-thread undos is out of scope.confirmThreadDeletesetting for single deletes today. That's a separate bug and isn't changed here.)Implementation notes
packages/client-runtime. That's toggling, select-visible, pruning removed threads, and deciding which bulk actions are available along with their counts and labels. It's written as pure helpers and tested once, asdocs/internals/testing.mdasks (no separate web and mobile copies). Mobile uses them in this change. Moving web'sthreadSelectionStore.tsand theSidebar.logic.tslabel builders onto them is left for a follow-up, so the PR covers one problem.threadCommands.ts,threadUndo.tsandthreadSettled.ts(canSnooze,resolveSnoozePresets) fromclient-runtime.docs/user/thread-sidebar.mdcovering web/desktop (mod-click, shift-click) and mobile (long-press → Select). No glossary entry and no ADR.Terms
Out of scope
Related
I'm happy to build this as a PR if a maintainer wants it.
All reactions