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

Hide broadcast results in the single board view #16799

Merged

Conversation

yafred
Copy link
Contributor

@yafred yafred commented Jan 18, 2025

extends PR #16650

fixes issue #16786

With 'Results' un-checked:

  • Hides the results in the player bars until you reach the end of the game
  • Hides the moves after the current one in the sidebar (jump next and jump last increase the list, jump prev and jump first decrease the list)

@yafred yafred marked this pull request as ready for review January 18, 2025 20:23
@yafred yafred marked this pull request as draft January 19, 2025 01:22
@yafred yafred marked this pull request as ready for review January 19, 2025 02:17
@yafred
Copy link
Contributor Author

yafred commented Jan 19, 2025

A side note: are the checkboxes 'playing' and 'results' necessary in studies (when they are not a broadcast) ?

@@ -223,6 +226,7 @@ export default function (ctrl: AnalyseCtrl, concealOf?: ConcealOf): VNode {
const ctx: Ctx = {
...renderingCtx(ctrl),
concealOf: concealOf ?? emptyConcealOf,
onlyHide: ctrl.study?.relay !== undefined ? true : false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

😖

I don't understand what it does, and I see no functional difference
after removing it.
@ornicar
Copy link
Collaborator

ornicar commented Jan 21, 2025

Did I miss something in that last commit?

@ornicar ornicar merged commit 832f627 into lichess-org:master Jan 21, 2025
2 checks passed
@yafred
Copy link
Contributor Author

yafred commented Jan 21, 2025

Did I miss something in that last commit?

Short answer: no, it is great as it is

Long answer: I added them after I tested with the PGN's from https://lichess.org/broadcast/tata-steel-chess-2025--masters/round-1/HmnX0y6b#boards
The non mainline were still visible even with 'Results' unchecked
This kind of thing ...
image

The fixes you made must have removed the problem

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.

2 participants