mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #18056] [CLOSED] UPD: Add Validators & Error Toast for Mermaid & Vega diagrams #11454
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/18056
Author: @rgaricano
Created: 10/4/2025
Status: ❌ Closed
Base:
dev← Head:dev-FEAT_Vega_Visualizer📝 Commits (2)
2e08bdaUPD: Add Validators & Error Toast for Mermaid & Vega diagramse6cc7dbFix Code Format📊 Changes
2 files changed (+33 additions, -15 deletions)
View changed files
📝
src/lib/components/chat/Messages/CodeBlock.svelte(+2 -2)📝
src/lib/utils/index.ts(+31 -13)📄 Description
UPD: Feat: Add Validators & Error Toast for Mermaid & Vega diagrams
Description:
As many times the generated or entered diagrams have syntax errors its are not rendered due to that errors, but as there isn't any notification is difficult for the user to know what is happening.
This PR add some validator and/or toast notification when there are errors on Mermaid or Vega/Vega-Lite diagrams, helping the user to fix its.
(e.g. a common error focus is add commented lines in the JSON)
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.