Skip to content
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

Add Resident Activity Levels Visualization on Groups Page #58

Closed
brylie opened this issue Dec 8, 2023 · 0 comments · Fixed by #70
Closed

Add Resident Activity Levels Visualization on Groups Page #58

brylie opened this issue Dec 8, 2023 · 0 comments · Fixed by #70
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@brylie
Copy link
Member

brylie commented Dec 8, 2023

Continued from #57

Add a horizontal bar chart for resident activity levels beside each home listed on the Groups page.

Screenshot_20231208_220759

Detailed Description

  • Integrate a bar chart indicating percentages of residents by activity level: inactive, low, good, high.
  • Utilize the activity_level method from the Resident model to determine activity statuses.
  • Develop get_percent_residents_by_activity_level as the main aggregation function.
  • The chart will be added next to each home, displaying the data distribution.
  • Visual: The provided screenshot illustrates the chart layout and expected appearance.

Use Case

  • Offers a visual summary of resident engagement, aiding in activity management.

Technical Considerations

  • Introduce property methods in the Home model for active residency counts and resident activity level aggregation.
  • Optimize data processing for real-time updates and ensure the chart's responsive design.

Alternatives Considered

  • A direct SQL approach using the ResidentActivitiesTable to join on active residencies and aggregate recent activities.
  • Filtering for activities within the past seven days, with aggregation by resident activity count.
  • Apply activity level labels based on the WEEKLY_ACTIVITY_RANGES constant for consistency.
  • This method could potentially improve performance by reducing the overhead of multiple ORM calls.

Additional Context

  • The chart complements current data representations and aims to enhance the dashboard's analytical utility.
@brylie brylie added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant