-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[blockly] Add new list, item, persistence, text blocks #1549
Conversation
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
…nting Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Job #628: Bundle Size — 15.96MiB (+0.11%).Metrics (6 changes)
Total size by type (2 changes)
|
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
@ghys Do you mind having a quick look at it, so we can deliver it with the current milestone |
@lolodomo would you be able to review it, so there is a chance that it still can make it into main before the feature freeze? |
I'm still around... I'll review it and other pending PRs this week-end. |
Yannick, I know, I appreciate it. please take care of yourself.! 🤗 |
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
FYI I took the chance and added a few changes lately and a fix all of which are documented above. The reason is that by using the blocks myself I discovered some short comings, so I improved them. The PR is now stable again and ready to be reviewed. |
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're getting good at this, I have just this to moan about but otherwise it's all good.
bundles/org.openhab.ui/web/src/assets/definitions/blockly/utils.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Stefan Höhn <stefan@andreaundstefanhoehn.de>
4e165d3
to
2f3d3f3
Compare
@ghys Your change has been applied. |
Signed-off-by: Yannick Schaus <github@schaus.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was still missing spaces that I didn't fix in the earlier suggestion, I did it myself.
LGTM thanks.
Signed-off-by: Stefan Höhn stefan@andreaundstefanhoehn.de
oh_text_replace: a new text replace block that is missing in the standard text block section
![image](https://user-images.githubusercontent.com/5937600/203168090-7442fc28-4673-45af-9a65-171d9957c7e7.png)
oh_taggeditems: retrieve a list of items identified by one or multiple tags
![image](https://user-images.githubusercontent.com/5937600/203168449-b4c180f8-ff42-4388-ac38-2995385e2dad.png)
oh_list_concatenate: allows to concatenate two lists into a new lists
![image](https://user-images.githubusercontent.com/5937600/203168531-7d5ccfb3-ab0a-4242-bd91-ed0ef5dbc7cf.png)
oh_get_persistvalue: add new previousState (new mutating block)
fixed type checking of oh_get_persistvalue: requires item name, not item
oh_zdt_fromText: Add time support
![image](https://user-images.githubusercontent.com/5937600/203284090-5cd9022e-571a-4602-a098-d34b256e9505.png)
oh_transformation: fix help url
see some more info and example here: https://community.openhab.org/t/extending-blockly-with-new-openhab-commands/127169/394