diff --git a/dashboard/index.html b/dashboard/index.html index ceb1c44..e391a7f 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -271,7 +271,7 @@ const yesterday = new Date(Date.now() - 86400000).toISOString(); const activity = await fetchData('activity_log', - `SELECT COUNT(*) as c FROM activity_log WHERE timestamp > '${yesterday}'`); + `SELECT COUNT(*) as c FROM activity_log WHERE timestamp > '${yesterday}' AND action != 'dismiss'`); document.getElementById('activity-count').textContent = activity[0]?.c || 0; const escalations = await fetchData('escalations', @@ -287,16 +287,19 @@ `(last poll ${timeAgo(p.polled_at)} — ${p.new_count} new)`; } - // Notifications table — show pending (non-dismissed) by default + // Notifications table — show ALL notifications with action taken const notifications = await fetchData('notifications', - 'SELECT * FROM notifications WHERE dismissed = 0 AND processing = 0 ORDER BY seen_at DESC LIMIT 30'); + `SELECT n.*, a.detail as action_detail, a.action as action_type + FROM notifications n + LEFT JOIN activity_log a ON a.github_url = n.url + ORDER BY n.seen_at DESC LIMIT 30`); if (notifications.length === 0) { document.getElementById('notifications-table').innerHTML = - '
| TIME | ISSUE | REASON | TITLE | FILTER | |
|---|---|---|---|---|---|
| TIME | ISSUE | REASON | TITLE | ACTION TAKEN | |
| ${timeAgo(n.seen_at)} | ${issue} | ${reasonBadge} | ${ownTag}${n.title || '-'}${ciTag} | -${filterShort} | +${actionText} |