58 stats
Created by: ri-pandey
Description
Added a page for tracking various Statistics in the app.
Changes Made
List the main changes made in this PR. Be as specific as possible.
Features added:
-
Statistics page -
HTTP endpoints for retrieving/persisting statistics data -
Reusable Chart components -
DateRangeShifter component -
Space utilization metric added to Project page -
New utility methods for things like data massaging, retrieving theme-dependent default chart colors, etc.
Code refactoring
-
Refactored some existing modal handlers which now log information to the database as well -
Provided a callbackFn prop to CopyButton, for extra actions that may need to be taken when text is copied. -
Added config constants for data access type (Browser/Slate-Scratch) and type of metric measurements (SDA/Slate-Scratch/Slate-Scratch files)
Other changes:
-
Added variability in timestamps for timestamp fields in seeded data, and a util function that generates variable timestamps.
Checklist
Before submitting this PR, please make sure that:
-
Your code passes linting and coding style checks. -
You have reviewed your own code and resolved any merge conflicts. -
You have requested a review from at least one team member.