mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
fix: remove unused imports in reports + team-dashboard, deploy all data pages
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,6 @@ import { useMemo } from 'react';
|
|||||||
import ReactECharts from 'echarts-for-react';
|
import ReactECharts from 'echarts-for-react';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import {
|
import {
|
||||||
faArrowTrendUp,
|
|
||||||
faArrowTrendDown,
|
|
||||||
faPhoneVolume,
|
faPhoneVolume,
|
||||||
faPhoneArrowDownLeft,
|
faPhoneArrowDownLeft,
|
||||||
faPhoneArrowUpRight,
|
faPhoneArrowUpRight,
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ import {
|
|||||||
faPhoneArrowDownLeft,
|
faPhoneArrowDownLeft,
|
||||||
faPhoneArrowUpRight,
|
faPhoneArrowUpRight,
|
||||||
faPhoneMissed,
|
faPhoneMissed,
|
||||||
faClock,
|
|
||||||
faCalendarCheck,
|
|
||||||
faUserHeadset,
|
faUserHeadset,
|
||||||
faChartMixed,
|
faChartMixed,
|
||||||
} from '@fortawesome/pro-duotone-svg-icons';
|
} 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 { TopBar } from '@/components/layout/top-bar';
|
||||||
import { AiChatPanel } from '@/components/call-desk/ai-chat-panel';
|
import { AiChatPanel } from '@/components/call-desk/ai-chat-panel';
|
||||||
import { useData } from '@/providers/data-provider';
|
import { useData } from '@/providers/data-provider';
|
||||||
import { getInitials, formatShortDate } from '@/lib/format';
|
import { getInitials } from '@/lib/format';
|
||||||
import type { Call } from '@/types/entities';
|
import type { Call } from '@/types/entities';
|
||||||
|
|
||||||
// KPI Card component
|
// KPI Card component
|
||||||
@@ -107,7 +105,7 @@ type AgentPerformance = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const TeamDashboardPage = () => {
|
export const TeamDashboardPage = () => {
|
||||||
const { calls, leads, followUps, loading } = useData();
|
const { calls, leads, loading } = useData();
|
||||||
const [dateRange, setDateRange] = useState<DateRange>('week');
|
const [dateRange, setDateRange] = useState<DateRange>('week');
|
||||||
|
|
||||||
// Filter calls by date range
|
// Filter calls by date range
|
||||||
@@ -228,14 +226,6 @@ export const TeamDashboardPage = () => {
|
|||||||
return `${Math.floor(hours / 24)}d ago`;
|
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';
|
const dateRangeLabel = dateRange === 'today' ? 'Today' : dateRange === 'week' ? 'This Week' : 'This Month';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user