From 729529b7faa66816738c2216f0a3cebb1b24ddcd Mon Sep 17 00:00:00 2001 From: M1 Date: Mon, 16 Mar 2026 14:37:44 +0400 Subject: [PATCH] fix: checked_at field name in dashboard UI + landing copy --- apps/web/src/dashboard/detail.html | 6 +++--- apps/web/src/dashboard/home.html | 2 +- apps/web/src/dashboard/landing.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/src/dashboard/detail.html b/apps/web/src/dashboard/detail.html index 7401fbe..4703b82 100644 --- a/apps/web/src/dashboard/detail.html +++ b/apps/web/src/dashboard/detail.html @@ -182,7 +182,7 @@ : ''; document.getElementById('stat-latency').textContent = avgLatency != null ? `${avgLatency}ms` : '—'; document.getElementById('stat-uptime').textContent = uptime != null ? `${uptime}%` : '—'; - document.getElementById('stat-last').textContent = lastPing ? timeAgo(lastPing.pinged_at) : '—'; + document.getElementById('stat-last').textContent = lastPing ? timeAgo(lastPing.checked_at) : '—'; // Latency chart renderLatencyChart(results.slice().reverse()); @@ -191,7 +191,7 @@ const statusBar = document.getElementById('status-bar'); const barPings = results.slice(0, 60).reverse(); statusBar.innerHTML = barPings.map(c => - `
` + `
` ).join('') || '
No data
'; // Pings table @@ -200,7 +200,7 @@ ${c.up ? 'Up' : 'Down'} ${c.status_code ?? '—'} ${c.latency_ms != null ? c.latency_ms + 'ms' : '—'} - ${timeAgo(c.pinged_at)} + ${timeAgo(c.checked_at)} ${c.error ? escapeHtml(c.error) : ''} `).join(''); diff --git a/apps/web/src/dashboard/home.html b/apps/web/src/dashboard/home.html index 8dbe571..1394202 100644 --- a/apps/web/src/dashboard/home.html +++ b/apps/web/src/dashboard/home.html @@ -89,7 +89,7 @@
${avgLatency != null ? avgLatency + 'ms' : '—'}
-
${lastPing ? timeAgo(lastPing.pinged_at) : 'no pings'}
+
${lastPing ? timeAgo(lastPing.checked_at) : 'no pings'}
${m.enabled ? m.interval_s + 's' : 'paused'}
diff --git a/apps/web/src/dashboard/landing.html b/apps/web/src/dashboard/landing.html index 7ab6b6b..8bc68b0 100644 --- a/apps/web/src/dashboard/landing.html +++ b/apps/web/src/dashboard/landing.html @@ -393,7 +393,7 @@

API-first, always

-

Create monitors, query results, and manage everything from your terminal.

+

Create monitors, query results, and manage everything from your own app or terminal.