-
Notifications
You must be signed in to change notification settings - Fork 1
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
Progress bar for asynchronous requests? #23
Comments
There should be a spinner when things are loading, if it's missing from any of the pages then please let me know. Not sure where the progress info would come from. The explorer asks the api for some results then waits until it gets them |
E.g. https://explorer.openphacts.org/search?query=cocaine The spinner spins while the rows are loaded. When related counts are loaded (pharmacology, pathways) these just happen in the background without the user knowing. E.g. 2 - https://explorer.openphacts.org/compounds/pharmacology?uri=http%3A%2F%2Fwww.conceptwiki.org%2Fconcept%2F13b4b707-8df0-4131-84b4-5433659e6ccf the first load does not have a spinner. The subsequent scroll-down loads do. |
One of the reasons there are no spinners for the related counts is because they might be 0. Is this information also useful? |
I would favour the second possibility. The red counts are getting too much attention for something that's not there (but which is not necessarily an error). Or maybe you could add a search status in the header (next to Compounds 19, Targets 1). Something like: This way the user would know what data is searched, even if no results are found. |
Raised by Jaroslav Martasek / Lilly:
The text was updated successfully, but these errors were encountered: