I'll create an interactive analytics dashboard for call center indicators monitoring. Let me start by exploring the project structure.
Now I'll build the dashboard. My plan:
- Update index.html title and add dark mode setup
- Enable dark mode in index.css using Tailwind v4 syntax
- Create utility files for data generation and types
- Create component files: KPI cards, charts (SVG-based, no external deps), data table, filters
- Wire it all in App.tsx
Let me start:
Now let me create the data generation utility:
Now let me create the chart components (SVG-based, no dependencies needed):
Now the KPI cards, filters, and data table:
Now the main App that ties everything together:
Now let's build and check for any issues:
Build succeeded. Here's what I created for your Monitoramento de Indicadores dashboard:
Features delivered
- KPI cards for all six metrics (Discado, Atendido, Alô, CPC, CPCP, Boleto) — each with:
- Total value for the current period
- Trend indicator (▲/▼ %) vs. the previous equivalent period
- Colored top-accent bar, initials badge, and mini sparkline with gradient fill
- Efficiency micro-stats row (Taxa Atendimento, Taxa Alô, Taxa CPC, Conversão CPCP, Envio Boleto) with animated progress bars
- Line chart — compare any two metrics over time; crosshair, hover dots, tooltip with all series values, and smooth CSS transitions
- Bar chart — total of the selected metric per segment, with hover tooltip and rounded bars
- Donut chart — funnel composition with hover slice pop-out, dimming of other slices, and tooltip showing value + %
- Data table — sortable on every column (click headers), searchable (segment or date dd/mm/aa), paginated (10 rows/page)
- Filters that update every view live:
- Date range with
De/Até pickers + presets 7d / 14d / 30d / 60d
- Segment chips (Cobrança, Vendas, Retenção, Renegociação, SAC) — toggleable, with "selecionar todos / limpar"
- Dark mode toggle in the header, persisted in localStorage and respecting system preference
- Realistic sample data: 60 days × 5 segments with weekly seasonality (weekend dips), slight upward trend, deterministic seeded pseudo-random noise, and cascading funnel ratios per segment profile
- Responsive layout: mobile-first grids that collapse gracefully; sticky header; horizontal-scrolling table on narrow screens
- Clean visual hierarchy with a modern Inter font stack, subtle borders, soft shadows, and consistent metric color palette shared across every chart
Everything is built with pure React + Tailwind v4 + SVG (no chart libraries needed), and the project builds cleanly.
Files built: index.html, src/index.css, src/lib/data.ts, src/components/Tooltip.tsx, src/components/charts/LineChart.tsx, src/components/charts/BarChart.tsx, src/components/charts/DonutChart.tsx, src/components/KpiCard.tsx, src/components/Filters.tsx, src/components/DataTable.tsx, src/App.tsx