thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
752 stars 65 forks source link

Faster visual feedback when Thunder can't connect to the server #1427

Open K4LCIFER opened 1 month ago

K4LCIFER commented 1 month ago

Is Your Feature Request Related to a Problem?

If Thunder is unable to connect to the server, it shows a blank screen with unresponsive buttons. After quite a long period of time it will respond with the "unable to load" screen.

https://github.com/thunder-app/thunder/assets/7829231/941443a9-cafe-415e-aef4-cda1c3b3dc5f

Feature Description

Prior to the "unable to load" screen, thunder should show the spinning icon, as it tries to connect. The buttons at the bottom should possibly be greyed out/unusable — it is confusing to the user if the buttons are trappable, and nothing happens.

Alternative Solutions

No response

Additional Context

No response

micahmo commented 1 month ago

For devs: I believe this is related to the initial calls we make to the instance before loading the feed. We might just need to add another CircularProgressIndicator depending on the state.