-
Notifications
You must be signed in to change notification settings - Fork 32
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
Nested Groups in sideNav #180
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@qtzar Thanks for your PR. I'm not sure if I like this change, for a couple of reasons:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I'm torn about introducing a tree view for the software systems. Like My advise for how to present (certain) groups more prominently would be to use global documentation (which appear in the menu, like |
This comment was marked as outdated.
This comment was marked as outdated.
@qtzar we'd love to use this functionality, I was wondering if this was still something you were pursuing or whether it's stale? |
I would LOVE to have this functionality merged in also. I probably have to rebuild it a little as the main branch has moved on quite a bit and I'd make sure that it can be enabled/disabled as wanted. @dirkgroot @jp7677 What do you think? Could this feature be considered again? |
I rebuilt the functionality on top of the most current main branch and then forced a commit to my branch to eliminate all previous commits. |
…ence in the readme
…d non-nested list.
Here is an updated screenshot ( ignore the blacked out bit to hide company name ). As mentioned in one of the outdated comments we have 400+ systems and the simple flat list is just unusable. We do have sets of landscape views based on certain major groups and show sub groups within those landscape docs but it doesn't negate that fact that 400+ systems means a really long scroll on the page. |
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 review, it has been rather busy :(.
This PR is shaping up nicely and since it is an opt-in, I'm fine to get this in. Could you please look at my comments/suggestions. I haven't tested them, so likely bugs are included ;)
Could you please also add a few tests that validate the construction of the MenuNodes?
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/MenuViewModel.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/MenuViewModel.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Menu.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Menu.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt
Outdated
Show resolved
Hide resolved
# Conflicts: # README.md # src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/PageViewModel.kt # src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt
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.
Just some whitespace nits left...
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/model/MenuViewModel.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Menu.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/nl/avisi/structurizr/site/generatr/site/model/MenuViewModelTest.kt
Outdated
Show resolved
Hide resolved
@jp7677 Thanks for taking the time to help with this PR. |
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.
2 empty lines left...
src/test/kotlin/nl/avisi/structurizr/site/generatr/site/model/MenuViewModelTest.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Menu.kt
Outdated
Show resolved
Hide resolved
@qtzar All good, but unfortunately conflicts, can you please bring this branch in line with |
@jp7677 I'm not showing my branch being behind |
Sry, my bad, my merge button was on "rebase", that isn't possible due to conflicts (due to the merge commits in this branch) . that said other merge modes are indeed fine. |
This PR adds a new way to generate the side nav that accounts for nested groups in the structurizer DSL as the softwareSystem level.
I have tested this with a workspace.dsl that contains nested groups as well as the example workspace.dsl that does not contain any groups.