Open tom-leamon opened 9 months ago
For the Toast component, the queue should be mindful of user experience. Having too many Toast messages back-to-back might overwhelm the user. We might need to set a maximum limit for the queue or introduce a slight delay between messages.
Additionally, it would be beneficial to review how the queue handles priority. If a more critical Toast message is queued, it should potentially be displayed sooner than less critical messages, regardless of the order they were queued in.
A Toast component is needed for displaying brief, auto-dismissing messages in the application. Unlike a Snackbar, which is often used for longer messages and may include actions for the user to take, Toasts are simpler, shorter, and used for informative messages that don't require user interaction. They typically appear and disappear automatically, making them ideal for non-intrusive notifications.
Action items: