File tree Expand file tree Collapse file tree
apps/chaingraph-frontend/src
components/flow/nodes/ChaingraphNode
packages/chaingraph-types/src/flow/__test__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121import { useBreakpoint } from '@/store/execution/hooks/useBreakpoint'
2222import { useNodeExecution } from '@/store/execution/hooks/useNodeExecution'
2323import { $activeFlowMetadata } from '@/store/flow'
24- import { removeNodeFromFlow } from '@/store/nodes'
24+ import { removeNodeFromFlow , updateNodeUI } from '@/store/nodes'
2525import { useNode } from '@/store/nodes/hooks/useNode'
2626import {
2727 addFieldObjectPort ,
@@ -198,18 +198,18 @@ function ChaingraphNodeComponent({
198198 if ( ! isDimensionsChanged )
199199 return
200200
201- // updateNodeUI({
202- // flowId: activeFlow.id!,
203- // nodeId: id,
204- // ui: {
205- // // ...node.metadata.ui,
206- // dimensions: {
207- // width: size.width,
208- // height: size.height,
209- // },
210- // },
211- // version: node.getVersion(),
212- // })
201+ updateNodeUI ( {
202+ flowId : activeFlow . id ! ,
203+ nodeId : id ,
204+ ui : {
205+ // ...node.metadata.ui,
206+ dimensions : {
207+ width : size . width ,
208+ height : size . height ,
209+ } ,
210+ } ,
211+ version : node . getVersion ( ) ,
212+ } )
213213 } ,
214214 } )
215215
Original file line number Diff line number Diff line change @@ -191,10 +191,7 @@ export const $activeFlowMetadata = combine(
191191// Subscription related stores
192192export const $flowSubscriptionStatus = flowDomain . createStore < FlowSubscriptionStatus > (
193193 FlowSubscriptionStatus . IDLE ,
194- ) . on ( setFlowSubscriptionStatus , ( _ , status ) => status )
195- . reset ( resetFlowSubscription )
196- . reset ( clearActiveFlow )
197- . reset ( globalReset )
194+ ) . on ( setFlowSubscriptionStatus , ( _ , status ) => status ) . reset ( resetFlowSubscription ) . reset ( clearActiveFlow ) . reset ( globalReset )
198195
199196export const $flowSubscriptionError = flowDomain . createStore < FlowSubscriptionError | null > ( null )
200197 . on ( setFlowSubscriptionError , ( _ , error ) => error )
Original file line number Diff line number Diff line change @@ -105,8 +105,6 @@ class TestGateNode extends BaseNode {
105105 if ( event . type === NodeEventType . PortConnected ) {
106106 // TODO: add check that show source port any has underlying type
107107 }
108- if ( event . type === NodeEventType . PortDisconnected ) {
109- }
110108 }
111109}
112110
You can’t perform that action at this time.
0 commit comments