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

Display challenge rules on the challenge page #15581

Merged
merged 7 commits into from
Jun 23, 2024

Conversation

bastianpedersen
Copy link
Contributor

@bastianpedersen bastianpedersen commented Jun 23, 2024

Closes #15525.

With font icons With flairs
CleanShot 2024-06-23 at 16 01 24 CleanShot 2024-06-23 at 19 13 35

Suggestions for better suiting icons are welcome.

Comment on lines 96 to 100
case GameRule.noAbort => ("Abort not allowed", Icon.X);
case GameRule.noRematch => ("No rematch", Icon.InfoCircle);
case GameRule.noGiveTime => ("No giving of time", Icon.Clock);
case GameRule.noClaimWin => ("No claiming of win", Icon.InfoCircle);
case GameRule.noEarlyDraw => ("Early draw not allowed", Icon.OneHalf);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These likely needs to be translated?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Eventually, but not in the initial PR.

@ornicar
Copy link
Collaborator

ornicar commented Jun 23, 2024

You're on the right track.
Maybe use flairs instead of font icons, you'll have a lot more choice.

iconFlair(Flair("objects.hourglass-done"))

@ornicar ornicar marked this pull request as ready for review June 23, 2024 18:26
@ornicar ornicar merged commit 030bee9 into lichess-org:master Jun 23, 2024
4 checks passed
@ornicar
Copy link
Collaborator

ornicar commented Jun 23, 2024

Thanks! Now we need this

@bastianpedersen bastianpedersen deleted the display-challenge-rules branch June 24, 2024 08:31
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.

Show challenge rules on the challenge page
2 participants