From a2b6cbf6ab1c1c760b7debb2337114df0771520b Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Fri, 1 Aug 2025 11:20:57 +0200 Subject: [PATCH] feat: group recipe ingredients by section titles Group ingredients under their respective section titles in the recipe page, improving organization and clarity. Added logic to compute and map section titles for used and unused ingredients. Updated related components to display grouped ingredients accordingly. --- .../RecipePageInstructions.vue | 110 +++++++++++++++--- .../recipes/use-recipe-ingredients.ts | 3 +- frontend/lang/messages/en-US.json | 1 + 3 files changed, 99 insertions(+), 15 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue index 2867b9d62..9b2076b3f 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue @@ -29,32 +29,49 @@ {{ activeText }}

- - - - -