Skip to content

USER STORY: Edit own task #16

New issue

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

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

Already on GitHub? # to your account

Closed
8 tasks done
blahosyl opened this issue Jul 30, 2024 · 2 comments
Closed
8 tasks done

USER STORY: Edit own task #16

blahosyl opened this issue Jul 30, 2024 · 2 comments
Assignees
Labels
e: manage tasks Epic: Manage tasks p: must have Priority: Part of the MVP

Comments

@blahosyl
Copy link
Owner

blahosyl commented Jul 30, 2024

As a Logged-in User,

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

so that update information as needed

Acceptance Criteria

  1. The Edit task icon is only visible to users who own or are assigned to the task
  2. Clicking the Edit task icon loads the TaskEditForm
  3. The UI form displays all editable fields of a Task instance populated by the current values
  4. The UI form validates user input
  5. Clicking Submit updates the Task instance in the DB
  6. The user receives visual confirmation of the updating of the task

Tasks

  • add & style edit/delete dropdown
  • import useHistory (if not already done)
  • add handleEdit function:
    • redirect to history.push(/tasks/${id}/edit)
  • pass the handleEdit function to MoreDropdown (in Task.js)
  • write TaskEditForm based on TaskCreateForm USER STORY: Put TaskForm into separate component #102
  • import TaskEditForm to App.js & add route to it
  • check that task instance is updated on API
  • give visual confirmation to the user of editing the task: the updated TaskDetail page is shown
@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 added a commit that referenced this issue Jul 30, 2024
- create `taskData` and `setTaskData` with `useState` hook
- inside `useState`, set defaults for input fields (empty strings or default values, if any)
- destructure all taskData object attributes
- add `value` props to Form.Control components (all editable fields)
- create `handleChange()` function
- add `onChange` prop for `Form.Control` components to use `handleChange()`
@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
- add `handleEdit `function:
  - redirect to `history.push(/tasks/${id}/edit)`
- pass the handleEdit function to `MoreDropdown` (in `Task.js`)
blahosyl added a commit that referenced this issue Aug 1, 2024
@blahosyl blahosyl added the p: must have Priority: Part of the MVP label Aug 4, 2024
@blahosyl blahosyl moved this from In Progress to Todo in Task Manager Aug 4, 2024
@blahosyl blahosyl added blocked Waiting for input or for another work phase to finish and removed p: could have Priority: Nice to have labels Aug 4, 2024
@blahosyl
Copy link
Owner Author

blahosyl commented Aug 6, 2024

Blocked by #86

@blahosyl blahosyl moved this from Blocked/Ongoig to In Progress in Task Manager Aug 7, 2024
@blahosyl blahosyl added blocked Waiting for input or for another work phase to finish and removed blocked Waiting for input or for another work phase to finish labels Aug 7, 2024
@blahosyl
Copy link
Owner Author

blahosyl commented Aug 8, 2024

Blocked #102, #103, #104

@blahosyl blahosyl moved this from Todo to Blocked/Ongoig in Task Manager Aug 8, 2024
@blahosyl blahosyl moved this from Blocked/Ongoig to In Progress in Task Manager Aug 8, 2024
@blahosyl blahosyl removed the blocked Waiting for input or for another work phase to finish label Aug 8, 2024
blahosyl added a commit that referenced this issue Aug 8, 2024
@blahosyl blahosyl moved this from In Progress to Done in Task Manager Aug 8, 2024
@blahosyl blahosyl closed this as completed by moving to Done in Task Manager Aug 8, 2024
blahosyl added a commit that referenced this issue Aug 8, 2024
no change in functionality
blahosyl added a commit that referenced this issue Aug 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
e: manage tasks Epic: Manage tasks p: must have Priority: Part of the MVP
Projects
Status: Done/Won't do
Development

No branches or pull requests

1 participant