From cd9e7af68861c1ec8b782edc937abd31f79a1a66 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Thu, 19 Mar 2026 12:30:14 +0530 Subject: [PATCH] fix: remove unused imports in reports + team-dashboard, deploy all data pages Co-Authored-By: Claude Opus 4.6 (1M context) --- src/pages/reports.tsx | 2 -- src/pages/team-dashboard.tsx | 14 ++------------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/pages/reports.tsx b/src/pages/reports.tsx index 05666bf..49632db 100644 --- a/src/pages/reports.tsx +++ b/src/pages/reports.tsx @@ -2,8 +2,6 @@ import { useMemo } from 'react'; import ReactECharts from 'echarts-for-react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { - faArrowTrendUp, - faArrowTrendDown, faPhoneVolume, faPhoneArrowDownLeft, faPhoneArrowUpRight, diff --git a/src/pages/team-dashboard.tsx b/src/pages/team-dashboard.tsx index 0ef7a9a..dfa8557 100644 --- a/src/pages/team-dashboard.tsx +++ b/src/pages/team-dashboard.tsx @@ -5,8 +5,6 @@ import { faPhoneArrowDownLeft, faPhoneArrowUpRight, faPhoneMissed, - faClock, - faCalendarCheck, faUserHeadset, faChartMixed, } from '@fortawesome/pro-duotone-svg-icons'; @@ -17,7 +15,7 @@ import { Table, TableCard } from '@/components/application/table/table'; import { TopBar } from '@/components/layout/top-bar'; import { AiChatPanel } from '@/components/call-desk/ai-chat-panel'; import { useData } from '@/providers/data-provider'; -import { getInitials, formatShortDate } from '@/lib/format'; +import { getInitials } from '@/lib/format'; import type { Call } from '@/types/entities'; // KPI Card component @@ -107,7 +105,7 @@ type AgentPerformance = { }; export const TeamDashboardPage = () => { - const { calls, leads, followUps, loading } = useData(); + const { calls, leads, loading } = useData(); const [dateRange, setDateRange] = useState('week'); // Filter calls by date range @@ -228,14 +226,6 @@ export const TeamDashboardPage = () => { return `${Math.floor(hours / 24)}d ago`; }; - // Supervisor AI quick prompts - const supervisorQuickPrompts = [ - { label: 'Top conversions', template: 'Which agents have the highest conversion rates this week?' }, - { label: 'Pending leads', template: 'How many leads are still pending first contact?' }, - { label: 'Missed callback risks', template: 'Which missed calls have been waiting the longest without a callback?' }, - { label: 'Weekly summary', template: 'Give me a summary of this week\'s team performance.' }, - ]; - const dateRangeLabel = dateRange === 'today' ? 'Today' : dateRange === 'week' ? 'This Week' : 'This Month'; return (