feat: Introduce quick capture widget configuration and validation
Deploy Development / deploy (push) Successful in 55s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 16s

- Added support for the "quick_capture" widget, allowing users to configure visibility for weight and baseline vitals (resting HR, HRV, VO₂max).
- Implemented validation logic to ensure correct configuration input and prevent errors.
- Updated the widget catalog and dashboard layout to reflect the new quick capture features.
- Removed the "training_type_distribution" widget from the catalog as part of the refactor.
- Bumped app_dashboard version to 1.6.2 to incorporate these enhancements.
This commit is contained in:
Lars committed 2026-04-07 18:02:18 +02:00
1 parent 3d498d03c1
commit 7f833b2cb1
9 files changed
+267 -107

No files matched your search

+2 -7
View File
@@ -25,7 +25,7 @@ WIDGET_CATALOG: list[WidgetCatalogEntry] = [
{
"id": "quick_capture",
"title": "Schnelleingabe",
"description": "Gewicht und Vitalwerte erfassen",
"description": "Gewicht + Baseline-Vitals; optional show_weight / show_resting_hr / show_hrv / show_vo2_max (false = aus)",
},
{
"id": "kpi_board",
@@ -40,7 +40,7 @@ WIDGET_CATALOG: list[WidgetCatalogEntry] = [
{
"id": "activity_overview",
"title": "Aktivität",
"description": "Training & Konsistenz (optional: config chart_days 7–90)",
"description": "Trainingstyp-Verteilung (Kuchen) + Konsistenz — Zeitraum über config chart_days 7–90",
},
{
"id": "dashboard_greeting",
@@ -82,11 +82,6 @@ WIDGET_CATALOG: list[WidgetCatalogEntry] = [
"title": "Erholung",
"description": "Schlaf-Widget & Ruhetage",
},
{
"id": "training_type_distribution",
"title": "Training Verteilung",
"description": "Kuchen Trainingstypen (optional config distribution_days 7–120, Default 28)",
},
{
"id": "goals_focus_teaser",
"title": "Ziele Teaser",