Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USER STORY: Delete own task #17

Closed
7 tasks done
blahosyl opened this issue Jul 30, 2024 · 0 comments
Closed
7 tasks done

USER STORY: Delete own task #17

blahosyl opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels
e: manage tasks Epic: Manage tasks p: could have Priority: Nice to have

Comments

@blahosyl
Copy link
Owner

blahosyl commented Jul 30, 2024

As a Logged-in User,

I want to delete tasks owned by me or assigned to me,

so that remove tasks that are not needed or were created in error

Acceptance Criteria

  1. The Delete task icon is only visible to users who own or are assigned to the task
  2. Clicking the Delete task icon loads a confirmation modal
  3. Clicking Confirm deletes the Task instance from the DB
  4. Clicking Cancel takes the user back to the task
  5. The user receives visual confirmation of the deleting of the task
  6. Tasks

  • add & style edit/delete dropdown
  • import useHistory
  • add handleDelete function:
    • make call to delete(/tasks/${id}/)
    • use History to go back to previous page after deletion
  • pass the handleDelete function to MoreDropdown (in Task.js)
  • check that task instance is deleted from API
  • add confirmation modal, check that it works as intended
  • give visual confirmation to the user of deleting the task USER STORY: Confirm Create/Edit/Delete Completion/Cancel #29
@blahosyl blahosyl self-assigned this Jul 30, 2024
@blahosyl blahosyl moved this to Todo in Task Manager Jul 30, 2024
@blahosyl blahosyl added e: manage tasks Epic: Manage tasks p: must have Priority: Part of the MVP labels Jul 30, 2024
@blahosyl blahosyl added p: should have Priority: High value but not crucial p: could have Priority: Nice to have and removed p: must have Priority: Part of the MVP p: should have Priority: High value but not crucial labels Jul 30, 2024
@blahosyl blahosyl moved this from Todo to In Progress in Task Manager Aug 1, 2024
blahosyl added a commit that referenced this issue Aug 1, 2024
- import useHistory
- add `handleDelete` function:
  - make call to `delete(/tasks/${id}/)`
  - use History to go back to previous page after deletion
-  pass the `handleDelete` function to `MoreDropdown` (in `Task.js`)
- check that task instance is deleted from API
@blahosyl blahosyl moved this from In Progress to Done in Task Manager Aug 1, 2024
@blahosyl blahosyl closed this as completed by moving to Done in Task Manager Aug 1, 2024
blahosyl added a commit that referenced this issue Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e: manage tasks Epic: Manage tasks p: could have Priority: Nice to have
Projects
Status: Done/Won't do
Development

No branches or pull requests

1 participant