Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Expand and Collapse on branches, messages, and fragments #437

Open
MrCoder opened this issue Dec 26, 2022 · 1 comment
Open

Expand and Collapse on branches, messages, and fragments #437

MrCoder opened this issue Dec 26, 2022 · 1 comment

Comments

@MrCoder
Copy link
Contributor

MrCoder commented Dec 26, 2022

Scope

Viewing Only

Out of scope

Persisting toggles

Context

When viewing a Sequence Diagram, sometimes, some details (be it messages, fragments or branches) become distractions. Users may want to temporarily hide it.

Design

The meaning of "hide" is important. We need to carefully design the hidden section so it does not continue distracting users' attention but still providing some indicator (and maybe some information) on what is going on there. A few example's must be provided.

Branches

Messages

Fragments

Related Issues

Feature request: toggle branch of code

@MrCoder
Copy link
Contributor Author

MrCoder commented Dec 27, 2022

What is the proper place to put the "Expand/Collapse" Button?

We may be able to incorporate this in the "context menu"? Maybe not. While styling sounds a good choice for context menu. Expand/Collapse buttons do not. This is because we want the interaction points to be more accessible and with less clicks. Another issue with context menu is that it would be difficult for users to know "what element to select". For example, how to select an "Alt fragment" vs an "Else branch"?

It seems that the button should be at a fixed position relative to the collapsable element.

For Fragments (Alt, Loop, Par, Opt, TCF), we can use the "Header".

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant