Team tasksAnis
SRV-47 — Missions, challenges, ranking and badges
Missions with cadence and progress, monthly Top N with review and publication, badges.
| Field | Details |
|---|---|
| Task code | SRV-47 |
| Phase | P4 — V2 evolutions |
| Product scope | V2 |
| Status | Planned |
| Start | Wed 3 Mar 2027 |
| Due | Mon 8 Mar 2027 |
| Responsible | Anis — Full-stack developer |
| Co-responsible | — |
| Effort | 3 person-day(s) planned · 8 from scratch · size M |
| Area · app | Server · server |
| Depends on | SRV-45 |
| Unblocks | SRV-48 |
| Milestones | — |
Summary
Missions with cadence and progress, monthly Top N with review and publication, badges.
Description
Change request 04 (client loyalty document and letter of 6 Nov 2026), not yet accepted or priced by HOCO. Builds missions (Mission, MissionProgress), monthly challenges (Challenge, ChallengeResult) with a configurable criterion and Top N and document 03's weighted score, review and publication, and badges. Takes LOY-06 and LOY-07 from SRV-30, where no task covered them.
Subtasks
| # | Subtask | Owner |
|---|---|---|
| 1 | Mission model, condition evaluators, progress on order events | Anis |
| 2 | Assignment job by cadence, including document 03's personalised missions | Anis |
| 3 | Challenge criteria, hourly refresh, closing, publication | Anis |
| 4 | Prize award through vouchers, rewards and badges | Anis |
| 5 | Badges, conditions, temporary end dates | Anis |
Deliverables
- apps/server/src/modules/loyalty/{missions,challenges,badges}.service.ts
Acceptance criteria
- A mission pays once (LOY-06)
- Top N is configurable and results are frozen at closing (LOY-07)
- No response exposes another reseller's figures (LOY-07)
- A temporary badge ends on its date (LOY-17)
Requirements covered
| Requirement | Title | Release |
|---|---|---|
| LOY-06 | Missions and challenges: daily, weekly, monthly, seasonal; commercial, interaction, surprise and personalised | V2 |
| LOY-07 | Monthly ranking: configurable criterion and Top N, reviewed results, prizes and home highlight | V2 |
| LOY-17 | Badges: conditions, display, permanent or temporary | V2 |
API surface
| Endpoint group | Operations |
|---|---|
| Loyalty (V2) | 23 |
| Promotions & loyalty | 41 |
Test measures
- Evaluator table tests
- Job tests with a fake clock
Risks
- Prize budget open (D-42, D-54)
KPI
- Delivered by Mon 8 Mar 2027 within 3 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.