-
Notifications
You must be signed in to change notification settings - Fork 9
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
implemented stats page for admins #961
base: develop
Are you sure you want to change the base?
Conversation
src/api/search.ts
Outdated
model, | ||
...searchOptions, | ||
}, | ||
}); | ||
LocalCache.set(key, result, new Date(Date.now() + 5 * 60 * 1000)); |
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.
nit: remove magic numbers
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.
Or at the very least comment what they mean :)
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.
for sure!
} | ||
|
||
private downloadData(): void { | ||
const headers = [ |
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.
not in the scope of this PR but we should probably find a more concise mapping function
<Box width={400}> | ||
<H2 marginLeft={'10px'}>{this.props.statName}:</H2> | ||
<PieChart | ||
width={400} |
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.
nit: inconsistent indentation
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.
thx!
Tickets:
List of changes:
Type of change:
Please delete options that aren't relevant.
How did you do this?
How to test:
Questions:
PR Checklist:
develop
branch (before testing)Screenshots
: