[PR #19274] [CLOSED] refac+feat: suggested prompts unification across UI and simplified codebase #112466

Closed
opened 2026-05-18 12:36:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/19274
Author: @Classic298
Created: 11/18/2025
Status: Closed

Base: devHead: prompt-suggestions-refactor


📝 Commits (1)

  • 1547e0f Claude/review code changes 01 y6 l duc8zzji bvr47 ey fq mk (#70)

📊 Changes

3 files changed (+216 additions, -251 deletions)

View changed files

📝 src/lib/components/admin/Settings/Interface.svelte (+2 -195)
src/lib/components/admin/Settings/Interface/PromptSuggestionsModal.svelte (+211 -0)
📝 src/lib/components/workspace/Models/ModelEditor.svelte (+3 -56)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch may lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review and manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase
    • refactor: Code restructuring for better maintainability, readability, or scalability

Changelog Entry

Description

This pull request refactors the "suggested prompts" feature into a single, reusable Svelte component to ensure a consistent user experience across the application. The new component is used in the admin panel's Interface settings, the admin panel's Model Editor, and the workspace's Model Editor. This also allows full configurability of the prompt suggstions for custom models and normal models, wheras before, the suggestion prompts were not fully configurable in models and workspace models.

Added

A new reusable component, src/lib/components/admin/Settings/Interface/PromptSuggestionsModal.svelte, for managing suggested prompts.

Removed

Removed the previous, non-reusable implementations for suggested prompts from Interface.svelte and ModelEditor.svelte.

Screenshots or Videos

Screencast_20251029_201327.webm

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/19274 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 11/18/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `prompt-suggestions-refactor` --- ### 📝 Commits (1) - [`1547e0f`](https://github.com/open-webui/open-webui/commit/1547e0f27629b02aa930a0251dc14a2dce350068) Claude/review code changes 01 y6 l duc8zzji bvr47 ey fq mk (#70) ### 📊 Changes **3 files changed** (+216 additions, -251 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/admin/Settings/Interface.svelte` (+2 -195) ➕ `src/lib/components/admin/Settings/Interface/PromptSuggestionsModal.svelte` (+211 -0) 📝 `src/lib/components/workspace/Models/ModelEditor.svelte` (+3 -56) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Verify that the pull request targets the `dev` branch. Not targeting the `dev` branch may lead to immediate closure of the PR. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description. - [X] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least gone through additional human review **and** manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase - **refactor**: Code restructuring for better maintainability, readability, or scalability # Changelog Entry ## Description This pull request refactors the "suggested prompts" feature into a single, reusable Svelte component to ensure a consistent user experience across the application. The new component is used in the admin panel's Interface settings, the admin panel's Model Editor, and the workspace's Model Editor. This also allows full configurability of the prompt suggstions for custom models and normal models, wheras before, the suggestion prompts were not fully configurable in models and workspace models. ## Added A new reusable component, src/lib/components/admin/Settings/Interface/PromptSuggestionsModal.svelte, for managing suggested prompts. ## Removed Removed the previous, non-reusable implementations for suggested prompts from Interface.svelte and ModelEditor.svelte. ### Screenshots or Videos [Screencast_20251029_201327.webm](https://github.com/user-attachments/assets/368ed2e9-afed-4b78-8896-1e798214ba8d) ### 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 2026-05-18 12:36:14 -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#112466