Skip to content

feat(content): add a bulk "Done" button next to "Send all" to mark opportunities complete #354

Closed

Description

@gkhngyk

Summary

On the Content Optimization page (/dashboard/content), when opportunities are selected, the bulk action bar has a Send all button and a Dismiss all button. Add a Done button next to Send all that marks the selected opportunities as done in bulk. Users want to check off the opportunities they've already actioned so they aren't looking at the same finished items over and over.

What to change

In web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx:

  • Add a bulk Done handler mirroring the existing handleBulkDismiss, but setting the done status: bulkUpdateStatus(Array.from(selectedIds), 'done'), then toast + clear the selection + refetch.
  • Render a Done button in the selection action bar (shown when selectedIds.size > 0), next to Send all.

No backend work is needed:

  • bulkUpdateStatus(ids, status) already accepts any status, including done.
  • The done status already exists (it has a STATUS_COLORS.done badge and a "Done" option in the status filter).

"Don't want to see them again"

Marking items done already lets the user hide them via the existing status filter (filter to everything except done / to a specific status). If we want done items hidden by default too, that's a small optional follow-up (e.g. exclude done + dismissed from the default all view, or add a "Hide completed" toggle) — but the core ask here is just the bulk Done button.

How to test

  1. /dashboard/content → select one or more opportunities → the action bar shows Send all, Done, and Dismiss all.
  2. Click Done → the selected opportunities flip to the done status (green badge), the selection clears, and the list refetches.
  3. Filtering the status dropdown away from done hides the completed ones, so they aren't shown repeatedly.

Notes

  • Small, self-contained UI change — good first issue.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    on Jul 6, 2026
  2. Sam-syntax35 commented on Jul 6, 2026

    @Sam-syntax35
    Contributor

    Hi @gkhngyk ! I'd like to work on this issue. Could you assign it to me?

  3. gkhngyk commented on Jul 6, 2026

    @gkhngyk
    ContributorAuthor

    Thanks @Sam-syntax35 — assigned to you! 🎉 As described: add a bulk Done handler in content/page.tsx mirroring handleBulkDismiss but calling bulkUpdateStatus(Array.from(selectedIds), 'done'), and render a Done button next to Send all in the selection action bar. No backend work — bulkUpdateStatus and the done status already exist. Ping here if anything's unclear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions