From 97500e494d2c6e0741bbeaa7f708093c1d601aef Mon Sep 17 00:00:00 2001 From: shrimbly Date: Sat, 21 Feb 2026 23:09:54 +1300 Subject: [PATCH] fix: remove Save As button, hide Array node, add Kie error logging - Remove Save As button and handler from Header (feature not ready) - Remove Array node button from FloatingActionBar (not ready for release) - Add error logging for failed Kie.ai tasks to aid debugging - Add .superset/ to .gitignore Co-Authored-By: Claude Opus 4.6 --- .gitignore | 4 ++- src/app/api/generate/providers/kie.ts | 1 + src/components/FloatingActionBar.tsx | 1 - src/components/Header.tsx | 44 ------------------------ src/components/__tests__/Header.test.tsx | 39 --------------------- 5 files changed, 4 insertions(+), 85 deletions(-) diff --git a/.gitignore b/.gitignore index 486f1a8c..18f7d4ef 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,6 @@ logs/*.json .planning/ # agents -.agents/ \ No newline at end of file +.agents/ + +.superset/ \ No newline at end of file diff --git a/src/app/api/generate/providers/kie.ts b/src/app/api/generate/providers/kie.ts index 61b38609..c33d005f 100644 --- a/src/app/api/generate/providers/kie.ts +++ b/src/app/api/generate/providers/kie.ts @@ -324,6 +324,7 @@ export async function pollKieTaskCompletion( } if (state === "FAIL" || state === "FAILED" || state === "ERROR") { + console.error(`[API:${requestId}] Kie task failed. Full response:`, JSON.stringify(result).substring(0, 1000)); const errorMessage = result.data?.failMsg || result.data?.errorMessage || result.error || result.message || "Generation failed"; return { success: false, error: errorMessage }; } diff --git a/src/components/FloatingActionBar.tsx b/src/components/FloatingActionBar.tsx index 417464ef..2aa4b05c 100644 --- a/src/components/FloatingActionBar.tsx +++ b/src/components/FloatingActionBar.tsx @@ -263,7 +263,6 @@ export function FloatingActionBar() { - diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 3e03b062..1a0e58f6 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -67,7 +67,6 @@ export function Header() { isSaving, setWorkflowMetadata, saveToFile, - saveAsFile, loadWorkflow, previousWorkflowSnapshot, revertToSnapshot, @@ -163,31 +162,6 @@ export function Header() { } }; - const handleSaveAs = async () => { - if (!workflowName || !saveDirectoryPath) { - handleOpenSettings(); - return; - } - - const value = window.prompt("Save project as", workflowName); - if (value === null) return; - - const newName = value.trim(); - if (!newName) { - alert("Project name cannot be empty."); - return; - } - - try { - const success = await saveAsFile(newName); - if (!success) { - alert("Save As failed. Please try again."); - } - } catch (error) { - console.error("Failed to save project as:", error); - alert("Save As failed. Please try again."); - } - }; const handleRevertAIChanges = useCallback(() => { const confirmed = window.confirm( @@ -281,24 +255,6 @@ export function Header() { )} - {canSave && ( - - )} {saveDirectoryPath && (