Skip to content

Add shuffle button to randomize Featured Players on Database search page - #611

Draft
benckx with Copilot wants to merge 2 commits into
masterfrom
copilot/add-randomize-featured-players-button
Draft

benckx with Copilot wants to merge 2 commits into
masterfrom
copilot/add-randomize-featured-players-button

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor

The "Featured Players" panel on the Database search page showed a static list with no way to discover other players. A 🔀 button now lets users re-roll the list on demand.

The backend listRandomFeaturedPlayers() already .shuffled() results on every call — this is purely a frontend change.

Changes

  • database_search.html — Wrap the <h2> and new 🔀 anchor in .featured-players-header
  • database-search.js — Add field ref + click listener that calls #fetchFeaturedPlayers() (with preventDefault())
  • database-search.css — Flex layout for .featured-players-header; move margin-bottom from h2 to container; mobile scaling for the button

Copilot AI linked an issue May 13, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add button to randomize featured players on database search page Add shuffle button to randomize Featured Players on Database search page May 13, 2026
Copilot AI requested a review from benckx May 13, 2026 12:11
Copilot finished work on behalf of benckx May 13, 2026 12:11
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.

little button to randomize "featured players"

2 participants