[6155] Prevent edge handle detachment after node resize#6186
[6155] Prevent edge handle detachment after node resize#6186
Conversation
|
Quick automatic review (please ignore this message) Pull Request Status: The pull request #6186 is OPEN and mergeable. However, the CI status is currently Failing due to the Metadata Review. You should check the PR title, description, or labels to ensure they meet the repository's standards. The core Build check passed successfully. Summary: This PR successfully addresses issue #6155 (#6155) by ensuring that edge handles are correctly repositioned after a node resize. It introduces a call to updateNodeInternals when a resize operation completes and simplifies the multi-select resize logic. A new Playwright E2E test has been added to verify the fix with custom handles. 🚨 Critical & Architectural Issues
10 [getNodes] // ❌ Missing 'zoom'
1 // packages/diagrams/frontend/sirius-components-diagrams/src/renderer/handles/useHandleResizedChange.tsx
|
sbegaudeau
left a comment
There was a problem hiding this comment.
This PR seems to work for resize from the top of the left but not on the right or bottom. I can still reproduce the issue quite easily. Please also consider the comments made by the automatic review regarding the array dependencies.
4bee7aa to
d159875
Compare
In fact, only simple resizing was supported, not move + resize or multiple resizing, so I fixed that. |
d159875 to
6cfa391
Compare
Bug: #6155 Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
6cfa391 to
2f5778c
Compare
Bug: #6155
Pull request template
General purpose
What is the main goal of this pull request?
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,difficulty:,type:)CHANGELOG.adocbeen updated to reference the relevant issues?CHANGELOG.adoc? (Including changes in the GraphQL API)CHANGELOG.adoc? For example indoc/screenshots/2022.5.0-my-new-feature.pngArchitectural decision records (ADR)
[doc]?CHANGELOG.adoc?Dependencies
CHANGELOG.adoc?CHANGELOG.adoc?Frontend
This section is not relevant if your contribution does not come with changes to the frontend.
General purpose
Typing
We need to improve the typing of our code, as such, we require every contribution to come with proper TypeScript typing for both changes contributing new files and those modifying existing files.
Please ensure that the following statements are true for each file created or modified (this may require you to improve code outside of your contribution).
useMutation<DATA_TYPE, VARIABLE_TYPE>(…)useQuery<DATA_TYPE, VARIABLE_TYPE>(…)useSubscription<DATA_TYPE, VARIABLE_TYPE>(…)useMachine<CONTEXT_TYPE, EVENTS_TYPE>(…)useState<STATE_TYPE>(…)?.(if the GraphQL API specifies that a field cannot benull, do not treat it has potentiallynullfor example)let diagram: Diagram | null = null;)Backend
This section is not relevant if your contribution does not come with changes to the backend.
General purpose
Architecture
Review
How to test this PR?
Please describe here the various use cases to test this pull request