-
-
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
Show or Hide broadcasts results #16650
base: master
Are you sure you want to change the base?
Show or Hide broadcasts results #16650
Conversation
I suppose in no-results mode, clicking a board should lead to the initial position, not the current or final position. |
The toggle state is not persisted yet |
The eval gauges of the current/last position are still visible |
… show-hide-broadcasts-results
The clocks are now also hidden in the boards grid. I made the toggle persistent and made the eval gauges invisible if the results toggle is off. I will try soon to make the click on a board take to the initial position when having the results toggle to off. For the boards grid initial positions, I don't really know what we could do, maybe a blur or a "no spoil" image or something like this ? |
ui/analyse/src/study/multiBoard.ts
Outdated
@@ -29,7 +29,7 @@ export class MultiBoardCtrl { | |||
readonly redraw: () => void, | |||
) { | |||
this.playing = toggle(false, this.redraw); | |||
this.showResults = toggle(true, this.redraw); | |||
this.showResults = storedBooleanProp("study.showResults", true); |
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.
this.redraw
has been dropped? it wasn't necessary?
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.
It seems to be working fine without it, I will test it more to make sure it's not needed.
There's no good solution. We could try empty boards with, yeah, some sort of "no spoilers" ribbon or something |
…ts toggle to false
… show-hide-broadcasts-results
I tried something for the boards, they are now empty (no pieces) and there is a note before the grid telling the user that the previews are empty to avoid spoils. If this solution is good enough, I think we will just have to make the note translatable. |
ui/analyse/src/study/studyCtrl.ts
Outdated
@@ -463,6 +463,10 @@ export default class StudyCtrl { | |||
return false; | |||
} | |||
const componentCallbacks = () => { | |||
if (!this.multiBoard.showResults()) | |||
{ | |||
this.ctrl.userJump(this.ctrl.initialPath) |
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.
according to my tests, this flashes the current position, before reverting to the initial position.
Resolves #14762
My approach is to add a new toggle like the "playing" or "eval" one. If it is set to true (default value), everything is the same as it is currently. If it is set to false, we :
Let me know if I need to change or add something !