feat: flow export/import + procedural Flow Assist #96

Merged
chihlasm merged 43 commits from feat/flow-transfer-and-procedural-assist into main 2026-03-07 20:51:37 +00:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit fdc3be57ed - Show all commits

View File

@@ -55,10 +55,12 @@ export function ProceduralEditorPage() {
treeId: id,
getFlowContext: useCallback(() => {
return {
name,
description,
steps: steps as unknown as Record<string, unknown>[],
intake_form: intakeForm,
}
}, [steps, intakeForm]),
}, [steps, intakeForm, name, description]),
})
const isMaintenance = treeType === 'maintenance'

View File

@@ -36,6 +36,7 @@ export function TreeEditorPage() {
const {
name,
description,
isDirty,
isLoading,
isSaving,
@@ -87,8 +88,12 @@ export function TreeEditorPage() {
treeId: id,
getFlowContext: useCallback(() => {
if (!treeStructure) return null
return treeStructure as unknown as Record<string, unknown>
}, [treeStructure]),
return {
name,
description,
tree_structure: treeStructure as unknown as Record<string, unknown>,
}
}, [treeStructure, name, description]),
})
const previousEditingNodeRef = useRef<string | null>(null)