Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show club revenue from membership fees for each semester #1414

Open
5 tasks
evanugarte opened this issue May 26, 2024 · 0 comments · May be fixed by #1427
Open
5 tasks

Show club revenue from membership fees for each semester #1414

evanugarte opened this issue May 26, 2024 · 0 comments · May be fixed by #1427

Comments

@evanugarte
Copy link
Collaborator

evanugarte commented May 26, 2024

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

  • do the dessert problem, talk to evan about where this is
  • create a new route in routes/User.js that accepts an HTTP GET request and figures out:
  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.

  • add a new row to the admin dashboard navbar called "Club Earnings"

  • clicking the button should show a modal. see the code for "reset password" as a good example

  • when the modal is clicked, we should call our API to get the relevant information, and calculate the money ($20 a semester, $30 for a year)

@evanugarte evanugarte added this to the SCE Summer 2024 Internship milestone Jun 12, 2024
@cruiserkasuga cruiserkasuga linked a pull request Jun 13, 2024 that will close this issue
@cruiserkasuga cruiserkasuga linked a pull request Jun 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant