ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Navbar "Delete All Tasks" triggers even when no tasks exist

Open LipikaAggarwal opened this issue 11 months ago • 0 comments

Description

Currently, the "Delete all tasks" option in the navbar can be triggered even when there are no tasks available for the selected user. This leads to confusing behavior, as the user expects an action only when tasks actually exist.

Expected Behavior

  • The delete action should only run when tasks are present.
  • If no tasks exist, the user should be clearly informed with a message or toast.

Actual Behaviour

  • The delete action is still triggered even when no tasks exist.
  • There is no clear indication that there were no tasks to delete.

Steps to Reproduce

  1. Select a user/email that has no tasks.
  2. Click on "Delete all tasks" from the navbar.
  3. Observe that the delete action is triggered even though no tasks exist.

Environment

  • Browser: (e.g., Chrome)
  • OS: macOS

Bug Screenshots

When no tasks exist and delete is clicked:

Bug Screenshot

Additional Context

This results in a confusing user experience, as users may think their data was deleted when no tasks were actually present. Adding a guard with a user-facing message improves clarity and UX.

LipikaAggarwal avatar Dec 09 '25 08:12 LipikaAggarwal