-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
fix: Display no arrows for open links #6093
base: develop
Are you sure you want to change the base?
fix: Display no arrows for open links #6093
Conversation
🦋 Changeset detectedLatest commit: ed8ba95 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6093 +/- ##
=======================================
Coverage 4.48% 4.48%
=======================================
Files 383 382 -1
Lines 54038 54030 -8
Branches 596 621 +25
=======================================
Hits 2425 2425
+ Misses 51613 51605 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I'm not sure why the code coverage is failing. I expect it's incorrectly reporting as not covered, as it says the whole file as no coverage. I'll try and dig into it, but I may need some help if anyone knows why it's reporting as such. |
I didn't realise someone had raised a fix for this ~3 weeks ago. My solution is a little different in that it results in an end type of 'none' rather than "arrow_open" which I like the explicitness of. So I'm leaving my PR open for the maintainers to pick which they prefer. |
I think there are actually a few issues and multiple fixes for the same thing. Perhaps they should be closed as duplicates for the original one?
Changes
|
📑 Summary
In Flowcharts "Open links" (Links with no direction) are currently being displayed with single-directional arrows.
I believe this started occurring sometime in v11.
This change makes it so open links display with no arrow on their start or end.
Resolves #6020
📏 Design Decisions
Edges of type
arrow_open
should be treated as a special case, they are neither a single ordouble_
directional arrow.I've added tests for single and double directional arrows to make the difference in use-case easier to see.
Example Before Change
Example After Change
📋 Tasks
I have:
MERMAID_RELEASE_VERSION
is used for all new features.pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.resolves: #5813
resolves: #5964
resolves: #6020