text icon indicating copy to clipboard operation
text copied to clipboard

Show online/offline state in UI

Open mejo- opened this issue 7 months ago • 1 comments

Current idea is to use the red indicator dot (error) of the save button to indicate offline status.

mejo- avatar Jun 03 '25 10:06 mejo-

I'm not sure the checkmark with the dot is actually something easy to understand. It would be nice to align on this with @marcoambrosini

The whiteboard also introduced an indicator which ideally we get all apps use the same/similar design (cc @hweihwang @grnd-alt for the whiteboard)

juliusknorr avatar Jun 10 '25 12:06 juliusknorr

Hi @mejo- I think we should use different approaches depending on whether this is for the desktop app or the web.

if we're talking about a desktop app, we shouldn't bug the user about whether they're online or not. Imo it's better not interrupt the user's work and try to handle all the possible scenarios gracefully ourselves. I've checked several other document editing apps and many of them do not even have a simple indicator.

E.g. we could

  • Show red or amber dot if sync is not happening
  • Prevent closing the window if un-synced and showing a warning dialog
  • Store the changes locally and auto sync when the network is back, offer a way to handle conflicts when present

For the browser version, we could be a bit more loud about the fact that there's no network and show a permanent banner, which we already do!

For the indicator, I wouldn't show a checkmark, and instead replace the whole icon with a bigger dot

marcoambrosini avatar Jun 25 '25 10:06 marcoambrosini

For the browser version, we could be a bit more loud about the fact that there's no network and show a permanent banner, which we already do!

The plan is to make editing possible while being offline in the browser version as well. That's why the current banner will go away once synchronizing the editing session to a local y-indexeddb provider in the browser is implemented.

We started working on handling offline state in the text app and went with the following indicators for now:

  • Replace session list button with a cloud offline icon that has "Offline since 4 minutes ago" as tooltip.
  • Show the red indicator dot in save button if we have unsaved changes and are currently offline

See the following screenshots:

Online with unsaved changes Offline with unsaved changes
Image Image

mejo- avatar Jul 10 '25 09:07 mejo-

I do not think it's necessary to show an icon if online

marcoambrosini avatar Jul 10 '25 10:07 marcoambrosini