TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
960 stars 301 forks source link

Combine multiple fetching processes during initial site setup into one #1564

Closed kschiffer closed 3 years ago

kschiffer commented 4 years ago

Summary

Consecutive fetching processes in the console during initial load should be combined in a way that the user only sees one spinner for the entire loading sequence.

Why do we need this?

The experience on page load is currently quite disruptive. One can see multiple loading spinners appearing and disappearing until all page parts have been loaded. It would be better to display a single loading process.

What is already there? What do you see now?

Spinners being displayed during different fetching processes.

What is missing? What do you want to see?

A way to show only one loading spinner until all necessary fetches to display the page have been made.

Environment

Browser.

How do you propose to implement this?

I think this could be quite challenging to pull off but would be interested in your opinion @bafonins.

Can you do this yourself and submit a Pull Request?

If we can find a way to implement this, then yes.

bafonins commented 4 years ago

What pages in the console suffer from this?

kschiffer commented 4 years ago

About any page, but most noticeable on device subpages, e.g. device overview. On that page, you can see three separate loading spinners appearing consecutively. (Initial page load after refresh)

kschiffer commented 3 years ago

I don't deem this necessary anymore.