diff --git a/packages/web/src/App.tsx b/packages/web/src/App.tsx index 3cf8728..c1dbc1f 100644 --- a/packages/web/src/App.tsx +++ b/packages/web/src/App.tsx @@ -3,9 +3,8 @@ import RecipeList from './pages/RecipeList'; import RecipeDetail from './pages/RecipeDetail'; import RecipeImport from './pages/RecipeImport'; import NewRecipe from './pages/NewRecipe'; -import EditRecipe from './pages/EditRecipe'; +import UnifiedEditRecipe from './pages/UnifiedEditRecipe'; import CookingMode from './pages/CookingMode'; -import ManageIngredientMappings from './pages/ManageIngredientMappings'; import './App.css'; function App() { @@ -28,9 +27,8 @@ function App() { } /> } /> - } /> + } /> } /> - } /> } /> } /> diff --git a/packages/web/src/pages/CookingMode.tsx b/packages/web/src/pages/CookingMode.tsx index 004b8e1..df06c3c 100644 --- a/packages/web/src/pages/CookingMode.tsx +++ b/packages/web/src/pages/CookingMode.tsx @@ -219,8 +219,8 @@ function CookingMode() { Show ingredients with steps - + + ); + } + + const allIngredients = getAllIngredients(); + const allInstructions = getAllInstructions(); + + return ( +
+ {/* Header */} +
+
+

Edit Recipe

+

{title || 'Untitled Recipe'}

+
+ +
+ + + + + +
+
+ + {/* Unsaved changes banner */} + {hasChanges && ( +
+ ⚠️ You have unsaved changes. Click "Save All Changes" to persist them. +
+ )} + + {/* Collapsible Basic Info Section */} +
+
setBasicInfoCollapsed(!basicInfoCollapsed)} + > +

Recipe Details

+ + ▼ + +
+ + {!basicInfoCollapsed && ( +
+
+ + { + setTitle(e.target.value); + setHasChanges(true); + }} + required + /> +
+ +
+ +