Description:
We need to implement a view that displays a list of comments for a specific post. The comments should be ordered based on their 'hot rank'. In cases where child comments are returned from the API, these should be displayed under their parent comment.
Requirements:
Fetch comments associated with a specific post.
Display comments with child comments where applicable, understanding the hierarchy from the 'path' field (0 is top level, subsequent ids represent parent and child comments respectively).
Fields from API:
comment.id
comment.content
comment.published
comment.path
creator.id
creator.name
counts.score
~counts.upvotes~
~counts.downvotes~
counts.child_count
Acceptance Criteria:
When a user opens a post, they should see a list of comments.
Each comment should show its content, the name of its creator, its score, and its publish date.
If a comment has child comments that were returned from the API, these should be displayed under the parent comment, clearly indicating their relationship.
Description: We need to implement a view that displays a list of comments for a specific post. The comments should be ordered based on their 'hot rank'. In cases where child comments are returned from the API, these should be displayed under their parent comment.
Requirements:
Fields from API:
Acceptance Criteria: