potpie icon indicating copy to clipboard operation
potpie copied to clipboard

Support mermaid diagrams [UI]

Open dhirenmathur opened this issue 1 year ago • 6 comments

Enable rendering of Mermaid diagrams in the UI to support visual representation of flows, graphs, and other structured diagrams within markdown or custom components.

Acceptance Criteria: • Detect and parse Mermaid code blocks. • Render diagrams using Mermaid.js in the frontend. • Ensure responsiveness • Graceful fallback or error message for invalid diagrams.

Context: This will enhance readability and improve visualization in documentation, chat responses, or agent outputs that include Mermaid syntax. Potpie uses assistant-ui for chat components in the main chat screen, this change should be compatible.

dhirenmathur avatar Apr 14 '25 17:04 dhirenmathur

@dhirenmathur can i work on this? also could you elaborate more on where the rendering is required.

ARYPROGRAMMER avatar Apr 15 '25 21:04 ARYPROGRAMMER

@dhirenmathur I would like to work on this issue, if its still open

mdkaifansari04 avatar Jul 07 '25 16:07 mdkaifansari04

@mdkaifansari04 hi, yes please go for it. thanks!

dhirenmathur avatar Jul 08 '25 05:07 dhirenmathur

hey @mdkaifansari04 , just checking if you're still working on this? Would love to pick it up.

into-the-night avatar Aug 22 '25 14:08 into-the-night

Yeah @into-the-night I'm on it, got involved with some acdemics stuff.

mdkaifansari04 avatar Aug 26 '25 12:08 mdkaifansari04

Yeah @into-the-night I'm on it, got involved with some acdemics stuff.

no worries, happy coding!

into-the-night avatar Aug 26 '25 15:08 into-the-night