phoenix_profiler icon indicating copy to clipboard operation
phoenix_profiler copied to clipboard

Display a live indicator

Open mcrumm opened this issue 3 years ago • 2 comments

I am thinking we could display the status-online icon in place of the duration measurement when the liveview is connected. (Something like .phxweb-toolbar-view.phx-connected .phxweb-toolbar-live{ display: inline } and hide the rest)

mcrumm avatar Oct 07 '21 06:10 mcrumm

Do you have plans to show if LV has entered in the fail safe mode? I see it's not useful to everyone to have such information but we had cases where websocket was blocked on the client and we had to simulate and deal with that scenario (displaying a warning page, dispatching notification and stuff like that), so it could be useful. There's no public API to fetch this information from LV, except for https://github.com/phoenixframework/phoenix_live_view/blob/afdee17134699f792b41f98e220cef1805b041f8/assets/js/phoenix_live_view/live_socket.js#L271

leandrocp avatar Oct 15 '21 12:10 leandrocp

I think that's a great idea! We'll need to be able to differentiate between a disconnected LiveView and a stateless request.

mcrumm avatar Oct 15 '21 14:10 mcrumm