feat(meal-plan) dish amount description on card; use recipe default amount on add #19

Merged
araemer merged 5 commits from meal-plan-dish-amount into stage 2026-08-15 06:14:32 +00:00
Owner

Summary

  • Issue #12recipeAmountDescription is now shown left of the +/− step control on each dish card in the list view. Flows through MealPlanDayDishDtoMealPlanDayDishModel → mapper → MealPlanDishCard. Hidden when absent. Also shown in read-only view. Backend field exposed via recipe-backend MR #5.
  • Issue #14 — When adding a recipe as a dish, the initial servings value is taken from CompactRecipeModel.amount (falling back to 1 when absent). amountDescription is also mapped through for future use. Backend fields exposed via recipe-backend MR #6.

Test plan

  • Add a recipe that has an amount description — verify it appears left of the step control on the dish card
  • Add a recipe with no amount description — verify nothing extra is rendered
  • Add a recipe that has a default amount configured — verify the servings control starts at that value
  • Add a recipe with no default amount — verify servings defaults to 1
  • Verify read-only view also shows the amount description
  • Test with a long recipe title to ensure layout does not break

Generated with Claude Code

## Summary - **Issue #12** — `recipeAmountDescription` is now shown left of the +/− step control on each dish card in the list view. Flows through `MealPlanDayDishDto` → `MealPlanDayDishModel` → mapper → `MealPlanDishCard`. Hidden when absent. Also shown in read-only view. Backend field exposed via recipe-backend MR #5. - **Issue #14** — When adding a recipe as a dish, the initial servings value is taken from `CompactRecipeModel.amount` (falling back to 1 when absent). `amountDescription` is also mapped through for future use. Backend fields exposed via recipe-backend MR #6. ## Test plan - [x] Add a recipe that has an amount description — verify it appears left of the step control on the dish card - [x] Add a recipe with no amount description — verify nothing extra is rendered - [x] Add a recipe that has a default amount configured — verify the servings control starts at that value - [x] Add a recipe with no default amount — verify servings defaults to 1 - [ ] Verify read-only view also shows the amount description - [x] Test with a long recipe title to ensure layout does not break Generated with [Claude Code](https://claude.com/claude-code)
- Adds recipeAmountDescription to MealPlanDayDishDto, MealPlanDayDishModel, and
  MealPlanDayDishMapper; rendered left of the step control in MealPlanDishCard
  (issue #12, backend field exposed via recipe-backend MR #5)
- Adds defaultAmount to CompactRecipeDto, CompactRecipeModel, and CompactRecipeMapper;
  MealPlanDayProvider now uses recipe.defaultAmount ?? 1 as initial servings when
  adding a dish (issue #14)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Backend PR #6 exposes `amount` and `amountDescription`, not `defaultAmount`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Owner

In read only view the amount description in the recipe is now shown. But there is still some default amount shown as well. In read only, i'd prefer for the amount description of the recipe being shown right of the amount.

in edit mode, it must remain left of the amount controls. Otherwise the gui will seem to be unaligned.
image

In read only view the amount description in the recipe is now shown. But there is still some default amount shown as well. In read only, i'd prefer for the amount description of the recipe being shown right of the amount. in edit mode, it must remain left of the amount controls. Otherwise the gui will seem to be unaligned. ![image](/attachments/ea5541e4-1b7a-4340-9e61-4efb352e2b61)
In read-only view the servings count now comes first, with recipeAmountDescription
shown to its right — matching the review feedback on PR #19.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
amountDescription is mandatory on every recipe so the servings count is redundant
in read-only view.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Renders as e.g. "2 für 4 Personen" — the number of servings followed by the
recipe's amount description, without the now-redundant Portion/Portionen label.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
araemer merged commit 39ec0b3fbb into stage 2026-08-15 06:14:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
araemer/recipe-app!19
No description provided.