Files
substrata/scripts
CatoandClaude c9b421d54f feat(atlas): producer sites on the globe, and every chain as a route you can follow (#175)
Producers on the globe
- research/producer-places.json places 997 of the 1,167 facility locations in
  the USGS Minerals Yearbook tables, in 37 countries, from GeoNames (CC BY 4.0),
  matched offline by scripts/research/geocode-producers.py.
- Each point states its precision (the facility, the nearest town, or only
  the province) and the GeoNames entry it came from. A named province must
  hold the point, "N km north of X" is applied as an offset, and a bare name
  with distant namesakes is left out rather than guessed.
- test/producer-sites.test.ts fails if a dot lands inside another country.
  The quality page measures the same through lib/quality/checks-places.ts.
- The globe draws sites as dots, or rings when only the province is known.
  A click flies in close and opens the site's facilities, capacity and both
  sources in the panel.

Chains as routes
- app/atlas/chain-route.ts is the one route model: every step two levels up
  and down, numbered in the order material moves, each placed where it is made.
- The diagram (AtlasChain) now reads left to right through every step, with
  makers inside the bottleneck's card. This fixes the connector that ran
  through the part suppliers' cards.
- "On the globe" lays the same route over the Earth: one lifted arc per hop,
  a light running input to output, and labels numbered like the panel's list.

The globe's input wiring moves to globe-control.ts; sites and routes are
painted by globe-overlay.ts.


Claude-Session: https://claude.ai/code/session_013Xssd1hFZCUSxqjACjoVBB

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 05:11:11 -07:00
..