HOCO B2B
Team tasksAnis

DSH-11 — Back-office reports & export centre

Reports library with filters and totals, export requests and download centre.

FieldDetails
Task codeDSH-11
PhaseP1 — V1 build & integration
Product scopeV1
StatusPlanned
StartWed 25 Nov 2026
DueWed 25 Nov 2026
ResponsibleAnis — Full-stack developer
Co-responsible—
Effort0.5 person-day(s) planned · 3 from scratch · size XS
Area · appBack-office · dashboard
Depends onSRV-25, DSH-01
Unblocks—
Milestones—

Summary

Reports library with filters and totals, export requests and download centre.

Description

Managers need the essential reports of the cahier (§4, §9; ANA-03…ANA-05) with filters, totals and exports. On top of SRV-25, this task delivers the reports library (BO-59) — reports grouped by domain (ventes, terrain, stock, commandes), a parameter form generated from each report's schema, a results table with totals and an optional chart — and the export centre (BO-60) listing the user's export jobs with status, format, size, expiry and download. Out of scope: report definitions and computation (SRV-25).

Subtasks

#SubtaskOwner
1BO-59 library page: report cards grouped by domain with description and required permissionAnis
2Parameter form generated from the report parameter schema (period, wilaya, delegate, brand, category, reseller)Anis
3Results view: DataTable with totals row, optional chart, column chooserAnis
4Export buttons PDF / Excel / CSV creating export jobs, with toast linking to the centreAnis
5BO-60 export centre: JobStatus pill, format, created, size, expiry, download (signed URL), retry for FAILEDAnis
6Live job status updates (polling or SSE event export.completed)Anis

Deliverables

  • apps/dashboard/src/app/[locale]/(app)/reports/{page.tsx,[reportKey]/page.tsx,exports/page.tsx}
  • apps/dashboard/src/features/reports/ (schema form, results table)

Acceptance criteria

  • Every report of the SRV-25 catalogue can be run with its filters and shows totals equal to the sum of rows (ANA-03)
  • An export request appears in the export centre and becomes downloadable when SUCCEEDED (ANA-05)
  • Expired exports show as Expiré without a download link
  • Users only see reports their permissions allow

Requirements covered

RequirementTitleRelease
ANA-03Essential reports: revenue by period/zone/delegate/reseller/brand/product, conversion and first orders, stock-outs and slow movers, pending/late/cancelled/returned ordersV1
ANA-04Success KPIs tracked: adoption, field conversion, digitalisation share, tour performance, loyalty, operational qualityV1
ANA-05PDF and Excel/CSV exports of authorised lists and reportsV1

Screens

ScreenNameApp
BO-59Reports libraryBO
BO-60Export centreBO

API surface

Endpoint groupOperations
Reports & exports5

Test measures

  • Playwright e2e: run the revenue-by-wilaya report, export XLSX, download
  • Component test of the schema-driven parameter form

KPI

  • Delivered by Wed 25 Nov 2026 within 0.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.

On this page