import React from 'react'; import { UploadIcon } from './icons/UploadIcon'; import { TrendingUpIcon } from './icons/TrendingUpIcon'; import { BugIcon } from './icons/BugIcon'; import { ClockIcon } from './icons/ClockIcon'; import { LightbulbIcon } from './icons/LightbulbIcon'; const stats = [ { name: 'Proofs Uploaded', value: '57', icon: UploadIcon }, { name: 'Pass Rate', value: '76%', icon: TrendingUpIcon }, { name: 'Issues Found', value: '34', icon: BugIcon }, { name: 'Time Saved', value: '93 hours', icon: ClockIcon }, ]; const agentPerformance = [ { name: 'Legal Agent', passRate: 85, avgIssues: 1.2, trend: 'up' }, { name: 'Brand Agent', passRate: 68, avgIssues: 2.5, trend: 'down' }, { name: 'Tone Agent', passRate: 92, avgIssues: 0.8, trend: 'up' }, { name: 'Channel Agent', passRate: 71, avgIssues: 1.9, trend: 'stable' }, ]; const UpArrow = () => ; const DownArrow = () => ; const StableLine = () => ; const TrendIndicator: React.FC<{ trend: 'up' | 'down' | 'stable' }> = ({ trend }) => { if (trend === 'up') { return
Improving
; } if (trend === 'down') { return
Declining
; } return
Stable
; }; export const Analytics: React.FC = () => { return (

Performance Analytics

Overall usage and performance statistics for the tool.

{/* Stats Cards */}
{stats.map((stat) => { const Icon = stat.icon; return (

{stat.name}

{stat.value}

); })}
{/* AI Performance Summary */}

AI Performance Summary

Key Insight (Last 7 Days):

A sharp decline in Best Practice adherence has been noted, primarily driven by proofs from the Barclays Q4 Social campaign. The Brand Guardian agent also shows a declining performance trend, suggesting a potential need for updated brand guideline training or proof review.

{/* Agent Performance Table */}

Agent Performance (Last 7 Days)

{agentPerformance.map((agent) => ( ))}
Agent Name Pass Rate Avg. Issues per Proof Performance Trend
{agent.name}
= 80 ? 'bg-green-500' : agent.passRate < 70 ? 'bg-red-500' : 'bg-yellow-500'}`}> {agent.passRate}%
{agent.avgIssues}
); };