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

Add review sorting #316

Merged
merged 13 commits into from
Oct 14, 2023
Merged

Add review sorting #316

merged 13 commits into from
Oct 14, 2023

Conversation

js0mmer
Copy link
Member

@js0mmer js0mmer commented May 27, 2023

Description

Added sorting by most recent, top reviews (highest score), and controversial (lowest score). Also added a checkbox to filter to verified reviews only. Also fixed some react key issues after running into one with the array of subreviews. The key being the index caused data to be mismatched among the reviews when sorting them and changing their order. The new key for each subreview in the array is now the review id. Closes #275.

Screenshots

Recording 2023-05-26 at 22 45 18

Steps to verify/test this change:

  • Verify changes work as expected on staging instance

Final Checks:

  • Verify successful deployment
  • Delete branch

(optional)

  • Write tests
  • Write documentation

@js0mmer js0mmer self-assigned this May 27, 2023
Copy link
Contributor

@SenghoungLim SenghoungLim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to work well, good job! Just a nitpicking, on a smaller screen like iPhone X, the verification checkbox is a bit clustered from the sorting menu. I suggest we can have a newline separation and align the check box to the sorting box above. Otherwise, everything looks good.
image

@js0mmer js0mmer force-pushed the jacob/review-sorting branch from 211a8de to 4dd9b08 Compare June 11, 2023 06:50
@js0mmer js0mmer requested a review from SenghoungLim June 11, 2023 07:26
@js0mmer
Copy link
Member Author

js0mmer commented Jun 11, 2023

Everything seems to work well, good job! Just a nitpicking, on a smaller screen like iPhone X, the verification checkbox is a bit clustered from the sorting menu. I suggest we can have a newline separation and align the check box to the sorting box above. Otherwise, everything looks good. image

Good catch. Let me know what you think of it now.

Copy link
Contributor

@SenghoungLim SenghoungLim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks perfect, well done!

@github-actions
Copy link

Deployed staging instance to https://staging-316.peterportal.org

@js0mmer js0mmer merged commit 0c25e3a into master Oct 14, 2023
@js0mmer js0mmer deleted the jacob/review-sorting branch October 20, 2023 18:37
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

Successfully merging this pull request may close these issues.

Order reviews by most recent
2 participants