gorules / jdm-editor

JDM Editor is an open-source React component for crafting and designing JDM (JSON Decision model) files.
https://gorules.io
MIT License
141 stars 37 forks source link

Feature Request: JSON Validation for Ghost Edges #67

Open minjie-shen opened 4 months ago

minjie-shen commented 4 months ago

Description: I'm running into issues with ghost edges from legacy changes. These ghost edges aren't valid (e.g., sourceHandle is incorrect), so they don't appear on the graph. This prevents me from identifying and deleting these invalid edges from the graph, and they still appear in the output JSON and cause problems.

Request: Could you add a feature to validate both the input and output JSON? Or is there an existing feature that addresses this issue that I might have missed?

Thanks!

majest commented 4 months ago

Add className="nodrag nopan" to the Select component. This is referenced in https://github.com/xyflow/xyflow/issues/2936

minjie-shen commented 4 months ago

Add className="nodrag nopan" to the Select component. This is referenced in xyflow/xyflow#2936

Is this for the other issue https://github.com/gorules/jdm-editor/issues/62?

majest commented 4 months ago

Add className="nodrag nopan" to the Select component. This is referenced in xyflow/xyflow#2936

Is this for the other issue #62?

Yes, sorry, missclicked

ivanmiletic commented 3 months ago

Will take a look, will add filtering for the edges