janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
13.17k stars 1.41k forks source link

Add bulk delete, bulk archive/unarchive, and bulk metadata edit buttons in books table page #3113

Open jmarmstrong1207 opened 3 months ago

jmarmstrong1207 commented 3 months ago

This PR adds the following:

Screenshots below show the workflow for deleting for end-users, but is the same as for archive/unarching in bulk. Read comments below for more screenshots:

Select books

image

Delete books

image

Book list after deletion

image

OzzieIsaacs commented 3 months ago

I prefer to have the buttons for mass delete/unarchive in the top of the table, similar to the ones in the user edit table (.../admin/usertable): image

jmarmstrong1207 commented 3 months ago

Looks like this now. It looks off; is this style good? I'm also thinking of adding bulk read status buttons too in this PR image

jmarmstrong1207 commented 3 months ago

Okay, got it to work. Had to use $(document).on('click', '#id', function....) instead of $('#id').click() for the buttons because adding the buttons within the table header makes them dynamically-added elements.

Also added the bulk read/unread buttons. I have tested it to work, but of course testing yourself would be best image

jmarmstrong1207 commented 3 months ago

Alright, final feature for this PR. I added bulk metadata editing. No more additional features will be added from now on as I've done what I intended to do! image

jmarmstrong1207 commented 3 months ago

Let me know if I am missing anything. Fleshed out basically everything I can think of myself

jmarmstrong1207 commented 3 months ago

@OzzieIsaacs This PR is ready to review now, whenever you're ready

jmarmstrong1207 commented 1 month ago

Do you know if this will be reviewed soon? @OzzieIsaacs