BREAKING: Replaces single 'primary goal' with weighted multi-goal system Migration 027: - New table: focus_areas (6 dimensions with percentages) - Constraint: Sum must equal 100% - Auto-migration: goal_mode → focus_areas for existing users - Unique constraint: One active focus_areas per profile Backend: - get_focus_weights() V2: Reads from focus_areas table - Fallback: Uses goal_mode if focus_areas not set - New endpoints: GET/PUT /api/goals/focus-areas - Validation: Sum=100, range 0-100 API: - getFocusAreas() - Get current weights - updateFocusAreas(data) - Update weights (upsert) Focus dimensions: 1. weight_loss_pct (Fettabbau) 2. muscle_gain_pct (Muskelaufbau) 3. strength_pct (Kraftsteigerung) 4. endurance_pct (Ausdauer) 5. flexibility_pct (Beweglichkeit) 6. health_pct (Allgemeine Gesundheit) Benefits: - Multiple goals with custom priorities - More flexible than single primary goal - KI can use weighted scores - Ready for Phase 0b placeholder integration UI: Coming in next commit (slider interface) |
||
|---|---|---|
| .. | ||
| components | ||
| context | ||
| pages | ||
| utils | ||
| app.css | ||
| App.jsx | ||
| main.jsx | ||