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:
dbastrikin
2026-03-23 16:07:28 +02:00
parent b6c75a3488
commit b38190ff5b
33 changed files with 1007 additions and 77 deletions

View File

@@ -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": "AI가 한 주 동안 아침, 점심, 저녁 식사 메뉴를 만들어 드립니다",
"generatingMenu": "메뉴 생성 중...",
"dayPlannedLabel": "일일 계획 완료",
"planMenuButton": "식사 계획하기",
"planMenuTitle": "무엇을 계획하시겠어요?",
"planOptionSingleMeal": "식사 1회",
@@ -151,6 +154,16 @@
"planSelectMealType": "식사 유형",
"planSelectRange": "기간 선택",
"planGenerateButton": "계획하기",
"planGenerating": "플랜 생성 중\u2026",
"planSuccess": "메뉴가 계획되었습니다!"
"planGenerating": "플랜 생성 중",
"planSuccess": "메뉴가 계획되었습니다!",
"planProductsTitle": "메뉴 재료",
"planProductsSubtitle": "AI가 레시피 생성 시 선택한 재료를 고려합니다",
"planProductsEmpty": "추가된 재료가 없습니다",
"planProductsEmptyMessage": "집에 있는 재료를 추가하세요 — AI가 이미 있는 재료로 레시피를 제안합니다",
"planProductsAddProducts": "재료 추가",
"planProductsContinue": "계속",
"planProductsSkip": "재료 선택 건너뛰기",
"planProductsSkipNoProducts": "재료 없이 계획하기",
"planProductsSelectAll": "모두 선택",
"planProductsDeselectAll": "모두 해제"
}