adobe / helix-sidekick-extension

Browser extension for authors on AEM projects
Apache License 2.0
21 stars 37 forks source link

Multiple doc selection on sharepoint does not work with large selections #228

Open mhaack opened 1 year ago

mhaack commented 1 year ago

Description Selecting multiple documents for preview/publish on Sharepoint does not work with large selection sets

To Reproduce See Screenshot: Screenshot 2023-01-12 at 15 16 45

rofe commented 1 year ago

I've noticed it, too. This is due to the fact that we currently rely on DOM elements with aria-selected="true" attributes to collect selected files, but SharePoint optimizes the number of elements it is keeping in the DOM when large lists are being scrolled through, I assume due to performance. It must be keeping the actual selection in memory somewhere, but I doubt there's an easy way to access it from "outside".

For now, I consider this a known issue.

rofe commented 1 year ago

Closing as a known issue for now. We can reopen if a solution emerges.

synox commented 1 year ago

Is this known-issue documented in the docs? What is the workaround?

rofe commented 1 year ago

@synox I documented the limitation here now: https://www.hlx.live/docs/sidekick#bulk-actions The workaround is to preview/publish a large amount of files in smaller badges.

There is currently no known way to fix this, but I'll leave the issue open to encourage contributions from the wider community.

rofe commented 1 year ago

FYI, @ravkiran found out that you get a higher amount of selected items in tiles view (up to ~250), which could help make the workaround to preview/publish in batches a bit less painful.