Merge branch 'refactor/nodes-match-functionality' into feat/recursive-goal-making

This commit is contained in:
Björn Otgaar
2026-01-07 15:51:14 +01:00
4 changed files with 1 additions and 4 deletions

View File

@@ -28,7 +28,6 @@ export type ActionTypes = "speech" | "gesture" | "llm"
export function PlanReduce(plan?: Plan) {
if (!plan) return ""
return {
name: plan.name,
id: plan.id,
steps: plan.steps.map((x) => StepReduce(x))
}

View File

@@ -129,7 +129,7 @@ export function GoalReduce(node: Node, _nodes: Node[]) {
const data = node.data as GoalNodeData;
return {
id: node.id,
name: data.label,
name: data.name,
description: data.description,
can_fail: data.can_fail,
plan: data.plan ? PlanReduce(data.plan) : "",

View File

@@ -470,7 +470,6 @@ describe('PlanEditorDialog', () => {
it('should correctly reduce the plan given the elements of the plan', () => {
const testplan = extendedPlan
const expectedResult = {
name: "extended test plan",
id: "extended-plan-1",
steps: [
{

View File

@@ -98,7 +98,6 @@ describe('TriggerNode', () => {
keyword: "",
},
plan: {
name: "Default Plan",
id: expect.anything(),
steps: [],
},});