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

@@ -423,4 +423,36 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get planSuccess => 'Menu planifié !';
@override
String get planProductsTitle => 'Produits pour le menu';
@override
String get planProductsSubtitle =>
'L\'IA tiendra compte des produits sélectionnés lors de la génération des recettes';
@override
String get planProductsEmpty => 'Aucun produit ajouté';
@override
String get planProductsEmptyMessage =>
'Ajoutez des produits que vous avez à la maison — l\'IA suggérera des recettes à partir de ce que vous avez déjà';
@override
String get planProductsAddProducts => 'Ajouter des produits';
@override
String get planProductsContinue => 'Continuer';
@override
String get planProductsSkip => 'Ignorer la sélection des produits';
@override
String get planProductsSkipNoProducts => 'Planifier sans produits';
@override
String get planProductsSelectAll => 'Tout sélectionner';
@override
String get planProductsDeselectAll => 'Tout désélectionner';
}