Repository navigation
Conversation
This was referenced Oct 5, 2026
Closed
engleek
force-pushed
the
feat/country-overview
branch
from
October 5, 2026 20:37
9c708fe to
987f517
Compare
#258, prototype variant A: the cities section becomes a ranked list and a map of the country with a circle per city, sized by its studios and associations. Replaces the regional choropleth this PR first had, which weighted big empty regions and repeated the list. - Hovering or focusing a city highlights it in both the list and the map; choosing one (click, Enter or Space) opens who's there: its studios and associations, linking to their pages, and "All studios in Rennes" / "All associations in Rennes" (the lists' new ?city=). - "Explore France on the map" opens /places?country=FR. - A city sits at the mean of its organisations' coordinates (citiesOf). - The map shows the country's outline, from Natural Earth's public-domain admin-1 data, dissolved per country into small TopoJSON files (scripts/build-country-maps.mjs; 240 countries, 496 KB in all). It's drawn in the browser, so d3 stays out of the server bundle. - The view fits the mainland (the largest landmass and those near it, so French Guiana or Svalbard don't shrink France or Norway) plus any city beyond it. France, Spain and Portugal get insets only when a city is overseas; the US uses Albers USA. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
engleek
force-pushed
the
feat/country-map
branch
from
October 5, 2026 20:50
de7f30b to
1d5fd6a
Compare
This branch has not been deployed
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.
Part of #258. Stacked on #256 (merge that first). The "All studios in Rennes" links need #259's city filter, and the "Explore on the map" link needs its
/places?country=, so merge #259 before this too.Reworked: this PR first had a regional choropleth. It weighted big, nearly empty regions over the cities where the scene actually is, and it repeated the list. This is variant A from the prototype (branch
chore/prototype-country-city-map), which you picked.What it does
/places?country=FR. The full exploration stays there.How
citiesOf, which replacestopCitiesand also returns each city's organisations for the drill-down).scripts/build-country-maps.mjs(240 countries, 496 KB in all, 3–15 KB each, with a pinned mapshaper run through npx). It's drawn in the browser, so d3 (d3-geo,topojson-client,d3-composite-projections) stays out of the server bundle.Tests
citiesOf's positions and lists./studios?country=AQ&city=…, and the studio links to its page. "Explore Antarctica on the map" points to/places?country=AQ.🤖 Generated with Claude Code