HOCO B2B
Team tasksAnis

SRV-38 — V2 — Advanced analytics

Cohorts, reseller activity scoring, delegate benchmarking, demand trends by zone.

FieldDetails
Task codeSRV-38
PhaseP4 — V2 evolutions
Product scopeV2
StatusPlanned
StartWed 10 Feb 2027
DueSun 14 Feb 2027
ResponsibleAnis — Full-stack developer
Co-responsible—
Effort2.5 person-day(s) planned · 6 from scratch · size M
Area · appServer · server
Depends onSRV-37
Unblocks—
MilestonesV2 delivered

Summary

Cohorts, reseller activity scoring, delegate benchmarking, demand trends by zone.

Description

Advanced analytics are V2 (cahier §14.2; ANA-06) and build on the V1 aggregates of SRV-25. This task adds reseller cohorts (by sign-up month and first-order month with retention), reseller activity scoring (recency, frequency, monetary value), delegate benchmarking (conversion, visits per day, revenue per visit, normalised by zone), and demand trends by zone, brand and category with a simple forecast — exposed as new report keys through admin.reports.* and refreshed by scheduled jobs on materialised views. Out of scope: a separate BI tool.

Subtasks

#SubtaskOwner
1Materialised views for cohorts and reseller activity, refreshed nightlyAnis
2Cohort report (sign-up and first-order cohorts, monthly retention)Anis
3Activity scoring (RFM) with segments and score historyAnis
4Delegate benchmarking report normalised by zone size and potentialAnis
5Demand trends by zone, brand and category with a moving-average forecastAnis
6Report registrations, permissions and export supportAnis

Deliverables

  • apps/server/src/modules/analytics/advanced/{cohorts,scoring,benchmark,trends}.ts
  • SQL migrations for materialised views
  • Metric definitions added to the metrics glossary

Acceptance criteria

  • Cohort retention numbers match a hand-computed sample (ANA-06)
  • Every reseller has an activity score refreshed nightly
  • Benchmark and trend reports run with filters and export like V1 reports

Requirements covered

RequirementTitleRelease
ANA-06Advanced analytics (cohorts, forecasting, delegate benchmarking)V2

API surface

Endpoint groupOperations
Reports & exports5

Test measures

  • DB tests with seeded cohorts and expected retention
  • Performance check of view refresh on a production-sized dataset

KPI

  • Delivered by Sun 14 Feb 2027 within 2.5 person-day(s).
  • Every acceptance criterion above demonstrated before hand-off; linked requirements' acceptance criteria pass.
  • Zero open critical defects, permission gaps or data-integrity regressions at sign-off.

Generated from content/plan/tasks.json by scripts/generate-team-tasks.mjs. Dates are computed by the scheduler (Sunday–Thursday weeks, holidays excluded) — change the plan, not this page.

On this page