-
Notifications
You must be signed in to change notification settings - Fork 36
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
Container and Component links on diagrams. #183
Conversation
…xist. Added links from the Container View to the Component view if Components exist. If multiple component views exist then it links to an anchor link to scroll to the correct position.
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.
Thanks! I think this is a good start, with some potential for improvement, once we have added subtabs to "Container views" and "Component views".
I've left some suggestions in separate comments.
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/DiagramViewModel.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/SoftwareSystemComponentPage.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/C4PlantUmlExporterWithElementLinks.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/C4PlantUmlExporterWithElementLinks.kt
Outdated
Show resolved
Hide resolved
I've removed the anchor links on the components page and implemented your suggested changes for the logic involved with adding the links. This is my first time writing in Kotlin so I'm learning as I go. I've also added a couple of new tests for the container and component links. |
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.
Sorry for the late response. Just a small nit, other LGTM!
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/C4PlantUmlExporterWithElementLinks.kt
Outdated
Show resolved
Hide resolved
@qtzar Thanks a lot for the contribution, this is a nice addition. Again sorry for the slow responses from our side! |
This PR adds links to containers and components in the context and container views.
closes #164