Skip to content
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

Add named composite state example to stateDiagram-v2 #5485

Merged
merged 4 commits into from
Apr 26, 2024
Merged

Add named composite state example to stateDiagram-v2 #5485

merged 4 commits into from
Apr 26, 2024

Conversation

cbugk
Copy link
Contributor

@cbugk cbugk commented Apr 23, 2024

📑 Summary

Although this can be deduced from naming a state, performing it in a one-liner should not be assumed. So having an explicit example is better IMO.

Resolves #5474

📏 Design Decisions

Just defined a named state, and then populated it, alongside the first example of composites. This is not propagated to following examples though.

📋 Tasks

Make sure you

cbugk added 2 commits April 19, 2024 16:39
Add renamed composite as an example of composites with spaced names.
Add explanation for naming a composite state
Copy link

netlify bot commented Apr 23, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 3000f02
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/662be884da27830008111f41
😎 Deploy Preview https://deploy-preview-5485--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sidharthv96 sidharthv96 enabled auto-merge April 26, 2024 17:46
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 5.72%. Comparing base (47c5abb) to head (3000f02).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #5485      +/-   ##
==========================================
- Coverage     5.73%   5.72%   -0.01%     
==========================================
  Files          277     278       +1     
  Lines        42002   42013      +11     
  Branches       515     490      -25     
==========================================
  Hits          2407    2407              
- Misses       39595   39606      +11     
Flag Coverage Δ
unit 5.72% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@sidharthv96 sidharthv96 added this pull request to the merge queue Apr 26, 2024
Merged via the queue into mermaid-js:develop with commit 8265e53 Apr 26, 2024
19 checks passed
Copy link

mermaid-bot bot commented Apr 26, 2024

@cbugk, Thank you for the contribution!
You are now eligible for a year of Premium account on MermaidChart.
Sign up with your GitHub account to activate.

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

Successfully merging this pull request may close these issues.

Named composite example in State Diagram
2 participants