DSH-21 — V2 — Loyalty & packs pages
Packs editor, loyalty settings and levels, rewards and redemptions.
| Field | Details |
|---|---|
| Task code | DSH-21 |
| Phase | P4 — V2 evolutions |
| Product scope | V2 |
| Status | Planned |
| Start | Tue 16 Feb 2027 |
| Due | Wed 17 Feb 2027 |
| Responsible | Anis — Full-stack developer |
| Co-responsible | — |
| Effort | 1.5 person-day(s) planned · 3 from scratch · size S |
| Area · app | Back-office · dashboard |
| Depends on | SRV-31 |
| Unblocks | WEB-20 |
| Milestones | V2 delivered |
Summary
Packs editor, loyalty settings and levels, rewards and redemptions.
Description
The V2 loyalty and packs pages expose SRV-30 and SRV-31 to marketing (cahier §4.6; PRM-06, LOY-01, LOY-03, LOY-04): the packs editor with items, quantities, pack prices per customer type, period and availability preview (BO-52), loyalty settings with earning rules, expiry and level thresholds (BO-53), and the rewards catalogue with the redemptions queue and fulfilment (BO-54). Reseller loyalty accounts are visible from the reseller 360° page. Out of scope: reseller-facing loyalty (WEB-20, mobile).
Subtasks
| # | Subtask | Owner |
|---|---|---|
| 1 | BO-52 packs list and editor: items and quantities, prices Super-gros / Demi-gros / Détail, saving vs items, period, images, availability preview | Anis |
| 2 | BO-53 loyalty settings: earning rate, earn trigger (livraison / paiement), expiry period, bonuses | Anis |
| 3 | BO-53 levels: Bronze, Silver, Gold, VIP thresholds and period, current distribution of resellers | Anis |
| 4 | BO-54 rewards catalogue CRUD (RewardType, points cost, stock, image) and redemptions queue with « Marquer comme remis » | Anis |
| 5 | Loyalty tab on the reseller 360° page with balance, level, transactions and manual adjustment | Anis |
| 6 | Design QA of BO-52 to BO-54 | Akram |
Deliverables
- apps/dashboard/src/app/[locale]/(app)/promotions/packs/…
- apps/dashboard/src/app/[locale]/(app)/loyalty/{settings,levels,rewards,redemptions}/…
Acceptance criteria
- A pack saved in BO-52 appears in the reseller apps with the price of the reseller's customer type (PRM-06)
- Changing level thresholds takes effect at the next level computation and is audited (LOY-03)
- A redemption can be marked fulfilled and the reseller is notified (LOY-04)
- A manual points adjustment requires a reason and appears in the reseller's transactions (LOY-01)
Requirements covered
| Requirement | Title | Release |
|---|---|---|
| PRM-06 | Profitable packs: bundles of references at a pack price, added to cart as a unit | V2 |
| LOY-01 | Points earned per order, credited after delivery or payment (setting), bonuses | V2 |
| LOY-03 | Levels Bronze, Silver, Gold, VIP over a period with client-validated thresholds | V2 |
| LOY-04 | Rewards catalogue (voucher, free delivery, discount, gift, early access) and redemption | V2 |
Screens
API surface
| Endpoint group | Operations |
|---|---|
| Promotions & loyalty | 10 |
Test measures
- Playwright e2e: create a pack and check it in the reseller web
- Playwright e2e: reward redemption from the web → fulfilment in BO-54
KPI
- Delivered by Wed 17 Feb 2027 within 1.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.