DSH-22 — Rules, levels and campaigns pages
Back-office pages for earning rules, cashback, levels, campaigns and rule versions.
| Field | Details |
|---|---|
| Task code | DSH-22 |
| Phase | P4 — V2 evolutions |
| Product scope | V2 |
| Status | Planned |
| Start | Sun 21 Mar 2027 |
| Due | Tue 23 Mar 2027 |
| Responsible | Anis — Full-stack developer |
| Co-responsible | — |
| Effort | 2.5 person-day(s) planned · 5 from scratch · size M |
| Area · app | Back-office · dashboard |
| Depends on | DSH-21, SRV-50, DES-31 |
| Unblocks | DSH-23 |
| Milestones | — |
Summary
Back-office pages for earning rules, cashback, levels, campaigns and rule versions.
Description
Change request 04 (client loyalty document and letter of 6 Nov 2026), not yet accepted or priced by HOCO. Builds BO-72 to BO-75 on the template pages: every rule can be created, changed, enabled or disabled, with the change scope on save, the simulator and the recalculation preview.
Subtasks
| # | Subtask | Owner |
|---|---|---|
| 1 | BO-72 rules, cashback and simulator | Anis |
| 2 | BO-73 levels with upkeep | Anis |
| 3 | BO-74 campaigns, beneficiaries, stacking | Anis |
| 4 | BO-75 versions and recalculation | Anis |
| 5 | Design QA notes for BO-72 to BO-75 | Akram |
Deliverables
- apps/dashboard/src/app/[locale]/(app)/loyalty/{rules,levels,campaigns,versions}/…
Acceptance criteria
- A rule is created and activated with no developer (LOY-23)
- Saving a rule asks for its change scope (LOY-25)
- A level with resellers cannot be disabled without a target (LOY-03)
Requirements covered
| Requirement | Title | Release |
|---|---|---|
| LOY-03 | Configurable levels: Standard at sign-up, then levels from qualified purchases over a configurable period | V2 |
| LOY-08 | Earning rules: barème by product, category, brand, quantity or amount, set in the back-office | V2 |
| LOY-09 | Order-value bonuses and bonuses on selected products | V2 |
| LOY-10 | Occasion campaigns and Happy Days with Algiers time windows | V2 |
| LOY-11 | Campaign stacking and the calculation order | V2 |
| LOY-13 | New-product campaign for the first N buyers | V2 |
| LOY-14 | Cashback balance, earning and use at checkout | V2 |
| LOY-20 | Level upkeep and drop with notice | V2 |
| LOY-23 | Back-office administration: every rule without a developer, reseller view, manual adjustments | V2 |
| LOY-25 | Rule versioning: new operations only, or recalculation | V2 |
Screens
| Screen | Name | App |
|---|---|---|
| BO-72 | Earning rules, bonuses & cashback | BO |
| BO-73 | Loyalty levels | BO |
| BO-74 | Campaigns & Happy Days | BO |
| BO-75 | Rule versions & recalculation | BO |
API surface
| Endpoint group | Operations |
|---|---|
| Promotions & loyalty | 41 |
Test measures
- Playwright e2e: create a rule, simulate, activate
KPI
- Delivered by Tue 23 Mar 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.
SRV-50 — Loyalty notifications, dashboard data and rule versioning
Notification events, dashboard aggregates, full history, rule versions and recalculation.
DSH-23 — Missions, challenges, badges, referral, chest and wheel pages
Back-office pages for missions, ranking review, badges, referrals, prizes, reviews and dates.