I want my name and avatar to be displayed with my comments, and to be able to edit and delete only my own comments,
so that I can personalize my interactions and manage my contributions effectively.
Description
Acceptance Criteria
When user posts a comment, their name and avatar should be displayed alongside the comment.
Only the user who wrote the comment should see an "Edit" and a "Delete" button next to their comments, allowing them to modify and delete the comment respectively.
User should not have the ability to edit or delete comments made by other users.
Tasks
[ ] create branch feature/comments-user.
[ ] add an _id from user to comment data when creating a new comment.
[ ] add a field member to the commentSchema in models.
[ ] populate the comment with Member when handling a "GET" request for tasks with comments in the backend.
[ ] render profilePhoto and name from the comment.member object for each comment in the Comments component.
Comments with User
Value Proposition
As a registered user and a family member,
I want my name and avatar to be displayed with my comments, and to be able to edit and delete only my own comments,
so that I can personalize my interactions and manage my contributions effectively.
Description
Acceptance Criteria
Tasks
feature/comments-user
._id
fromuser
to comment data when creating a new comment.member
to thecommentSchema
inmodels
.Member
when handling a "GET" request for tasks with comments in the backend.profilePhoto
andname
from thecomment.member
object for each comment in theComments
component.