feat: history and calculate needs for user
CI / 🧪 Tests Laravel (push) Failing after 2m18s
CI / 🐳 Build & Push Images (push) Has been skipped

This commit is contained in:
2026-08-14 12:45:37 +02:00
parent ea5a5737ec
commit 69372a49ed
51 changed files with 2226 additions and 305 deletions
+8 -5
View File
@@ -16,7 +16,7 @@ return [
'sections' => [
'account' => 'Account',
'profile' => 'Profile',
'nutrition_goals' => 'Nutrition goals',
'nutrition_plan' => 'Active nutrition plan',
'activity' => 'Activity',
'metadata' => 'Metadata',
],
@@ -36,17 +36,20 @@ return [
'password' => 'Password',
'bio' => 'Bio',
'height' => 'Height',
'current_weight' => 'Current weight',
'target_weight' => 'Target weight',
'date_of_birth' => 'Date of birth',
'sex' => 'Sex',
'daily_calorie_goal' => 'Calories',
'daily_protein_goal' => 'Protein',
'daily_carbs_goal' => 'Carbs',
'daily_fats_goal' => 'Fats',
'calorie_goal' => 'Calories',
'protein_goal' => 'Protein',
'carbs_goal' => 'Carbs',
'fats_goal' => 'Fats',
'physical_activity_level' => 'Activity level',
'physical_activity_level_short' => 'Activity',
'weight_goal' => 'Weight goal',
'weight_goal_short' => 'Weight goal',
'pace_preference' => 'Pace',
'onboarding_completed_at' => 'Nutrition profile completed at',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
],
+26 -3
View File
@@ -125,6 +125,32 @@ return [
'blocked' => 'User blocked.',
'cannot_block_self' => 'You cannot block yourself.',
],
'nutrition' => [
'onboarding_required' => 'Complete your nutrition profile before continuing.',
'weekly_adjustment_unavailable' => 'No weekly adjustment is available.',
'weekly_adjustment_already_accepted' => 'This adjustment has already been applied.',
'weekly_adjustment_stale' => 'Your plan changed after this review. Generate a new review before adapting it.',
'validation' => [
'adults_only' => 'Automatic calculation is available to adults only.',
'birth_date_range' => 'This birth date cannot be used for the calculation.',
'sex_reference' => 'Choose the female or male calculation reference.',
'estimate_acceptance' => 'You must confirm that you understand this is an estimate.',
'target_lower' => 'The target weight must be lower than the current weight.',
'target_higher' => 'The target weight must be higher than the current weight.',
],
'weekly_review' => [
'insufficient_tracking' => 'Log at least 5 days of meals and 4 weigh-ins across two weeks to receive a recommendation.',
'insufficient_adherence' => 'Food tracking is still too far from the plan to make a reliable adjustment.',
'on_track' => 'Your weight trend matches your goal. The plan remains unchanged.',
'plan_changed' => 'Your plan changed after this period. Keep tracking with the new plan before adapting it.',
'loss_slower' => 'Weight loss is slower than expected. A small calorie decrease is proposed.',
'loss_faster' => 'Weight loss is faster than expected. A small calorie increase is proposed.',
'gain_slower' => 'Weight gain is slower than expected. A small calorie increase is proposed.',
'gain_faster' => 'Weight gain is faster than expected. A small calorie decrease is proposed.',
'maintenance_down' => 'Weight is trending down. A small calorie increase is proposed.',
'maintenance_up' => 'Weight is trending up. A small calorie decrease is proposed.',
],
],
'validation' => [
'image_required' => 'Add an image to analyze.',
'image_file' => 'The file must be an image.',
@@ -134,9 +160,6 @@ return [
'visibility_valid' => 'Choose a valid visibility.',
'month_valid' => 'Choose a valid month.',
'calories_integer' => 'Calories must be an integer.',
'nutrition_goals_required' => 'Fill in all nutrition goals.',
'nutrition_goals_positive' => 'Nutrition goals must be positive.',
'nutrition_goals_max' => 'This nutrition goal value is too high.',
'report_reason_required' => 'Choose a report reason.',
'report_reason_valid' => 'Choose a valid report reason.',
'report_details_max' => 'The report details may not be greater than 2000 characters.',
+8 -5
View File
@@ -16,7 +16,7 @@ return [
'sections' => [
'account' => 'Compte',
'profile' => 'Profil',
'nutrition_goals' => 'Objectifs nutritionnels',
'nutrition_plan' => 'Plan nutritionnel actif',
'activity' => 'Activité',
'metadata' => 'Métadonnées',
],
@@ -36,17 +36,20 @@ return [
'password' => 'Mot de passe',
'bio' => 'Bio',
'height' => 'Taille',
'current_weight' => 'Poids actuel',
'target_weight' => 'Poids cible',
'date_of_birth' => 'Date de naissance',
'sex' => 'Sexe',
'daily_calorie_goal' => 'Calories',
'daily_protein_goal' => 'Protéines',
'daily_carbs_goal' => 'Glucides',
'daily_fats_goal' => 'Lipides',
'calorie_goal' => 'Calories',
'protein_goal' => 'Protéines',
'carbs_goal' => 'Glucides',
'fats_goal' => 'Lipides',
'physical_activity_level' => 'Niveau dactivité',
'physical_activity_level_short' => 'Activité',
'weight_goal' => 'Objectif de poids',
'weight_goal_short' => 'Objectif poids',
'pace_preference' => 'Rythme',
'onboarding_completed_at' => 'Profil nutritionnel complété le',
'created_at' => 'Créé le',
'updated_at' => 'Mis à jour le',
],
+26 -3
View File
@@ -125,6 +125,32 @@ return [
'blocked' => 'Utilisateur bloqué.',
'cannot_block_self' => 'Vous ne pouvez pas vous bloquer vous-même.',
],
'nutrition' => [
'onboarding_required' => 'Termine ton profil nutritionnel avant de continuer.',
'weekly_adjustment_unavailable' => 'Aucun ajustement hebdomadaire nest disponible.',
'weekly_adjustment_already_accepted' => 'Cet ajustement a déjà été appliqué.',
'weekly_adjustment_stale' => 'Ton plan a changé depuis ce bilan. Génère un nouveau bilan avant de ladapter.',
'validation' => [
'adults_only' => 'Le calcul automatique est réservé aux personnes majeures.',
'birth_date_range' => 'La date de naissance saisie ne peut pas être utilisée pour ce calcul.',
'sex_reference' => 'Choisis la référence de calcul femme ou homme.',
'estimate_acceptance' => 'Tu dois confirmer avoir compris quil sagit dune estimation.',
'target_lower' => 'Le poids cible doit être inférieur au poids actuel.',
'target_higher' => 'Le poids cible doit être supérieur au poids actuel.',
],
'weekly_review' => [
'insufficient_tracking' => 'Ajoute au moins 5 journées de repas et 4 pesées réparties sur deux semaines pour obtenir une recommandation.',
'insufficient_adherence' => 'Le suivi alimentaire est encore trop éloigné du plan pour proposer un ajustement fiable.',
'on_track' => 'Ta tendance de poids est cohérente avec ton objectif. Le plan reste inchangé.',
'plan_changed' => 'Ton plan a changé depuis cette période. Continue le suivi avec le nouveau plan avant de ladapter.',
'loss_slower' => 'La perte est plus lente que prévu. Une baisse légère du budget est proposée.',
'loss_faster' => 'La perte est plus rapide que prévu. Une hausse légère du budget est proposée.',
'gain_slower' => 'La prise est plus lente que prévu. Une hausse légère du budget est proposée.',
'gain_faster' => 'La prise est plus rapide que prévu. Une baisse légère du budget est proposée.',
'maintenance_down' => 'Le poids tend à baisser. Une hausse légère du budget est proposée.',
'maintenance_up' => 'Le poids tend à monter. Une baisse légère du budget est proposée.',
],
],
'validation' => [
'image_required' => 'Ajoute une image à analyser.',
'image_file' => 'Le fichier doit être une image.',
@@ -134,9 +160,6 @@ return [
'visibility_valid' => 'Choisis une visibilité valide.',
'month_valid' => 'Choisis un mois valide.',
'calories_integer' => 'Les calories doivent être un nombre entier.',
'nutrition_goals_required' => 'Renseigne tous les objectifs nutritionnels.',
'nutrition_goals_positive' => 'Les objectifs nutritionnels doivent être positifs.',
'nutrition_goals_max' => 'La valeur de cet objectif nutritionnel est trop élevée.',
'report_reason_required' => 'Choisis une raison de signalement.',
'report_reason_valid' => 'Choisis une raison de signalement valide.',
'report_details_max' => 'Le détail du signalement ne doit pas dépasser 2000 caractères.',