mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #18068] [MERGED] UPD: Add Validators & Error Toast for Mermaid & Vega diagrams #63517
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18068
Author: @rgaricano
Created: 10/5/2025
Status: ✅ Merged
Merged: 10/6/2025
Merged by: @tjbck
Base:
dev← Head:dev-FEAT_Vega_Visualizer📝 Commits (4)
2e08bdaUPD: Add Validators & Error Toast for Mermaid & Vega diagramse6cc7dbFix Code Format8538d1bUPD: Add Validators & Error Toast for Mermaid & Vega diagramsfa2534aRemoved unused toast import & Code Format📊 Changes
2 files changed (+37 additions, -33 deletions)
View changed files
📝
src/lib/components/chat/Messages/CodeBlock.svelte(+16 -2)📝
src/lib/utils/index.ts(+21 -31)📄 Description
UPD: Feat: Add Validators & Error Toast for Mermaid & Vega diagrams
Description:
As many time the diagrams generated or entered have syntax errors the diagrams are not rendered due to that errors, but as there isn't any notification is difficult to know what happend.
This PR add validator and toast notification when error on Mermaid and Vega/Vega-Lite diagrams, helping the user to fix its.
Note:
Another possibility of integrating Vega Graph Visualizer is through its svelte component: https://github.com/vega/svelte-vega/tree/main/packages/svelte-vega
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.