[PR #19295] [CLOSED] feat: Admins setting custom default interface settings #25167

Closed
opened 2026-04-20 05:47:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/19295
Author: @Classic298
Created: 11/19/2025
Status: Closed

Base: devHead: admin-interface-settings-config


📝 Commits (10+)

  • 1165d57 Claude/review admin interface changes 01 d9 g5ozc to dn hylmw149fbp (#71) (#76)
  • 8c84c0d fix: remove textScale error by cleaning up unused imports (#78)
  • a6a0a51 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#82)
  • 184c46e Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#83)
  • 1a5d5ab Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#84)
  • 38e7ac5 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#85)
  • d576fe5 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#86)
  • 75562b2 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#87)
  • a228057 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#88)
  • 2b10135 Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#89)

📊 Changes

14 files changed (+753 additions, -145 deletions)

View changed files

📝 backend/open_webui/models/groups.py (+3 -1)
📝 backend/open_webui/routers/configs.py (+42 -0)
📝 backend/open_webui/routers/users.py (+61 -0)
📝 src/lib/apis/configs/index.ts (+57 -0)
📝 src/lib/apis/users/index.ts (+27 -0)
📝 src/lib/components/admin/Settings/Interface.svelte (+147 -0)
src/lib/components/admin/Settings/Interface/InterfaceDefaultsModal.svelte (+156 -0)
📝 src/lib/components/admin/Users/Groups/EditGroupModal.svelte (+21 -5)
📝 src/lib/components/admin/Users/Groups/Permissions.svelte (+28 -2)
📝 src/lib/components/chat/Settings/Interface.svelte (+133 -133)
📝 src/lib/components/chat/SettingsModal.svelte (+9 -0)
📝 src/lib/utils/index.ts (+39 -0)
📝 src/lib/utils/text-scale.ts (+1 -0)
📝 src/routes/(app)/+layout.svelte (+29 -4)

📄 Description

  • Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch will lead to immediate closure of the PR.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
  • 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?
  • Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

This PR implements admin control for interface settings with global defaults, permission-based access control, and user reset functionality. Admins can now configure default interface settings (chat bubble, wide screen, RTL, etc.) that apply to all users, while maintaining granular control over which user groups can modify these settings.

Key Features:

  • Global admin-configurable interface defaults
  • Permission-based hiding of Interface Settings tab (ui.interface_settings) on a group level
  • Three-tier settings fallback: User custom → Admin default → System default
  • Reset button for users to revert ALL USERS custom interface settings to admin-configured defaults
  • Backward compatible with existing installations, no breaking changes

Architectural Decisions:

  • Interface settings are global because adding these on a group level IS NOT POSSIBLE TECHNICALLY. If a user is part of two groups with conflicting interface settings, which interface setting takes priority? These are not permissions which are additive.
  • Permission is group-level to allow admins to lock down the interface for specific user groups (e.g., restrict customization for external users while allowing internal users full control)
  • This hybrid approach balances user experience with administrative control

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.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/19295 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 11/19/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `admin-interface-settings-config` --- ### 📝 Commits (10+) - [`1165d57`](https://github.com/open-webui/open-webui/commit/1165d57a0ed137c6f25204a91146cdb82a36a030) Claude/review admin interface changes 01 d9 g5ozc to dn hylmw149fbp (#71) (#76) - [`8c84c0d`](https://github.com/open-webui/open-webui/commit/8c84c0d05db63334f46746a2af563a1371478d7a) fix: remove textScale error by cleaning up unused imports (#78) - [`a6a0a51`](https://github.com/open-webui/open-webui/commit/a6a0a514132e28dfaedb7689e8c032aa37748748) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#82) - [`184c46e`](https://github.com/open-webui/open-webui/commit/184c46ef9bb2d507cd3f417d00ce1a0c21d0240a) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#83) - [`1a5d5ab`](https://github.com/open-webui/open-webui/commit/1a5d5ab1b650fad866702c72396e0a788e604f20) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#84) - [`38e7ac5`](https://github.com/open-webui/open-webui/commit/38e7ac540f8098dd7dae897111c3d8649a155799) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#85) - [`d576fe5`](https://github.com/open-webui/open-webui/commit/d576fe5162f27722d396c41a512a1e2fec9967db) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#86) - [`75562b2`](https://github.com/open-webui/open-webui/commit/75562b2ea85c0761f25ad741a3b251383e79650a) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#87) - [`a228057`](https://github.com/open-webui/open-webui/commit/a228057c0465bbf90e280003a44f5ec2814d16d6) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#88) - [`2b10135`](https://github.com/open-webui/open-webui/commit/2b10135d8639457d64e5869c38ce3d8880208265) Claude/fix admin textscale error 011 f un gk a5 whv1 qqmy pkk bet (#89) ### 📊 Changes **14 files changed** (+753 additions, -145 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/models/groups.py` (+3 -1) 📝 `backend/open_webui/routers/configs.py` (+42 -0) 📝 `backend/open_webui/routers/users.py` (+61 -0) 📝 `src/lib/apis/configs/index.ts` (+57 -0) 📝 `src/lib/apis/users/index.ts` (+27 -0) 📝 `src/lib/components/admin/Settings/Interface.svelte` (+147 -0) ➕ `src/lib/components/admin/Settings/Interface/InterfaceDefaultsModal.svelte` (+156 -0) 📝 `src/lib/components/admin/Users/Groups/EditGroupModal.svelte` (+21 -5) 📝 `src/lib/components/admin/Users/Groups/Permissions.svelte` (+28 -2) 📝 `src/lib/components/chat/Settings/Interface.svelte` (+133 -133) 📝 `src/lib/components/chat/SettingsModal.svelte` (+9 -0) 📝 `src/lib/utils/index.ts` (+39 -0) 📝 `src/lib/utils/text-scale.ts` (+1 -0) 📝 `src/routes/(app)/+layout.svelte` (+29 -4) </details> ### 📄 Description - [X] **Target branch:** Verify that the pull request targets the `dev` branch. **Not targeting the `dev` branch will lead to immediate closure of the PR.** - [X] **Description:** Provide a concise description of the changes made in this pull request down below. - [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:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources. - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Perform manual tests to **verify the implemented fix/feature works as intended AND does not break any other functionality**. Take this as an opportunity to **make screenshots of the feature/fix and include it in the PR description**. - [X] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR. - [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] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description This PR implements admin control for interface settings with global defaults, permission-based access control, and user reset functionality. Admins can now configure default interface settings (chat bubble, wide screen, RTL, etc.) that apply to all users, while maintaining granular control over which user groups can modify these settings. Key Features: - Global admin-configurable interface defaults - Permission-based hiding of Interface Settings tab (ui.interface_settings) on a group level - Three-tier settings fallback: User custom → Admin default → System default - Reset button for users to revert ALL USERS custom interface settings to admin-configured defaults - Backward compatible with existing installations, no breaking changes Architectural Decisions: - Interface settings are global because adding these on a group level IS NOT POSSIBLE TECHNICALLY. If a user is part of two groups with conflicting interface settings, which interface setting takes priority? These are not permissions which are additive. - Permission is group-level to allow admins to lock down the interface for specific user groups (e.g., restrict customization for external users while allowing internal users full control) - This hybrid approach balances user experience with administrative control ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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 05:47:44 -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#25167