reflex/reflex/experimental
Thomas Brandého 9ba179410b
wip connection toaster (#3242)
* wip connection toaster

* never duplicate toast for websocket-error

* wip update banner

* clean up PR

* fix for 3.8

* update pyi

* ConnectionToaster tweaks

* 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

* ConnectionPulser: hide behind toast

* Hide the connection pulser behind the toast (33x33)
* Add a title (tooltip) that shows the connection error

* Re-add connection pulser to default overlay_component

If the user dismisses the toast, we still want to indicate that the backend is
actually down.

* Fix pre-commit issue from main

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-05-16 22:08:32 -07:00
..
__init__.py rx._x.client_state: react useState Var integration for frontend and backend (#3269) 2024-05-16 13:20:26 -07:00
client_state.py wip connection toaster (#3242) 2024-05-16 22:08:32 -07:00
hooks.py Experimental layout components (#3066) 2024-04-18 10:54:19 -07:00
layout.py add_style api (#3202) 2024-05-06 16:59:11 -07:00
misc.py add run_in_thread (#3077) 2024-04-11 16:42:14 -07:00