react-email icon indicating copy to clipboard operation
react-email copied to clipboard

Missing UI Feedback after Successful Email Sent can Lead to Double Sending

Open lordelogos opened this issue 3 years ago • 1 comments

Describe the Bug

I have identified an issue in the application where there is a lack of user interface (UI) feedback after a successful email is sent. This can potentially lead to users unintentionally sending multiple emails due to the absence of a clear indication of success.

Which package is affected (leave empty if unsure)

client, demo

Link to the code that reproduces this issue

It can be reproduced on the demo website (https://demo.react.email/preview/vercel-invite-user)

To Reproduce

  • Visit the demo website and choose any template
  • Press the send button in the top right
  • Input your email in the RECIPIENT field
  • Press the Send button

There is no feedback in the UI on send success and it lead me to send a couple of times before I checked my mail box.

Expected Behavior

After successfully sending an email, the application should provide some form of UI feedback to reassure the user that the email was sent and to prevent unintended double-sending.

I have developed a solution for this issue (can be seen below). Upon successful email sending, I have implemented a notification that appears in the UI to inform the user about the successful delivery of the email. This will help prevent the user from accidentally sending multiple emails.

react-email-success-toast-demo

What's your node version? (if relevant)

No response

lordelogos avatar Jun 17 '23 23:06 lordelogos

Closing this as completed since we have implemented a nice toast since 2.0.0 of the CLI.

gabrielmfern avatar Mar 27 '24 12:03 gabrielmfern