-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: Added feature to filter stats at a glance by user type #122
Conversation
Implemented feature to allow super admins to filter stats at a glance by user permissions (only hackers, admin, etc). BREAKING CHANGE: Changed configuration of GeneralStats data type and data returned by /api/stats resolves #115
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
"illegal hackers" includes admins and super admins, who usually don't check in anyways. We can drop that category completely, and add a "Checked in Hackers" filter to only get stats from hackers that have checked in to the event. |
Add a "Checked in" option under "Filter Stats by" |
Currently, "Hacker" represents checked-in hackers (non check-in hackers are completely ignored in the backend). Unless I misunderstood the intention, I can rename the "Hacker" to "Checked-in Hacker" if necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are things that need to be fixed in terms of code quality but it works; we'll fix it later
The issue with this PR is that we've switched to Nivo, so there's like hella conflicts uhhhhhhhhhhhhhhhhhh @DedsecKnight idk if you want to reimplement this in Nivo with a new PR or just fix the conflicts in this one (but the first might be easier) |
Closing this issue due to the fact that we completely changed the library that was used for this PR and thus making hella merge conflicts |
Implemented feature to allow super admins to filter stats at a glance by user
permissions (only hackers, admin, etc).
BREAKING CHANGE: Changed configuration of GeneralStats data type and data
returned by /api/stats
resolves #115
UPDATE: Added required changes. Currently, non check-in hackers are classified in Stats at a Glance as "Illegal Hacker" (because it is shorter than Non Check-in), but there are likely better name for this category.