Skip to content

Report spam: add Undo to the toast #4

Backlog

Description

@Hitesh-Sisara

Report spam moves the message to Spam and blocks the sender. The toast that follows has no Undo, so a mis-click means opening Spam and choosing "Not spam".

What to build

An Undo action on the toast that moves the message back and unblocks the sender.

Where

  • app/components/mail/MessageView.tsx: handleMarkSpam shows the toast, and handleNotSpam already reverses both steps.
  • app/lib/toast.ts: toasts accept an action.

Done when

  • Undo returns the message to the folder it came from and removes the block on the sender.
  • There is a test for the new behaviour.

Run it locally with npm run dev:demo (CONTRIBUTING.md).

Activity

  1. added
    enhancement
    good first issue
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions