Skip to content

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

@LipikaAggarwal

Description

@LipikaAggarwal

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:

Screen.Recording.2025-12-09.at.2.06.05.PM.mov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendSomething isn't working on the frontendgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions