fix: unify date limits, fix ISO week calculation, refactor home screen plan button
- Fix _isoWeek: correct Sunday shift (-3 instead of +4), use floor+1 formula, match jan1 timezone to input — planned meals now appear correctly for UTC+ users - Add kPlanningHorizonDays=28 / kMenuPastWeeks=8 constants; apply to home date strip, plan picker (strip + calendar), and menu screen prev/next navigation - Menu screen week nav: disable arrows at min/max limits using compareTo - Home screen: replace _GenerateActionCard/_WeekPlannedChip conditional with always-visible _FutureDayPlanButton(dateString); show _DayPlannedChip only when the specific day has planned meals; remove standalone _PlanMenuButton - _FutureDayPlanButton uses selected date as defaultStart instead of lastPlanned+1 - Rename weekPlannedLabel -> dayPlannedLabel across all 12 locales Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
"generateWeekLabel": "सप्ताह की योजना बनाएं",
|
||||
"generateWeekSubtitle": "AI पूरे सप्ताह के लिए नाश्ता, दोपहर का खाना और रात के खाने के साथ मेनू बनाएगा",
|
||||
"generatingMenu": "मेनू बना रहे हैं...",
|
||||
"weekPlannedLabel": "सप्ताह की योजना बनाई गई",
|
||||
"dayPlannedLabel": "दिन की योजना बनाई गई",
|
||||
|
||||
"planMenuButton": "भोजन की योजना बनाएं",
|
||||
"planMenuTitle": "क्या योजना बनानी है?",
|
||||
|
||||
Reference in New Issue
Block a user