Open jisie opened 5 years ago
Fetch to get all tasks, fetch after asking a task as complete Additional fetchs - PUT/PATCH, EDIT New task form, 2 inputs - task name, and expected completion date, and a button to save the new task. Task list needs a checkbox for ea. task in the list. Will mark as completed in the db. checkbox e.listener
Edit form for ea task, only able to edit name by clicking on name Stretch goals:
Story
As a user who needs to track tasks, I should be able to enter in a task name, and an expected completion date, and be able to mark them as complete
Acceptance Criteria
Given a user wants to enter a task When the user clicks an affordance for entering a new task (i.e. button or hyperlink) Then a form should be presented to the user with a field to enter in the task name And a field to enter in the expected completion date
Given a user wants to mark a task complete When the user is viewing their task list Then there should be a checkbox next to each task that, when clicked, should mark the task as complete in the database And prevent the task from being displayed in the list
Given a user wants to edit a task name When the user clicks on the name of a task Then the user should be able to edit the name of the task And when the enter key is pressed, the new task name should be saved to the database And the task list should be updated to display the new task name