Commit Graph

4 Commits

Author SHA1 Message Date
edbb81a48f fix: align fitness_goal/cardio_preference values, make multi-select
Some checks failed
CI/CD - Build, Push & Deploy / Build & Push Docker Image (push) Has been cancelled
CI/CD - Build, Push & Deploy / Update GitOps Manifest (push) Has been cancelled
- Fix Invalid fitness_goal error: frontend values (general, hypertrophy)
  did not match backend enum (general_fitness, muscle_gain)
- Fix Invalid cardio_preference error: frontend values (running, cycling)
  did not match backend enum (low, moderate, high)
- Convert both fields to multi-select checkboxes
- Update backend validation to accept all frontend values with multi-enum

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:57:31 +00:00
7ef6b6f9ee fix: prevent form reset on error, add multi-select for goal/activity/injury
Some checks failed
CI/CD - Build, Push & Deploy / Build & Push Docker Image (push) Has been cancelled
CI/CD - Build, Push & Deploy / Update GitOps Manifest (push) Has been cancelled
- Remove profileNextStep(1) from saveProfile catch block so users stay
  on current step when an error occurs instead of being sent back to step 1
- Convert Goal, Activity Level, and Injury Area fields from single-select
  (radio/dropdown) to multi-select checkboxes with comma-separated storage
- Add validateMultiEnum backend validation for comma-separated enum values
- Update trainer.js filterByInjury and goal checks for multi-value support
- Update dietitian.js TDEE, calorie, and water calculations for multi-values

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 15:49:35 +00:00
8b0e2625f5 feat: major update - medical profiles, global diet, gym/home/none workouts, exercise GIFs
Some checks failed
CI/CD - Build, Push & Deploy / Build & Push Docker Image (push) Has been cancelled
CI/CD - Build, Push & Deploy / Update GitOps Manifest (push) Has been cancelled
- Expanded profile with 70+ fields: disability, chronic diseases, medications,
  blood type/pressure/sugar, heart/diabetes/thyroid/asthma/arthritis conditions
- Workout location modes: gym (full equipment), home (bodyweight+equipment),
  none (light activity plan for non-exercisers)
- Exercise database with GIF URLs for visual guidance
- Global diet programs replacing regional foods: Mediterranean, High-Protein,
  Low-Carb, Anti-Inflammatory, Heart-Healthy, Diabetic-Friendly
- Medical condition-aware nutrition (diabetes, heart, blood pressure adjustments)
- 7-step profile wizard with disability and medical history sections
- Fixed DROP TABLE bug in database.js
- Shopping list supports new ingredient format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 13:06:39 +00:00
c17f143a40 feat: full health & fitness app with workout/meal planning
Some checks failed
CI/CD - Build, Push & Deploy / Build & Push Docker Image (push) Has been cancelled
CI/CD - Build, Push & Deploy / Update GitOps Manifest (push) Has been cancelled
- Login/register with JWT auth
- User profile (age, weight, height, goal, country)
- AI trainer agent: 7-day workout programs by goal
- AI dietitian agent: calorie-based meal plans with Turkish cuisine
- Shopping list generator from meal plans
- Modern Turkish UI (SPA)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 10:02:46 +00:00