Skip to content
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

Added group and nested group functionality #564

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

Adwoa-Konadu-Appiah
Copy link
Contributor

Implement functionality to create groups based on “deployed in” and “composed of” relationships.

Note: Additional logic is required to dynamically adjust the size of group containers to fit the nodes they encompass.

image

@Adwoa-Konadu-Appiah Adwoa-Konadu-Appiah requested a review from a team as a code owner November 6, 2024 13:14
Copy link
Member

@willosborne willosborne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not commenting on the main logic but had a few improvements to suggest. Feel free to dispute them! I'm not a UI developer primarily :)

calm-visualizer/src/components/graph/Graph.tsx Outdated Show resolved Hide resolved
relationship =>{
const connects = relationship["relationship-type"]["connects"];
instance.connect({
source: document.getElementById(connects.source.node)!,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing getElementById in a React site gives me pause. I'm not a React dev but is there a better way to look this up?
@aidanm3341 might be good to get your thoughts here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is my bad for doing it the quick and dirty way on the hackday. There is a better way using react ref's instead, but I don't think it should be a blocker for this PR. It would be good for us to refactor this before merging into main though

calm-visualizer/src/components/graph/Graph.tsx Outdated Show resolved Hide resolved
@aidanm3341
Copy link
Member

a general question - how does the dragging around of elements work with the groups? Are the nodes limited to the bounds of the container? Or can they move around freely?

@aidanm3341
Copy link
Member

For the containers nodes, we should also give them a dashed outline instead of the solid colour one and make it a subtler grey colour

@Adwoa-Konadu-Appiah
Copy link
Contributor Author

a general question - how does the dragging around of elements work with the groups? Are the nodes limited to the bounds of the container? Or can they move around freely?

The nodes are limited to the bounds of its container

@Adwoa-Konadu-Appiah
Copy link
Contributor Author

For the containers nodes, we should also give them a dashed outline instead of the solid colour one and make it a subtler grey colour
image

@Adwoa-Konadu-Appiah
Copy link
Contributor Author

image

@Adwoa-Konadu-Appiah
Copy link
Contributor Author

image

@aidanm3341 aidanm3341 merged commit 4529be9 into finos:vizualizer Nov 21, 2024
2 checks passed
@YoofiTT96 YoofiTT96 mentioned this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants