riverqueue / riverui

A web interface for River, fast and reliable background jobs in Go.
https://ui.riverqueue.com/
Mozilla Public License 2.0
43 stars 3 forks source link

multi-selectable job rows w/ shift select, actions bar #57

Closed bgentry closed 1 week ago

bgentry commented 1 week ago

This adds checkboxes to each row on the job list, as well as a select/deselect all box on a new header row above the list. Checking any jobs causes the job list to stop refreshing until everything is unchecked.

Depending on the state being viewed, selected jobs can be retried, cancelled, or deleted as a batch. Performing any action on selected jobs causes the TanStack query cache to be invalidated for the job list and the counts by state so those get immediately refetched.

Selection even works with the shift key to select all jobs between the previous one you checked and the one you just checked.

localhost_5173_jobs_state=running localhost_5173_jobs_state=running (1) localhost_5173_jobs_state=running (2)

Fixes #54.

bgentry commented 1 week ago

@brandur I'm gonna get this shipped to the demo and we can fix any remaining issues as follow-ups after testing it out more there. The basics all seem to be working great in my local testing 🚀 :shipit: