-
Notifications
You must be signed in to change notification settings - Fork 171
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
Reparent out of grid #6264
Reparent out of grid #6264
Conversation
show: 'visible-only-while-active', | ||
}), | ||
], | ||
controlsToRender: controlsForAbsoluteReparent(reparentTarget), |
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.
no logic changes here, just factored out the controls and the apply logic
priority: 'bottom', | ||
}, | ||
], | ||
controlsToRender: controlsForGridReparent(reparentTarget), |
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.
no logic changes, just factored out the controls and the apply logic
show: 'visible-only-while-active', | ||
}), | ||
], | ||
controlsToRender: controlsForStaticReparent(reparentTarget), |
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.
no logic changes, just factored out the controls
#13955 Bundle Size — 62.51MiB (~+0.01%).05cfeea(current) vs 916e8b9 master#13941(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #13955 |
Baseline #13941 |
|
---|---|---|
Initial JS | 45.64MiB (~+0.01% ) |
45.63MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 21.54% |
21.51% |
Chunks | 30 |
30 |
Assets | 33 |
33 |
Modules | 4375 |
4375 |
Duplicate Modules | 519 |
519 |
Duplicate Code | 31.64% |
31.64% |
Packages | 472 |
472 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
1 regression
1 improvement
Current #13955 |
Baseline #13941 |
|
---|---|---|
JS | 62.5MiB (~+0.01% ) |
62.49MiB |
HTML | 11.05KiB (-0.33% ) |
11.09KiB |
Bundle analysis report Branch feat/reparent-out-of-grid Project dashboard
Generated by RelativeCI Documentation Report issue
updateSelectedViews('always', newPaths), | ||
setCursorCommand(CSSCursor.Reparent), | ||
showGridControls('mid-interaction', reparentTarget.newParent.intendedParentPath), | ||
], |
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.
I think a setElementsToRerender command is missing from here
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.
it was removed on purpose in #6258 because it doesn't look right with the grid placement
editor/src/components/canvas/canvas-strategies/strategies/grid-rearrange-move-strategy.ts
Show resolved
Hide resolved
editor/src/components/canvas/canvas-strategies/strategies/grid-rearrange-move-strategy.ts
Outdated
Show resolved
Hide resolved
**Problem:** It's currently not possible to reparent out of a grid. **Fix:** Allow reparenting out of a grid while holding `cmd`, like all other reparenting scenarios. https://github.com/user-attachments/assets/df75b0ee-5098-4cba-b66c-507697cf03c0 **Notes:** The grid rearrange strategy now needs to act as a sort of meta strat, because 1) it needs a custom mouse drag handling (due to the grid placeholder controls) and 2) cells don't have positioning props so absolute reparenting needs some massaging in order to work Fixes #6263
Problem:
It's currently not possible to reparent out of a grid.
Fix:
Allow reparenting out of a grid while holding
cmd
, like all other reparenting scenarios.Kapture.2024-08-27.at.13.21.53.mp4
Notes:
The grid rearrange strategy now needs to act as a sort of meta strat, because 1) it needs a custom mouse drag handling (due to the grid placeholder controls) and 2) cells don't have positioning props so absolute reparenting needs some massaging in order to work
Fixes #6263