feat: view/edit existing recipe in Desktop (#2670)

This commit is contained in:
Lifei Zhou
2025-05-28 14:19:48 +10:00
committed by GitHub
parent f080a41387
commit 4947591ac8
11 changed files with 461 additions and 324 deletions

View File

@@ -527,23 +527,7 @@ export default function App() {
)}
{view === 'recipeEditor' && (
<RecipeEditor
key={viewOptions?.config ? 'with-config' : 'no-config'}
config={viewOptions?.config || window.electron.getConfig().recipeConfig}
onClose={() => setView('chat')}
setView={setView}
onSave={(config) => {
console.log('Saving recipe config:', config);
window.electron.createChatWindow(
undefined,
undefined,
undefined,
undefined,
config,
'recipeEditor',
{ config }
);
setView('chat');
}}
/>
)}
{view === 'permission' && (