mermaid
mermaid copied to clipboard
sequence diagram request: grouping actors in box
Request Description
I'd love to be able to do this:
More specifically, the "boxes" labeled "Application" and "Kafka".
Source: https://chrzaszcz.dev/2019/12/kafka-transactions/
Proposed Syntax
I propose using the same syntax as loops:
sequenceDiagram
participant Alice
participant Bob
box Alice_and_Bob
Alice->>Bob: Hello John, how are you?
Bob->>Alice: Fight against hypochondria
end
Thats a good idea! We should do this.
Agreed. I can probably get this implemented.
soon™
Agreed. I can probably get this implemented.
soon™
You're awesome, @cmmoran ! I volunteer to test.
If the participants belong to a single box, the box could be set when creating the participants.
For example:
sequenceDiagram
%% Alice and Bob are grouped in "Alice_and_Bob" box
box Alice_and_Bob
participant Alice
participant Bob
end
%% Truddy does not belong to a group
participant Truddy
I would appreciate this feature as well :)
I don't mind creating (and funding) a bounty on https://gitcoin.co, https://www.bountysource.com, or https://gitpay.me if someone is interested. 😄
UPDATE: I just put a $100 USD bounty on this at https://www.bountysource.com/issues/91876024-sequence-diagram-request-grouping-actors-in-box , if anyone is interested.
Hi Team, Any progress on this request? I am very interested in this feature.
Also interested in this feature.
+1
+1
Let me give it a try 👍 @The-Alchemist
Let me give it a try 👍 @The-Alchemist
That sounds great! Bounty is still active 🥇
https://app.bountysource.com/issues/91876024-sequence-diagram-request-grouping-actors-in-box
Will this be added anytime soon?
Hi There , since I really wanted this feature too, I have done it Hopefully it will be accepted / merged ;)
Would this support nested boxes as well? Like -
sequenceDiagram box Friends box Alice_and_Bob participant Alice participant Bob end participant Truddy end
I see errors trying to do this.