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

Show every depth level of dependency graph and improve readability #329

Conversation

rbt-mm
Copy link
Contributor

@rbt-mm rbt-mm commented Nov 16, 2022

Description

Current Behavior:
A project's dependency graph can only be expanded up to its third level, which makes it hardly usable and the size of the elements inside the graph makes it unnecessarily big and harder to read/navigate.
Also, the data for every node is requested at the same time, which can lead to huge traffic in projects with many dependencies.

Proposed Behavior:
The dependency graph of a project can be fully expanded to search for every dependency and only the necessary data for the expanding node is lazily loaded to reduce the amount of traffic. Every path in the graph is also checked for circular references and prevents displaying them.
The size of the buttons, the nodes, the font and other elements is reduced to improve the readability for bigger dependency graphs.

Addressed Issue

#85

Additional Details

image

A PR will follow, that attaches a Show in dependency graph button to a component in different views, which redirects a user to the project's dependency graph and then expands the path to every occurrence of the selected component.

Checklist

rbt-mm and others added 6 commits November 15, 2022 16:29
Currently, the dependency graph can only display up to 3 levels.
To improve its usability, this change allows to display every level of a
dependency graph.

Signed-off-by: RBickert <[email protected]>
Clicking on the expand button loads the children of the dependency's
children, instead of loading everything at once which caused severe
problems.

Also checks for circular references and avoids them by not loading a
child if it already occurred in the parent-path.

Signed-off-by: RBickert <[email protected]>
Decreased Node padding and margin to decrease space between nodes.

Decreased font size in nodes to adjust to their decreased size.

Decreased size of buttons and adjusted position to fit new dependency
graph proportions

Nodes only expand, if all children are fetched and indicate it by
changing the cursor on the expand button

Signed-off-by: RBickert <[email protected]>
…re-than-3-levels

Show every depth level of dependency graph and improve readability
Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

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

Awesome, thanks so much @rbt-mm! 🙌

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.

2 participants