Frontend: toast notifications via a small event bus

2161
0

I don’t want components depending on each other just to show a toast. A tiny event bus (or context) lets any part of the app emit a toast without wiring props through five layers. The important part is keeping the API small—something like show(message, kind) plus a provider that renders the UI. I auto-dismiss after a timeout but allow manual dismissal for accessibility. This keeps success/failure feedback consistent across the app and prevents every page from re-implementing its own notification UI.