Create an interactive analytics dashboard for aarogyadoot.com and this dashboard…
- User
Create an interactive analytics dashboard for aarogyadoot.com and this dashboard indicate of AM(area manager) where shows his created user and his under TC(Taluka coordinator) created users number. aimed at USers. Include KPI summary cards with trend indicators, a mix of line, bar, and donut charts with hover tooltips and smooth transitions, a sortable and filterable data table, and date-range and segment filters that update every view live. Use a clean, modern visual style with clear layout hierarchy and a dark mode toggle, generate realistic sample data so every chart feels alive, and make it fully responsive.
- Assistant
I'll build a comprehensive analytics dashboard for aarogyadoot.com with all the requested features. Let me start by exploring the project structure and then build it out.
Now let me install the necessary packages for charts, icons, and date handling:
Now let me create the full dashboard. I'll update the HTML title, create the data layer, all components, and the main App:
Now let me create all the files. First, the CSS with dark mode support:
Now let me create the realistic mock data:
Now let me create all the components. Starting with the KPICards:
Now the Charts component with line, bar, and donut charts:
Now the Filters component:
Now the sortable, filterable DataTable:
Now the DarkModeToggle and Header:
Now the main App.tsx that ties everything together:
Now let me build the project to verify everything compiles:
The project builds successfully. Let me verify the complete file structure:
Let me do a quick read of the final App.tsx to confirm everything is in order:
The Aarogyadoot AM Analytics Dashboard is complete and builds successfully. Here's what was built:
Architecture
8 files created/updated:
File Purpose index.htmlUpdated title to "Aarogyadoot AM Analytics Dashboard" src/index.cssDark mode via Tailwind's @custom-variant, chart tooltip styles, animated gradient, pulse indicators, fade-in animationssrc/data/mockData.tsRealistic sample data: 45 TCs with Indian names across 15 talukas and 6 districts, daily/monthly metrics, KPI data, segment distributions src/components/Header.tsxSticky header with animated gradient logo, AM profile (Rajesh Patil), dark mode toggle, notification bell src/components/KPICards.tsx6 KPI cards (Total Users, AM Direct, TC Created, Active This Month, TCs Under AM, Avg Users/TC) with trend badges and hover animations src/components/Charts.tsx5 chart types: Area (growth trend), Bar (monthly comparison), Donut (3× segment/district/status), Horizontal stacked bar (taluka performance), Line (active users) src/components/Filters.tsxSearch, date range, district, status, and segment filters with clear-all button — all update views live src/components/DataTable.tsxSortable (click any column header), paginated TC table with avatars, status badges, growth indicators, and live data pulse src/App.tsxMain orchestrator — animated gradient welcome banner with AM vs TC split percentages, filter state management, dynamic KPI recalculation on filter change Key Features
- Dark mode toggle persisted to localStorage, respects system preference
- All filters are live — search, district, status, date range, and segment instantly recalculate KPIs and table data
- Charts use Recharts with smooth animations (1500ms easing), gradient fills, custom tooltips
- Donut charts have hover interactivity linking legend items to segments
- Responsive — 1→2→3→6 column grid breakpoints across all sections
- 45 realistic TC profiles with Indian names, talukas, districts, growth rates
Files built:
index.html,src/index.css,src/data/mockData.ts,src/components/KPICards.tsx,src/components/Charts.tsx,src/components/Filters.tsx,src/components/DataTable.tsx,src/components/Header.tsx,src/App.tsx
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.