gossip
gossip copied to clipboard
Unified notification system
This proposal, related to #958, aims to optimize the notification system, and incidentally the sidebar UI.
Key concepts:
Status alerts are proposed to the user with toast messages on the bottom-right area of the screen.
Alerts can be of different kinds, with different styles and interactions, for example a generic notification that auto disappear after X seconds, and a warning one that requires a manual action.
Messages have a mandatory basic text of max 160 chars, and some additional informations; the toast shows only the basic text, clicking the user can read the full text.
The bottom area of the sidebar contains a single notification counter; when there is a new request/pending action, the counter highlights, when the user enters the view, the highlight status is reset.
All the requests and pending actions are grouped in a unique view, and always stay at the top. Other generic messages follow.
When a requests/pending action is completed, it should "transform" in a informative message a move down.
Requests and pending actions generate a notification.
We need to decide how many messages keep; probably a time range of some days (e.g. 7) is sufficient; older messages are automatically deleted.
A button on the top-right permits accessing a similar view with the raw logs of the application, but this will be eventually managed in a separate issue.
The sidebar's content should adapt when resized (min width = 130px):
It would sure be nice if someone could code this.
I did a cheap-ass version of this on unstable. To be improved.
Actually I did probably less than 5%. I just made tooltip toasts instead of the bottom bar messages where there wasn't enough space.