WDscholia / scholia

Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
216 stars 78 forks source link

Add a refresh button to each panel #886

Open Daniel-Mietchen opened 4 years ago

Daniel-Mietchen commented 4 years ago

That would

Daniel-Mietchen commented 1 year ago

Some more info on this from the duplicate #2069 :

Is your feature request related to a problem? Please describe. On some Scholia pages, the panels do not all yield results. There could be different reasons for this: (i) the query actually times out, (ii) the query actually finishes but there is some issue with displaying the results. This ticket is about the latter case.

Often in such cases, a simple reload of the entire page via CTRL+R or similar fixes the problem, but despite caching, this may actually trigger several new hits to the Wikidata Query Service, even if only one panel was originally problematic. Even if the originally problematic panel displays fine after reload, the reload may have caused another panel to fail.

Describe the solution you'd like

I think a reload button associated with each panel (perhaps even for the non-WDQS ones like Wembedder) would solve the problem nicely, as it would allow to only reload what needs reloading.

Describe alternatives you've considered

We could have some script check whether the display has been generated successfully

Additional context

The button should ideally be innocuous, only springing to attention if something goes wrong with the visualization. Perhaps it could change color after a check script determined that the panel failed.