Skip to content

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) ?

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

@yafred yafred deleted the issue-16786-hide-results-in-single-board-view branch January 21, 2025 11:14
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