Team tasksAnis
SRV-50 — Loyalty notifications, dashboard data and rule versioning
Notification events, dashboard aggregates, full history, rule versions and recalculation.
| Field | Details |
|---|---|
| Task code | SRV-50 |
| Phase | P4 — V2 evolutions |
| Product scope | V2 |
| Status | Planned |
| Start | Wed 17 Mar 2027 |
| Due | Thu 18 Mar 2027 |
| Responsible | Anis — Full-stack developer |
| Co-responsible | — |
| Effort | 2 person-day(s) planned · 5 from scratch · size M |
| Area · app | Server · server |
| Depends on | SRV-49, SRV-46 |
| Unblocks | DSH-22, QA-04 |
| Milestones | V2 delivered |
Summary
Notification events, dashboard aggregates, full history, rule versions and recalculation.
Description
Change request 04 (client loyalty document and letter of 6 Nov 2026), not yet accepted or priced by HOCO. Adds the loyalty notification events and templates, the dashboard aggregates, the combined history, the account views, LoyaltyRuleVersion, previewed recalculations and the nightly ledger reconciliation.
Subtasks
| # | Subtask | Owner |
|---|---|---|
| 1 | Loyalty events and templates of the notification matrix | Anis |
| 2 | Dashboard aggregates and admin.loyalty.dashboard | Anis |
| 3 | loyalty.history and admin.loyalty.accounts.* | Anis |
| 4 | Rule versions, change scope, recalculation preview and run | Anis |
| 5 | loyalty.reconcileLedgers and manual adjustment of qualified purchases | Anis |
Deliverables
- apps/server/src/modules/loyalty/{history,dashboard,recalculation}.service.ts
- Notification templates seed
Acceptance criteria
- A rule change states its scope and leaves history intact (LOY-25)
- Dashboard totals match the ledgers (LOY-24)
- Web, app and back-office show the same data (LOY-22)
- Each event of the matrix reaches the right channels under the caps (NOT-18)
Requirements covered
| Requirement | Title | Release |
|---|---|---|
| LOY-22 | Full history: separate ledgers, one combined view | V2 |
| LOY-23 | Back-office administration: every rule without a developer, reseller view, manual adjustments | V2 |
| LOY-24 | Programme dashboard | V2 |
| LOY-25 | Rule versioning: new operations only, or recalculation | V2 |
| LOY-26 | Mandatory tests before the programme is delivered | V2 |
| NOT-18 | Loyalty-driven notifications: double points, new level, missions, gifts, anniversary, objective almost reached, challenge of the month | V2 |
API surface
| Endpoint group | Operations |
|---|---|
| Loyalty (V2) | 23 |
| Promotions & loyalty | 41 |
| Notifications & announcements | 10 |
Test measures
- Recalculation preview equals the run
- Reconciliation job test
KPI
- Delivered by Thu 18 Mar 2027 within 2 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.