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.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/18056
**Author:** [@rgaricano](https://github.com/rgaricano)
**Created:** 10/4/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `dev-FEAT_Vega_Visualizer`
---
### 📝 Commits (2)
- [`2e08bda`](https://github.com/open-webui/open-webui/commit/2e08bda19d12f79a0e7ded8733552c14665035a3) UPD: Add Validators & Error Toast for Mermaid & Vega diagrams
- [`e6cc7db`](https://github.com/open-webui/open-webui/commit/e6cc7db3c1a3788ed55b41229b0db7306000fe6c) Fix Code Format
### 📊 Changes
**2 files changed** (+33 additions, -15 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+2 -2)
📝 `src/lib/utils/index.ts` (+31 -13)
</details>
### 📄 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)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.