RiceComp413-Fall2022 / Jukebox

0 stars 0 forks source link

Upvote and Downvote Buttons Work #84

Closed rhg1 closed 1 year ago

rhg1 commented 1 year ago

While the buttons work for sending upvotes and downvotes, they do not currently change color to tell the user that they have been clicked. We will implement a backend endpoint that tells a user their upvote/downvote status so that each user can have peristent state. Then we will adjust the front-end code to change the color of the arrows based on this state.

aedancullen commented 1 year ago

85 includes an “upvotesByUser” field (-1/0/1) in the JSON returned by songQueueListen if the userid is provided when listening.