-
Notifications
You must be signed in to change notification settings - Fork 62
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
Comments: like, favorite or react to a comment. #537
Comments
How would users un-react to a comment? If clicking on the reaction shows the users who have reacted, should picking the same reaction again, unreact it? In github, clicking the reaction unreacts it, and hovering shows the users... :O/ |
also where best to put the reaction dropdown button? underneath the comment? or to the right of the comment? |
Good questions @squigglybob ,
|
I think underneath next to edit and delete (when they are present) will work the best. |
Purpose: Add clarity and usability to the comments area.
Benefits:
Requirements:
The user can react to any comment on a record.
The user can choose between 6 options of reaction.
If a comment has reactions they will be displayed under the comment. Each reaction icon with a number associated to it.
If the user hovers over (or clicks on for mobile) the reaction icon, it will show a list of users who reacted.
Default reaction options (same as Facebook): thumbs up, heart, laugh, wow, sad face, angry
Customization: add filters to allow for a plugin to add or remove from the list.
Code considerations:
Start with
dt-assests/js/comments.js
,dt-assets/parts/loop-activity-comment.php
,dt-posts/dt-posts.php
anddt-posts/dt-posts-endpoins.php
Reactions will likely be stored in the comment meta. This feature will need to extend the existing comment functions to include getting meta data.
The text was updated successfully, but these errors were encountered: