Skip to content

Conversation

@shermansiu
Copy link
Contributor

@shermansiu shermansiu commented Aug 28, 2023

In this example, we are opening up the Personal Opening Explorer player selection modal in the analysis board for Aleksandr vs. Jacob. Aleksandr is already in the search history, whereas Jacob is not.

Before:
LiChess Names Before

After:
LiChess Names After

Please let me know if you'd like me to swap the colours that I'm using for the game participants and the players in the search history.

@shermansiu
Copy link
Contributor Author

To reproduce this error:

  1. Look up a player other than yourself in the Personal Opening Explorer, either in an empty board or in a game where the player is not a participant. Call this player A.
  2. Navigate to a game where player A is a participant. Open up the Personal Opening Explorer.
  3. Notice how there are now two entries for player A.

} else if (ctrl.data.playerName.previous().includes(name)) {
return '';
}
return '.button-metal';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why change the colour for game participants? It seems unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While it would be nice to distinguish between participants whose names are in the search history and those that aren't, using that shade of gray to denote the participants who aren't in the search history can be controversial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Aesthetically-speaking)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since users cannot add participants to the search history, it makes sense to gray out a participant if they are not in the search history.

@shermansiu shermansiu force-pushed the fix/remove-duplicate-searched-by-username branch from bdffdb5 to 1cb2226 Compare August 29, 2023 01:28
@ornicar ornicar merged commit f3b4a31 into lichess-org:master Aug 29, 2023
@shermansiu shermansiu deleted the fix/remove-duplicate-searched-by-username branch August 29, 2023 10:57
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