feat: add product selection step before meal planning
Inserts a new PlanProductsSheet as step 1 of the planning flow. Users see their current products as a multi-select checklist (all selected by default) before choosing the planning mode and dates. - Empty state explains the benefit and offers "Add products" CTA while always allowing "Plan without products" to skip - Selected product IDs flow through PlanMenuSheet → PlanDatePickerSheet → MenuService.generateForDates → backend - Backend: added ProductIDs field to generate-menu request body; uses ListForPromptByIDs when set, ListForPrompt otherwise - Backend: added Repository.ListForPromptByIDs (filtered SQL query) - All 12 ARB locale files updated with planProducts* keys Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,9 @@
|
||||
"noResultsForQuery": "لم يتم العثور على نتائج لـ \"{query}\"",
|
||||
"@noResultsForQuery": {
|
||||
"placeholders": {
|
||||
"query": { "type": "String" }
|
||||
"query": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"servingsLabel": "حصص",
|
||||
@@ -127,7 +129,9 @@
|
||||
"planningForDate": "",
|
||||
"@planningForDate": {
|
||||
"placeholders": {
|
||||
"date": { "type": "String" }
|
||||
"date": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"markAsEaten": "وضع علامة كمأكول",
|
||||
@@ -136,7 +140,6 @@
|
||||
"generateWeekSubtitle": "سيقوم الذكاء الاصطناعي بإنشاء قائمة طعام تشمل الإفطار والغداء والعشاء لكامل الأسبوع",
|
||||
"generatingMenu": "جارٍ إنشاء القائمة...",
|
||||
"dayPlannedLabel": "تم تخطيط اليوم",
|
||||
|
||||
"planMenuButton": "تخطيط الوجبات",
|
||||
"planMenuTitle": "ماذا تريد تخطيطه؟",
|
||||
"planOptionSingleMeal": "وجبة واحدة",
|
||||
@@ -151,6 +154,16 @@
|
||||
"planSelectMealType": "نوع الوجبة",
|
||||
"planSelectRange": "اختر الفترة",
|
||||
"planGenerateButton": "تخطيط",
|
||||
"planGenerating": "جارٍ إنشاء الخطة\u2026",
|
||||
"planSuccess": "تم تخطيط القائمة!"
|
||||
"planGenerating": "جارٍ إنشاء الخطة…",
|
||||
"planSuccess": "تم تخطيط القائمة!",
|
||||
"planProductsTitle": "مكونات القائمة",
|
||||
"planProductsSubtitle": "سيأخذ الذكاء الاصطناعي المكونات المختارة بعين الاعتبار عند إنشاء الوصفات",
|
||||
"planProductsEmpty": "لم يتم إضافة منتجات",
|
||||
"planProductsEmptyMessage": "أضف المنتجات الموجودة لديك في المنزل — سيقترح الذكاء الاصطناعي وصفات مما لديك بالفعل",
|
||||
"planProductsAddProducts": "إضافة منتجات",
|
||||
"planProductsContinue": "متابعة",
|
||||
"planProductsSkip": "تخطي اختيار المنتجات",
|
||||
"planProductsSkipNoProducts": "التخطيط بدون منتجات",
|
||||
"planProductsSelectAll": "تحديد الكل",
|
||||
"planProductsDeselectAll": "إلغاء تحديد الكل"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user