Summary
Duplicate detection (cross-Commons sha1 lookup + within-stash matches) already works and visibly flags affected rows. But today the user has to select each flagged row one-by-one and then click Discard or Hide — tedious when a batch of 20 has 5 duplicates.
Add a one-click bulk action: select all flagged duplicates and apply Discard (or Hide) in a single click.
Behavior
- When the duplicate-detection effect has flagged ≥ 1 row in the current view, surface a button (likely in the toolbar or in the duplicate-status banner) labelled like:
- "Discard 5 duplicates" / "Hide 5 duplicates" (number reflects the flagged count; offer both Discard and Hide as separate one-click actions).
- Clicking selects all flagged rows and applies the chosen action atomically — no per-row confirmation, no intermediate selection step.
Open question (decide during build)
Whether to apply to "all detected duplicates" (across the whole list) or "duplicates in the current filter / view" by default.
Lean toward applying to all duplicates (the user's mental model is "remove the duplicates from this batch"), but surface a clear hint if the action will affect rows outside the current filter — e.g. "Discarding 5 duplicates (2 visible, 3 hidden by current filter)".
Out of scope
- Auto-hiding duplicates without user action (changes the user's data without consent).
- Distinguishing between "exact-bytewise duplicate of an existing Commons file" vs "duplicate of another file in this batch" — the bulk action applies to both kinds.
Acceptance
- When duplicates are detected, a clearly-labeled bulk action ("Discard / Hide N duplicates") is reachable in one click.
- Clicking it discards (or hides) all flagged duplicate rows in one go.
- The action is reversible by the existing Discard / Hide undo affordances (where present).
Source
User feedback session, 2026-05-10.