diff --git a/src/routes/settings.workflows.tsx b/src/routes/settings.workflows.tsx index cbe0c13..d5b3c68 100644 --- a/src/routes/settings.workflows.tsx +++ b/src/routes/settings.workflows.tsx @@ -99,7 +99,7 @@ function WorkflowsPage() { .insert({ name: newName.trim(), description: newDesc.trim() || null, - kind: newKind, + kind: "task", created_by: user.id, }) .select() @@ -110,18 +110,11 @@ function WorkflowsPage() { } setNewName(""); setNewDesc(""); - setNewKind("task"); setNewOpen(false); await loadTemplates(); setSelected(data as Template); }; - const updateTemplateKind = async (id: string, kind: "task" | "collection") => { - await supabase.from("workflow_templates").update({ kind }).eq("id", id); - await loadTemplates(); - if (selected?.id === id) setSelected({ ...selected, kind }); - }; - const deleteTemplate = async (id: string) => { if (!confirm("Delete this workflow template?")) return; await supabase.from("workflow_templates").delete().eq("id", id); @@ -182,13 +175,6 @@ function WorkflowsPage() { >
{t.name}
- - {t.kind === "collection" ? "Collection" : "Task"} -
{t.description &&
{t.description}
} @@ -211,19 +197,6 @@ function WorkflowsPage() { )}
- -