Open mariiaovs opened 2 months ago
As a family member,
I want to be able to add comments to tasks,
so that I can provide additional context, updates, or instructions related to the task.
feature/add-comments-to-task
comments
Comment
db/models/
taskSchema
Task
CommentForm
Comments
Task Comments
Value Proposition
As a family member,
I want to be able to add comments to tasks,
so that I can provide additional context, updates, or instructions related to the task.
Description
Acceptance Criteria
Tasks
feature/add-comments-to-task
.comments
in database.Comment
indb/models/
.comments
to ataskSchema
for database and populate aTask
with it by handling a "GET" request for a task in pages/api/tasks[id].js.CommentForm
with the necessary properties and handleSubmit function and style the component.Comments
component with the list of comments and style it.Comments
component andCommentForm
in `pages/[id]/index.js in a section with a headline "Comments"