I will start by exploring the project directory and examining existing files and package configurations.
I will check the existing dependencies in package.json to see if we need to install recharts, lucide-react, etc.
I will install lucide-react and recharts so we can build rich charts and clean icons for our OPEX dashboard.
I will install lucide-react and recharts using exact package names without version prefixes.
I will read index.html and src/index.css to check the title, font imports, and styling setup.
I will read src/index.css to inspect the default stylesheet.
I will read src/utils/cn.ts to see what utility function is already provided.
I will update index.html to set a professional title and include Korean font support (Pretendard & Noto Sans KR) for high readability in financial and operational analytics.
I will enhance src/index.css to configure clean Korean typography, smooth transitions, and custom scrollbar styling for both light and dark modes.
I will create src/types/opex.ts defining all data structures for segments, cost elements, monthly OPEX points, price-volume metrics, scenario simulation parameters, and detected anomalies.
I will create src/data/opexMockData.ts with 24 months of rich, realistic OPEX data across 4 production segments, complete with seasonal utility patterns, maintenance overhauls, detailed operational anomalies, and analytical calculation helpers.
I will update src/data/opexMockData.ts to include the scenario simulation forecast function calculateScenarioForecast which computes YTD actuals, scenario-adjusted Remaining Year forecast, and sensitivity bounds.
I will create src/components/layout/Header.tsx with a dark mode toggle, interactive Practitioner Guide modal button, quick export button, and real-time refresh indicator.
I will create src/components/layout/FilterBar.tsx offering instant multi-dimensional filtering by time period, manufacturing line, product category, cost element, and currency unit, updating all views live.
I will remove the unused Filter import from src/components/layout/FilterBar.tsx.
I will create src/components/kpi/KpiSummaryCards.tsx featuring 5 KPI cards with trend indicators, budget variance badges, hover tooltips explaining economic evaluation formulas, and interactive navigation to anomalies.
I will clean up unused imports and variables in src/components/kpi/KpiSummaryCards.tsx and make sure YoY variance is displayed in the Unit Cost tooltip.
I will use forecastBudgetFormatted and isYoYIncrease in src/components/kpi/KpiSummaryCards.tsx to display the annual budget target and YoY comparison tooltip.
I will update the card footer text in src/components/kpi/KpiSummaryCards.tsx to display forecastBudgetFormatted and isYoYIncrease information.
I will use forecastBudgetFormatted in the FORECAST card in src/components/kpi/KpiSummaryCards.tsx to display the annual budget target.
I will create src/components/charts/OpexTrendChart.tsx displaying the total processing cost trend with selectable views (Monthly, YTD Cumulative, Unit OPEX), comparing Actuals vs. Budget vs. Prior Year, with a secondary axis for Production Volume.
I will create src/components/charts/CostBreakdownChart.tsx providing both a Donut Chart for overall cost share and a Stacked Bar Chart for monthly element evolution, with interactive highlighting and drill-down tooltips.
I will create src/components/charts/PriceVolumeAnalysis.tsx displaying the usage volume and unit cost trend on dual axes, accompanied by a Price vs. Volume variance bridge analysis card tailored for economic evaluation practitioners.
I will create src/components/forecast/ForecastScenarioSection.tsx providing an interactive FY2025 OPEX forecast simulation with real-time sliders for utility rates, volume, labor efficiency, and maintenance, updating projected OPEX and unit costs live.
I will create src/components/anomalies/AnomalyDetectionSection.tsx displaying automatic detection of cost spikes and unit rate anomalies with statistical Z-scores, root-cause analysis, recommended action items, and one-click filtering.
I will remove the unused Filter import from src/components/anomalies/AnomalyDetectionSection.tsx.
I will create src/components/table/OpexDataTable.tsx providing a sortable, filterable data table with expandable rows for 6-element drill-down, search, and Excel export simulation.
I will create src/components/modals/PractitionerGuideModal.tsx providing a quick reference guide for economic evaluation practitioners on standard OPEX cost element classifications, price-volume variance math, and scenario simulation.
I will remove the unused CheckCircle2 import from src/components/modals/PractitionerGuideModal.tsx.
I will inspect src/App.tsx before replacing it with our full OPEX Analytics Dashboard application.
I will replace src/App.tsx with our complete OPEX-PRO Economic Evaluation Analytics Dashboard, integrating all charts, KPI cards, real-time multi-filters, scenario simulation sliders, anomaly detection alerts, and sortable data table.
I will remove the unused imports from src/App.tsx.
I will now test building the project to verify there are no TypeScript or bundling errors.
I have created an interactive OPEX Analytics Dashboard (OPEX-PRO) tailored specifically for 경제성평가 실무자 (Economic Evaluation Practitioners).
What was built:
-
Targeted Economic Evaluation Capabilities for Practitioners:
- 총가공비 추이 & 원가 요소별 분석: Monthly, Cumulative (YTD), and Unit OPEX (원/kg) trends comparing Actuals vs. Budget vs. Prior Year alongside Production Volume (Ton), plus a 6-element breakdown (인건비, 전력·유틸리티비, 감가상각비, 수선유지비, 소모품비, 간접공통비).
- 사용량 및 단가 추이 (Price × Volume Variance Bridge): Dedicated analysis separating 단가 변동 효과 (Rate/Price Variance) from 사용량/효율 효과 (Volume/Efficiency Variance) for Utilities (MWh & 원/kWh), Maintenance (Hr & 원/Hr), and Consumables.
- 연간 가공비 FORECAST & 시나리오 시뮬레이션: Live sensitivity sliders for Electricity Tariff (%), Production Volume (%), Labor Efficiency (%), and Maintenance (%), instantly recalculating FY2025 Projected OPEX, Unit Cost, and variance vs. Budget.
- 3-Sigma 통계적 이상치 감지 (Outlier Detection & Alert System): Automatic anomaly flagging with Z-Score badges, root-cause diagnostics, recommended operational action plans, and one-click filtering to inspect specific events.
- 실무자 가이드북 모달 (Practitioner Guide): Built-in reference explaining 6-element classification standards and rate-volume mathematical formulas.
-
Interactive Multi-Filter Toolbar (FilterBar):
- Updates every view live across time periods (
2024~2025 전체, 2025년 (FY25), 최근 12개월, 2025 YTD, Q3/Q4), segments (제1공장 양극재/셀, 제2공장 팩/모듈, 제3공장 고성능 전극, 연구·파일럿), product categories (EV/ESS/Mobile), currency units (억원, 천만원, USD $10k), and keyword search.
-
KPI Summary Cards & Visualizations:
- 5 KPI cards featuring trend indicators, budget variance badges, and hover tooltips.
- Composed Line & Bar charts, Stacked Bar charts, Donut chart with interactive drill-down highlighting, and smooth hover tooltips.
-
Sortable & Filterable Data Table (OpexDataTable):
- Sort by month, segment, volume, actual OPEX, budget, variance %, or unit cost.
- Click any row to expand a Drill-Down view showing the 6 cost elements and anomaly notes for that month.
- Excel/CSV export simulation with instant toast notification.
Files built: index.html, src/index.css, src/types/opex.ts, src/data/opexMockData.ts, src/components/layout/Header.tsx, src/components/layout/FilterBar.tsx, src/components/kpi/KpiSummaryCards.tsx, src/components/charts/OpexTrendChart.tsx, src/components/charts/CostBreakdownChart.tsx, src/components/charts/PriceVolumeAnalysis.tsx, src/components/forecast/ForecastScenarioSection.tsx, src/components/anomalies/AnomalyDetectionSection.tsx, src/components/table/OpexDataTable.tsx, src/components/modals/PractitionerGuideModal.tsx, src/App.tsx