Missing UI Feedback after Successful Email Sent can Lead to Double Sending
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
sendbutton in the top right - Input your email in the
RECIPIENTfield - Press the
Sendbutton
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.
What's your node version? (if relevant)
No response
Closing this as completed since we have implemented a nice toast since 2.0.0 of the CLI.