From cd084286607d59d37562dc9541ba5e1ad53a0752 Mon Sep 17 00:00:00 2001 From: Paul R Kartchner Date: Sat, 1 Nov 2025 05:19:58 +0000 Subject: [PATCH] feat: add notes field to ingredient editor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add editable notes field to ingredients in the unified recipe editor, allowing users to add preparation notes like "sifted", "room temperature", etc. Changes: - Added notes input field below amount/unit/name inputs in UnifiedEditRecipe.tsx - Styled notes field with italic, gray text to indicate optional nature - Added placeholder text with examples (e.g., sifted, room temperature) - Field uses existing ingredient.notes field from database schema - Notes are saved with other ingredient data via updateIngredient function The notes field is displayed with reduced font size and lighter styling to differentiate from required ingredient fields. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- packages/web/src/pages/UnifiedEditRecipe.tsx | 9 ++++++++ packages/web/src/styles/UnifiedRecipeEdit.css | 22 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/packages/web/src/pages/UnifiedEditRecipe.tsx b/packages/web/src/pages/UnifiedEditRecipe.tsx index 7694d16..7379c29 100644 --- a/packages/web/src/pages/UnifiedEditRecipe.tsx +++ b/packages/web/src/pages/UnifiedEditRecipe.tsx @@ -881,6 +881,15 @@ function UnifiedEditRecipe() { onMouseDown={(e) => e.stopPropagation()} /> + updateIngredient(index, 'notes', e.target.value)} + placeholder="Notes (e.g., sifted, room temperature)" + draggable={false} + onMouseDown={(e) => e.stopPropagation()} + />