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

Sort by Rating #4

Open
justinormont opened this issue Nov 28, 2023 · 1 comment
Open

Sort by Rating #4

justinormont opened this issue Nov 28, 2023 · 1 comment

Comments

@justinormont
Copy link

Currently the extension only sorts by the total number of reviews (an indication of popularity).

An indication of quality would be helpful, namely the average user rating.

Choices for UX:

  • Implement additional configuration page -- https://developer.chrome.com/docs/extensions/mv3/options/
  • Create an additional button -- [sort by count] & [sort by average]
  • Dual use of the existing button -- click once for count sorting; click again for sorting by the average rating
  • Switch fully -- use only sorting by the average; not great for existing users; could have secondary extension

Work:

  • Besides the UX work, extracting the average rating value is just a matter of switching the class name searched for, and using parseFloat instead of parseInt, the rest would remain the same

Further idea:

  • Laplace smoothing to pull restaurants/stores/etc with very few reviews towards either, (1) the average for the results set, or (2) towards a perfect score (which up weights new locations as Yelp does)
@ranrib
Copy link
Owner

ranrib commented Nov 28, 2023

Hi @justinormont, it can be a great addition. Would you like to implement it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants