bepasty / bepasty-server

universal pastebin server
https://bepasty-server.readthedocs.org/
BSD 2-Clause "Simplified" License
192 stars 46 forks source link

easy mass deletion #179

Open ThomasWaldmann opened 5 years ago

ThomasWaldmann commented 5 years ago

currently it is not easy to delete many, selected items:

this should be easier, to make it less tedious for the paste admin to clean up.

MoonlightWave-12 commented 9 months ago

The usual, modern way for handling that would be something like this:

Add a "Select files"-button (or a "Modify files"-button) to a fixed place in the view of a list, so that it can be easily accessed even when scrolling down far. Activating it would allow to (de)select multiple files, and show both "Delete"-, and "(Un)lock"-buttons near the "Select files"-button.

For selecting the files, either add a checkbox (that is large enough for touchscreens) next to every file-entry while "Select files" is on; or make the whole entry (except for the space occupied by other buttons) clickable/tappable to (de)select it.

The "Delete"-, and "(Un)lock"-buttons would then ask for confirmation, before applying the change; or alternatively, allow one to "undo" it (actually just a cancellable countdown until the chosen action happens) for a short time (usually about 5-10 seconds) after clicking/tapping it.

The "Delete"-, and "(Un)lock"-buttons next to every entry could then be removed while "Select files" is off (or even when on), to keep the UI simple, and prevent one from accidentally deleting files while scrolling through the list on a (smartphone-)touchscreen.


One could also add more options to such a selection-system, without cluttering the UI while it is not needed; examples:

ThomasWaldmann commented 9 months ago

Yeah, guess this needs somebody who implements that. :-)

MoonlightWave-12 commented 9 months ago

Yeah, guess this needs somebody who implements that. :-)

Yup. :)

Other ideas:

  1. Always show checkboxes next to entries in a listing when logged in as a user who can delete or (un)lock files.
  2. Add "delete"-, "lock"-, and "unlock"-buttons at the top, next to the other buttons, which delete or (un)lock all selected files. Before deleting files, it should ask for confirmation.