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

Allow users to upvote/downvote reviews #2

Open
nathanmsmith opened this issue Jul 24, 2022 · 0 comments
Open

Allow users to upvote/downvote reviews #2

nathanmsmith opened this issue Jul 24, 2022 · 0 comments
Labels
enhancement New feature or request rails

Comments

@nathanmsmith
Copy link
Member

Right now, we display all reviews for courses in a random order. It'd be nice if we could sort reviews by "helpfulness", where helpfulness is defined as the most upvotes a review has.

A user must be logged in in order to up/downvote. We should have a modal pop-up telling users to log in if they aren't logged in.

There will be a frontend and backend component to this feature.

Frontend

Add upvote and downvote icons to icons. These icons should trigger AJAX requests so that the review can be voted upon. It may make sense to convert the review component to React. Talk to me and @TimothyGu about this.

Order the reviews to be sorted by upvotes.

Backend

Update the reviews modal to allow it to have up and down votes. This could be done via a gem or a home-rolled solution. Talk to me and @TimothyGu about the tradeoffs of each before implementing. See the following:

@nathanmsmith nathanmsmith added enhancement New feature or request good first issue Good for newcomers rails labels Jul 24, 2022
@nathanmsmith nathanmsmith removed the good first issue Good for newcomers label Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rails
Projects
None yet
Development

No branches or pull requests

1 participant