-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add spinner gif to display instead of No results while data is loading #573
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @grmbyrn I think this solves a different problem now.
The issue #411 was solved here.
Anyway, this PR is still useful because you see the spinner while the app is getting the list from the API. Althougth, that should be fast.
We can merge it but some E2E tests are failing.
Hi @josecelano I realised after I'd made the PR that this was referring to another part of the app, but I was seeing 'No results.' flash on my screen while it was getting the list so thought the spinner would suit there. As for the E2E tests, I've been going through it and trying to find a solution but new errors keep coming up. I haven't done much E2E so maybe it's just something I need to look at more. |
Hi @josecelano the E2E tests seem to be passing now that I changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @grmbyrn the spinner should be shown only when the client is fetching data from the API. If the result is empty after making the request, we should keep the old message "No results". Otherwise people might think there is a problem with the app (API, connectivity, ...)
On the other hand, I don't know if a spinner is the best solution. We wanted to use skeletons. See #411.
I added
spinner.gif
totorrents.vue
to display instead ofNo results
, which currently flashes on the screen when torrents are being loaded as mentioned here.