mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-02 23:08:26 -05:00
[PR #19274] [CLOSED] refac+feat: suggested prompts unification across UI and simplified codebase #48203
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/19274
Author: @Classic298
Created: 11/18/2025
Status: ❌ Closed
Base:
dev← Head:prompt-suggestions-refactor📝 Commits (1)
1547e0fClaude/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:
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.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.