[PR #18056] [CLOSED] UPD: Add Validators & Error Toast for Mermaid & Vega diagrams #11454

Closed
opened 2025-11-11 19:32:10 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18056
Author: @rgaricano
Created: 10/4/2025
Status: Closed

Base: devHead: dev-FEAT_Vega_Visualizer


📝 Commits (2)

  • 2e08bda UPD: Add Validators & Error Toast for Mermaid & Vega diagrams
  • e6cc7db Fix 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.

## 📋 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>
GiteaMirror added the pull-request label 2025-11-11 19:32:10 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#11454