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
All: Resolves #8728: Bump mermaid version to 10.4.0 to support new chart types #8890
All: Resolves #8728: Bump mermaid version to 10.4.0 to support new chart types #8890
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Related to #7629 |
Can confirm that mindmap charts work after this update as well. |
It seems the mermaid team has added the CJS support back, that's why bumping the version works |
Ah, I had missed the postinstall step. I'll update tomorrow. Is there a way to user test the mobile version on desktop btw? I've only tested the desktop app. |
Yep, https://github.com/laurent22/joplin/blob/dev/BUILD.md#testing-the-mobile-application |
Great work @oj-lappi |
ee68811
to
010145a
Compare
- timeline chart - quadrant charts - Sankey diagram Note: completely new commit on most recent upstream dev, just reran all steps outline by tessus's in laurent22#7629
010145a
to
dcb0417
Compare
Just reran everything the way tessus outlined it, so now the mobile assets should all be there. I'll now try to test the mobile version, but I don't have the environment set up yet, so this may take a while. |
Yup, out of the documented issues, both are solved (#6769, #6711) Of the undocumented issues, the ones below with checked boxes are resolved afaict (tested on desktop):
|
Tested on a Pixel 7 AVD, all the charts tested render on android as well (timeline, mindmap, quadrant, Sankey). The font-awesome icons do not render on android, which makes sense since this was pretty much what I saw on desktop (fa icons only rendered in the rich text editor on desktop). Afaict, everything seems to work just fine. |
I've tested these changes (on desktop), I can see the mermaid diagrams are still working. I can also see:
all working fine. I can see #6769 is fixed in this PR. @laurent22 you will nee to approve the workflow so it can run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
That's great, thanks guys for looking into this! |
A bump from 9.2.2 to 10.4.0 adds at least the following chart types:
Browsing through the forums I noticed some old topics on previous updates to the mermaid dependency.
https://discourse.joplinapp.org/t/upgrading-mermaid/10140/8
I've tested, and bumping the version number gives us all the implemented chart types out of the box (which I think counts as a significant improvement).
This would of course be a major version bump, but I can't comment on the breaking changes for v10, it seems to work fine, but I don't have the perspective that regular contributors do. The breaking changes for mermaid v10 are listed here:
https://github.com/mermaid-js/mermaid/blob/master/CHANGELOG.md#1000
Fixes #8728, #8701, #6769