Skip to content

Content Optimization: Dismiss and Dismiss All fire immediately with no confirmation or undo #611

Closed

Description

@gkhngyk

Problem

Dismissing content opportunities is irreversible from the UI but fires on first click with no confirmation:

  • single-row Dismiss on the list page,
  • Dismiss on the detail page,
  • "Dismiss All", which hits every selected row in one click.

Destructive actions elsewhere in the app go through a confirm gate, so this is both a data-loss hazard and an inconsistency.

Evidence

Suggested fix

At minimum, gate "Dismiss All" behind a confirm dialog stating the count ("Dismiss N opportunities?"). For single-row dismiss, either the same lightweight dialog or an undo-toast pattern (dismiss immediately, offer "Undo" in the toast that restores the status) — the latter keeps the flow fast while removing the hazard.

Acceptance criteria

  • Bulk dismiss requires an explicit confirmation showing how many rows are affected.
  • Single dismiss is either confirmed or undoable.
  • Cancelling leaves all rows untouched.

Activity

  1. added
    enhancement
    good first issue
    on Aug 3, 2026
  2. Adarshhic commented on Aug 3, 2026

    @Adarshhic
    Contributor

    Hi @gkhngyk, I'd like to work on this one — could you assign it to me?

    Confirmed the three unguarded paths: single dismiss (content/page.tsx#L285-294, wired at L679), bulk dismiss (#L336-349, wired at L566), and detail-page dismiss (content/[id]/page.tsx#L143-152).

    Plan: Dialog confirm (matching audit/[id]/page.tsx#L122-147) for Dismiss All showing the count; undo-toast for single dismiss on both list and detail pages.

    Will open a PR referencing this issue once done.

  3. gkhngyk commented on Aug 3, 2026

    @gkhngyk
    ContributorAuthor

    Assigned — thanks for verifying the three paths up front, the plan looks right. The confirm-dialog patterns referenced in the issue body (audit detail page, reports) are good templates.

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

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions