Stats: tap a country tier to browse it in Places (country filter that persists) - #23
Merged
Merged
Conversation
… tier Two asks: bring back the "Cities" (all 15k+) coverage next to the other tiers, and make each tier open the matching Places list — scoped so the filter is the "good" one and survives moving between pages. - Country card now shows Cities · Big · Mega · Regions (Cities was missing). Near-zero shares read as "<1%" instead of a discouraging "0%". - Each expanded tier is a button: Cities / Big / Mega open Places on the cities browse scoped to that country + population tier; Sites opens the country's monuments; Regions (no Places list of their own) open the country's full page. - New shared `country` filter dimension: narrows every Places list to one country, shows as a removable "🇫🇷 France" chip, and — living in the shared store — persists as you navigate away and back. The map ignores it (you pan to a country there), like the other list-only dimensions. - The browse draws a country drill-down from that country's OWN city/site lists (not the global top-2000 pool), so nothing is missing. - World-level KPI tiles clear any country drill-down so they stay global.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the Stats redesign, addressing two asks: bring the Cities tier back next to the others, and make each tier open Places with the right filter — one that stays put as you move between pages.
Restore the Cities tier
The country card lost the "Cities" (all 15k+) coverage. It's back, alongside Big / Mega / Regions. A real but tiny share now reads
<1%instead of a discouraging0%.Tap a tier → Places, correctly filtered
Each expanded tier is now a button:
New shared
countryfilter dimension🇫🇷 Francechip.Gate:
tsc --noEmitclean · 445 unit tests (incl. a new country-filter browse test) · e2e green — filter-panel, places-explore, wishlist, countryscope, smoke, a11y (axe WCAG 2.1 AA), and a newstats-drillspec covering the drill-down + persistence + chip-clear.🤖 Generated with Claude Code
https://claude.ai/code/session_014W6tgHRgLEugCsbKC9ccST
Generated by Claude Code