[cleanup] Simplify child node position computation#6208
[cleanup] Simplify child node position computation#6208
Conversation
202fad4 to
46da775
Compare
Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
46da775 to
99b4751
Compare
sbegaudeau
left a comment
There was a problem hiding this comment.
The code seems fine, I've re-triggered the build because of some test failures to see if those were caused by flakky tests or real errors. I'll perform some tests manually.
|
Quick automatic review (please ignore this message) Pull Request Status: The pull request #6208 "[cleanup] Simplify child node position computation" is currently open and behind the master branch. The size is manageable (79 additions, 100 deletions across 12 files). However, the Continuous Integration (CI) build is still pending, and one check has been skipped. Summary: This PR aims to simplify the calculation of child node positions by moving the logic for border node footprints directly into the layout handlers. It also performs some minor cleanup, such as renaming variables for better clarity and updating type predicates. While the intention to centralize layout constraints is good, the current implementation introduces a regression in sibling spacing and misses some constraints for ellipse nodes. 🚨 Critical & Architectural Issues
|
|
@frouene what do you think about the "Critical & Architectural Issues" identified in the automatic review? Especially the first one. Could you also rebase the PR please :) |
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