Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast success and danger for donate action #511

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

SatsAllDay
Copy link
Contributor

Danger case was already handled by the common Form component, but success wasn't toasted. I like having feedback on actions like this one.

Now, the danger toast message is also specific to the donate action, and not just the underlying JS error that occurred (which is logged, instead).

sn-donate-success-toast sn-donate-danger-toast

Danger case was already handled by the common `Form` component,
but success wasn't happening. I like having feedback on actions like this one.
Now, the danger toast is also specific to the donate action, and not just the underlying
JS error that occurred (which is logged, instead).
@SatsAllDay
Copy link
Contributor Author

SatsAllDay commented Sep 23, 2023

I wonder if we should use the lightning visual effect instead of success toast on successful donation. That feels more appropriate? Or both? Idk

Edit: Perhaps lightning + success toast, because not all users have the lightning enabled, so if we did lightning only, there'd be no positive feedback, which is pretty much the entire point of this PR :P

@huumn
Copy link
Member

huumn commented Sep 24, 2023

Yeet! The lightning bolt would be cool for a little more visual feedback but I'm going to merge this and that can be done in another pr.

@huumn huumn merged commit 9f33351 into stackernews:master Sep 24, 2023
1 check passed
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