Skip to content

Stats: tap a country tier to browse it in Places (country filter that persists) - #23

Merged
davd-gzl merged 1 commit into
mainfrom
claude/journal-redesign-spec-kit-ku0l3d
Jul 22, 2026
Merged

davd-gzl merged 1 commit into
mainfrom
claude/journal-redesign-spec-kit-ku0l3d

Conversation

@davd-gzl

Copy link
Copy Markdown
Collaborator

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 discouraging 0%.

Tap a tier → Places, correctly filtered

Each expanded tier is now a button:

  • Cities / Big cities / Mega cities → the Places cities browse, scoped to that country + population tier (0 / 100k+ / 1M+).
  • Sites & landmarks → that country's monuments.
  • Regions (no Places list of their own) → the country's full page.

New shared country filter dimension

  • Narrows every Places list to one country and shows as a removable 🇫🇷 France chip.
  • Lives in the shared filter store, so it persists across navigation — leave Places for the map and come back, the filter is still there (verified by e2e).
  • The map ignores it (you pan to a country there), consistent with the other list-only dimensions (category, growth filters).
  • A country drill-down browses that country's own city/site lists, not the global top-2000 pool, so nothing is missing from it.
  • World-level KPI tiles clear any country drill-down, so they stay global.

Gate: tsc --noEmit clean · 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 new stats-drill spec covering the drill-down + persistence + chip-clear.

🤖 Generated with Claude Code

https://claude.ai/code/session_014W6tgHRgLEugCsbKC9ccST


Generated by Claude Code

… 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.
@davd-gzl
davd-gzl merged commit 1ed7b00 into main Jul 22, 2026
4 checks passed
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