-
-
Notifications
You must be signed in to change notification settings - Fork 510
Description
On the /health page, add a new line chart. The chart should contain 12 months of data including the current month. The chart should track the following stats:
We are trying to track the following - please implement a toggle to display each metric on the line chart:
-MAU: count unique users by role (Volunteer, Supervisor, Admin) who logged in that month
-WAU: count unique users by role (Volunteer, Supervisor, Admin) who logged in a given week on that month
Create a json endpoint for the chart data. Make sure the json contains the minimum amount of data for the chart. Make sure the endpoint is accessible to users who are logged out.
If chart creation fails, display an error to the user explaining why. Print a detailed version of the error in the console.
No testing required but prove your solution works.
See:
https://github.com/rubyforgood/casa/blob/main/app/controllers/health_controller.rb
https://github.com/rubyforgood/casa/blob/main/app/javascript/src/display_app_metric.js
We use chart.js for graphs
See: https://github.com/rubyforgood/casa/wiki/Working-with-Frontend-Assets
Metadata
Metadata
Assignees
Labels
Type
Projects
Status