#14487·paperclip

Inbox: add multi-select + bulk archive for cleaning up outdated inbox items

Author: jerryping5555Created Sep 28, 2026Updated Sep 28, 2026

Subsystem affected

ui/ — React + Vite board UI (optionally server/ if a batch endpoint is preferred over per-item fan-out)

Problem or motivation

Long-running companies accumulate a lot of outdated inbox items, and today the only cleanup path is strictly one-by-one:

  • The per-row archive button only renders on the Mine tab (isMineInboxTab gate in ui/src/pages/Inbox.tsx); the Recent tab has no per-row archive at all.
  • There is no multi-select or bulk action anywhere in the inbox UI.
  • The API only exposes per-item endpoints (POST / DELETE /api/issues/:id/inbox-archive), so even scripted cleanup requires N round trips.

With dozens or hundreds of stale items (old approvals, finished runs, resolved issues), the inbox gets noisy fast and there is no practical way back to a clean slate without clicking archive N times.

Proposed solution

  • Add a multi-select mode (checkbox column or select-mode toggle) to the inbox, reusing the existing BulkBar pattern from ui/src/components/folders/FolderControls.tsx that Routines and CompanySkills already use.
  • Floating bulk action bar: "Archive (n) selected" — available on at least Mine and Recent.
  • Consider a "select all visible" shortcut, and an age helper ("archive items older than X days") for triaging large backlogs in one pass.
  • Implementation can fan out to the existing per-item inbox-archive endpoint; a proper batch endpoint would reduce request chatter and allow one audit summary per bulk action.

Alternatives considered

  • Bulk-deleting the underlying issues: rejected as the default because inbox rows reference real issues/approvals/runs. Archive is reversible and per-user, matching existing inbox semantics (archived rows resurface on new external activity).
  • Scripting cleanup against the per-item API: works today but is not a product answer and is impractical for non-technical operators.

Roadmap alignment

ROADMAP.md does not currently call out inbox UX. Adjacent request: #504 asks for bulk operations and archive semantics on the dashboard task list; this one is scoped to the Inbox page specifically, where item types are mixed (issues, approvals, runs, join requests) and only per-item cleanup exists today.

Additional context

  • Verified on the 2026-09-26 build: no bulk controls on /inbox/recent or /inbox/mine; Recent offers no per-row archive.
  • Inbox archive is per-user and reversible, which makes bulk archive a safe default bulk action.