GSTT-CSC / hazen-web-app

Interactive web-based implementation of hazen
Other
0 stars 0 forks source link

Add task progress indicator and trigger page refresh once done #80

Open heyhaleema opened 2 years ago

heyhaleema commented 2 years ago

Currently, when a user selects a task to be performed, they are taken to the result page and need to manually refresh this page in order to see the result generated.

We should indicate when the task is still running and trigger a page refresh once it is done, e.g. a spinner.

Lucrezia-Cester commented 1 year ago

When a user selects the task, they are not taken to the results page, the user stays on the workbench.html.

I propose: 1)Once a task is run, the user is redirected to the reports.html page 2) A spinner is shown 3) User doesn't need to refresh page

tomaroberts commented 1 year ago

We definitely need a better solution to this, although I'm not entirely sure what yet. Currently, when you press to run a Task, the user is automatically scrolled to the top of the page, which is quite annoying because you have to scroll back down to the area where you were working after each task.

Also there is no feedback to the user that the Task is running. This is particularly problematic for Tasks which take >15 seconds because it is not clear to the user whether the Task is running or has crashed, or what the status is.