Real-time dashboard for monitoring global news, markets, and geopolitical events
TypeScript
Add Iran Situation panel
Reggie796450f7e0fb
diff --git a/index.html b/index.htmlindex 18ab0b6..8ff8abc 100644--- a/index.html+++ b/index.html@@ -991,6 +991,17 @@</div></section>+ <!-- Iran Situation -->+ <section class="panel" data-panel="iran">+ <div class="panel-header">+ <span class="panel-title">Iran Situation</span>+ <span class="panel-count" id="iranStatus">-</span>+ </div>+ <div class="panel-content" id="iranPanel">+ <div class="loading-msg">Loading...</div>+ </div>+ </section>+<!-- Intel Feed --><section class="panel wide" data-panel="intel"><div class="panel-header">diff --git a/js/constants.js b/js/constants.jsindex a0c8e47..8800018 100644--- a/js/constants.js+++ b/js/constants.js@@ -20,6 +20,7 @@ export const PANELS = {layoffs: { name: 'Layoffs Tracker', priority: 3 },venezuela: { name: 'Venezuela Situation', priority: 2 },greenland: { name: 'Greenland Situation', priority: 2 },+ iran: { name: 'Iran Situation', priority: 2 },intel: { name: 'Intel Feed', priority: 2 },correlation: { name: 'Correlation Engine', priority: 1 },narrative: { name: 'Narrative Tracker', priority: 1 }@@ -1140,7 +1141,7 @@ export const PRESETS = {name: 'Geopolitics Watcher',icon: '🌍',description: 'Global situation awareness and regional hotspots',- panels: ['map', 'intel', 'politics', 'gov', 'venezuela', 'greenland', 'correlation', 'narrative']+ panels: ['map', 'intel', 'politics', 'gov', 'venezuela', 'greenland', 'iran', 'correlation', 'narrative']},'intel': {id: 'intel',@@ -1160,13 +1161,13 @@ export const PRESETS = {id: 'everything',name: 'Everything',icon: '🎛️',- description: 'Kitchen sink - all 21 panels enabled',+ description: 'Kitchen sink - all panels enabled',panels: Object.keys({map: true, politics: true, tech: true, finance: true, gov: true,heatmap: true, markets: true, monitors: true, commodities: true,polymarket: true, whales: true, mainchar: true, printer: true,contracts: true, ai: true, layoffs: true, venezuela: true,- greenland: true, intel: true, correlation: true, narrative: true+ greenland: true, iran: true, intel: true, correlation: true, narrative: true})}};diff --git a/js/main.js b/js/main.jsindex ce27d4f..de97c28 100644--- a/js/main.js+++ b/js/main.js@@ -191,7 +191,7 @@ async function refreshAll() {setStatus('Loading extras...', true);// STAGE 3: Extra data - lowest priority- let whales = [], contracts = [], aiNews = [], layoffs = [], venezuelaNews = [], greenlandNews = [], intelFeed = [];+ let whales = [], contracts = [], aiNews = [], layoffs = [], venezuelaNews = [], greenlandNews = [], iranNews = [], intelFeed = [];try {const stage3Promise = Promise.allSettled([isPanelEnabled('whales') ? fetchWhaleTransactions() : Promise.resolve([]),@@ -200,6 +200,7 @@ async function refreshAll() {isPanelEnabled('layoffs') ? fetchLayoffs() : Promise.resolve([]),isPanelEnabled('venezuela') ? fetchSituationNews('venezuela maduro caracas crisis') : Promise.resolve([]),isPanelEnabled('greenland') ? fetchSituationNews('greenland denmark trump arctic') : Promise.resolve([]),+ isPanelEnabled('iran') ? fetchSituationNews('iran tehran nuclear irgc sanctions') : Promise.resolve([]),isPanelEnabled('intel') ? fetchIntelFeed() : Promise.resolve([])]);@@ -210,7 +211,8 @@ async function refreshAll() {layoffs = results[3].status === 'fulfilled' ? results[3].value : [];venezuelaNews = results[4].status === 'fulfilled' ? results[4].value : [];greenlandNews = results[5].status === 'fulfilled' ? results[5].value : [];- intelFeed = results[6].status === 'fulfilled' ? results[6].value : [];+ iranNews = results[6].status === 'fulfilled' ? results[6].value : [];+ intelFeed = results[7].status === 'fulfilled' ? results[7].value : [];} catch (e) {console.error('Stage 3 error:', e);}@@ -234,6 +236,13 @@ async function refreshAll() {criticalKeywords: ['purchase', 'trump', 'military', 'takeover', 'independence', 'referendum']});}+ if (isPanelEnabled('iran')) {+ renderSituation('iranPanel', 'iranStatus', iranNews, {+ title: 'Iran Situation',+ subtitle: 'Nuclear program, regional tensions & sanctions',+ criticalKeywords: ['nuclear', 'strike', 'attack', 'irgc', 'enrichment', 'missile', 'sanctions', 'proxy']+ });+ }// Render My Monitors panel with all newsif (isPanelEnabled('monitors')) {