I'll build a comprehensive AI research lab analytics dashboard. Let me start by planning the structure and then implementing everything.
Good. Now let me install the charting library (Recharts) and then build the dashboard.
Now let me build the application. I'll create the files in a structured way:
Now let me create the main component files:
Expected – I'll create those files next. Let me create them all:
Now the Experiments Table:
Now let me update App.tsx and the CSS:
Now let's build the project to check for errors:
The build succeeds. Now let me also ensure the cn.ts utility is available for any future use, and verify the final result looks good:
Good. The project builds successfully at 663 KB (193 KB gzipped). Let me verify all the files are in order:
Everything is in place. Here's what was built:
AI Research Lab Analytics Dashboard — Complete
The dashboard at src/App.tsx delivers a full-featured analytics suite for internal researchers at a frontier AI lab (branded "NovaAI Research"):
Features
1. Dark/Light Mode Toggle — Click the sun/moon icon in the header. All components transition smoothly between themes.
2. KPI Summary Cards (6 cards) — Active Experiments, GPU Utilization, Total GPU Hours, Tokens Processed, Model Accuracy Avg, and Avg Time-to-Completion. Each card includes:
- Inline sparkline bars
- Current value with unit
- Trend indicator (↑/↓) with percentage change
- Color-coded: green for positive, red for negative
3. Line Chart (TrendChart) — Multi-series line chart showing GPU hours by research segment over time. Date range filter (7d/14d/30d/90d) updates it live. Hover tooltips show per-segment values with colored dots.
4. Stacked Bar Chart (WeeklyBarChart) — 8 weeks of GPU hours per segment, stacked bars with hover tooltips. Segments toggle on/off via the filter pills.
5. Donut Chart (SegmentDonut) — Research segment distribution with percentage labels inside arcs and interactive tooltips.
6. Sortable & Filterable Table (ExperimentsTable) — 30 realistic experiment records with:
- Column sorting (click headers, ↑/↓ indicator)
- Status filter dropdown (All/Running/Completed/Queued/Failed)
- Text search across name, ID, researcher, segment
- Scrollable table body with sticky header
- Color-coded accuracy values and status badges with animated "ping" dot for running experiments
7. Segment & Date Range Filters — Toggle individual research segments (NLP, Vision, RL, Robotics, Multimodal) and switch between 7/14/30/90 day periods. Every view updates live when filters change.
8. Responsive Design — 6-column KPI grid on xl, 3-column on lg, 2-column on sm. Charts stack vertically on mobile. Table scrolls horizontally.
Tech Stack
- React 19 + TypeScript
- Vite 7 for build tooling
- Tailwind CSS v4 for styling
- Recharts for all charts (line, bar, donut)
- Lucide React installed for future icon use
- All data is generated from
src/data/sampleData.ts with realistic patterns and seeded variation
Files built: index.html, src/data/sampleData.ts, src/components/Dashboard.tsx, src/components/KpiCards.tsx, src/components/Filters.tsx, src/components/TrendChart.tsx, src/components/WeeklyBarChart.tsx, src/components/SegmentDonut.tsx, src/components/ExperimentsTable.tsx, src/App.tsx, src/index.css