Skip to content

Conversation

darshanr0107
Copy link
Contributor

@darshanr0107 darshanr0107 commented Jul 10, 2025

📑 Summary

This PR introduces visual styling enhancements for class diagram elements based on UML stereotype annotations such as <<abstract>>, <<interface>>, and <<enumeration>>.

Resolves #6587

📏 Design Decisions

Describe the way your implementation works or what design decisions you made if applicable.

📋 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:.

Before
image

After

image (1)

Copy link

netlify bot commented Jul 10, 2025

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit eb81bdd
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/6877941d05e9d10008f33c76
😎 Deploy Preview https://deploy-preview-6737--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.

Copy link

changeset-bot bot commented Jul 10, 2025

🦋 Changeset detected

Latest commit: eb81bdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
mermaid Patch
@mermaid-js/examples Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

pkg-pr-new bot commented Jul 10, 2025

Open in StackBlitz

@mermaid-js/examples

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

mermaid

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

@mermaid-js/layout-elk

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

@mermaid-js/mermaid-zenuml

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

@mermaid-js/parser

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

@mermaid-js/tiny

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

commit: eb81bdd

Copy link

codecov bot commented Jul 10, 2025

Codecov Report

❌ Patch coverage is 0% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 3.70%. Comparing base (5b241bb) to head (eb81bdd).
⚠️ Report is 174 commits behind head on develop.

Files with missing lines Patch % Lines
packages/mermaid/src/diagrams/class/shapeUtil.ts 0.00% 26 Missing ⚠️
packages/mermaid/src/diagrams/class/styles.js 0.00% 12 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #6737      +/-   ##
==========================================
- Coverage     3.70%   3.70%   -0.01%     
==========================================
  Files          454     453       -1     
  Lines        44724   44747      +23     
  Branches       707     707              
==========================================
  Hits          1659    1659              
- Misses       43065   43088      +23     
Flag Coverage Δ
unit 3.70% <0.00%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
packages/mermaid/src/diagrams/class/styles.js 0.00% <0.00%> (ø)
packages/mermaid/src/diagrams/class/shapeUtil.ts 0.00% <0.00%> (ø)

... and 1 file 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.

Copy link

argos-ci bot commented Jul 10, 2025

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

Build Status Details Updated (UTC)
default (Inspect) 👎 Changes rejected 74 changed, 3 added Jul 16, 2025, 12:18 PM

@darshanr0107 darshanr0107 force-pushed the 6587-class-diagram-stereotype-styling branch from 1ab2e6c to e2b7f7f Compare July 10, 2025 13:34
@darshanr0107 darshanr0107 requested a review from sidharthv96 July 16, 2025 09:47
knsv
knsv previously approved these changes Aug 8, 2025
Copy link
Collaborator

@knsv knsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All review comments are fixed.

@knsv knsv dismissed their stale review August 8, 2025 10:18

The argos tests are failing

@knsv
Copy link
Collaborator

knsv commented Aug 8, 2025

@darshanr0107 Please verify the Argos tests is looks like real errors

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.

Style class diagram elements based on stereotype annotations like <<abstract>>, <<interface>>, etc.
3 participants