4 Commits

Author SHA1 Message Date
ea201ef565 Replace ambiguous cost-vs-revenue bar charts with clearer line charts
Stacked/grouped bars made it hard to compare gasto vs ingreso when the
two values are close, and margen barely visible against that scale.
Extract a shared _eur_line_chart helper (single €-axis, fixed categorical
colors, tooltip) and reuse it for the per-campaign, portfolio, and
resumen daily views instead of duplicating Altair boilerplate per chart.
2026-07-03 00:43:21 +02:00
8cb5832f8b Replace deprecated use_container_width with width param in dashboard
Streamlit 1.58 warns on every use_container_width call; switch to the
width="stretch" replacement to silence the noisy deprecation warnings.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-02 20:17:43 +02:00
bfd130578a Improve SEM dashboard: split Histórico tabs, shrink KPI metrics, add daily P&L chart
- Separate campaign-level daily metrics from the global portfolio view in
  the Histórico tab using nested sub-tabs instead of a single stacked section.
- Shrink st.metric font sizes globally so large KPI values render correctly.
- Add a daily evolution chart in Resumen showing Inversión, Ingreso,
  Margen (sumatorio) and Margen (PPL) aggregated across filtered campaigns.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-02 17:43:55 +02:00
94c2d3b730 Add Streamlit dashboard for leads-optimizer metrics
Adds dashboard.py with streamlit/pandas deps, plus internal docs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-02 13:08:42 +02:00