From defbb5e24d1a06625c912d239894a973cd06afa9 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sun, 19 Apr 2026 13:40:10 +0200 Subject: [PATCH] refactor(editor): IngredientRow + shared types IngredientRow rendert eine einzelne editierbare Zutat-Zeile. DraftIng und DraftStep sind jetzt in recipe-editor-types.ts, damit Parent und Sub-Components auf dieselbe Form referenzieren. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/lib/components/IngredientRow.svelte | 129 ++++++++++++++++++++++ src/lib/components/RecipeEditor.svelte | 115 ++----------------- src/lib/components/recipe-editor-types.ts | 8 ++ 3 files changed, 147 insertions(+), 105 deletions(-) create mode 100644 src/lib/components/IngredientRow.svelte create mode 100644 src/lib/components/recipe-editor-types.ts diff --git a/src/lib/components/IngredientRow.svelte b/src/lib/components/IngredientRow.svelte new file mode 100644 index 0000000..cb775fe --- /dev/null +++ b/src/lib/components/IngredientRow.svelte @@ -0,0 +1,129 @@ + + +
  • +
    + + +
    + + + + + +
  • + + diff --git a/src/lib/components/RecipeEditor.svelte b/src/lib/components/RecipeEditor.svelte index 7fa9977..6a2f817 100644 --- a/src/lib/components/RecipeEditor.svelte +++ b/src/lib/components/RecipeEditor.svelte @@ -1,8 +1,10 @@