feat: add critical checkbox to the norm node, send it with the program, add test.

ref: N25B-390
This commit is contained in:
Björn Otgaar
2025-12-10 15:38:54 +01:00
parent 8149d67491
commit 062e9e3f38
4 changed files with 67 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ const initialNodes : Node[] = [
createNode('start', 'start', {x: 100, y: 100}, {label: "Start"}, false),
createNode('end', 'end', {x: 500, y: 100}, {label: "End"}, false),
createNode('phase-1', 'phase', {x:200, y:100}, {label: "Phase 1", children : []}),
createNode('norms-1', 'norm', {x:-200, y:100}, {label: "Initial Norms", normList: ["Be a robot", "get good"]}),
createNode('norms-1', 'norm', {x:-200, y:100}, {label: "Initial Norms", normList: ["Be a robot", "get good"], critical:false}),
];
// * Initial edges * /