premium: configurar días y comidas de una semana concreta
Hasta ahora includeWeekends y activeMealTypes vivían solo en AppSettings y aplicaban a todo el calendario. WeekPlan puede ahora sobreescribirlos para su semana (includeWeekendsOverride / mealTypesOverrideRaw) y WeekSchedule resuelve qué manda en cada semana: su override si lo tiene, los ajustes globales si no. Todo lo que pintaba días y comidas —planificador, exports, compartir texto, widget, watch— pasa por settings.schedule(for:), así que una semana con fin de semana añadido o con desayuno activo se ve igual en todas partes. Crear o editar el override es premium; los ya guardados se respetan aunque la suscripción caduque, para no borrar comidas ya planificadas. La hoja avisa y pide confirmación cuando quitar un día o una comida se lleva por delante algo ya planificado. Refs #32 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013su1ttRiMeMYxkZJ1Y3246
This commit is contained in:
@@ -462,3 +462,19 @@
|
||||
"stats_dishes_per_tag_title" = "Dishes per tag";
|
||||
"violations_banner_title" = "%d meal(s) break your rules";
|
||||
"violations_banner_cta" = "View";
|
||||
|
||||
/* Per-week schedule (2.1.1, premium) */
|
||||
"week_schedule_title" = "This week only";
|
||||
"week_schedule_intro" = "Change the days and meals of this one week, without touching your general settings.";
|
||||
"week_schedule_premium_message" = "Customising a single week is Premium";
|
||||
"week_schedule_meals_section" = "Meals this week";
|
||||
"week_schedule_meals_footer" = "Turn breakfast or a snack on just for this week. At least one meal must stay on.";
|
||||
"week_schedule_days_section" = "Days this week";
|
||||
"week_schedule_apply" = "Apply";
|
||||
"week_schedule_reset" = "Back to my general settings";
|
||||
"week_schedule_reset_footer" = "This week will follow your general settings again.";
|
||||
"week_schedule_warning_title" = "Planned meals will be lost";
|
||||
"week_schedule_warning_message" = "Removing those days or meals will delete %d meals already planned this week.";
|
||||
"week_schedule_warning_confirm" = "Remove anyway";
|
||||
"toast_week_schedule_updated" = "Week updated";
|
||||
"toast_week_schedule_reset" = "Week back to your general settings";
|
||||
|
||||
Reference in New Issue
Block a user