mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #13991] [CLOSED] refac: Revamp Prompts Page Experience #23350
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/13991
Author: @silentoplayz
Created: 5/17/2025
Status: ❌ Closed
Base:
dev← Head:Revamp-prompt-page📝 Commits (9)
8c23674Preview Prompt with copy buttonaa639bdClear Search button and sort by title or commande50fcf3feat: Copy to clipboard, Sort by user, Pagination for Prompts page45855abitems < prompts0036cd2refac: sticky pagination import/export prompts buttons678fd65chore: format8e2dc90feat: Implement dynamic pagination for prompts listbd61e10chore: format68157f9fix: add back a row📊 Changes
2 files changed (+719 additions, -222 deletions)
View changed files
📝
src/lib/components/workspace/Prompts.svelte(+620 -222)➕
src/lib/components/workspace/Prompts/PromptPreviewModal.svelte(+99 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
PromptPreviewModal.svelteto display prompt title, command, and content.Eye.svelte) on each prompt card in thePrompts.sveltelist to open the new modal.Clipboard.svelte) on each prompt card to directly copy its content.ResizeObserverfor responsiveness. Integrated thePagination.sveltecomponent.onDestroyto properly clean up event listeners andResizeObserverinstances.Changed
Prompts.svelte):flex-growfor the prompt grid container, enabling it to fill available vertical space for dynamic pagination.command,title, andcontent).prompt-export-[command]-[timestamp].json.prompts-export-all-[timestamp].json.This will delete [command]. Are you sure?) and styling for clarity.deletePromptin the confirmation handler before proceeding with deletion.importFilestype fromstringtoFileList | nullfor improved type safety and correctness in handling file inputs.Fixed
ResizeObserverinstances andwindow.resizeevent listeners (fallback) are correctly unobserved/removed during component destruction (onDestroy) to prevent memory leaks.Additional Information
Screenshots or Videos
Screenshot of the Prompts list with new card design and preview button.
Screenshot of the PromptPreviewModal showing a prompt's details.
Before:

Sorting (by title/command/username/email) and a

Clear SearchButton with Tooltip:Import prompts.json file:

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.