-
Notifications
You must be signed in to change notification settings - Fork 5
Labels
Description
Membership Leaderboard
As a user, I want to see a list of users sorted by memberships, so that I can see who has the most memberships.
Definition of Done
- Acceptance criteria defined
- Solution tasks specified
- Feature branch created
-
Unit tests written (on API code only for now) -
Solution passes full suite of unit tests - Design documents updated if needed
- Pull request created
- Code is reviewed
- Code is merged to
developbranch -
Tests pass on CI -
Deployed to staging environment - Acceptance criteria is met
Acceptance Criteria
- Given a membership leaderboard, when it is rendered, then it will show all users with memberships in descending order by count
- Given an officer views the membership leaderboard, when an officer goes to add a membership then an modal will be available to add a membership for a user
- Given an officer goes to add a membership for a user, when they attempt to enter the user information then autocomplete will show up to give them a list of users to choose from
- Given an officer goes to add a membership for a user, when they attempt to enter the user information and click save then a POST request should be sent and the data should persist in the database.
Solution Tasks
- Add memberships to schema, with fields for userId, reason, and timeGiven
- A new, separate page is created which is solely for the memberships leaderboard
- The leaderboard component is created separately
- Users can see the membership leaderboard
- The leaderboard shows all members in descending order based on membership count
- Add modal for adding memberships
- Update user API to support searching with a query based on name or email
- Ensure responsive design
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done