[PR #13997] [CLOSED] feat: Improve workspace item count display with pluralization and export totals #23352

Closed
opened 2026-04-20 04:45:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/13997
Author: @silentoplayz
Created: 5/18/2025
Status: Closed

Base: devHead: show-count


📝 Commits (2)

📊 Changes

4 files changed (+23 additions, -9 deletions)

View changed files

📝 src/lib/components/workspace/Knowledge.svelte (+4 -1)
📝 src/lib/components/workspace/Models.svelte (+6 -3)
📝 src/lib/components/workspace/Prompts.svelte (+6 -3)
📝 src/lib/components/workspace/Tools.svelte (+7 -2)

📄 Description

Pull Request Checklist

  • 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 to validate 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 clearly 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

  • This PR enhances the display of item counts in the Models, Knowledge, Prompts, and Tools sections by adding internationalized pluralization (e.g., "1 Collection" vs. "2 Collections"). It also updates the "Export Models", "Export Prompts", and "Export Tools" buttons to display the total count of items available for export.

Added

  • Internationalized pluralization for item counts in Knowledge.svelte, Models.svelte, Prompts.svelte, and Tools.svelte.
  • Display of total item count on "Export Models" button in Models.svelte.
  • Display of total item count on "Export Prompts" button in Prompts.svelte.
  • Display of total item count on "Export Tools" button in Tools.svelte.

Changed

  • Updated the display of filtered item counts in Knowledge.svelte, Models.svelte, Prompts.svelte, and Tools.svelte to include translatable and pluralized labels (e.g., "Collection(s)", "Model(s)", "Prompt(s)", "Tool(s)").

Additional Information

  • The changes ensure a more grammatically correct and user-friendly display of counts across different parts of the application, adapting to singular or plural forms based on the number of items.
  • Files changed:
    • src/lib/components/workspace/Knowledge.svelte
    • src/lib/components/workspace/Models.svelte
    • src/lib/components/workspace/Tools.svelte
    • src/lib/components/workspace/Prompts.svelte

Screenshots or Videos

What is highlighted in orange is the changes made to the 4 pages mentioned above,
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/13997 **Author:** [@silentoplayz](https://github.com/silentoplayz) **Created:** 5/18/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `show-count` --- ### 📝 Commits (2) - [`096a678`](https://github.com/open-webui/open-webui/commit/096a678d87c095098aec358fcd33b2390f15381d) chore: show count - [`98a44da`](https://github.com/open-webui/open-webui/commit/98a44da147a1270081a7909ca4115cced5712788) Update Prompts.svelte ### 📊 Changes **4 files changed** (+23 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/workspace/Knowledge.svelte` (+4 -1) 📝 `src/lib/components/workspace/Models.svelte` (+6 -3) 📝 `src/lib/components/workspace/Prompts.svelte` (+6 -3) 📝 `src/lib/components/workspace/Tools.svelte` (+7 -2) </details> ### 📄 Description # Pull Request Checklist - [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. - [x] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests to validate 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 clearly 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 - This PR enhances the display of item counts in the `Models`, `Knowledge`, `Prompts`, and `Tools` sections by adding internationalized pluralization (e.g., "1 Collection" vs. "2 Collections"). It also updates the "Export Models", "Export Prompts", and "Export Tools" buttons to display the total count of items available for export. ### Added - Internationalized pluralization for item counts in `Knowledge.svelte`, `Models.svelte`, `Prompts.svelte`, and `Tools.svelte`. - Display of total item count on "Export Models" button in `Models.svelte`. - Display of total item count on "Export Prompts" button in `Prompts.svelte`. - Display of total item count on "Export Tools" button in `Tools.svelte`. ### Changed - Updated the display of filtered item counts in `Knowledge.svelte`, `Models.svelte`, `Prompts.svelte`, and `Tools.svelte` to include translatable and pluralized labels (e.g., "Collection(s)", "Model(s)", "Prompt(s)", "Tool(s)"). --- ### Additional Information - The changes ensure a more grammatically correct and user-friendly display of counts across different parts of the application, adapting to singular or plural forms based on the number of items. - Files changed: - `src/lib/components/workspace/Knowledge.svelte` - `src/lib/components/workspace/Models.svelte` - `src/lib/components/workspace/Tools.svelte` - `src/lib/components/workspace/Prompts.svelte` ### Screenshots or Videos What is highlighted in orange is the changes made to the 4 pages mentioned above, ![image](https://github.com/user-attachments/assets/141bde57-9009-4d10-a50b-05cfb70355f8) ### 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 04:45:53 -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#23352