-
-
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
Model editor: Drag and drop #2970
base: main
Are you sure you want to change the base?
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>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
That's super cool. |
#2701 Bundle Size — 11MiB (+0.21%).f8276e8(current) vs 7ef5b6f main#2698(baseline) Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
|
Current #2701 |
Baseline #2698 |
|
---|---|---|
Initial JS | 1.9MiB (+0.05% ) |
1.9MiB |
Initial CSS | 577.21KiB |
577.21KiB |
Cache Invalidation | 20.3% |
17.51% |
Chunks | 227 |
227 |
Assets | 250 |
250 |
Modules | 2956 (+0.17% ) |
2951 |
Duplicate Modules | 158 (+2.6% ) |
154 |
Duplicate Code | 1.84% (+2.22% ) |
1.8% |
Packages | 98 |
98 |
Duplicate Packages | 2 |
2 |
Bundle size by type 2 changes
2 regressions
Current #2701 |
Baseline #2698 |
|
---|---|---|
JS | 9.21MiB (+0.24% ) |
9.19MiB |
CSS | 867.72KiB (+0.08% ) |
867.02KiB |
Fonts | 526.1KiB |
526.1KiB |
Media | 295.6KiB |
295.6KiB |
IMG | 140.74KiB |
140.74KiB |
HTML | 1.38KiB |
1.38KiB |
Other | 871B |
871B |
Bundle analysis report Branch mherwege:model_drag_drop Project dashboard
Generated by RelativeCI Documentation Report issue
Indeed and I can't imagine openHAB 5 without it :) |
First comment from watching the GIFs alone would be to make sure there's a confirm message for every drag and drop as it might be too easy to screw up and make an involuntary change. This could be an additional dialog or a Cancel button to the existing ones - like the one asking whether to add an Equipment or a Point. |
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>
I have added some confirmation dialogs. |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
From my perspective, this is ready for review and testing by others. |
@ghys Do you want to review? |
@florian-h05 yeah if you don't mind, this is personal for me (like the log viewer) since I always wanted to do it but never got around to it. So I'm glad it got implemented by @mherwege and I'll take care of this one and get it done. |
@mherwege I'm testing it and unfortunately I do have a major remark which IMO is a must fix... The tree view now adds arrows/chevrons besides items even if they don't have children, it's super confusing: This leads to unnecessary clicks on them because you'd think there's something to expand when there's not. Actually it's the case for the sitemap tree view now too (I missed it). I think it should be fixed because it leads to confusion for example: Since the Text widget here is an "expanded empty group" we could easily think the Switch is one of its children, when it's actually on the same level as a child of the Frame. It is possible to at least show those after you've started the drag operation only (so you can insert into an empty group)? |
Regression from openhab#2904. Reported in openhab#2970 (comment). Signed-off-by: Florian Hotze <dev@florianhotze.com>
Fixed in #3007. |
Yes, fair enough. And it looks like @florian-h05 already found a fix for it in the sitemap editor. I will look into doing something similar here, but need to find some time for doing it. It doesn't look to be a major change, so should be easy enough to include without changing everything. I don't think it should impact other review comments you may have. |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
I created a fix in this PR. |
Regression from #2904. Reported in #2970 (comment). Signed-off-by: Florian Hotze <dev@florianhotze.com>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Allow drag and drop in the model view:
This PR requires further testing, but I do want to already provide it for others to start evaluating, as there is a fair amount of change. I probably have missed some boundary cases of changes in the model that are or are not possible.
Edit: I have tested this on different devices, and from my perspective, it works well. But again, I may have missed something. Therefore I would appreciate others to test.
I have put extensive debug logging into the code to be able to debug potential issues.
Here are a few gifs of what it looks like: