-
-
Notifications
You must be signed in to change notification settings - Fork 243
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] Small improvements to blocks #2742
Conversation
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
851c89b
to
41a03e4
Compare
#2249 Bundle Size — 10.83MiB (~+0.01%).157a586(current) vs 920466e main#2248(baseline) Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
|
Current #2249 |
Baseline #2248 |
|
---|---|---|
Initial JS | 1.89MiB |
1.89MiB |
Initial CSS | 576.5KiB |
576.5KiB |
Cache Invalidation | 18.22% |
17.92% |
Chunks | 226 |
226 |
Assets | 249 |
249 |
Modules | 2914 |
2914 |
Duplicate Modules | 149 |
149 |
Duplicate Code | 1.8% |
1.8% |
Packages | 96 |
96 |
Duplicate Packages | 2 |
2 |
Bundle size by type 1 change
1 regression
Current #2249 |
Baseline #2248 |
|
---|---|---|
JS | 9.05MiB (~+0.01% ) |
9.05MiB |
CSS | 863.17KiB |
863.17KiB |
Fonts | 526.1KiB |
526.1KiB |
Media | 295.6KiB |
295.6KiB |
IMG | 140.74KiB |
140.74KiB |
HTML | 1.36KiB |
1.36KiB |
Other | 871B |
871B |
Bundle analysis report Branch mherwege:blockly_persistence Project dashboard
Generated by RelativeCI Documentation Report issue
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
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.
LGTM, thanks!
Just one thing: The code of transformationOptions()
can be simplified, I will push a commit for that soon.
@mherwege Has this been updated in the docs? |
I don‘t think these minor changes (basically add shadow blocks where they were missing) needs a doc update. Do you agree? |
@stefan-hoehn @florian-h05 I agree I don't think this needs further documentation. The purpose of this was to make things clearer when building Blockly rules, so it does not need all the documentation. |
Agreed. It would be just nice if the pics would be updated but I myself refrain from doing so often as it is not worth the effort. |
When going through the available blocks, I saw potential for a few small improvements, which I collected in this PR:
previous...State
andnext...State
blocks: add boolean shadow block for skip same, default falsetimer
blocks: add aundefined
shadow block forcontext
.run rule or script
block: make the parameter dictionnary input a shadow blockThe above does not change functionality, but I find it cleaner to always a default attached to the input, even if it is not required for the code. It avoids users thinking they need to put something in. Having a default indicates the default will work unless they need something specific.
In addition to that, for the
transform
block, I made the transformation dropdown dependent on the installed transformations.