From c5d5e9c4f92d06d429888f1205148f5397a58952 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Thu, 2 Apr 2026 13:05:20 +0530 Subject: [PATCH] =?UTF-8?q?feat:=20supervisor=20AI=20tools=20=E2=80=94=20a?= =?UTF-8?q?gent=20performance,=20campaign=20stats,=20call=20summary,=20SLA?= =?UTF-8?q?=20breaches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AiChatPanel accepts context type, team dashboard passes { type: 'supervisor' } - Supervisor system prompt: data-driven, no bias, threshold-based comparisons Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/call-desk/ai-chat-panel.tsx | 1 + src/pages/team-dashboard.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/call-desk/ai-chat-panel.tsx b/src/components/call-desk/ai-chat-panel.tsx index 8acc96e..9e76b92 100644 --- a/src/components/call-desk/ai-chat-panel.tsx +++ b/src/components/call-desk/ai-chat-panel.tsx @@ -7,6 +7,7 @@ import { faPaperPlaneTop, faSparkles, faUserHeadset } from '@fortawesome/pro-duo const API_URL = import.meta.env.VITE_API_URL ?? 'http://localhost:4100'; type CallerContext = { + type?: string; callerPhone?: string; leadId?: string; leadName?: string; diff --git a/src/pages/team-dashboard.tsx b/src/pages/team-dashboard.tsx index ae01aa9..50345f8 100644 --- a/src/pages/team-dashboard.tsx +++ b/src/pages/team-dashboard.tsx @@ -153,7 +153,7 @@ export const TeamDashboardPage = () => { )}> {aiOpen && (
- +
)}