feat(editor): Add execution indication to canvas v2 (no-changelog) (#9984)

This commit is contained in:
Elias Meire
2024-07-10 10:36:00 +02:00
committed by GitHub
parent 32ddcee782
commit 90e3f56a9d
18 changed files with 260 additions and 120 deletions

View File

@@ -10,7 +10,7 @@ export function createCanvasNodeData({
inputs = [],
outputs = [],
connections = { input: {}, output: {} },
execution = {},
execution = { running: false },
issues = { items: [], visible: false },
pinnedData = { count: 0, visible: false },
runData = { count: 0, visible: false },
@@ -55,7 +55,7 @@ export function createCanvasNodeProps({
label = 'Test Node',
selected = false,
data = {},
} = {}) {
}: { id?: string; label?: string; selected?: boolean; data?: Partial<CanvasElementData> } = {}) {
return {
id,
label,
@@ -69,7 +69,7 @@ export function createCanvasNodeProvide({
label = 'Test Node',
selected = false,
data = {},
} = {}) {
}: { id?: string; label?: string; selected?: boolean; data?: Partial<CanvasElementData> } = {}) {
const props = createCanvasNodeProps({ id, label, selected, data });
return {
[`${CanvasNodeKey}`]: {