allen-cell-animated / timelapse-colorizer

A web-based, time-series visualizer for tracked segmented data.
Other
8 stars 1 forks source link

View local datasets/directories #376

Open ShrimpCryptid opened 3 months ago

ShrimpCryptid commented 3 months ago

Use Case

Allow users to load local datasets or collections by either picking a directory or dragging and dropping a directory into the browser

Acceptance Criteria

Possible APIs here: https://web.dev/patterns/files/open-a-directory Note that there's a modern version which is only available in Chromium browsers. We'll likely need to use a fallback or use the old webkitdirectory API.

Details

ShrimpCryptid commented 3 months ago
ShrimpCryptid commented 2 months ago

There is a working prototype for this but the PR is currently in draft because there are some big differences in the user experience by browser. See this ticket for more detail: https://github.com/allen-cell-animated/timelapse-colorizer/issues/379

The crux is that loading very large datasets over a network drive can be extremely slow and is not a cancelable operation, even when refreshing the page. On certain non-Chromium browsers (Safari, Firefox) this gets even worse because we cannot tell how many files need to be loaded.