From dc60de044b92a60dfd485e274c7a6e14fccee84f Mon Sep 17 00:00:00 2001 From: ai-bot Date: Fri, 2 Oct 2026 14:19:20 +0000 Subject: [PATCH] app.js: show every alert with its check date and id (section 21) --- static/app.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/app.js b/static/app.js index ca96af4..75cbb71 100644 --- a/static/app.js +++ b/static/app.js @@ -116,7 +116,12 @@ function createAlertItem(alert) { const message = document.createElement("p"); message.textContent = alert.message; - item.append(source, message); + // Every alert names the saved check it came from (section 21). + const origin = document.createElement("p"); + origin.className = "alert-origin"; + origin.textContent = `From check ${alert.check_id} ยท ${alert.checked_at}`; + + item.append(source, message, origin); return item; } @@ -153,7 +158,7 @@ async function loadAlerts() { const alerts = await response.json(); if (!alerts.length) { alertsList.replaceChildren(createEmptyState( - "No alerts. The most recent saved check has no result that needs follow-up.", + "No alerts. No saved check has a result that needs follow-up.", )); alertCount.textContent = "No alerts"; return;