From 2d46491deebcd14ab6c341301ad20c0866392567 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 18 Mar 2026 20:13:11 +0400 Subject: [PATCH] chore: remove us-east region from UI, charts, and region selectors --- apps/web/src/routes/dashboard.ts | 2 -- apps/web/src/utils/sparkline.ts | 1 - apps/web/src/views/detail.ejs | 7 +++---- apps/web/src/views/home.ejs | 1 - apps/web/src/views/partials/monitor-form.ejs | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 71844bb..7c30a7d 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -25,7 +25,6 @@ const sparklineSSR = sparklineFromPings; const REGION_COLORS: Record = { 'eu-central': '#3b82f6', // blue - 'us-east': '#10b981', // green 'us-west': '#f59e0b', // amber 'ap-southeast': '#a78bfa', // purple '__none__': '#6b7280', // gray for null region @@ -33,7 +32,6 @@ const REGION_COLORS: Record = { const REGION_LABELS: Record = { 'eu-central': 'πŸ‡©πŸ‡ͺ EU', - 'us-east': 'πŸ‡ΊπŸ‡Έ US-E', 'us-west': 'πŸ‡ΊπŸ‡Έ US-W', 'ap-southeast': 'πŸ‡ΈπŸ‡¬ AP', '__none__': '?', diff --git a/apps/web/src/utils/sparkline.ts b/apps/web/src/utils/sparkline.ts index 17e72ea..63fc41b 100644 --- a/apps/web/src/utils/sparkline.ts +++ b/apps/web/src/utils/sparkline.ts @@ -17,7 +17,6 @@ export function sparkline(values: number[], width = 120, height = 32, color = '# export function sparklineFromPings(pings: Array<{latency_ms?: number|null, region?: string|null}>, width = 120, height = 32): string { const COLORS: Record = { 'eu-central': '#3b82f6', - 'us-east': '#10b981', 'us-west': '#f59e0b', 'ap-southeast': '#a78bfa', }; diff --git a/apps/web/src/views/detail.ejs b/apps/web/src/views/detail.ejs index 26099de..ad1329b 100644 --- a/apps/web/src/views/detail.ejs +++ b/apps/web/src/views/detail.ejs @@ -93,7 +93,6 @@ <% const regionFlag = { 'eu-central': 'πŸ‡©πŸ‡ͺ', - 'us-east': 'πŸ‡ΊπŸ‡Έ', 'us-west': 'πŸ‡ΊπŸ‡Έ', 'ap-southeast': 'πŸ‡ΈπŸ‡¬', }; @@ -171,11 +170,11 @@ // ── Interactive latency chart ────────────────────────────────────── const REGION_COLORS = { - 'eu-central': '#3b82f6', 'us-east': '#10b981', + 'eu-central': '#3b82f6', 'us-west': '#f59e0b', 'ap-southeast': '#a78bfa', '__none__': '#6b7280' }; const REGION_FLAGS = { - 'eu-central': 'πŸ‡©πŸ‡ͺ EU Central', 'us-east': 'πŸ‡ΊπŸ‡Έ US East', + 'eu-central': 'πŸ‡©πŸ‡ͺ EU Central', 'us-west': 'πŸ‡ΊπŸ‡Έ US West', 'ap-southeast': 'πŸ‡ΈπŸ‡¬ AP Southeast' }; @@ -476,7 +475,7 @@ if (tbody) { const tr = document.createElement('tr'); tr.className = 'hover:bg-gray-800/50'; - const regionFlags = {'eu-central':'πŸ‡©πŸ‡ͺ','us-east':'πŸ‡ΊπŸ‡Έ','us-west':'πŸ‡ΊπŸ‡Έ','ap-southeast':'πŸ‡ΈπŸ‡¬'}; + const regionFlags = {'eu-central':'πŸ‡©πŸ‡ͺ','us-west':'πŸ‡ΊπŸ‡Έ','ap-southeast':'πŸ‡ΈπŸ‡¬'}; const regionDisplay = ping.region ? `${regionFlags[ping.region] || '🌐'} ${ping.region}` : 'β€”'; tr.innerHTML = ` ${ping.up ? 'Up' : 'Down'} diff --git a/apps/web/src/views/home.ejs b/apps/web/src/views/home.ejs index 43fe173..d452e70 100644 --- a/apps/web/src/views/home.ejs +++ b/apps/web/src/views/home.ejs @@ -90,7 +90,6 @@ const REGION_COLORS = { 'eu-central': '#3b82f6', - 'us-east': '#10b981', 'us-west': '#f59e0b', 'ap-southeast': '#a78bfa', }; diff --git a/apps/web/src/views/partials/monitor-form.ejs b/apps/web/src/views/partials/monitor-form.ejs index 925c616..ad5a549 100644 --- a/apps/web/src/views/partials/monitor-form.ejs +++ b/apps/web/src/views/partials/monitor-form.ejs @@ -9,7 +9,7 @@ const methods = ['GET','POST','PUT','PATCH','DELETE','HEAD','OPTIONS']; const intervals = [['1','1 second'],['2','2 seconds'],['5','5 seconds'],['10','10 seconds'],['20','20 seconds'],['30','30 seconds'],['60','1 minute'],['300','5 minutes'],['600','10 minutes'],['1800','30 minutes'],['3600','1 hour']]; const timeouts = [['5000','5 seconds'],['10000','10 seconds'],['30000','30 seconds'],['60000','60 seconds']]; - const regions = [['eu-central','πŸ‡©πŸ‡ͺ EU Central'],['us-east','πŸ‡ΊπŸ‡Έ US East'],['us-west','πŸ‡ΊπŸ‡Έ US West'],['ap-southeast','πŸ‡ΈπŸ‡¬ AP Southeast']]; + const regions = [['eu-central','πŸ‡©πŸ‡ͺ EU Central'],['us-west','πŸ‡ΊπŸ‡Έ US West'],['ap-southeast','πŸ‡ΈπŸ‡¬ AP Southeast']]; const curMethod = monitor.method || 'GET'; const bodyHidden = ['GET','HEAD','OPTIONS'].includes(curMethod); %>