[PR #15414] [CLOSED] Feat: add color picker as an input #23814

Closed
opened 2026-04-20 05:03:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/15414
Author: @Simon-Stone
Created: 7/1/2025
Status: Closed

Base: devHead: color-picker-valve-input


📝 Commits (1)

  • b7cf550 adds color picker as the input for string-type valves with a valid RGB hex code as their default value

📊 Changes

1 file changed (+79 additions, -0 deletions)

View changed files

📝 src/lib/components/common/Valves.svelte (+79 -0)

📄 Description

Changelog Entry

Description

I am working on a tool that has some UserValves that let the user define some RGB color values (in this case for some spreadsheet styling). I thought that it would be nice to have a proper color picker when choosing values for these valves in the Chat Controls so I went ahead and created one.

The element shows up if the default value for a valve is a valid RGB hex code. Seemed reasonably unlikely that a valve would fit that format but not need a color picker, so I think this is a pretty solid heuristic.

Added

  • Adds a color picker as the input element if the default value of a Valve is a valid RGB hex code.

Breaking Changes

  • BREAKING CHANGE: Valves that contain a string as the default value that looks like an RGB hex code (i.e., "#123ABC") but is not representing an RGB color will no longer be able to receive a string that is not a valid RBG hex code through the input element. I would argue that's a very unlikely scenario, but it is technically a breaking change.

Screenshots or Videos

image

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/15414 **Author:** [@Simon-Stone](https://github.com/Simon-Stone) **Created:** 7/1/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `color-picker-valve-input` --- ### 📝 Commits (1) - [`b7cf550`](https://github.com/open-webui/open-webui/commit/b7cf5501954df136ffd8adc608261e3eef521342) adds color picker as the input for string-type valves with a valid RGB hex code as their default value ### 📊 Changes **1 file changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/common/Valves.svelte` (+79 -0) </details> ### 📄 Description # Changelog Entry ### Description I am working on [a tool ](https://github.com/dartmouth/dartmouth-chat-tools/blob/main/src/dartmouth_chat_tools/create_document.py) that has some `UserValves` that let the user define some RGB color values (in this case for some spreadsheet styling). I thought that it would be nice to have a proper color picker when choosing values for these valves in the Chat Controls so I went ahead and created one. The element shows up if the default value for a valve is a valid RGB hex code. Seemed reasonably unlikely that a valve would fit that format but _not_ need a color picker, so I think this is a pretty solid heuristic. ### Added - Adds a color picker as the input element if the default value of a Valve is a valid RGB hex code. ### Breaking Changes - **BREAKING CHANGE**: Valves that contain a string as the default value that *looks* like an RGB hex code (i.e., `"#123ABC"`) but is not representing an RGB color will no longer be able to receive a string that is not a valid RBG hex code through the input element. I would argue that's a very unlikely scenario, but it is technically a breaking change. ### Screenshots or Videos <img width="440" alt="image" src="https://github.com/user-attachments/assets/c708b682-a9bc-4690-a30f-c6d1cb35c4e0" /> ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/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 2026-04-20 05:03:17 -05: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#23814