---
name: project-wic-session-2026-05-26
description: WIC 2026-05-26 — Live Rates terminal + Cockpit-in-map + 5 commodities + per-country investment-info icons (NationalPowerPulse hover + daily FX); load-bearing CF-deploy + EN/JA single-source rules
metadata:
  node_type: memory
  type: project
  originSessionId: 8d05be5f-3f2f-4255-81ab-a59d71d59757
---

2026-05-26. Long WIC (world-investment-center, Astro + CF Pages, en/ja) build session. All shipped to `world-investment-center.pages.dev`. Repo `fc0web/world-investment-center` (now **private**). Final commit `bfd7101`, working tree clean.

## What shipped (in order)
- **Live Rates terminal** (`src/components/LiveRates.astro`): tabbed dock 📈 Chart / 🔎 Screener / 🔀 Cross / 💱 Rates / 🔭 Discovery. **Draggable + top-positioned** (`.lr-dock { left:130px; top:14px }`). `SessionClock.astro` + `MarketWatch.astro` (CoinGecko + Frankfurter) above. `Discovery.astro` pulls rei-aios `/api/octatheoria` (crypto/fx/wic-economy, 8-axis). Foot has **"Open in TradingView"** link.
- **Expert Cockpit embedded in the map** (`Cockpit.astro` → mounted inside WorldGlobe `.globe-stage` as `#cockpit-overlay`, z-40; launched by `#cockpit-open` mode-tab next to 2D). Visual MOCK-UP only — buttons latch/depress, **NO trading, NO logic** (banner says so). Moat = "なんだこれは!?" density.
- **5 commodities DISPLAY view** (`src/data/commodity-production.ts` `COMMODITIES`: gold/silver/copper/oil/gas, each `{key,label,glyph,color,unit,unitLong,year,source,data:{iso3:value}}`). Production figures only — not prices, no advice.
- **★ Per-country investment-info icons** (the MOST RECENT request, commit `bfd7101`): enriched `NationalPowerPulse.astro` (always-on animated bars over the map, z-25, bottom band) so each bar = an "investment-info icon". **Hover reveals an objective snapshot card**: currency + **daily ECB-reference FX** (Frankfurter, fetched client-side each visit = the "毎日完全自動更新" element), primary stock index (`stockIndexOf`), GDP/GDP-per-capita/inflation (`worldBankStats`), resource production. Bar HEIGHT = WIC composite **National Power Index** (GDP .30 / exports .20 / population .15 / electrification .15 / resource .20, log-normalized; top 60). Sanity order CHN/USA/RUS/CAN/IDN.
- Disclaimer softened to respect user autonomy + "Open in TradingView". Earlier in the arc: TradingView Screener + Cross Rates tabs, broader TV breadth.

## ★ Load-bearing operational rules (verified this session — do NOT relearn)
- **CF Pages deploy = wrangler DIRECT-UPLOAD to the official project, NOT git push.** There are TWO CF projects: `world-investment-center` (the official URL, Git Provider = NO, direct-upload) and the old `world-wide-datacenter` (git-connected). `git push` deploys to the OLD url → site looks stale. **Always run:** `npx wrangler pages deploy dist --project-name=world-investment-center --branch=main --commit-dirty=true` after `npm run build`, THEN `git commit && git push` for source history. This was the root cause of two "Live Rates が消えた" reports.
- **EN/JA must stay single-source.** `index.astro` and `ja/index.astro` are thin wrappers around **`DashboardHome.astro`** (props `{lang, i}`, i = en.json/ja.json, verified key-identical 113/113). They had diverged (1456 vs 641 lines) → JA was missing features. Never edit one index without the shared component.
- **Free APIs**: FX = Frankfurter `https://api.frankfurter.dev/v1/latest?base=USD&symbols=...` (ECB **daily**, key-free, CORS-ok, ~30 currencies → others show "日次レート対象外"). Crypto = CoinGecko. TradingView free embed widgets (market-overview / screener / forex-cross-rates) need the loader `<script>` actually `appendChild`-ed into the container (the blank-widget bug).
- `npm run build` = 442 pages ~27s. Header brand: `.nav-wrap { max-width:none }` + `.brand { white-space:nowrap; flex-shrink:0 }` (was wrapping 3 lines).

## Honest framing (standing WIC principle, kept everywhere)
Objective public data only (WB/ECB/USGS/CoinGecko); **you cannot trade here; not investment advice; not a forecast.** FX is ECB daily reference (not a live tick); WB indicators are latest annual; the National Power Index is **WIC's own illustrative composite, NOT an official ranking**; the pulse animation is decorative. Strategy = "honest 荘厳さ" (本物データで wow, 取引なし) + answer the "全く投資の役に立たないサイト" worry by being a 195-country cross-data observation terminal. Display→integration→discovery moat (IG/World Monitor lack the integration+discovery tiers).

## PENDING / next-time
- Repo public-vs-private: kept **private** (user still deciding; private blocks GitHub-Actions auto-update but WIC deploys via wrangler direct-upload anyway, so no functional loss for now). Stars give WIC no concrete benefit (user's own assessment).
- "新興投資情報ニュース" aggregation idea (raised, not yet built).
- ToS/有料化可否 doc updated in `docs/free-market-data-apis.md` (monetization audit column).

rei-aios work from this same session (QFT/emergence lens arc STEP 1161→1168, invention approvals, queued physics) is recorded separately in [[project-rei-discovery-invention-2026-05-26]]. Prior WIC build-out: [[project-wic-buildout-session-2026-05-25]]. APIs: [[reference-wic-free-market-data-apis-2026-05-25]].
