-
Notifications
You must be signed in to change notification settings - Fork 4
Labels
enhancementNew feature or requestNew feature or request
Description
Description
would have same infinite scroll as #160
The backend would always return a flat array of comments
structure should look like
{
commentId: comment_id,
replyTo: comment_id | null
message: string
}
if the parent comment id exists, it's going to be a child under an accordion of the comment with that id
otherwise it will be a top level comment
only render top level comments initially, child comments will be fetched and loaded if the user clicks on the comment to see the replies
Reference
reddit comments
code:
https://github.com/sveltejs/sites/blob/master/sites/hn.svelte.dev/src/routes/item/%5Bid%5D/Comment.svelte
https://github.com/NatoBoram/Leanish/blob/main/src/lib/comments/comment_tree.ts
Acceptance Criteria
Comments loaded as defined, look like design
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request