HOCO B2B
Team tasksAnis

SRV-47 — Missions, challenges, ranking and badges

Missions with cadence and progress, monthly Top N with review and publication, badges.

FieldDetails
Task codeSRV-47
PhaseP4 — V2 evolutions
Product scopeV2
StatusPlanned
StartWed 3 Mar 2027
DueMon 8 Mar 2027
ResponsibleAnis — Full-stack developer
Co-responsible—
Effort3 person-day(s) planned · 8 from scratch · size M
Area · appServer · server
Depends onSRV-45
UnblocksSRV-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

#SubtaskOwner
1Mission model, condition evaluators, progress on order eventsAnis
2Assignment job by cadence, including document 03's personalised missionsAnis
3Challenge criteria, hourly refresh, closing, publicationAnis
4Prize award through vouchers, rewards and badgesAnis
5Badges, conditions, temporary end datesAnis

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

RequirementTitleRelease
LOY-06Missions and challenges: daily, weekly, monthly, seasonal; commercial, interaction, surprise and personalisedV2
LOY-07Monthly ranking: configurable criterion and Top N, reviewed results, prizes and home highlightV2
LOY-17Badges: conditions, display, permanent or temporaryV2

API surface

Endpoint groupOperations
Loyalty (V2)23
Promotions & loyalty41

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.

On this page