zulip / zulip-mobile

Zulip mobile apps for Android and iOS.
https://zulip.com/apps/
Apache License 2.0
1.29k stars 651 forks source link

Misleading information when starting app while offline. #2721

Open roberthoenig opened 6 years ago

roberthoenig commented 6 years ago

This is me starting the app while offline: bug2

A couple bugs here:

borisyankov commented 6 years ago

Thanks for that investigation and bug report. It is very important to do more testing of the app's behavior when offline as this will be a frequent occurrence in real-life mobile use.

Each <li> you listed is likely a separate bug. I think two of them are trivial to fix and I am doing it right now. Would you mind splitting them?

roberthoenig commented 6 years ago

@borisyankov just to get in sync, I'm currently trying the Not connected to the internet banner on my own.

roberthoenig commented 6 years ago

Let me know if you wanna go ahead and fix this, but I'd appreciate the opportunity to try this and get some feedback :) My approach is to move the <OfflineNotice /> tag to a prominent position in the app:

...
            <StylesProvider>
              <OfflineNotice />
              <AppWithNavigation />
            </StylesProvider>
...

Is this the right direction?

borisyankov commented 6 years ago

Go ahead, I am investigating the other issues :)

One issue might be that the state might not be initialized correctly if starting from the offline state.

Also, on the OfflineNotice being moved up the chain that looks reasonable, but I think it will show above our top navigation UI which wouldn't look good. Not a bad idea to try it.

roberthoenig commented 6 years ago

untitled

This is what I have now. I don't think it looks good, but it doesn't look bad either. One advantage this top display has that it doesn't change position over different screens.

I tried to animate it on appearance and disappearance, without success so far.