Skip to content

Conversation

@omkarht
Copy link
Contributor

@omkarht omkarht commented Oct 15, 2025

📑 Summary

Adding support for the new use-case diagram type

Resolves #6806

📏 Design Decisions

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added necessary unit/e2e tests.
  • 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • 🦋 If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2025

⚠️ No Changeset found

Latest commit: b715d82

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Oct 15, 2025

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit b715d82
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/68ef4a22fe369e00083d1509
😎 Deploy Preview https://deploy-preview-7081--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 project configuration.

@github-actions
Copy link
Contributor

The following issue(s) were detected:
• Disallowed path 'packages/mermaid/src/vitepress' present. Run rm -rf packages/mermaid/src/vitepress && pnpm install to regenerate.

Please address these and push an update.

Posted automatically by GitHub Actions

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 15, 2025

Open in StackBlitz

@mermaid-js/examples

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/examples@7081

mermaid

npm i https://pkg.pr.new/mermaid-js/mermaid@7081

@mermaid-js/layout-elk

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-elk@7081

@mermaid-js/layout-tidy-tree

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/layout-tidy-tree@7081

@mermaid-js/mermaid-zenuml

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/mermaid-zenuml@7081

@mermaid-js/parser

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/parser@7081

@mermaid-js/tiny

npm i https://pkg.pr.new/mermaid-js/mermaid/@mermaid-js/tiny@7081

commit: b715d82

@codecov
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

❌ Patch coverage is 0.78883% with 1635 lines in your changes missing coverage. Please review.
✅ Project coverage is 3.46%. Comparing base (c728d86) to head (b715d82).
⚠️ Report is 124 commits behind head on develop.

Files with missing lines Patch % Lines
packages/parser/src/language/usecase/visitor.ts 0.18% 532 Missing ⚠️
packages/mermaid/src/diagrams/usecase/usecaseDb.ts 0.00% 276 Missing ⚠️
.../src/rendering-util/rendering-elements/clusters.js 0.00% 147 Missing ⚠️
...util/rendering-elements/shapes/usecaseActorIcon.ts 0.00% 101 Missing ⚠️
...ing-util/rendering-elements/shapes/usecaseActor.ts 0.00% 100 Missing ⚠️
packages/parser/src/language/usecase/parser.ts 1.00% 99 Missing ⚠️
...ages/mermaid/src/diagrams/usecase/usecaseParser.ts 1.01% 98 Missing ⚠️
.build/antlr-cli.ts 1.85% 53 Missing ⚠️
...endering-util/rendering-elements/shapes/ellipse.ts 0.00% 45 Missing ⚠️
packages/mermaid/src/diagrams/usecase/styles.ts 0.00% 29 Missing ⚠️
... and 18 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #7081      +/-   ##
==========================================
- Coverage     3.55%   3.46%   -0.10%     
==========================================
  Files          473     492      +19     
  Lines        47454   49127    +1673     
  Branches       730     749      +19     
==========================================
+ Hits          1687    1700      +13     
- Misses       45767   47427    +1660     
Flag Coverage Δ
unit 3.46% <0.78%> (-0.10%) ⬇️

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

Files with missing lines Coverage Δ
packages/mermaid/src/config.type.ts 100.00% <ø> (ø)
packages/mermaid/src/defaultConfig.ts 41.31% <100.00%> (+0.55%) ⬆️
packages/mermaid/src/diagrams/flowchart/flowDb.ts 0.00% <ø> (ø)
.build/jsonSchema.ts 0.00% <0.00%> (ø)
packages/parser/src/language/index.ts 0.00% <0.00%> (ø)
.esbuild/build.ts 0.00% <0.00%> (ø)
.vite/build.ts 0.86% <0.00%> (-0.02%) ⬇️
packages/examples/src/index.ts 2.08% <0.00%> (-0.10%) ⬇️
...s/mermaid/src/diagram-api/diagram-orchestration.ts 0.00% <0.00%> (ø)
.build/generateAntlr.ts 0.00% <0.00%> (ø)
... and 21 more

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@argos-ci
Copy link

argos-ci bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 27 added Oct 15, 2025, 7:28 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for use case diagram

2 participants