boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Users can add comments to posts - implement functionality #122

Closed fatimaahmed14 closed 1 year ago

fatimaahmed14 commented 1 year ago

Requirements

Post comments

UI Approach

Code structure

Wireframe

image

dogezen commented 1 year ago

I am assuming you'll be using utils/client.js to send requests.

Can you detail the ENDPOINTS and example PAYLOAD to be sent to the API for a) creating a comment; b) editing a comment?

Where will the state for the comments be stored? Where is CommentList being instantiated?

fatimaahmed14 commented 1 year ago

Where will the state for the comments be stored? I don't know if you have seen but we have said above in the issue , the the comments state will be stored within the Post's state

georgeroth commented 1 year ago

Comments JSX template has been created, ready to receive functionality.

georgeroth commented 1 year ago

Comments are now displaying under posts. We will need the actual post component to be ready to be able to plug the real comments into but it should be fairly straightforward. image

georgeroth commented 1 year ago

Editing and deleting comments have been implemented: https://www.youtube.com/watch?v=qSNZywr4jgo