GSTT-CSC / hazen-web-app

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

Create reports view and function #78

Closed sophie22 closed 2 years ago

sophie22 commented 2 years ago

(branched off from issue69_improve_workbench) Fill in the report.html and corresponding function in main/routes.py to display existing results/reports. Optional to display a filtered set of reports for a single series or all reports in the Reports table.

sophie22 commented 2 years ago

Currently pages look like this: Workbench: image multiple file upload works via both DropZone and Choose File forms. Hyperlinks correctly redirect, eg from series description to task selection. Task selection: image any task can be selected and running the task works (Celery receives the correct input and result is returned by Hazenlib), SNR task receives the user-input slice width variable for the calculations. Results: once task has completed, user has to refresh results page to actually display results as task is ran asynchronously and thus result is not available instantaneously! image temporary solution to convert list into dict for display in tasks.py, I think longer term output datatype should be standardised in Hazenlib instead. Clicking the "report" hyperlink from the Workbench page takes to the reports page and displays a filtered list of reports made for the selected series: image Clicking the 'Reports' button in the navbar returns an unfiltered list of all reports: image

heyhaleema commented 2 years ago

Closes #73.

heyhaleema commented 2 years ago

Closes #74.