Skip to content
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

proposal: upvote functionality #107

Closed
Tracked by #60
iuioiua opened this issue Apr 21, 2023 · 1 comment
Closed
Tracked by #60

proposal: upvote functionality #107

iuioiua opened this issue Apr 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@iuioiua
Copy link
Contributor

iuioiua commented Apr 21, 2023

#106 is missing upvote functionality. This can be done by having the ▲ be a button that sends a fetch request to /api/vote once clicked, where a table row will be created in a votes table. The votes table will have two columns, user_id and item_id. The rest is self-explanatory.

The status of this button will correlate to whether there is a match for both the logged-in user and the current item ID in the votes table.

The main feed should also sort by amount of votes, from most to least, and display each item's score.

@iuioiua iuioiua mentioned this issue Apr 21, 2023
30 tasks
@iuioiua iuioiua added the enhancement New feature or request label May 3, 2023
@iuioiua
Copy link
Contributor Author

iuioiua commented May 9, 2023

Completed in #154.

@iuioiua iuioiua closed this as completed May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant