Include total earnings on affiliates settings page
Goal
Total affiliate earnings should be calculated and available for viewing on the affiliates settings page as per designs linked in minds#3922 (closed)
The backend implementation is going to be done on minds#3946 (closed)
Specifically, the section that says '$120' here:
Everything has already been templated in the front end, we just need access to the number from the backend and get it from an affiliates service (which has not been created yet).
What needs to be done
Calculate total affiliate earnings (engine)
Get that number and assign it to totalEarnings
in the affiliates.component.ts (front)
Slight adjustments may need to be made to the templates depending on whether we receive the number in cents or dollars.
QA
Total earnings amount should be accurate Total earnings amount should display at /settings/affiliates-program
UX/Design
Already styled, but see links in minds#3922 (closed)
Mobile
-
Is Mobile Required?
Personas
Experiments
Relates to epic-304-affiliates
Acceptance Criteria
-
endpoint used in mobile to display the number on settings page
Definition of Ready Checklist
-
Definition Of Done (DoD) -
Acceptance criteria -
Weighted -
QA -
UX/Design -
Personas -
Experiments