Feature Request: Reply To Comments
See original GitHub issueFirst 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.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
10 Tips for Responding Graciously to Customer Feature ...
10 Tips for Responding Graciously to Customer Feature Requests · 1. Be open and honest · 2. Be grateful for their effort ·...
Read more >Feature request response email templates
Feature requests are messages that customers send to inquire about a feature that is not included in your product or service.
Read more >10 Tips to Improve Your Feature Request Responses
Feature requests are the best way to improve your product. Here are ten tips to make the most out of them.
Read more >What Is a Feature Request? Definition and Examples
A feature request is a comment, message, or ask from a user to implement a specific feature into your product. Feature requests can...
Read more >Feature Request Template: How to Collect User Feedback ...
Customer support team – Can ask users to fill out the feature request template if their concerns are related to adding new product...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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:
comments
table:parentComment
orparentId
.Example: Take this GitHub issue as an example. If your comment is the “main comment”, and my response is a “reply to a comment”, then the information would be stored somewhat this way:
Hope it makes some sense 😅
Let me know if you have more questions!
@SaadBazaz @gupta-ji6 thank you!
I guess there are a few things to do:
As for 1., there are multiple options and questions:
addComment
function, with, for example, additionalreplyTo
field, or should it be an additional method:addReply
?includeReplies
option andfetchReplies(parentCommentId)
?Could you describe what would be the best API for you?
As for the DB, I suggest adding a new column called
parent_id
orreply_to
, and then when fetching “base” comment we would exclude the ones withparent_id
being filled.