[PR #11302] [CLOSED] feat: Add sorting component to models, knowledge, prompts, and tools in workspace #38336

Closed
opened 2026-04-25 11:24:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11302
Author: @hurxxxx
Created: 3/6/2025
Status: Closed

Base: devHead: feat/workspace-sorting


📝 Commits (4)

  • 3b70cd6 Merge pull request #11257 from open-webui/dev
  • 7ef66e5 feat: Add sorting component to models, knowledge, prompts, and tools in workspace
  • 2b62187 fix: Reset sorting direction to ASC when sorting field changes
  • 8471498 i18n: add new label

📊 Changes

54 files changed (+275 additions, -18 deletions)

View changed files

src/lib/components/common/SortOptions.svelte (+145 -0)
📝 src/lib/components/workspace/Knowledge.svelte (+16 -2)
📝 src/lib/components/workspace/Models.svelte (+24 -7)
📝 src/lib/components/workspace/Prompts.svelte (+17 -1)
📝 src/lib/components/workspace/Tools.svelte (+24 -8)
📝 src/lib/i18n/locales/ar-BH/translation.json (+1 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+1 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+1 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+1 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+1 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+1 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+1 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+1 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+1 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+1 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/eu-ES/translation.json (+1 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+1 -0)

...and 34 more files

📄 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: Please verify that the pull request targets the dev branch.
  • 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: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • 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?
  • Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

  • Added a sorting component for models, knowledge, tools, and prompts in the workspace
  • I'm not sure if this is really necessary, but I use it a lot in my personal projects

Added

  • Added a common component for sorting items

Changed

  • Applied the sorting component to models, knowledge, tools, and prompts in workspace, and updated related code.

Screenshots or Videos

test-sorting.webm


🔄 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/11302 **Author:** [@hurxxxx](https://github.com/hurxxxx) **Created:** 3/6/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/workspace-sorting` --- ### 📝 Commits (4) - [`3b70cd6`](https://github.com/open-webui/open-webui/commit/3b70cd64d7fa6902e8c79cf8dcbf3c7e84cf704b) Merge pull request #11257 from open-webui/dev - [`7ef66e5`](https://github.com/open-webui/open-webui/commit/7ef66e595f694004630a5e6ea0fac9dbe7ba2661) feat: Add sorting component to models, knowledge, prompts, and tools in workspace - [`2b62187`](https://github.com/open-webui/open-webui/commit/2b62187c9abd09a510a9878efe52a8a59c05f64b) fix: Reset sorting direction to ASC when sorting field changes - [`8471498`](https://github.com/open-webui/open-webui/commit/84714981e7b57f66072a08f09fcb72ab6c93387d) i18n: add new label ### 📊 Changes **54 files changed** (+275 additions, -18 deletions) <details> <summary>View changed files</summary> ➕ `src/lib/components/common/SortOptions.svelte` (+145 -0) 📝 `src/lib/components/workspace/Knowledge.svelte` (+16 -2) 📝 `src/lib/components/workspace/Models.svelte` (+24 -7) 📝 `src/lib/components/workspace/Prompts.svelte` (+17 -1) 📝 `src/lib/components/workspace/Tools.svelte` (+24 -8) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+1 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+1 -0) _...and 34 more files_ </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:** Please verify that the pull request targets the `dev` branch. - [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. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [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] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description - Added a sorting component for models, knowledge, tools, and prompts in the workspace - I'm not sure if this is really necessary, but I use it a lot in my personal projects ### Added - Added a common component for sorting items ### Changed - Applied the sorting component to models, knowledge, tools, and prompts in workspace, and updated related code. ### Screenshots or Videos [test-sorting.webm](https://github.com/user-attachments/assets/dfa6ffd6-2ba6-4e25-a230-b5d8ffaccec2) --- <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-25 11:24:38 -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#38336