reglas: el panel explica que se incumple y como arreglarlo; stats por etiqueta
- RuleViolation.reasons: el motor devuelve ahora QUE regla rompe cada asignacion (repetido en la semana, maximo por semana superado, no consecutivo, no mismo dia, solo comida/cena, solo entre semana o fin de semana) con su etiqueta y limite - Panel de avisos: bloque con cada regla rota en lenguaje claro + una sugerencia de que hacer, y boton nuevo "Cambiar plato" que abre el selector de ese hueco (antes solo se podia quitar o ignorar) - Estadisticas: matriz "Etiquetas por tipo de comida" (p.ej. cuantas cenas son de pescado) y "Platos por etiqueta" del catalogo - Tests: 4 casos de las razones de incumplimiento; harness que renderiza las secciones nuevas de stats a /tmp/stats_render.png - Strings en 6 idiomas Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013H6bXqGX1ygwib1Dm3n3UG
This commit is contained in:
@@ -445,3 +445,18 @@
|
||||
"shopping_at_home_section" = "Already at home";
|
||||
"premium_privacy_link" = "Privacy Policy";
|
||||
"premium_terms_link" = "Terms of Use (EULA)";
|
||||
"violation_reason_repeated" = "This dish is already planned in another meal this week";
|
||||
"violation_reason_max_per_week" = "Max %1$@: %2$d per week, and you are over it";
|
||||
"violation_reason_no_consecutive" = "%@ cannot repeat on consecutive days";
|
||||
"violation_reason_no_same_day" = "%@ is already in another meal on this day";
|
||||
"violation_reason_meal_only" = "%1$@ is only allowed at %2$@";
|
||||
"violation_reason_day_scope" = "%1$@ is only allowed %2$@";
|
||||
"violation_scope_weekdays" = "on weekdays";
|
||||
"violation_scope_weekend" = "on weekends";
|
||||
"violation_suggestion_repeated" = "Swap it for another dish to vary the week";
|
||||
"violation_suggestion_swap" = "Swap it for a dish with a different tag";
|
||||
"violation_suggestion_move" = "Move it to a day or meal where it is allowed";
|
||||
"violation_suggestion_generic" = "Change the dish or dismiss the warning";
|
||||
"violations_replace" = "Change dish";
|
||||
"stats_tag_by_meal_title" = "Tags by meal type";
|
||||
"stats_dishes_per_tag_title" = "Dishes per tag";
|
||||
|
||||
Reference in New Issue
Block a user