Commit Graph

36 Commits

Author SHA1 Message Date
88a7edba5c revert 2f6ad3b52c
revert Update backend/beyond_api/security.py
2026-01-28 15:30:05 +00:00
5b98143117 revert 3ed079542a
revert Update backend/beyond_api/security.py
2026-01-28 15:29:49 +00:00
3ed079542a Update backend/beyond_api/security.py 2026-01-28 15:23:12 +00:00
2f6ad3b52c Update backend/beyond_api/security.py 2026-01-28 15:22:33 +00:00
sujucu70
152b5c0628 fix: Use airlines benchmark (€3.50) for CPI economic impact calculation
Changed CPI_TCO from €2.33 to €3.50 to match the airlines p50 benchmark
used in the rest of the dashboard. This ensures consistent impact
calculations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 14:09:12 +01:00
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
c9f6db9882 fix: Use airlines CPI benchmark (€3.50) for consistency
Changes CPI_BENCHMARK from €5.00 to €3.50 to match the airlines
industry benchmark used in ExecutiveSummaryTab.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 13:53:24 +01:00
sujucu70
a48aca0a26 debug: Add CPI comparison logging in both tabs
Logs CPI values in both ExecutiveSummaryTab and DimensionAnalysisTab
to identify where the mismatch occurs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:51:08 +01:00
sujucu70
20e9d213bb debug: Add detailed CPI sync logging for cache path
Adds console logs to trace CPI calculation and sync process.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:49:14 +01:00
sujucu70
c5c88f6f21 fix: Handle both economy_cpi and economy_costs dimension IDs
- CPI sync now searches for both IDs (backend uses economy_costs,
  frontend fallback uses economy_cpi)
- DimensionAnalysisTab causal analysis recognizes both IDs
- Ensures consistency across fresh data, cached data, and fallback paths

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:44:51 +01:00
sujucu70
cbea968776 fix: Sync CPI in economy dimension with heatmapData for cached data
Ensures CPI consistency between Executive Summary and Dimensions tabs
when using cached/backend data path. After heatmapData is built,
recalculates global CPI using weighted average and updates economy
dimension KPI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:36:55 +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
5df79d436f fix: Consistent CPI calculations and correct benchmark data
1. DimensionAnalysisTab: Changed CPI fallback from 2.33 to 0 to match
   ExecutiveSummaryTab calculation

2. ExecutiveSummaryTab: Fixed benchmark data for inverted metrics (CPI, Abandono)
   - Values must be in ASCENDING order (p25 < p50 < p75 < p90)
   - p25 = best performers (lowest CPI/abandono)
   - p90 = worst performers (highest CPI/abandono)
   - This fixes the visual comparison and gap calculation

Before: cpi { p25: 4.50, p50: 3.50, p75: 2.80, p90: 2.20 } (DESCENDING - wrong)
After:  cpi { p25: 2.20, p50: 3.50, p75: 4.50, p90: 5.50 } (ASCENDING - correct)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:09:40 +01:00
sujucu70
0063d299c9 fix: Consistent KPI calculations across tabs
- DimensionAnalysisTab now uses h.metrics.transfer_rate instead of
  h.variability?.transfer_rate for consistency with ExecutiveSummaryTab
  and Law10Tab
- Both fields should have the same value, but using metrics.transfer_rate
  ensures consistency across all tabs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 11:03:50 +01:00
sujucu70
33d25871ae fix: Restore TrendingUp import used by DataMaturitySummary
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:35:04 +01:00
sujucu70
468248aaed fix: Restore FileText import used by Law10SummaryRoadmap
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:32:16 +01:00
sujucu70
b921ecf134 refactor: Remove ValidationQuestionnaire and DimensionConnections from Law10Tab
- Removed ValidationQuestionnaire section (manual input form)
- Removed DimensionConnections section (links to other tabs)
- Removed unused imports (FileText, TrendingUp)
- Removed onTabChange prop from Law10Tab component
- Updated DashboardTabs.tsx to not pass onTabChange to Law10Tab

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:24:49 +01:00
sujucu70
0f1bfd93cd feat: Add unified Dockerfile for Render deployment
- Single Dockerfile at root for full-stack deployment
- Multi-stage build: frontend (Node) + backend (Python)
- Nginx serves frontend and proxies /api to backend
- Supervisor manages both nginx and uvicorn processes
- Supports Render's PORT environment variable

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:04:06 +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
522b4b6caa feat: Mejorar visualización del resumen ejecutivo
- KPIs compactos en una sola tarjeta horizontal (4 métricas)
- Health Score con desglose de factores (FCR, AHT, Transferencias, CSAT)
- Barras de progreso por cada factor con estado y insight
- Insight contextual según el score
- Diseño más profesional y menos espacio vacío

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 09:03:47 +00:00
Susana
806e32429d feat: Simplificar página de entrada de datos
- Cabecera estilo dashboard (AIR EUROPA + fecha)
- Eliminar selección de tier (usar gold por defecto)
- Campos manuales vacíos por defecto
- Solo opción de subir archivo CSV/Excel
- Eliminar tabla de campos, plantilla y datos sintéticos

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 08:56:20 +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
igferne
fdfb520710 Actualización de límites NGINX 2026-01-08 17:19:09 +01:00
igferne
5a1fb1e767 Refactor Recurrence 7d 2026-01-08 17:08:47 +01:00
igferne
d8fecb1cb7 Installer url repo fix 2026-01-07 15:57:29 +01:00
igferne
1315417c53 Despliegue con token git 2026-01-07 14:06:17 +01:00
igferne
49b2677783 Readme 2026-01-07 13:45:40 +01:00
igferne
7151faf976 clean up 2026-01-07 13:36:28 +01:00
igferne
a706bf980d Dockerizado y con script de instalación 2026-01-07 13:35:29 +01:00
igferne
e4f985e6aa página de login 2026-01-07 13:03:10 +01:00
igferne
d7fcf2b416 Eliminación de aleatoriedad en las dimensiones reales. Integración completa con backend menos el benchmark 2026-01-05 14:21:44 +01:00
igferne
4c8d32dd45 Ajustes en la conexión front-back y eliminación datos demo 2026-01-02 19:28:31 +01:00
Ignacio
2cd6d6b95c Initial commit: frontend + backend integration 2025-12-29 18:12:32 +01:00