feat: add commodity variant — mining, metals & energy intelligence#1093
Closed
feat: add commodity variant — mining, metals & energy intelligence#1093
Conversation
…1040) Add new VITE_VARIANT=commodity for commodity.worldmonitor.app: - 70+ mining sites, processing plants, commodity ports (commodity-geo.ts) - DeckGL map layers with mineral-colored scatterplots and XSS-safe tooltips - Commodity-specific panels, feeds, and RSS domains - Variant config with desktop/mobile map layer defaults - Commodity market symbols and sector definitions Based on work by @jyr-ai, cleaned up for merge: - Removed duplicate FEEDS (central feeds.ts is source of truth) - Removed invalid geopoliticalBoundaries property - Fixed broken mobile-map-integration-harness imports - Removed Substack credit link - Isolated commodity DeckGL changes from unrelated basemap refactor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Owner
Author
|
Closing — will push fixes to contributor's branch instead for proper attribution. |
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.
Summary
Adds the commodity variant (
VITE_VARIANT=commodity) forcommodity.worldmonitor.app, focused on mining, metals, energy commodities, and critical minerals.Based on work by @jyr-ai (#1040), cleaned up and isolated for merge.
What's included
commodity-geo.ts)text()helper for all user-facing strings_feeds.ts)Cleanup from original PR (#1040)
FEEDSdefinition (centralfeeds.tsis source of truth)geopoliticalBoundariesproperty (not inMapLayerstype)mobile-map-integration-harness.tsimportsFiles (24 changed)
commodity-geo.ts,commodity-markets.ts,commodity-miners.tsDeckGLMap.ts(+105 lines: 3 layers + tooltips +mineralColor())panels.ts,feeds.ts,variant.ts,variant-meta.ts,variants/commodity.tsrss-allowed-domains.json,_rss-allowed-domains.jsnews/v1/_feeds.tstypes/index.ts(4 new MapLayers properties)Test plan
tsc --noEmit)VITE_VARIANT=commodity npm run devrenders map with mining layers