Skip to content

Add optional profile flag emoji for players - #89

Open
tommy-mor wants to merge 1 commit into
stagingfrom
cursor/profile-flag-emoji-0e5d
Open

Add optional profile flag emoji for players#89
tommy-mor wants to merge 1 commit into
stagingfrom
cursor/profile-flag-emoji-0e5d

Conversation

@tommy-mor

Copy link
Copy Markdown
Contributor

Summary

Players can choose a country flag emoji on their profile. The selected flag appears next to their name on the profile hero and in player table rows across the site (1v1 standings, team rosters, leaderboard, users list, matches, homepage, admin users, and league staff lists).

  • Adds nullable flag_emoji column on users
  • Profile picker dialog (own profile or admin) with searchable country list
  • Shared PlayerLink component for consistent avatar + flag + name display
  • Flag values validated against a curated allowlist

Test Plan

  • Run migration / deploy so flag_emoji exists
  • On your own profile, click Add country flag, pick a flag, save — flag shows next to name
  • Clear the flag via None — flag disappears
  • Confirm flag appears in 1v1 standings row, team roster, /users table, and leaderboard when set
  • Confirm another user cannot change your flag via the form action

Checklist

  • bun run format
  • bun run check
  • bun run boundary-check
  • bun run knip
  • PR targets staging (never master directly)
Open in Web Open in Cursor 

Players can pick a country flag emoji on their profile; it also
shows next to their name in standings, rosters, leaderboards, and
other player table rows.

Co-authored-by: tommy <thmorriss@gmail.com>
@tommy-mor
tommy-mor marked this pull request as ready for review August 9, 2026 16:39
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