Add SQL insight dashboard widgets

This commit is contained in:
Peter Stockings
2026-09-06 13:37:46 +10:00
parent ff6a921550
commit d1100ece80
11 changed files with 273 additions and 28 deletions
+2
View File
@@ -112,6 +112,7 @@ def dashboard():
exercises = db.dashboard.get_exercises_with_selection(selected_people_ids, min_date, max_date, selected_exercise_ids)
tags = db.get_tags_for_dashboard()
dashboard = db.dashboard.get(selected_people_ids, min_date, max_date, selected_exercise_ids)
pinned_widgets = db.dashboard.get_pinned_widgets(current_user.id) if current_user.is_authenticated else []
# Render the appropriate response for HTMX or full page
render_args = {
@@ -119,6 +120,7 @@ def dashboard():
"people": people,
"exercises": exercises,
"tags": tags,
"pinned_widgets": pinned_widgets,
"selected_people_ids": selected_people_ids,
"max_date": max_date,
"min_date": min_date,