8 Commits

Author SHA1 Message Date
sujucu70
eb804d7fb0 fix: Consistent CPI score calculation using airlines benchmarks
Updates economy dimension score to use airlines benchmark percentiles:
- p25 (€2.20) = 100 points
- p50 (€3.50) = 80 points
- p75 (€4.50) = 60 points
- p90 (€5.50) = 40 points
- >p90 = 20 points

Applies to: backendMapper.ts, realDataAnalysis.ts, analysisGenerator.ts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 14:02:25 +01:00
sujucu70
820e8b4887 fix: Centralize CPI calculation for fresh data consistency
- Calculate CPI once in main function from heatmapData
- Pass globalCPI to generateDimensionsFromRealData
- This ensures dimension.kpi.value matches ExecutiveSummaryTab's calculation
- Both now use identical formula: weighted avg of (cpi * cost_volume) / total_cost_volume

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:32:40 +01:00
sujucu70
728ba5772e fix: Unify CPI calculation between dimensions and executive summary
- realDataAnalysis.ts now uses identical CPI calculation as ExecutiveSummaryTab
- Added hasCpiField check for consistent fallback behavior
- Uses same formula: weighted average of (cpi * cost_volume) / total_cost_volume
- Falls back to totalAnnualCost / totalCostVolume when no CPI field exists

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:22:10 +01:00
sujucu70
88d7e4c10d feat: Add Law 10/2025 compliance analysis tab
- Add new Law10Tab with compliance analysis for Spanish Law 10/2025
- Sections: LAW-01 (Response Speed), LAW-02 (Resolution Quality), LAW-07 (Time Coverage)
- Add Data Maturity Summary showing available/estimable/missing data
- Add Validation Questionnaire for manual data input
- Add Dimension Connections linking to other analysis tabs
- Fix KPI consistency: use correct field names (abandonment_rate, aht_seconds)
- Fix cache directory path for Windows compatibility
- Update economic calculations to use actual economicModel data

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 21:58:26 +01:00
Susana
62454c6b6a Commit inicial 2026-01-18 19:15:34 +00:00
Susana
8082a14e1b fix: Corregir cálculo de transfer_rate en métricas
- transfer_rate ahora muestra el % real de transferencias
- FCR = 100 - transfer_rate (resolución en primer contacto)
- Antes ambos mostraban el mismo valor (FCR)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 08:48:43 +00:00
Susana
7e24f4eb31 feat: Rediseño dashboard con 4 pestañas estilo McKinsey
- Nueva estructura de tabs: Resumen, Dimensiones, Agentic Readiness, Roadmap
- Componentes de visualización McKinsey:
  - BulletChart: actual vs benchmark con rangos de color
  - WaterfallChart: impacto económico con costes y ahorros
  - OpportunityTreemap: priorización por volumen y readiness
- 5 dimensiones actualizadas (sin satisfaction ni economy)
- Header sticky con navegación animada
- Integración completa con datos existentes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 08:41:20 +00:00
Ignacio
2cd6d6b95c Initial commit: frontend + backend integration 2025-12-29 18:12:32 +01:00