Skip to content

[feature] SPs [Pictique] (Client): Comments Pane #166

@sosweetham

Description

@sosweetham

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions