1.6.0 #6+#7: proyección/ETA de objetivos + insights inteligentes

Goal ETA (#6): GoalProjection engine (CAGR mensual robusto de la evolución +
aportaciones, proyecta mes a mes → fecha estimada, estado ahead/on-track/behind/
unreachable, sparkline). GoalsView muestra 'Projected: <mes>', chip de ritmo con color,
fallback 'Add contributions to reach this'. GoalsViewModel.projection(for:) cacheado.

Insights (#7): InsightsEngine rule-based on-device (sin red/AI). Reglas: allocation vs
target, riesgo de concentración, mejor/peor categoría, diversificación, racha, YTD,
ganancias, forecast, proximidad a milestone. Priorizados por tono, top 4. PortfolioInsight
gana detail + tone. Surface en el Dashboard.

Localización: 19 claves nuevas en los 7 idiomas.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L2p3gUZRNWW388rWFRjiU7
This commit is contained in:
alexandrev-tibco
2026-07-25 12:22:12 +02:00
parent fd1094b4fc
commit 6887d05b01
14 changed files with 766 additions and 128 deletions
@@ -376,6 +376,25 @@
"insight_streak_title" = "Racha de seguimiento";
"insight_streak_value" = "%d meses consecutivos";
"insight_forecast_title" = "En camino hacia";
"insight_allocation_title" = "Desvío de asignación";
"insight_allocation_over_value" = "%1$@ está al %2$.0f%% — por encima de tu objetivo del %3$.0f%%";
"insight_allocation_under_value" = "%1$@ está al %2$.0f%% — por debajo de tu objetivo del %3$.0f%%";
"insight_allocation_detail" = "Reequilibra para seguir tu plan";
"insight_concentration_title" = "Riesgo de concentración";
"insight_concentration_value" = "%1$@ es el %2$.0f%% de tu cartera";
"insight_concentration_detail" = "Plantéate diversificar";
"insight_best_performer_title" = "Mejor rendimiento";
"insight_worst_performer_title" = "Requiere atención";
"insight_performer_value" = "%1$@ · %2$+.1f%%";
"insight_diversification_title" = "Diversificación";
"insight_diversification_single_value" = "Todo en una fuente — considera añadir otra";
"insight_diversification_good_value" = "Repartido en %d categorías";
"goal_projection_projected" = "Previsión: %@";
"goal_projection_add_contributions" = "Añade aportaciones para alcanzarlo";
"goal_chip_ahead" = "Por delante";
"goal_chip_on_track" = "En camino";
"goal_chip_behind" = "Con retraso";
"goal_chip_at_this_pace" = "A este ritmo…";
"notification_milestone_title" = "¡Hito de cartera! 🎉";
"notification_milestone_body" = "Tu cartera acaba de superar %@. ¡Enhorabuena!";