yaptide / ui

Yet Another Particle Transport IDE - frontend
https://yaptide.github.io/web_dev/
GNU General Public License v3.0
9 stars 4 forks source link

Progress when loading files via URL #988

Open grzanka opened 1 year ago

grzanka commented 1 year ago

Loading large (>20MB) results files via URL could take significant (>10s) time on slow connections (i.e. LTE). Users see just static app state and are not sure if yaptide is downloading the results.

Would it be possible to display progress bar (or any other information) explaining the user that we are downloading large projects ?

Take a look at https://yaptide.github.io/web_dev/?https://raw.githubusercontent.com/grzanka/plotly_lgad_dosimetry/main/montecarlo/shield-hit12a/results_bp.json

as an example

grzanka commented 1 year ago

@grzanka I should provide new JSON file to reproduce this issue

grzanka commented 1 year ago

The converter to use is here: src/ThreeEditor/examples/migrations/migrateEx0.7_0.9.js

grzanka commented 1 year ago

Check this file instead:

1685980057383_results_bp.zip

grzanka commented 6 months ago

See JSROOT code for inspiration: https://github.com/root-project/jsroot/blob/7a64fb096d51bfa7e87bf36789e0206f78b08d4c/modules/io.mjs#L2685

grzanka commented 6 months ago

To see progress in action take a look at https://jsroot.gsi.de/dev/?file=https://s3.cloud.cyfronet.pl/datarawlv2v4/20231204m2/64nA.slim.root&progress=modal&item=channel_0/negative&opt=total_segment_no::peak_length_ns%3E0.2;accum:3000000