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

window.log/warn/error as native toast notification #10008

Open
GermanJablo opened this issue Dec 19, 2023 · 0 comments
Open

window.log/warn/error as native toast notification #10008

GermanJablo opened this issue Dec 19, 2023 · 0 comments
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@GermanJablo
Copy link

What problem are you trying to solve?

Show messages to the user quickly and easily in the browser, without having to open the devtools console.

What solutions exist today?

  • Currently there are many popular libraries like react-toastify trying to solve this lack, but they require a lot of javascript.
  • There is also the Notification API. However, a toast differs in that (1) it is not a notification at the OS level but rather at the browser level, and therefore does not require user permissions and (2) in notifications there is an "inbox" concept that requires an action. user explicit to be emptied while a toast notification is simply destroyed/disappears after a brief moment.,

How would you solve it?

My proposal is to add the log, warn and error methods to the windows object, in the same way that the console has these.

Anything else?

A shared UI across browsers would allow users to identify and recognize notifications more easily.

@GermanJablo GermanJablo added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

2 participants
@GermanJablo and others