-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
BSoC'24Issues available during BSoC 2024Issues available during BSoC 2024difficulty - hardenhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
The blogs model has a field 'upvotes' but currently it is not being used anywhere. Now that detailed blog pages are ready at '/blogs/' and general page at '/blogs' is almost done, we need to add an upvotes button for blogs.
Describe the solution you'd like!
Since currently we only have a detailed blog page for every blog at /blogs/<id>, so let's start the solution from there and when the basic setup is done, we can easily do it for blogs on /blogs page as well. The solution might include :
- Making a new model upvotes, for mapping blogs and the user that upvoted it.
- Use Ajax to update the upvote count dynamically without requiring a page reload.
- User must be logged in to upvote a blog.
- There is no need for a separate downvote button. If a user has upvoted a blog, simply deselecting will undo the upvote.
- When the blog page at
/blogsis ready, will be adding the feature there as well.
Describe alternatives you've considered
Feel free to suggest!
Developer Help
Feel free to ask for help incase of any doubt.
Metadata
Metadata
Assignees
Labels
BSoC'24Issues available during BSoC 2024Issues available during BSoC 2024difficulty - hardenhancementNew feature or requestNew feature or request