mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-29 12:34:58 -05:00
[PR #23905] [CLOSED] feat: enhance Shared Chats management with bulk actions and persistent selection #131100
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23905
Author: @wyyy1218
Created: 4/21/2026
Status: ❌ Closed
Base:
dev← Head:feat/shared-chats-management-batch-revoke📝 Commits (4)
64161ebfeat: enhance shared chats management APIsf862e53feat: add shared chats dashboard UI and store integration35c3c07test: add shared chats count and bulk revoke coveragea083a9ffix: address review feedback for shared chats modal and batch revoke📊 Changes
9 files changed (+1119 additions, -89 deletions)
View changed files
📝
backend/open_webui/routers/chats.py(+83 -2)➕
backend/open_webui/test/apps/webui/routers/test_chats.py(+265 -0)➕
backend/open_webui/test/conftest.py(+41 -0)➕
backend/open_webui/test/util/abstract_integration_test.py(+186 -0)➕
backend/open_webui/test/util/mock_user.py(+74 -0)📝
src/lib/apis/chats/index.ts(+73 -0)📝
src/lib/components/layout/SharedChatsModal.svelte(+184 -87)➕
src/lib/components/layout/SharedChatsTable.svelte(+171 -0)➕
src/lib/stores/sharedChats.ts(+42 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Created atsorting, and clearer management feedback.shared/count,shared/revoke) while preserving existing sharing behavior and keeping scope tightly aligned to the management workflow.Added
GET /api/v1/chats/shared/countPOST /api/v1/chats/shared/revokegetSharedChatListV2,getSharedChatsCount,revokeSharedChatsBatchChanged
TotalandSelectedcountersCreated atsort option in addition to existing sort controlsDeprecated
Removed
Fixed
Created atordering in the Shared Chats dashboard contextSecurity
Breaking Changes
Additional Information
pytest -q backend/open_webui/test/apps/webui/routers/test_chats.py9 passedScreenshots or Videos
Shared chats overview: management modal with list, counters, search box, sort headers, and actions

Multi-select with total/selected counters: row-level and page-level selections reflected in header counters

Bulk unshare workflow: selected shared chats revoked in one action

Created at sorting behavior: ordering of rows after

Created atsort toggleEmpty and no-result states: clear feedback for no shared chats and no search match cases

Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.