Skip to content

πŸ’¬ Implement Comment FeatureΒ #15

@sensasi-delight

Description

@sensasi-delight

Enable users to comment on posts, allowing discussion and feedback within the community.
This feature should support threaded replies (optional for v1) and contribute to engagement metrics used in Leaderboard.


βœ… Tasks

  • Database / Logic

    • Create Comment model linked to Post and User.
    • Support nested/threaded comments (optional for first release).
    • Track timestamps (createdAt, updatedAt).
  • UI/UX

    • Add comment section below each post.
    • Input field for writing comments (authenticated users only).
    • Show list of comments with user info, time, and content.
    • (Optional) Show reply button for threaded discussions.
  • Fullstack Implementation

    • Implement server actions for creating and deleting comments.
    • Integrate comment count into post preview cards.
    • Ensure only authors of a comment or moderators can delete.
  • Testing & QA

    • Unit tests for comment creation/deletion.
    • Integration tests for post + comment display.
    • UI tests for writing and deleting comments.

🏁 Acceptance Criteria

  • Authenticated users can comment on posts.
  • Comments are displayed with author info and time.
  • Comment count is visible on each post.
  • Moderators can remove inappropriate comments.
  • (Optional) Nested comments are supported for deeper discussions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    πŸ“ POST & INTERACTIONSCore features like creating posts, editing, deleting, commenting, and liking.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions