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

Adding LocalUserVoteDisplayMode for saving, and displaying votes. #1529

Merged
merged 5 commits into from
Jun 7, 2024

Conversation

dessalines
Copy link
Member

@dessalines dessalines commented May 31, 2024

Samples:

Screenshot_20240530_203452_AVNC_1

- This uses the newly added field to LocalUserView above, to display
  votes according to your preferences.
- Its also backward compatible, so if that setting is missing, it'll
  use Upvote + Downvote by default.
- Fixes #1400
@dessalines dessalines requested a review from MV-GH as a code owner May 31, 2024 00:40
@MV-GH
Copy link
Collaborator

MV-GH commented Jun 3, 2024

I should have time Wednesday to review this

@dessalines
Copy link
Member Author

Cool, no rush.

} ?: run {
defaultMode
}
res.data.my_user?.local_user_view?.local_user_vote_display_mode ?: LocalUserVoteDisplayMode.default()
Copy link
Member Author

Choose a reason for hiding this comment

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

This one should be okay, because the default in your API is null.

Copy link
Member Author

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Good call, I updated.

@dessalines dessalines requested a review from MV-GH June 7, 2024 12:54
@dessalines dessalines merged commit 3a62671 into main Jun 7, 2024
2 checks passed
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.

Add a Full vote display mode? And what should be the default?
2 participants