jwadhams / json-logic-js

Build complex rules, serialize them as JSON, and execute them in JavaScript
MIT License
1.25k stars 140 forks source link

Visual UI (Blockly) for building logic #20

Open andywatts opened 7 years ago

andywatts commented 7 years ago

https://developers.google.com/blockly/

Would love to see a blockly visual UI for constructing the logic.

Has anyone done any work on this?

This blockly does JSON creation and could be a start... http://ens-lg4.github.io/MenulyJSON/

jwadhams commented 7 years ago

That looks really cool. If anyone has tried that I haven't heard about it. Ping me if I can be helpful, that Menuly demo looks like a step in the right direction. That could do some really amazing stuff with nested commands that are difficult to intuitively format in text.

jasonslyvia commented 7 years ago

I was thinking build a UI component for generating json logics, maybe React component?

jasonslyvia commented 7 years ago

I found this http://altayaydemir.com/react-json-logic/

christrotter89 commented 7 years ago

I would suggest [https://github.com/mistic100/jQuery-QueryBuilder](jQuery QueryBuilder) as a starting point. jQuery QueryBuilder has it's own JSON rules format which may even be suitable for most users of JSON Logic. Shame there isn't a react port.

jasonslyvia commented 7 years ago

@christrotter89 excellent suggestion, thanks!

jeremywall commented 7 years ago

@christrotter89 @jasonslyvia I just started added jsonlogic support to querybuilder this last week https://github.com/jeremywall/jQuery-QueryBuilder https://github.com/jeremywall/json-logic-js

happyiphone commented 7 years ago

Thank you Jeremy for sharing the plugin, works great! Any particular reason you keep the console.log in the sources?

jeremywall commented 7 years ago

I'm not done, it's still under development still, sorry about that @happyiphone

happyiphone commented 7 years ago

Oh, no worries at all. What you have in there worked for me, am using it to compare multiple web form values (replacing var: f with the actual value field) also implemented the startsWith, endsWith from your work.)

deinspanjer commented 7 years ago

@jeremywall how goes this project? We are making extensive use of JSONLogic in our project and need to get a query builder out there too so I'd be interested in collaborating.

alternativshik commented 6 years ago

Any news?

painos commented 6 years ago

@jeremywall Are you still planning to add this feature?

kunupat commented 5 years ago

@jeremywall Could you please let me know if this feature has been added?

jstriebel commented 5 years ago

I just found a blockly based editor for json logic: https://katirasole.github.io/JSONLogic-Editor/ https://github.com/katirasole/JSONLogic-Editor

Shoutout to @katirasole, thanks a ton!

nathando commented 3 years ago

I wonder if it is possible to reuse the export/import here to/from jsonlogic for the plain jquery querybuilder. We would like to add jsonlogic compatible version of query builder to other platform not react. @jeremywall Are you still gonna release this feature ? Because the repository seems to be removed https://github.com/jeremywall/jQuery-QueryBuilder