Skip to content

Real-time dashboard for monitoring global news, markets, and geopolitical events

TypeScript

Add Iran Crisis panel from main branch feature

Sean Thielen-Esparza1fea39b67fc4
diff --git a/src/lib/config/map.ts b/src/lib/config/map.ts
index 620cd1f..4f05067 100644
--- a/src/lib/config/map.ts
+++ b/src/lib/config/map.ts
@@ -4,7 +4,7 @@ export interface Hotspot {
name: string;
lat: number;
lon: number;
- level: 'high' | 'elevated' | 'low';
+ level: 'critical' | 'high' | 'elevated' | 'low';
desc: string;
}
@@ -49,6 +49,7 @@ export interface Ocean {
}
export const THREAT_COLORS = {
+ critical: '#ff0000',
high: '#ff4444',
elevated: '#ffcc00',
low: '#00ff88'
@@ -105,8 +106,8 @@ export const HOTSPOTS: Hotspot[] = [
name: 'Tehran',
lat: 35.7,
lon: 51.4,
- level: 'high',
- desc: 'Tehran — Iran nuclear program, proxy conflicts, regional escalation'
+ level: 'critical',
+ desc: 'Tehran — ACTIVE UPRISING: 200+ cities, 26 provinces. Revolution protests, regime instability, nuclear program'
},
{
name: 'Tel Aviv',
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 172b37a..e894b11 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -309,6 +309,25 @@
</div>
{/if}
+ {#if isPanelVisible('iran')}
+ <div class="panel-slot">
+ <SituationPanel
+ panelId="iran"
+ config={{
+ title: 'Iran Crisis',
+ subtitle: 'Revolution protests, regime instability & nuclear program',
+ criticalKeywords: ['protest', 'uprising', 'revolution', 'crackdown', 'killed', 'nuclear', 'strike', 'attack', 'irgc', 'khamenei']
+ }}
+ news={allNewsItems.filter(
+ (n) =>
+ n.title.toLowerCase().includes('iran') ||
+ n.title.toLowerCase().includes('tehran') ||
+ n.title.toLowerCase().includes('irgc')
+ )}
+ />
+ </div>
+ {/if}
+
<!-- Placeholder panels for additional data sources -->
{#if isPanelVisible('whales')}
<div class="panel-slot">