feat: flow export/import + procedural Flow Assist #96
@@ -55,10 +55,12 @@ export function ProceduralEditorPage() {
|
|||||||
treeId: id,
|
treeId: id,
|
||||||
getFlowContext: useCallback(() => {
|
getFlowContext: useCallback(() => {
|
||||||
return {
|
return {
|
||||||
|
name,
|
||||||
|
description,
|
||||||
steps: steps as unknown as Record<string, unknown>[],
|
steps: steps as unknown as Record<string, unknown>[],
|
||||||
intake_form: intakeForm,
|
intake_form: intakeForm,
|
||||||
}
|
}
|
||||||
}, [steps, intakeForm]),
|
}, [steps, intakeForm, name, description]),
|
||||||
})
|
})
|
||||||
|
|
||||||
const isMaintenance = treeType === 'maintenance'
|
const isMaintenance = treeType === 'maintenance'
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export function TreeEditorPage() {
|
|||||||
|
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
|
description,
|
||||||
isDirty,
|
isDirty,
|
||||||
isLoading,
|
isLoading,
|
||||||
isSaving,
|
isSaving,
|
||||||
@@ -87,8 +88,12 @@ export function TreeEditorPage() {
|
|||||||
treeId: id,
|
treeId: id,
|
||||||
getFlowContext: useCallback(() => {
|
getFlowContext: useCallback(() => {
|
||||||
if (!treeStructure) return null
|
if (!treeStructure) return null
|
||||||
return treeStructure as unknown as Record<string, unknown>
|
return {
|
||||||
}, [treeStructure]),
|
name,
|
||||||
|
description,
|
||||||
|
tree_structure: treeStructure as unknown as Record<string, unknown>,
|
||||||
|
}
|
||||||
|
}, [treeStructure, name, description]),
|
||||||
})
|
})
|
||||||
|
|
||||||
const previousEditingNodeRef = useRef<string | null>(null)
|
const previousEditingNodeRef = useRef<string | null>(null)
|
||||||
|
|||||||
Reference in New Issue
Block a user