Skip to main content

PLN100 EVIDENCE — Relatórios Preditivos

Backend (622 linhas)

  • predictive_reports.py — 3 endpoints: mrr-forecast, cohort-analysis, ltv-segments
  • MRR forecast: 12m history + 12m compound (growth - churn)
  • Cohort: retenção mês a mês por cohort Client.created_at
  • LTV: realizado + preditivo por produto/plano + overall
  • 12 testes pytest: auth(401/403), empty, with_data, schema × 3 endpoints

Frontend (593 linhas)

  • AdminPredictiveReports.tsx — MRR bar chart CSS, cohort heatmap, LTV cards
  • predictiveReports.ts — API client com 7 interfaces
  • Sidebar BarChart3 + rota /admin/predictive
  • 25 keys i18n × 6 idiomas

E2E

  • Suite 101-admin-predictive: PREDICT-01..08 × 3 viewports = 24 testes
  • 3 jobs CI/CD: e2e:{dev,uat,staging}:admin-predictive + needs update

Commits

SHADescrição
82c4ed7feat(predictive): MRR forecast + cohort + LTV endpoints
0eaccecfeat(predictive): dashboard preditivo + i18n 6 idiomas
b8036d0test(predictive): E2E suite 101 + CI/CD jobs

MR

  • MR !254 — feat/predictive-reports → dev (MERGED)