Skip to content

Add INFRA variant: Gulf FDI critical infrastructure tracker#61

Closed
aa5064 wants to merge 1 commit into
koala73:mainfrom
aa5064:claude/review-forked-test-project-CM5a5
Closed

Add INFRA variant: Gulf FDI critical infrastructure tracker#61
aa5064 wants to merge 1 commit into
koala73:mainfrom
aa5064:claude/review-forked-test-project-CM5a5

Conversation

@aa5064

@aa5064 aa5064 commented Feb 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Introduces a new "INFRA" variant of the application focused on tracking Saudi Arabia and UAE foreign direct investment in global critical infrastructure. This includes a comprehensive database of 100+ investments across ports, pipelines, energy, data centers, airports, railways, telecoms, and mining sectors.

Key Changes

New Data & Configuration

  • Gulf FDI Database (src/config/gulf-fdi.ts): 772-line seed data file with 100+ investments from major Gulf entities (DP World, AD Ports, Mubadala, ADNOC, Masdar, PIF, Saudi Aramco, ACWA Power, etc.)
  • Infra Variant Config (src/config/variants/infra.ts): Variant-specific panel and map layer configuration optimized for infrastructure context (pipelines, AIS, economic hubs, waterways, minerals, Gulf investments)
  • Type Definitions (src/types/index.ts): New types for Gulf investments including GulfInvestment, GulfInvestmentSector, GulfInvestorCountry, GulfInvestingEntity, GulfInvestmentStatus

UI Components

  • InvestmentsPanel (src/components/InvestmentsPanel.ts): Interactive database panel with:
    • Multi-filter support (investing country, sector, entity, status)
    • Full-text search across assets, countries, entities, descriptions
    • Sortable columns (asset name, country, sector, status, investment amount, year)
    • USD formatting with B/M notation
    • Status color indicators and entity flags
    • Click-to-map integration for flying to investments

Map Integration

  • DeckGL Layer (src/components/DeckGLMap.ts): New gulfInvestments layer rendering investment markers with:
    • Country-specific colors (Saudi green, UAE red)
    • Zoom-dependent label visibility (minZoom: 2, labels at zoom 5+)
    • Interactive popups with investment details
    • Clustering support for dense regions

News & Feeds

  • Infra Feeds (src/config/feeds.ts): Gulf business news sources (MEED, Arabian Business, The National, Arab News) and entity-specific news streams for DP World, PIF, Mubadala, ADNOC, Masdar, ACWA Power
  • RSS Proxy Allowlist (api/rss-proxy.js): Added Gulf business and infrastructure news domains

App Integration

  • Variant Switcher (src/App.ts): Added INFRA variant button (🏗️) to header navigation alongside WORLD and TECH variants
  • Panel Configuration (src/config/panels.ts): Infra-specific panel layout with investment database, announcements, and news panels
  • Build Scripts (package.json): Added dev:infra and build:infra commands

SEO & Metadata

  • Vite Config (vite.config.ts): Infra variant metadata with title, description, and keywords for Gulf FDI tracking

Implementation Details

  • Investment records include coordinates (lat/lon), investment amounts in USD, ownership stakes, operational status, announcement/operational years, descriptions, and source URLs
  • Database covers major infrastructure corridors: Red Sea/Suez, Persian Gulf, South Asia, East Africa, Europe, and Americas
  • Panel uses HTML escaping for security and supports responsive table layout with sticky headers
  • Map layer respects zoom thresholds to avoid clutter at low zoom levels
  • Variant is fully isolated—disabled in FULL and TECH variants via gulfInvestments: false in their map layer configs

https://claude.ai/code/session_01W6nmvU2CgNU6ZdxWLQkmvJ

Adds a new VITE_VARIANT=infra build for tracking Saudi Arabia and UAE
foreign direct investment in global critical infrastructure.

New files:
- src/config/gulf-fdi.ts: Static database of ~45 seed investments (DP World,
  AD Ports, Mubadala, ADNOC, Masdar, PIF, Aramco, ACWA Power, EGA, etc.)
  covering ports, energy, telecoms, manufacturing, mining
- src/config/variants/infra.ts: Infra variant config (panels, map layers)
- src/components/InvestmentsPanel.ts: Filterable/sortable FDI database panel
  with country/sector/entity/status filters, click-to-map-fly behavior

Modified files:
- src/types/index.ts: Add GulfInvestment interface + types; add
  gulfInvestments to MapLayers
- src/config/panels.ts: Add INFRA_PANELS, INFRA_MAP_LAYERS; update variant
  exports; add gulfInvestments:false to FULL/TECH layer configs
- src/config/feeds.ts: Add INFRA_FEEDS (fdiNews, entityNews, infraMedia,
  announcements, regional); update variant-aware FEEDS export
- src/components/DeckGLMap.ts: Add gulf-investments-layer (ScatterplotLayer,
  SA=green/UAE=red, size by investment value); tooltip; color constants
- src/components/index.ts: Export InvestmentsPanel
- src/App.ts: Wire infra panels, feed routing, variant switcher INFRA button
- api/rss-proxy.js: Add Gulf media domains to ALLOWED_DOMAINS
- vite.config.ts: Add infra to VARIANT_META
- package.json: Add dev:infra and build:infra scripts

Run: npm run dev:infra

https://claude.ai/code/session_01W6nmvU2CgNU6ZdxWLQkmvJ
@vercel

vercel Bot commented Feb 13, 2026

Copy link
Copy Markdown

@claude is attempting to deploy a commit to the eliehabib projects Team on Vercel.

A member of the Team first needs to authorize it.

@koala73

koala73 commented Feb 14, 2026

Copy link
Copy Markdown
Owner

@aa5064 I like what you've done, but am not sure we can add a variant that only focuses on 2 countries
Any reason why this can't be a just panels ?
I am thinking that with the amount of panels / news we have, might as well group them by regions

@RadiyaBhavesh

This comment was marked as off-topic.

@koala73

koala73 commented Feb 14, 2026

Copy link
Copy Markdown
Owner

@RadiyaBhavesh "final-to-final-upload-house-price" that app/repo is not worldmonitor

koala73 pushed a commit that referenced this pull request Feb 17, 2026
772-line database of Saudi Arabia and UAE foreign direct investments in
global critical infrastructure (ports, energy, data centers, railways, etc.)
with filterable/sortable table panel.

Originally contributed as standalone 'infra' variant in PR #61.
koala73 added a commit that referenced this pull request Feb 17, 2026
Wire Gulf FDI data from PR #61 into the existing finance variant:
- Add gulfInvestments map layer (ScatterplotLayer with SA/UAE colors)
- Add GCC Business News feeds (Arabian Business, The National, Arab News, etc.)
- Add gcc-investments and gccNews panels to finance panel config
- Add Gulf FDI types to MapLayers interface
- Add RSS proxy domains for Gulf news sources
- Auto-wiring creates NewsPanel for gccNews feed category

Co-authored-by: aa5064 <[email protected]>
@koala73

koala73 commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Incorporated into main via two commits with proper attribution:

  • 227777eauthored by @aa5064: Gulf FDI investment database + InvestmentsPanel (1000 lines)
  • 99d0350 — Finance variant integration (feeds, DeckGL layer, panel wiring)

Instead of a standalone "infra" variant, the Gulf FDI data is now integrated into the finance variant as additional panels and a toggleable map layer. Thank you for the contribution @aa5064!

@koala73 koala73 closed this Feb 17, 2026
@SebastienMelki SebastienMelki added enhancement New feature or request area: infrastructure Cables, pipelines, power grids, cyber threats claude Generated with Claude Code labels Feb 17, 2026
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
772-line database of Saudi Arabia and UAE foreign direct investments in
global critical infrastructure (ports, energy, data centers, railways, etc.)
with filterable/sortable table panel.

Originally contributed as standalone 'infra' variant in PR koala73#61.
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
Wire Gulf FDI data from PR koala73#61 into the existing finance variant:
- Add gulfInvestments map layer (ScatterplotLayer with SA/UAE colors)
- Add GCC Business News feeds (Arabian Business, The National, Arab News, etc.)
- Add gcc-investments and gccNews panels to finance panel config
- Add Gulf FDI types to MapLayers interface
- Add RSS proxy domains for Gulf news sources
- Auto-wiring creates NewsPanel for gccNews feed category

Co-authored-by: aa5064 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: infrastructure Cables, pipelines, power grids, cyber threats claude Generated with Claude Code enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants