web icon indicating copy to clipboard operation
web copied to clipboard

Async interactions - fix "hanging" UI during long running actions

Open kulmann opened this issue 2 years ago • 6 comments

Async tasks currently have the tendency of blocking the UI. The also get hibernated by the browser when the tab becomes a background tab.

Needs e.g. web workers / separate threads for:

  • copy
  • move
  • delete (especially in batch)
  • upload

kulmann avatar May 23 '22 12:05 kulmann

Related: we want progress indicators for those interactions, see https://github.com/owncloud/web/issues/6183

kulmann avatar May 23 '22 12:05 kulmann

~~For whoever works on this: have a look at https://github.com/GoogleChrome/workbox first~~

workbox is unmaintained for 10 months now... doesn't look like a good choice anymore.

Look into https://vueuse.org/core/useWebWorker/ instead.

kulmann avatar May 24 '22 08:05 kulmann

When a user deletes a large number of files, the web looks like it is hanging.

  • dialog "delete files" hangs
  • web is disabled while deleting process
  • If we click "cancel" button -> deleting process will contunue until all files are deleted

ScharfViktor avatar Sep 12 '22 12:09 ScharfViktor

Related: https://github.com/owncloud/web/pull/7902

lookacat avatar Nov 11 '22 09:11 lookacat

Related / a very good reason for Web Workers: https://github.com/owncloud/web/issues/10474

kulmann avatar Feb 12 '24 22:02 kulmann

Needs research first

tbsbdr avatar Apr 24 '24 11:04 tbsbdr

Closing in favour of these stories:

  • https://github.com/owncloud/web/issues/10951
  • https://github.com/owncloud/web/issues/10952
  • https://github.com/owncloud/web/issues/10953

A web worker for deleting files has been implemented already via https://github.com/owncloud/web/pull/10916.

JammingBen avatar May 23 '24 08:05 JammingBen