ccsync
ccsync copied to clipboard
Navbar "Delete All Tasks" triggers even when no tasks exist
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
- Select a user/email that has no tasks.
- Click on "Delete all tasks" from the navbar.
- 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:
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.