SCE-Development / Clark

Made entirely by SJSU students, this is the Software and Computer Engineering Society's outward face on the internet.
https://sce.sjsu.edu
MIT License
28 stars 11 forks source link

Show club revenue from membership fees for each semester #1414

Open evanugarte opened 1 month ago

evanugarte commented 1 month ago

On the side navbar for the admin dashboard, add a new entry called "Club Earnings" with an icon for the dollar sign on the same row.

Clicking the button should open a modal, the modal should have content like

Total earnings from new members this semester: $<whatever> Total new members this year: $<whatever> Current active members: $<whatever>

game plan

  1. the number of users who have a verified email, a member role and signed up during this semester (disccuss what "this semester" means with evan)
  2. the number of users who are the above criteria, with a membership expiration of this semester (this means they signed up for 1 semester)
  3. the number of users who are the above criteria, with a membership expiration of next semester (this means they signed up for 2 semesters)

returns a json object like

{
    "newSingleSemesterMembers": 20,
    "newAnnualMembers": 15,
}

we can test the API with a simple HTTP GET request to verify the json object worked.