Skip to content

Proof of concept: mermaid#15118

Closed
as-op wants to merge 16 commits into
devfrom
proof-of-concept/mermaid
Closed

Proof of concept: mermaid#15118
as-op wants to merge 16 commits into
devfrom
proof-of-concept/mermaid

Conversation

@as-op

@as-op as-op commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

https://community.openproject.org/wp/29668

Testing mermaid integration:

  • Include ckeditor/mermaid plugin
  • mount diagrams in work package descriptions and activity comments
  • error in the console when changing into edit mode with CKEditor
    (probably a timing bug in ckeditor/mermaid)
  • GitHub adds view controls to their MermaidJS, making huge diagrams usable which would be displayed far too small otherwise
    Bildschirmfoto 2024-04-03 um 09 30 06

Showstopper:

Screenshots:
ckeditor
display
Note: Because of large changes in the activity tab, mermaid charts are not resolved in user comments anymore in this proof-of-concept.

as-op added 2 commits May 2, 2024 15:28
@as-op as-op closed this Jan 7, 2025
@lindenthal

Copy link
Copy Markdown
Member

Hi @as-op,

Thanks for working on this. I would like to reopen this spike. Can you please rebase it?

My intention is to explore options to use Mermaid for showing phases and gates in the project overview.

https://community.openproject.org/projects/stadt-koeln/work_packages/61382/activity?query_id=5924

Thanks
Niels

@lindenthal lindenthal reopened this Mar 12, 2025
dependabot Bot and others added 6 commits March 12, 2025 08:15
Bumps [@babel/helpers](https://github.com/babel/babel/tree/HEAD/packages/babel-helpers) from 7.24.4 to 7.26.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.10/packages/babel-helpers)

---
updated-dependencies:
- dependency-name: "@babel/helpers"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…roof-of-concept/mermaid

# Conflicts:
#	frontend/package-lock.json
#	frontend/package.json
#	frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
#	frontend/src/app/shared/components/fields/display/field-types/formattable-display-field.module.ts
#	frontend/src/vendor/ckeditor/ckeditor.js
#	frontend/src/vendor/ckeditor/ckeditor.js.map
@as-op

as-op commented Mar 12, 2025

Copy link
Copy Markdown
Contributor Author

Hi @lindenthal,

happy to! I still think it would be of great value for many users to have Mermaid in OpenProject.

I don't have access to the work package you linked, so I'm not sure this PR will help: This is a proof of concept for Mermaid in the work package descriptions/long text fields/user comments, so it involves an unsupported CKEditor plugin in our CKEditor build.

Us using Mermaid as part of OpenProject - like we use Chart.js or FullCalendar - would be easier to maintain.

Best, Andrej

@as-op as-op closed this Apr 22, 2025
@as-op as-op deleted the proof-of-concept/mermaid branch April 22, 2025 13:25
@sempervictus

Copy link
Copy Markdown

@lindenthal - any thoughts on native implementations for this feature (without the added weight)? All the cool bots are using it these days 😉

@syorito-hatsuki

syorito-hatsuki commented Sep 26, 2025

Copy link
Copy Markdown

+1

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

Development

Successfully merging this pull request may close these issues.

4 participants