- Updated the dashboard layout schema to include new widgets: DashboardGreeting, QuickWeightToday, BodyStatStrip, StatusPills, ProfileGoalsProgress, TrendKcalWeight, NutritionActivitySummary, RecoverySleepRest, and TrainingTypeDistribution. - Improved widget configuration validation to support new features, including chart days for trend and distribution widgets. - Refactored the default lab layout to align with the updated widget catalog and ensure proper default activation. - Bumped app_dashboard version to 1.6.0 to reflect the addition of new widgets and configuration enhancements.
16 lines
538 B
JavaScript
16 lines
538 B
JavaScript
/**
|
||
* Standard-Layout v1 (nur Pilot `/pilot/viz` ohne API).
|
||
* API-Nutzer: default_layout aus Backend (alle Katalog-IDs; aktiv = DEFAULT_LAB_WIDGET_IDS).
|
||
* Diese Datei: kompakte feste 5 Widgets für den Pilot – nicht automatisch alle P1-Widgets.
|
||
*/
|
||
export const DEFAULT_LAB_LAYOUT = {
|
||
version: 1,
|
||
widgets: [
|
||
{ id: 'welcome', enabled: true },
|
||
{ id: 'quick_capture', enabled: true },
|
||
{ id: 'kpi_board', enabled: true },
|
||
{ id: 'body_overview', enabled: true },
|
||
{ id: 'activity_overview', enabled: true },
|
||
],
|
||
}
|