json-logic-js icon indicating copy to clipboard operation
json-logic-js copied to clipboard

Visual UI (Blockly) for building logic

Open andywatts opened this issue 8 years ago • 15 comments

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/

andywatts avatar Dec 13 '16 07:12 andywatts

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.

jwadhams avatar Dec 13 '16 20:12 jwadhams

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

jasonslyvia avatar Jan 06 '17 08:01 jasonslyvia

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

jasonslyvia avatar Jan 06 '17 09:01 jasonslyvia

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.

christrotter89 avatar Jan 25 '17 09:01 christrotter89

@christrotter89 excellent suggestion, thanks!

jasonslyvia avatar Jan 25 '17 09:01 jasonslyvia

@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

jeremywall avatar Apr 03 '17 18:04 jeremywall

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

happyiphone avatar Apr 05 '17 14:04 happyiphone

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

jeremywall avatar Apr 05 '17 18:04 jeremywall

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.)

happyiphone avatar Apr 05 '17 19:04 happyiphone

@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.

deinspanjer avatar May 30 '17 23:05 deinspanjer

Any news?

alternativshik avatar Oct 02 '17 13:10 alternativshik

@jeremywall Are you still planning to add this feature?

painos avatar Feb 10 '18 22:02 painos

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

kunupat avatar Jun 16 '19 18:06 kunupat

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!

jstriebel avatar Jul 16 '19 15:07 jstriebel

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

nathando avatar May 13 '21 03:05 nathando