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

feat: add name field to the actors #5284

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

ad1992
Copy link
Contributor

@ad1992 ad1992 commented Feb 14, 2024

📑 Summary

  • The actors have unique names so adding a name field to the actors for easier identification in SVG nodes.
  • Added a actor type actor example as there is none in sequence.html
<rect x="0" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" name="Alice" rx="3" ry="3" class="actor actor-top"></rect>

cc @sidharthv96

📏 Design Decisions

The final goal is to make the overall API better as mentioned in #5017 (comment), this is an alternative to get the attributes easily from svg since right now there is no way to identify both actor nodes belonging to one particular actor as there is no unique identifier. Hence I am adding a name identifier so the nodes can be identified in SVG easily as well.

📋 Tasks

Make sure you

Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 23dd7b2
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/65cc67c4e896540008c5d415
😎 Deploy Preview https://deploy-preview-5284--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.

@ad1992 ad1992 marked this pull request as draft February 14, 2024 07:04
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fe1cff3) 79.14% compared to head (23dd7b2) 79.15%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #5284   +/-   ##
========================================
  Coverage    79.14%   79.15%           
========================================
  Files          175      175           
  Lines        14512    14516    +4     
  Branches       866      867    +1     
========================================
+ Hits         11486    11490    +4     
  Misses        2823     2823           
  Partials       203      203           
Flag Coverage Δ
e2e 84.72% <100.00%> (+<0.01%) ⬆️
unit 43.19% <ø> (ø)

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

Files Coverage Δ
...kages/mermaid/src/diagrams/common/svgDrawCommon.ts 78.43% <100.00%> (+0.88%) ⬆️
packages/mermaid/src/diagrams/sequence/svgDraw.js 84.07% <100.00%> (+0.07%) ⬆️

@ad1992 ad1992 marked this pull request as ready for review February 14, 2024 07:15
@ad1992
Copy link
Contributor Author

ad1992 commented Feb 16, 2024

@sidharthv96 friendly reminder :)

@ad1992
Copy link
Contributor Author

ad1992 commented Feb 27, 2024

Any update on this PR?

@sidharthv96 sidharthv96 added this pull request to the merge queue Feb 27, 2024
@sidharthv96
Copy link
Member

Was really busy. This should be out in 10.9.0 soon.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 27, 2024
@sidharthv96 sidharthv96 added this pull request to the merge queue Feb 27, 2024
Merged via the queue into mermaid-js:develop with commit 3093afe Feb 27, 2024
24 checks passed
@ad1992 ad1992 deleted the aakansha/actor-name branch February 27, 2024 07:17
@ad1992
Copy link
Contributor Author

ad1992 commented Feb 27, 2024

Awesome thanks @sidharthv96

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.

None yet

2 participants