-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 possibility to hide user's and opponent's ratings ONLY when playing #16228
base: master
Are you sure you want to change the base?
Add possibility to hide user's and opponent's ratings ONLY when playing #16228
Conversation
…oardMove or voiceMove pref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked out the PR and tested the changes. Below are some findings I wanted to capture for notice and consideration for you and other reviewers.
-
If this preference is enabled and and you are sent a challenge, the rating is still displayed on the challenge popup which spoils the opponents rating before possibly accepting:
-
Same issue as above but on the "Play with a friend" challenge link:
-
There is a placeholder gap on the powertip popup which shows user ratings which I recommend cleaning up (the existing hide ratings feature already does this, so I recommend looking at how it does that):
-
This new setting "Show player ratings while playing your games" is similar to the existing setting "Show player ratings" but it's under a different preference screen ("Preferences -> Game Behavior" vs "Preferences -> Display").
-
To me, it would make sense for these two rating settings to be combined (how Zen mode is) since you will only ever have one of these settings activated at a given time:
example:
Totally right thanks for the review, I will work on these changes when I have time :) I'm just not sure if the challenges and "Play with a friend" can confuse users because they are not in-game yet so I don't really know if we should or not hide the ratings there. |
…lafhal/lila into show-opponent-rating-pref
…one being logged, aka me
…ow-opponent-rating-pref
…lafhal/lila into show-opponent-rating-pref
For the user tooltips space problem, it is when checking one outside of the game page, so most likely not the opponent's one. Should I fix the space or let the user see the ratings on the user tooltips of users that are not him or his current opponent while he is in game ? I am still not sure what ratings we should and shouldn't hide for this feature. Same thing for the crosstable games, it's old games and old ratings, knowing that we already show the opponent rating once the game ends, should I hide it or let it ? |
|
Perfect, I'll work on it ! |
I made the crosstable games not reveal the ratings anymore. It works fine now. But I'm struggling a bit with showing the ratings outside the current game page. It hides the ratings in two places : the users minis and the games minis. So if you are currently in game, even if you leave the game page, you are not able to check another user's rating via his mini (in the homepage etc). I don't really know how to make it depend on the current page. I thought about the "playing" or "no-rating" classes that are set on the html body, but I think it's a weird approach. And even with that, it doesn't remove the classes in the game page directly after ending, it requires a refresh. Let me know if you have an idea or opinion about how to deal with this. |
I see that the current implementation relies on As a result I think the current implementation cannot work. Instead it should probably rely on CSS-only tweaks, using the |
Resolves #15632
I added a new game behavior preference that lets the user decide whether to show or not his rating and his opponent's rating while he is in game. Once the game is ended, the ratings are showed again. This lets users have both the possibility to see ratings throughout the website (analysis, watching games, challenges, profiles, ...) and the possibility to focus while playing without seeing and thinking of the ratings.
What can be added : Translations for other languages for the new preference