From 180613a2f311eb2c689f8c0ee5575f836760c78e Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Wed, 15 Apr 2026 09:02:20 +0530 Subject: [PATCH] feat(notifications): poll real PerformanceAlert rows from sidecar usePerformanceAlerts now fetches /api/supervisor/performance-alerts every 60s instead of computing client-side. Dismiss + dismiss-all hit the sidecar so state survives reload. Toast fires when new alerts arrive. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/layout/notification-bell.tsx | 2 +- src/hooks/use-performance-alerts.ts | 155 ++++++++++---------- 2 files changed, 76 insertions(+), 81 deletions(-) diff --git a/src/components/layout/notification-bell.tsx b/src/components/layout/notification-bell.tsx index aaf1201..cecbdd7 100644 --- a/src/components/layout/notification-bell.tsx +++ b/src/components/layout/notification-bell.tsx @@ -91,7 +91,7 @@ export const NotificationBell = () => {

{alert.agent}

{alert.type}

- {alert.value} + {alert.value}