I will list the files in the project to understand the structure and inspect existing dependencies.
I will read package.json to see what libraries and icons are installed in the project.
I will install lucide-react for iconography and recharts for interactive charts with tooltips and smooth animations.
I will check src/index.css to see the current Tailwind and styling setup.
I will read index.html to inspect the title and head elements.
I will update index.html to set a descriptive title ("AI FinOps Studio | Enterprise Frontier Model Token & Cost Governance"), meta tags, and font styling for a modern enterprise aesthetic.
I will update src/index.css with font families (Plus Jakarta Sans for UI and JetBrains Mono for token/cost metrics), custom scrollbars, and smooth transition utilities.
I will create src/types/finops.ts with TypeScript interfaces for frontier models, usage metrics, departments, applications, governance statuses, time series, and filter states.
I will create src/data/mockFinOpsData.ts with frontier model catalog data, pricing, 14 enterprise applications, alerts, and live calculation functions that respond to date-range and segment filters.
I will update calculateKpis in src/data/mockFinOpsData.ts to use timeSeries for calculating dynamic daily burn rate and trends.
I will use dynamicCostTrend in the return object of calculateKpis in src/data/mockFinOpsData.ts.
I will check src/utils/cn.ts to ensure our Tailwind class utility is ready.
I will create src/utils/formatters.ts with helper functions for formatting tokens, USD currency, percentages, and compact numbers.
I will create src/context/FinOpsContext.tsx to provide global state for live filters, dark mode toggle, alerts, application governance modifications, and recalculated time-series and KPI data.
I will remove the unused imported types from src/context/FinOpsContext.tsx.
I will create src/components/layout/Navbar.tsx with a date-range selector, live alert dropdown, budget burn ticker, Smart Router button, export action, and dark/light mode toggle.
I will remove the unused AlertTriangle import from src/components/layout/Navbar.tsx.
I will create src/components/layout/FilterBar.tsx with date-range and segment filters (Department, Environment, Frontier Model, Governance Status, Search query) that update every view live.
I will create src/components/kpi/KpiSection.tsx with 5 interactive KPI summary cards featuring trend indicators, mini progress bars, tooltip breakdowns, and live data binding.
I will remove the unused imports and variable from src/components/kpi/KpiSection.tsx.
I will create src/components/charts/TokenTrendChart.tsx with Recharts Area/Line charts, interactive tabs (Token Breakdown, Cost Burn USD, Model Stack Share), and custom glassmorphic hover tooltips.
I will remove the unused LineChart and Line imports from src/components/charts/TokenTrendChart.tsx.
I will create src/components/charts/ModelDistributionChart.tsx with an interactive Recharts Pie/Donut chart, slice hover tooltips, and a toggle between Token Share and USD Cost Share.
I will fix the tooltip and onClick typing in src/components/charts/ModelDistributionChart.tsx.
I will fix the PieChart onClick TypeScript error in src/components/charts/ModelDistributionChart.tsx.
I will create src/components/charts/DepartmentSpendChart.tsx with a Recharts BarChart comparing Actual Spend vs Monthly Budget Cap across Enterprise Departments.
I will create src/components/charts/ModelEfficiencyChart.tsx comparing Cost per 1M Tokens vs Latency and FinOps Efficiency Score across all 9 frontier models.
I will create src/components/table/GovernanceTable.tsx with sortable columns, custom sparklines, multi-model tags, budget burn bars, status badges, and interactive FinOps optimization buttons.
I will remove the unused imports from src/components/table/GovernanceTable.tsx.
I will create src/components/modals/GovernanceActionModal.tsx allowing FinOps teams to inspect granular workload token metrics, apply automated model routing recommendations, adjust budget caps, or toggle throttling.
I will remove the unused imports from src/components/modals/GovernanceActionModal.tsx.
I will create src/components/modals/SmartRouterSimulatorModal.tsx as an interactive simulation tool for AI FinOps engineers to model cost savings from prompt caching, open-weight routing, and tiered fallback policies.
I will create src/components/common/Toast.tsx for visual confirmation when users change budgets, routing rules, or filter states.
I will read the existing src/App.tsx to inspect its current contents.
I will replace src/App.tsx with the complete AI FinOps Enterprise Dashboard layout, integrating all interactive KPI cards, charts, data tables, filter bar, and governance modals.
I will remove the unused imports from src/App.tsx.
I will run build_project to verify that the application compiles and bundles without any TypeScript or build errors.
I have created an interactive AI FinOps Enterprise Frontier Model Token & Cost Governance Dashboard tailored for enterprise AI FinOps teams.
Key Highlights & Features Built:
-
Interactive Date-Range & Multi-Segment Filters:
- Time Horizon Selector: Live toggle between Last 24h, Last 7 Days, Last 30 Days, and Q1 2026.
- Segment Filter Bar: Multi-select dropdowns for Department / Business Unit (Engineering & Platform, Customer Success, Product & Growth, Data Science & AI Lab, Finance & Legal, Sales Ops), Environment (Production, Staging, Sandbox & Dev), Frontier Model (GPT-4o, GPT-4o Mini, OpenAI o1-Preview, Claude 3.5 Sonnet, Claude 3 Opus, Gemini 1.5 Pro, Llama 3.1 405B, DeepSeek-R1, Mistral Large 2), Governance Status (Anomaly Flagged, Budget Warning, Compliant, Throttled), and real-time text search.
- Every chart, KPI card, and table row recalculates and updates instantly when any filter is changed.
-
5 Live KPI Summary Cards with Trend Indicators:
- Total Tokens Consumed: Shows enterprise token volume (
1.84B in 30d view) with MoM trend (+14.2%), a breakdown of Input vs. Output vs. Cached tokens, and hover tooltip metrics.
- Estimated AI Spend & Budget Burn: Tracks total USD cost (
$48,290.40) against budget allocations, displaying burn rate status and cost trend vs projection.
- Prompt Cache Efficiency: Monitors prompt cache hit rate (
42.8%, +8.4%), displaying estimated USD saved ($12,400+) from Anthropic & OpenAI prompt caching headers.
- Avg Cost per 1M Tokens: Measures blended cost efficiency (
$24.50 / 1M tokens, -12.1% MoM) across routing policies.
- Governance & Alerts Status: Direct inspection buttons for anomaly-flagged and throttled applications.
-
Interactive Charts with Tooltips & Transitions (Recharts):
- Ecosystem Token & Spend Trend (Area/Line Chart): Includes tabs to switch between Token Breakdown (Stacked Area of Input, Output, and Cached tokens), Daily Spend ($ USD), and Model Stack Share. Features a glassmorphic hover tooltip showing detailed breakdown shares.
- Frontier Model Share (Donut Chart): Visualizes the market share of all 9 frontier models with clickable slices that filter the entire dashboard view, and a toggle between and .
Files built: index.html, src/index.css, src/types/finops.ts, src/data/mockFinOpsData.ts, src/utils/formatters.ts, src/context/FinOpsContext.tsx, src/components/layout/Navbar.tsx, src/components/layout/FilterBar.tsx, src/components/kpi/KpiSection.tsx, src/components/charts/TokenTrendChart.tsx, src/components/charts/ModelDistributionChart.tsx, src/components/charts/DepartmentSpendChart.tsx, src/components/charts/ModelEfficiencyChart.tsx, src/components/table/GovernanceTable.tsx, src/components/modals/GovernanceActionModal.tsx, src/components/modals/SmartRouterSimulatorModal.tsx, src/components/common/Toast.tsx, src/App.tsx