Skip to content

feat: pick a court by country and city in the game form - #152

Merged
denis1011101 merged 1 commit into
mainfrom
fix/court-picker-country-city
Aug 21, 2026
Merged

feat: pick a court by country and city in the game form#152
denis1011101 merged 1 commit into
mainfrom
fix/court-picker-country-city

Conversation

@denis1011101

Copy link
Copy Markdown
Owner

The court select listed all 349 approved courts in id order, so a player had to scroll through Melbourne and Doha to reach the club next door. Two selects above it narrow the list down the way the coach search does, the remaining options are grouped by city, and the map keeps only the courts still listed.

The starting city is the one of the game's court, or the player's own city — matched on a normalized name, so "Ekaterinburg" finds courts in "Yekaterinburg". The filters carry no name attribute and never reach the server.

Countries for cities the geocoder returned as a district or under a name the City table does not carry (Greater London, Chaoyang District, New York and ten more) now come from CITY_COUNTRY_OVERRIDES, which also fixes the country filter on the games, courts and coaches pages.

The court select listed all 349 approved courts in id order, so a player had
to scroll through Melbourne and Doha to reach the club next door. Two selects
above it narrow the list down the way the coach search does, the remaining
options are grouped by city, and the map keeps only the courts still listed.

The starting city is the one of the game's court, or the player's own city —
matched on a normalized name, so "Ekaterinburg" finds courts in
"Yekaterinburg". The filters carry no name attribute and never reach the
server.

Countries for cities the geocoder returned as a district or under a name the
City table does not carry (Greater London, Chaoyang District, New York and
ten more) now come from CITY_COUNTRY_OVERRIDES, which also fixes the country
filter on the games, courts and coaches pages.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@denis1011101
denis1011101 merged commit 8127446 into main Aug 21, 2026
4 checks passed
@denis1011101
denis1011101 deleted the fix/court-picker-country-city branch September 4, 2026 21:37
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.

1 participant