briggySmalls / archie

Tool for documenting system architecture
https://briggysmalls.github.io/archie
MIT License
2 stars 2 forks source link

Collapse parents if they contain nothing #49

Open samvasko opened 4 years ago

samvasko commented 4 years ago

When making a context diagram for something that has multiple parents that contain nothing else, the diagram could be neatly collapsed by writing A/B or similar. Reducing extra lines. Unnamed file

briggySmalls commented 4 years ago

You are not wrong

briggySmalls commented 4 years ago

hmm. what about tags 🤔

briggySmalls commented 4 years ago

And associations :S

briggySmalls commented 4 years ago

Ok tags is Ok. we can just check as we 'burrow' that all the tags match.

The associations is harder. In general we don't expect elements in a diagram that only have a single child to have an association on them...but that's not a hard and fast rule. #14 when fixed would mean that these were possible.

So I suppose the collapsing can only happen if there are no associations with the element being quieried for collapse.

This is getting a bit messy...