You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity