Skip to content

feat(send): "Send now" action on the send-delay (undo) toast - #501

Merged
rathlinus merged 1 commit into
bulwarkmail:mainfrom
shukiv:feat/send-now-on-undo-toast
Jul 21, 2026
Merged

feat(send): "Send now" action on the send-delay (undo) toast#501
rathlinus merged 1 commit into
bulwarkmail:mainfrom
shukiv:feat/send-now-on-undo-toast

Conversation

@shukiv

@shukiv shukiv commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What

When send-delay is enabled, sending shows the "scheduled to send" toast with a Cancel send (undo) action. This adds a Send now action to the same toast that releases the delayed message immediately, so you can skip the undo window without waiting it out.

How

  • toast gains an optional secondaryAction (rendered alongside the existing action).
  • The pending undo-send state carries identityId so the immediate send can target the right identity.
  • "Send now" reschedules the delayed EmailSubmission for ~now (Date.now()+1s), mirroring the existing scheduled-message Send-now, then clears the undo state.

Testing

npm run typecheck passes. Exercised live: send with a delay, toast shows Send now + Cancel send; Send now delivers immediately, Cancel restores the draft.

The post-send undo toast ('scheduled to send' + Cancel send) now also offers a
'Send now' action that reschedules the delayed submission for immediate release,
so you can skip the undo window without waiting it out. Adds an optional
secondaryAction to the toast component and carries identityId on the pending
undo-send state so the reschedule can target the right identity.
@rathlinus
rathlinus merged commit f15edd3 into bulwarkmail:main Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants