mitai-jinkendo/frontend/src
Lars 4a11d20c4d
All checks were successful
Deploy Development / deploy (push) Successful in 46s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s
feat: Goal System v2.0 - Focus Areas with weighted priorities
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)
2026-03-27 08:38:03 +01:00
..
components fix: value table metadata + |d modifier + cursor insertion (Issues #47, #48) 2026-03-26 12:04:20 +01:00
context fix: email verification auto-login and user experience 2026-03-21 10:32:24 +01:00
pages feat: filtered goal types - count specific training types 2026-03-27 08:14:22 +01:00
utils feat: Goal System v2.0 - Focus Areas with weighted priorities 2026-03-27 08:38:03 +01:00
app.css feat: complete sleep module overhaul - app standard compliance 2026-03-22 13:09:34 +01:00
App.jsx feat: Phase 1.5 - Flexible Goal System (DB-Registry) Part 2/2 - COMPLETE 2026-03-27 06:51:46 +01:00
main.jsx feat: initial commit – Mitai Jinkendo v9a 2026-03-16 13:35:11 +01:00