Skip to content

Truncate long game descriptions, and hide full games, on front page#12694

Open
philcampeau wants to merge 3 commits into
tobymao:masterfrom
philcampeau:truncate-long-descriptions-on-front-page
Open

Truncate long game descriptions, and hide full games, on front page#12694
philcampeau wants to merge 3 commits into
tobymao:masterfrom
philcampeau:truncate-long-descriptions-on-front-page

Conversation

@philcampeau

@philcampeau philcampeau commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #10006
Fixes #8658

Before clicking "Create"

  • Branch is derived from the latest master
  • Add the pins or archive_alpha_games label if this change will break existing games
  • Code passes linter with docker compose exec rack rubocop -a
  • Tests pass cleanly with docker compose exec rack rake

Implementation Notes

Explanation of Change

Truncates long game descriptions on the front page, with a 'Show more' text to expand the description upon request.

Screenshots

Before:
image

After:
image

Any Assumptions / Hacks

@philcampeau philcampeau added enhancement New feature or request front page Issues relating front page, login, game creation etc labels May 27, 2026
@philcampeau

philcampeau commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

Updated this to add a Short Desc. button in the Filters section instead of a checkbox. This also modifies the URL allowing people to bookmark that setting on.

@philcampeau philcampeau changed the title Truncate long game descriptions on front page Truncate long game descriptions, and hide full games, on front page Jun 9, 2026
@philcampeau

Copy link
Copy Markdown
Collaborator Author

I've also added a commit that would add another Filter button to hide full games from the New Games list.

Here's the section at the bottom:

image

both new buttons modify the url, so they can be bookmarked.

@philcampeau philcampeau requested a review from ollybh June 9, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request front page Issues relating front page, login, game creation etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add 'expand' option to large cards from games with long descriptions Hide Full games in lobby

1 participant