From 0d32048abef7b5f169d39c6623a314cebebca6cf Mon Sep 17 00:00:00 2001 From: iris Date: Fri, 5 Jun 2026 01:14:45 +0200 Subject: [PATCH] feat(stats): surface reminder_stats in the summary chip row The backend already fetches ReminderStats from the broker RPC and includes it in the /api/stats snapshot, but the frontend was not rendering it. Add three chips to the summary row when the field is present: reminders scheduled / delivered / pending. --- frontend/packages/agent/src/stats.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/packages/agent/src/stats.js b/frontend/packages/agent/src/stats.js index 54ca7725..0565cf5d 100644 --- a/frontend/packages/agent/src/stats.js +++ b/frontend/packages/agent/src/stats.js @@ -92,6 +92,13 @@ window.Chart = Chart; ['p95 duration', fmtMs(s.duration_summary.p95_ms)], ['window', s.window], ]; + if (s.reminder_stats) { + chips.push( + ['reminders scheduled', fmtInt(s.reminder_stats.scheduled)], + ['reminders delivered', fmtInt(s.reminder_stats.delivered)], + ['reminders pending', fmtInt(s.reminder_stats.pending)], + ); + } for (const [label, value] of chips) { const chip = document.createElement('span'); chip.className = 'chip';