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

There is no visual or code information about type of study chapters #17090

Open
Siderite opened this issue Mar 5, 2025 · 7 comments
Open

There is no visual or code information about type of study chapters #17090

Siderite opened this issue Mar 5, 2025 · 7 comments

Comments

@Siderite
Copy link

Siderite commented Mar 5, 2025

Right now people can choose between four different types of study chapters, but there is no visual indicator or CSS class about which is which. Moreover, that information is not even available in the study.list.all() chapter list on the JavaScript side.

I think it would be a good idea to address that.

@yafred
Copy link
Contributor

yafred commented Mar 16, 2025

Four different types ? can you enumerate them ? I'd be happy to understand better

@Siderite
Copy link
Author

When you create a study chapter you have a choice between:

  • normal
  • practice with computer
  • hide next moves
  • interactive lesson

Image

I honestly never understood the purpose of practice with computer and hide next moves and I doubt people use them much. My own LiChess Tools extension started as a feature to extend interactive lessons to play all variations.

@yafred
Copy link
Contributor

yafred commented Mar 16, 2025

I see ... thanks

Actually, I discovered the 'Hide next moves' mode while I was reading the source code.

It is used by teachers or coaches: in this mode, only the creator of the chapter will see all the moves in the right hand side view. The moves after the current position are greyed. They are not displayed at all for the spectators of the study.

@Siderite
Copy link
Author

I remember I played with it a bit and it was buggy, or at least it looked like it. Maybe I should look into it some more.

@ornicar
Copy link
Collaborator

ornicar commented Mar 20, 2025

there is no visual indicator or CSS class about which is which

Where would you expect to see such visual indicator? In the chapter list on the left side?

As for list.all() it doesn't have that info, because lichess ui/study doesn't need it atm.

@Siderite
Copy link
Author

Siderite commented Mar 20, 2025 via email

@Siderite
Copy link
Author

Siderite commented Mar 20, 2025

If you want to amuse yourself on my design skills, here:

Image

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

No branches or pull requests

3 participants