ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Bulk Task Actions: Select & Complete/Delete Multiple Tasks

Open its-me-abhishek opened this issue 1 year ago • 5 comments

Description: Implement bulk task actions in CCSync so users can select multiple tasks and mark them as completed or deleted.

Requirements / Steps:

  • Add a small checkbox on the left of each task row in the table.
  • Add a “Select All” checkbox in the table header row to select/deselect all tasks.
  • Maintain a state containing only the UUIDs of selected tasks.
  • When one or more tasks are selected, display a floating/top button panel with:
    • “Mark as Completed”
    • “Delete”
  • On clicking either button:
    • Show a confirmation dialog to the user.
    • Upon confirmation, trigger a job that calls a new backend endpoint (POST /complete-tasks or /delete-tasks) to mark multiple tasks as completed or deleted.
  • Ensure this endpoint handles multiple UUIDs in a single request.
  • Keep the UI responsive and show a loader or feedback while the operation is in progress.

Acceptance Criteria:

  1. Tasks can be individually selected.
  2. “Select All” works correctly.
  3. Selected tasks’ UUIDs are stored in frontend state.
  4. Confirmation dialog appears before completing or deleting tasks.
  5. Backend endpoint successfully updates multiple tasks in one request.
  6. UI updates immediately after operation.

Notes:

The backend endpoint should be distinct from complete-task (single task), and delete-task (multiple tasks) and handle arrays of UUIDs.

Consider edge cases: no tasks selected, partial failures, network errors.

its-me-abhishek avatar Nov 13 '25 16:11 its-me-abhishek

Hi @its-me-abhishek, I’ve completed all my currently assigned issues. If this one is available, I’d be happy to work on it.

ShivaGupta-14 avatar Nov 13 '25 16:11 ShivaGupta-14

Hi, I am unable to continue working on this issue. Could you please unassign me? Thank you!

JANAKIRAM218 avatar Nov 20 '25 00:11 JANAKIRAM218

@its-me-abhishek I’ve almost completed the work and am currently writing the test cases. I’ll submit a PR shortly.

ShivaGupta-14 avatar Nov 20 '25 04:11 ShivaGupta-14

@its-me-abhishek If this issue has not been resolved yet, I would like to work on it. Please assign it to me if possible!

ParasKhandelwal1616 avatar Dec 08 '25 13:12 ParasKhandelwal1616

@ParasKhandelwal1616 this issue has a PR that is drafted for now. Probably needs to be re-done once #236 is merged. Can checkout #188 as this is a priority issue, and #166 as well. Apart from that can create your own issue, will assign if it is valid. Meanwhile you can star the repo to stay updated with any new issues.

its-me-abhishek avatar Dec 08 '25 13:12 its-me-abhishek