Skip to content

Conversation

sivertlv
Copy link
Member

No description provided.

Search Norwegian cities through Nominatim when the local city table has no match. Selecting an external result persists it through a new admin-only findOrCreateCity mutation, so the created city gets a normal id and can be used exactly like seeded cities.
@sivertlv sivertlv requested a review from a team as a code owner November 22, 2026 19:48
Copy link
Member

@henrygr henrygr left a comment •

Choose a reason for hiding this comment

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

Rest of the PR looks good, but take a look at the comment of CitySearchInput.tsx

Somewhat related to the comment, we should add the country to the DB - this way we could either have multiple cities with the same name in different countries and potentially expand the breadcrumb to country level and let people choose cites with the same interface they choose countries in the city view

Remove the Norway restriction from city and address lookups, merge Nominatim candidates with known cities with database results first, and store each external place's full display name so same-named cities in different regions remain distinct.
Pressing Enter after searching previously submitted the venue form instead of selecting a city, so external places such as Stockholm appeared impossible to accept.
@sivertlv sivertlv force-pushed the feat/add-venue-new-city branch from 7fbf002 to 2a8cd20 Compare November 22, 2026 20:51
henrygr
henrygr previously approved these changes Nov 22, 2026
@henrygr
Copy link
Member

henrygr commented Nov 22, 2026

Make sure tests pass though

@sivertlv sivertlv merged commit 6ca511c into main Nov 22, 2026
1 check passed
@sivertlv sivertlv deleted the feat/add-venue-new-city branch November 22, 2026 21:36
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants