AkshitLakhera / PenCraft-Full-Stack-Blogging-Application

PenCraft: React frontend, Cloudflare Workers backend. Features Prisma for DB, JWT for auth, and Tailwind CSS with Aceternity UI components for styling. Simplifying blogging with efficiency.
https://pen-craft.vercel.app
MIT License
26 stars 51 forks source link

Feature Request: Nested Comment Functionality #38

Open AkshitLakhera opened 1 month ago

AkshitLakhera commented 1 month ago

Feature Request: Nested Comment Functionality

Description: Implement a nested (threaded) comment system similar to Reddit. This would allow users to reply to specific comments and create a hierarchical structure for better discussion flow. Feature Details:

1)  Users should be able to reply to comments, which will create a nested thread.
2)  Each reply should be indented under the parent comment to visually distinguish hierarchy.
3)  There should be no limit to how deep the nesting can go.
4)  Option to collapse or expand threads for better navigation of lengthy discussions.
5)  Add functionality for sorting comments (e.g., by newest, oldest, most upvoted).

Suggested Approach:

1) Frontend: Update the comment component in React to support nested comments, with proper styling using Tailwind CSS. 2) Backend: Update the Postgres schema to store parent-child relationships for comments. Add API endpoints for fetching nested comments. 3) UI/UX Ensure clear visual distinction for nested threads and add user-friendly controls (expand/collapse).

I was working on this issue earlier but wasn't able to complete it , first understand the code base and you are ready to go.

github-actions[bot] commented 1 month ago

πŸ‘‹ Thank you @AkshitLakhera for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

Abhishek123a45 commented 1 month ago

Can I work on it 😎

AkshitLakhera commented 1 month ago

Can I work on it 😎

go for it , I am assigning to you. Feel free to reach me if any help needed.

AkshitLakhera commented 1 month ago

Can I work on it 😎

go for it , I am assigning to you. Feel free to reach me if any help needed.

Update me with your progress.

VarunChopra11 commented 1 month ago

Hi @Abhishek123a45,

I think we can work together on this issue since it's a bit complex and could use both of our inputs. Let me know if you're okay with it, so @AkshitLakhera can assign it to both of us.

Abhishek123a45 commented 1 month ago

@VarunChopra11 Yes, let's do it. I think we can divide the work.

VarunChopra11 commented 1 month ago

@VarunChopra11 Yes, let's do it. I think we can divide the work.

Yes, let's connect here's my discord tag: varunchopra11 #2845

AkshitLakhera commented 1 month ago

@VarunChopra11 @Abhishek123a45 I have assigned this issue to both of you , collaborate together and work on this.Do let me know if any help needed from my side.

Abhishek123a45 commented 1 month ago

@VarunChopra11 sent you friend request on discord. Let's meet tomorrow @10

Abhishek123a45 commented 1 month ago

@AkshitLakhera Sign in is not working what should I do now. I am about to complete the functionality.

AkshitLakhera commented 1 month ago

@AkshitLakhera Sign in is not working what should I do now. I am about to complete the functionality.

run it locally , the deployed one is not working because I have exhausted all the limits.