mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
71.13k stars 6.41k forks source link

Add Use Case diagram type #4628

Open karollewandowski opened 1 year ago

karollewandowski commented 1 year ago

Please do not +1 via comments. Click 👍 under this post.

Proposal

There is a lack of UML Use Case diagrams (or I failed to find it): https://www.lucidchart.com/pages/uml-use-case-diagram

Use Cases

In the Unified Modeling Language (UML), a use case diagram can summarize the details of your system's users (also known as actors) and their interactions with the system

Screenshots

image Source: https://www.lucidchart.com/pages/uml-use-case-diagram

Syntax

I have no knowledge of Mermaid conventions, but PlantUML can be a good inspiration: https://plantuml.com/use-case-diagram

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.

fidding commented 1 year ago

This is very important, even making me want to give up mermaid

paul-friedli commented 1 year ago

I totally agree with the above comments : the "Use Case" diagram is probably one of the most important of all UML diagrams !

The "Use Case" diagram is usually the first to show in a projet, as it clearly presents the whole app/solution functionalities visually, without delving into technical details (as they are usually not know at this analysis stage).

Actors, resources, ... are all there on a single diagram focusing on "who" and "what" and not on "how".

Mermaid developers : that diagram availability would really be wonderful and super useful, since the whole project UML documentation could be done with mermaid.

Angelles commented 1 year ago

I would also love to have the use case diagram type.

simone-boa-ideas commented 1 year ago

I'll add my voice to the growing chorus 😉 I would love to have this option too. It's one of the most important diagrams for the documentation since it's perfect for aligning separate teams with different backgrounds on the features of a project. At the moment I'm forced to implement it separately (with draw.io, exporting it as an image and importing it in GH), but this is not a scalable and maintainable solution. It would be much better if it had its own support in mermaid.

kurt-o-sys commented 1 year ago

yes please!

luhui commented 11 months ago

+1. Using flowcharts to simulate the effect of use cases for now

ronnykwon commented 11 months ago

+1 for this feature

Flecart commented 11 months ago

+1

7agustibm commented 11 months ago

+1

lefkisamuel commented 11 months ago

+1

ramalhom commented 11 months ago

+1

haizenburg commented 11 months ago

+1

buudi commented 10 months ago

+1

smusali commented 10 months ago

+1

tienminhvy commented 10 months ago

+1

MiboraMinima commented 10 months ago

+1

kenchopa commented 10 months ago

+1

CamiloSinningUN commented 10 months ago

+1

osbyrne commented 10 months ago

+1

kkrafft1999 commented 10 months ago

+100 In our software development process everything starts with a use case diagram.

iacobucci commented 9 months ago

+1

dholakashyap commented 9 months ago

+1

haibbo commented 9 months ago

+1

mstfkhazaal commented 9 months ago

+1

martinjurran commented 9 months ago

+1

Elphly commented 9 months ago

+1

svboyko commented 9 months ago

+1

ddsultan commented 9 months ago

👍+1

Dudelmoser commented 9 months ago

+1

LeiShi92 commented 8 months ago

+1

guillemparrado commented 8 months ago

+1

Gerentedev commented 8 months ago

+1

root-kidik commented 8 months ago

+1

YusufLisawi commented 8 months ago

+1

renoon commented 8 months ago

+1 :+1:

ahmed-el-awad commented 8 months ago

+1

fenilsonani commented 8 months ago

+1

chris-jongho-kim commented 8 months ago

+1

tierpel commented 7 months ago

+1 👍

UsamaEjaz0 commented 7 months ago

+1

Supermarcel10 commented 7 months ago

+1

karollewandowski commented 7 months ago

Hi all. May I ask to not +1 this via comments? If you need it, please do it via emoji in the issue description. Receiving tens of +1 emails is quite annoying. Currently, there are 43 people following this issue, and all receive these comments.

Voting via emoji is better visible on https://github.com/mermaid-js/mermaid/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

Thank you for understanding.

YB-A commented 7 months ago

Hello @karollewandowski @simone-boa-ideas @fidding @paul-friedli you can use flow chart; try and adapt this :) Bonus => you can add emoji

flowchart LR
    subgraph 'Online Shopping'
    uc1((View items))
    uc2((Make purchase))
    uc3((Complete Checkout))
    uc4((Log In))

    end
    customer[Customer👤]
    credit[credit_payment_service 💳]
    id[identity_provider🆔]
    sa[service_authentification🔑]
    pa[paypal💲]
    id--->uc1
    sa--->uc1

    customer----->uc1
    customer-->uc2
    uc2 -. include .-> uc1
    uc2 -. include .-> uc3
    credit---->uc3
    pa---->uc3
    customer--->uc4

mermaid_uc

yas in

tom-craven commented 7 months ago

+1

enriquesaou commented 6 months ago

+1

Azevedo-Erick commented 5 months ago

+1

hgsgtk commented 5 months ago

+1

sylvia-shen commented 4 months ago

+1

Nguyen-Xuan-Tien-2001 commented 3 months ago

+10

Emk0oo commented 3 months ago

+1