Autocomplete feedback loop: implicit rejection + weekly rating
A) Implicit: HomeViewModel tracks auto-assigned slot IDs after each autocomplete run. When the user manually replaces one of those dishes, the rejected dish ID is recorded in FeedbackStore (UserDefaults). AutocompleteEngine applies a 25% penalty per rejection (floor 0.30). B) Explicit: WeekPlan gains userRating (0/1/-1). Past weeks with dishes show a compact 👍/👎 row (Premium only). Liked weeks boost their dishes (+0.20 each, max +0.50); disliked weeks penalise them (-0.25 each, max -0.50). Signal is intentionally modest so the period cycle score remains dominant. Also adds Stats + week-rating localization strings to all 6 languages (were missing from the previous commit). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -325,3 +325,16 @@
|
||||
"notification_sunday_title" = "Planifiez votre prochaine semaine";
|
||||
"notification_sunday_body" = "C'est dimanche — prenez 2 minutes pour planifier vos repas de la semaine prochaine.";
|
||||
|
||||
/* Stats */
|
||||
"stats_title" = "Statistiques";
|
||||
"stats_streak_label" = "Série de semaines";
|
||||
"stats_weeks_planned_label" = "Semaines planifiées";
|
||||
"stats_complete_weeks_label" = "Semaines complètes";
|
||||
"stats_completion_rate_label" = "Taux de complétion";
|
||||
"stats_top_dishes_title" = "Plats les plus utilisés";
|
||||
"stats_tags_title" = "Par catégorie";
|
||||
"stats_no_data" = "Pas encore de données";
|
||||
|
||||
/* Week rating */
|
||||
"week_rating_prompt" = "Comment s'est passée cette semaine ?";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user