rubyforgood / casa

Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.
https://casavolunteertracking.org/
MIT License
291 stars 466 forks source link

New Line Chart: WAU (Weekly Active Users) by Role #5589

Open sarvaiyanidhi opened 4 months ago

sarvaiyanidhi commented 4 months ago

What type(s) of user does this feature affect?

Description

On the /health page, add a new line chart. -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

More details in issue #5530

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

sarvaiyanidhi commented 4 months ago

@bcastillo32 I am unable to self assign issue to myself.. can you please do it?

github-actions[bot] commented 3 months ago

This issue has been inactive for 243 hours (10.13 days) and will be unassigned after 117 more hours (4.88 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 3 months ago

WIP

github-actions[bot] commented 3 months ago

This issue has been inactive for 261 hours (10.88 days) and will be unassigned after 99 more hours (4.13 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 3 months ago

WIP

github-actions[bot] commented 3 months ago

This issue has been inactive for 242 hours (10.08 days) and will be unassigned after 118 more hours (4.92 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 3 months ago

Raised PR for related issue #5652

compwron commented 3 months ago

Cool :)

sarvaiyanidhi commented 2 months ago

Hey @bcastillo32 ,

Just a quick update that I have raised separate PR which implements functionality to track each login of user. Once that PR is merged in main code I will continue further to implement MAU and WAU functionality asap.

github-actions[bot] commented 2 months ago

This issue has been inactive for 261 hours (10.88 days) and will be unassigned after 99 more hours (4.13 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 2 months ago

WIP.. Fixed MAU chart by fetching details now from login_activity table and merged with separate PR. Working on WAU chart.

bcastillo32 commented 2 months ago

WIP.. Fixed MAU chart by fetching details now from login_activity table and merged with separate PR. Working on WAU chart.

Thank you @sarvaiyanidhi very much so looking forward to this one :)

sarvaiyanidhi commented 2 months ago

Sure @bcastillo32 Will try to close this asap. Thanks

github-actions[bot] commented 1 month ago

This issue has been inactive for 247 hours (10.29 days) and will be unassigned after 113 more hours (4.71 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 1 month ago

Will be working on this issue in this week and try to close it.

github-actions[bot] commented 1 month ago

This issue has been inactive for 248 hours (10.33 days) and will be unassigned after 112 more hours (4.67 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 1 month ago

Work in progress

github-actions[bot] commented 1 month ago

This issue has been inactive for 247 hours (10.29 days) and will be unassigned after 113 more hours (4.71 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 1 month ago

Was busy but will try to close and push PR soon.

github-actions[bot] commented 3 weeks ago

This issue has been inactive for 241 hours (10.04 days) and will be unassigned after 119 more hours (4.96 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 2 weeks ago

Long time pending.. Will close in this week.

github-actions[bot] commented 1 week ago

This issue has been inactive for 247 hours (10.29 days) and will be unassigned after 113 more hours (4.71 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

sarvaiyanidhi commented 1 week ago

Restarted working on this issue..