monodera / pfs_target_uploader

A web application to validate and upload target lists with pointing simulations for PFS observation
https://pfs-etc.naoj.hawaii.edu/uploader/
MIT License
1 stars 0 forks source link

Add progress bar to the file input widget #192

Open monodera opened 2 months ago

monodera commented 2 months ago

As the web server is located at the observatory, it is expected that users need to wait a bit to finish the file upload. It's not an issue for a relatively small file, but maybe problematic for a large file. It would be nice to have a progress bar of the file upload.

Describe the solution you'd like Add a progress bar for the file upload widget to indicate the progress of the transfer.

Describe alternatives you've considered Just ask users to wait for a while before proceeding to the next steps.

Additional context There is a possibility discussed in the following thread. https://github.com/holoviz/panel/issues/2863#issuecomment-1336340896

I think it's not quite sustainable, so I'd like to wait for being incorporated in Panel. (maybe someone should help to send a PR...)

monodera commented 2 months ago

Another reference: https://discourse.holoviz.org/t/working-file-input-with-progress-update/4665/1

monodera commented 1 month ago

I disable the buttons at start. Once the first file is uploaded, the "validate" button becomes active. 6e940853d884e729dd739c915fac39324f38dce6