-
Notifications
You must be signed in to change notification settings - Fork 51
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
Visual Layout Editor #1369
Visual Layout Editor #1369
Conversation
Could you do a quick share of when you have 5-6 elements in the page too please? |
I'm struggling with this, it's not clear to me where the element is going to drop into based on the hovering you're showing unfortunately. |
When i come back onto this PR, i will revisit. Perhaps I missed something - but I did spent a lot of time in the docs and examples - with numerous workarounds and hacks - I got nowhere. Simply doing the drag drop in a more standard way (without mutating the groups below the cursor while moving) things simplified greatly and the drop effects started to work. |
That isn't a standard way though. Node-RED's editable list works how I had built it: Screen.Recording.2024-10-16.at.09.32.01.mov |
Node-RED list does not mutate the underlying structure until the item is dropped - it uses a dummy placeholder to simulate the placement. Additionally, all elements in a regular list are the same size. If they were not, Node-RED would have similar considerations to make regarding flip-flop of elements. It also doesnt use the new dataTransfer drag/drop mechanism (uses older tech) |
I think you encountered this in your tutorial video - agree it is a bug unrelated to this PR. I think there is an existing issue - will follow up shortly. |
RE commit: Reverted the drag drop to "place on drag-over" as before BUT now working with dropEffect cursorimproves sizing accuracyThis took far more experimentation and brain power than it should have. Refactoring
There are still some possible refactoring's and they will probably become more evident with the feature set grows - for now, it is in much nicer shape (IMO) |
These issues are still TODO |
@joepavitt fixed remaining issues. Remaining tasks are:
How do we want to proceed - get this in early (already pretty large PR) - or - keep going to get tests and docs as part of this PR? PS: Regarding the task you self assigned:
|
Review:
|
Just pushed fix for the broken E2E, but otherwise this is looking excellent! I can't approve/merge from my side as I opened the original PR, but you have my approval @Steve-Mcl |
I'll then do an icon clean up as a follow on piece once merged |
Description
Making this Draft PR for handover with Steve. detailing the todo list so it makes it clear what steps are required to completion and release readiness.
Done So Far
Todo List
Todo
Scope
Related Issue(s)
Closes #30