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:
alexandrev-tibco
2026-05-27 18:09:15 +02:00
parent e13771fa06
commit 84b74f9ea4
12 changed files with 195 additions and 6 deletions
@@ -325,3 +325,16 @@
"notification_sunday_title" = "Planifica la semana que viene";
"notification_sunday_body" = "Es domingo — tómate 2 minutos para planificar las comidas de la próxima semana.";
/* Stats */
"stats_title" = "Estadísticas";
"stats_streak_label" = "Racha de semanas";
"stats_weeks_planned_label" = "Semanas planificadas";
"stats_complete_weeks_label" = "Semanas completas";
"stats_completion_rate_label" = "Tasa de completado";
"stats_top_dishes_title" = "Platos más usados";
"stats_tags_title" = "Por categoría";
"stats_no_data" = "Sin datos todavía";
/* Week rating */
"week_rating_prompt" = "¿Qué tal fue la semana?";