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

wip connection toaster #3242

Merged
merged 14 commits into from
May 17, 2024
Merged

wip connection toaster #3242

merged 14 commits into from
May 17, 2024

Conversation

Lendemor
Copy link
Collaborator

@Lendemor Lendemor commented May 7, 2024

WIP to use toast instead of ConnectionModal to notify of backend errors.

@Lendemor
Copy link
Collaborator Author

Need #3216

@Lendemor Lendemor marked this pull request as ready for review May 16, 2024 00:14
@masenf
Copy link
Collaborator

masenf commented May 16, 2024

The toast always shows up for me when i initially load the page

masenf added 3 commits May 16, 2024 14:37
* Use `has_too_many_connection_errors` to avoid showing the banner immediately
* Increase toast duration to avoid frequent, distracting flashing of the toast
* Automatically dismiss the toast when the connection comes back up
* Include `close_button` for user to dismiss the toast
* If the user dismisses the toast, do not show it again until the connection comes back and drops again
* Use `connection_error` var instead of a custom util_hook to get the message
* Hide the connection pulser behind the toast (33x33)
* Add a title (tooltip) that shows the connection error
If the user dismisses the toast, we still want to indicate that the backend is
actually down.
@masenf
Copy link
Collaborator

masenf commented May 16, 2024

Pushed 3 improvement commits to the branch. See the commit messages for details on the changes.

@masenf masenf merged commit 9ba1794 into main May 17, 2024
47 checks passed
@picklelo picklelo deleted the lendemor/use_toast_for_connection_error branch August 21, 2024 20:44
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