-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Reply To Comments #3
Comments
Hi @gupta-ji6, I'm sorry for the late reply. I'm currently working on a hosted version of this project in which I plan to implement reply to comments functionality. The project itself should be released in 2-3 weeks, and the reply functionality in another 2-3 weeks. As for this project, I definitely won't have time to work on it right now, so the contributions are most welcome! I've been thinking about this functionality while building it for the first time, and here what I've wanted to do:
Example:
Hope it makes some sense 😅 Let me know if you have more questions! |
Hey @beerose . Awesome work here. Were you able to implement reply? Is it available now? |
Not yet, but I got some more messages about it, and plan to work on it this weekend. Would you be more interested in "one-level" replies or "multi-level" replies? I wrote a blog post about it here: https://www.aleksandra.codes/comments-db-model, not I just need to apply it 😅 |
I saw your blog earlier. Some good stuff but it might take me some time to absorb in my schedule. I think it'd be easier to start with one-level. E.g. blog posts where readers drop comments and the author replies, or product pages where potential customers ask questions, and the admin can reply only (suits my use case too, lol). Maybe there can be a prop or a CLI which asks the Dev which one they prefer? |
Hmm, let's do one-level first (didn't have anyone asking for multi-level yet 😅, and it'll take less time..), and later we can think about multi-level! |
Sounds good. Any way I can help out? |
@beerose single level replies are good enough for the start and supports most of the cases 💯 Let me also know if I can contribute in any way 🙌🏻 |
@SaadBazaz @gupta-ji6 thank you! I guess there are a few things to do:
As for 1., there are multiple options and questions:
Could you describe what would be the best API for you? As for the DB, I suggest adding a new column called |
Technically, a reply is a comment only so adding it to the
For a starter, I think we can automatically fetch replies to the comment (or give a boolean param for it).
|
First of all, thank you so much for building and open sourcing
use-comments
. I love how simple it is to setup!I would love a way to add replies to a particular comment. If someone asks a question, then we can publicly answer them or say thanks maybe.
Happy to make a PR myself if you can guide me a bit & help me get started.
The text was updated successfully, but these errors were encountered: