mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #16367] feat: Shared Chats Management Dashboard Page and Modal + Reworked Shared Chats System #127769
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/16367
Author: @silentoplayz
Created: 8/8/2025
Status: 🔄 Open
Base:
dev← Head:shared-chats-page📝 Commits (10+)
d4f8185feat: Comprehensive Shared Chats Management and Enhancements0c74e90fix: merge conflict283de26Merge branch 'dev' into shared-chats-pageb55b11asquash: updates46580a1squash: updates part 23cb89f9feat: add dynamic expiration time display to share modal2bf060bfeat: improve "expire on views" UX in share modalb5477dcfeat: add scroll-wheel adjustment for view count in share modal4f1d8e3Feat: Add Public-access toggle to Share Chat modal (need to fix chat sharing still)050c6d9Merge branch 'dev' into shared-chats-page📊 Changes
39 files changed (+5188 additions, -246 deletions)
View changed files
📝
backend/open_webui/config.py(+10 -0)📝
backend/open_webui/constants.py(+3 -0)📝
backend/open_webui/main.py(+3 -0)📝
backend/open_webui/migrations/env.py(+5 -0)📝
backend/open_webui/migrations/versions/018012973d35_add_indexes.py(+2 -2)➕
backend/open_webui/migrations/versions/79fba6b72c04_consolidated_chat_and_group_permissions.py(+186 -0)📝
backend/open_webui/models/chats.py(+692 -23)📝
backend/open_webui/models/groups.py(+19 -0)📝
backend/open_webui/routers/chats.py(+482 -47)📝
backend/open_webui/routers/users.py(+24 -3)📝
backend/open_webui/utils/auth.py(+21 -0)➕
backend/run_alembic.py(+8 -0)📝
src/app.html(+2 -0)📝
src/lib/apis/chats/index.ts(+304 -6)📝
src/lib/apis/users/index.ts(+1 -1)📝
src/lib/components/admin/Users/Groups.svelte(+4 -1)📝
src/lib/components/admin/Users/Groups/EditGroupModal.svelte(+4 -1)📝
src/lib/components/admin/Users/Groups/Permissions.svelte(+43 -9)📝
src/lib/components/chat/Messages.svelte(+2 -0)📝
src/lib/components/chat/Messages/Message.svelte(+2 -0)...and 19 more files
📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description (Outdated compared to the code)
This epic consolidates 100+ individual commits (many have been squashed) into a comprehensive PR jam-packed full of features and improvements related to the shared chats functionality, providing a robust and intuitive experience for managing and sharing chat conversations.
The focus of this release is on:
Key Features & Improvements:
Added
Show QR CodeandGradient QR Codetoggles now saved per-chat.ShareChatModal.Shared ChatsAccess: Controls access to the shared chats page.Allow Public Chat Sharing: Controls ability to make chats publicly accessible.Allow Chat Cloning: Option to permit/restrict cloning of shared chats from the public page.Display Username: Option to show/hide the creator's username on shared chat links.REVOKEtyping).RESETtyping confirmation.revoked_attimestamp), allowing for restoration.All,Active, orRevokedlinks.Changed
Update and Copy Linkto allow QR scan/download.Regenerate IDbutton.current views + 1for validity.Revoke AllandReset All Statsbuttons disabled when no shared chats exist.Clone Chatbutton with subtitle, more descriptive timestamp./sharedpage upon cloning from sidebar.Public Accesstoggle state correctly determined byshare_idandis_public.Public Accesstoggle automatically turns off when link is revoked.Allow Public Chat Sharingtoggle moved to 'Sharing Permissions' and conditionally displayed.Allow Public Chat Sharingpermission for a group, all public chats shared by users in that group are automatically made private.Security
public_chatpermission for administrator control over public sharing.Breaking Changes
shared_chats,share_show_qr_code,share_use_gradient,expires_at,expire_on_views,revoked_at,password,password_updated_at,display_username, andallow_cloningcolumns in thechattable. Existing groups will be updated via a migration for theshared_chatspermission.Correctness and Robustness Improvements (During Development)
totalSelectedCountis correct in confirmation modals.shareUrlreactivity and consistent QR code display.password_updated_atfor password protection.ReferenceErrorinTooltip.svelteand other minor display inconsistencies.Screenshots
New "Shared Chats" in User Menu
New Permission Toggles
New Shared Chats Management Dashboard
Completely Revamped Share Chat Modal
Click the QR Code in the Share Chat Modal to open an expanded QR code view for easier scanning
Share Chat Modal Tool-tips
How Sharing Works

Public Access

Allow Cloning

Display Username

Enable Live Updates

Expires After

Max Number of Views

Max Number of Clones

Allow viewing after clone limit

Type to Confirm action
Upgraded Shared Chat Page
New Password Protected Shared Chat Page
New Shared Chat Link Not Found/ Expired/Revoked Page
Addresses
This PR addresses almost all mentioned bullet points from https://github.com/open-webui/open-webui/issues/2890.
This PR should also address https://github.com/open-webui/open-webui/issues/2904 and https://github.com/open-webui/open-webui/issues/4517.
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.