[PR #2501] [MERGED] Enable the ability to disable the chat history UI #4015

Closed
opened 2026-02-22 18:34:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/2501
Author: @timothycarambat
Created: 10/18/2024
Status: Merged
Merged: 10/21/2024
Merged by: @timothycarambat

Base: masterHead: disable-chat-history


📝 Commits (3)

  • a06e93f Enable the ability to disable the chat history UI
  • cddf63d forgot files
  • 8ecc120 Merge branch 'master' into disable-chat-history

📊 Changes

13 files changed (+437 additions, -271 deletions)

View changed files

📝 docker/.env.example (+9 -1)
frontend/src/components/CanViewChatHistory/index.jsx (+50 -0)
📝 frontend/src/components/SettingsSidebar/MenuOption/index.jsx (+17 -2)
📝 frontend/src/components/SettingsSidebar/index.jsx (+152 -145)
📝 frontend/src/models/system.js (+31 -0)
📝 frontend/src/pages/GeneralSettings/Chats/index.jsx (+76 -72)
📝 frontend/src/pages/GeneralSettings/EmbedChats/index.jsx (+49 -46)
📝 server/.env.example (+9 -1)
📝 server/endpoints/embedManagement.js (+4 -2)
📝 server/endpoints/system.js (+13 -2)
📝 server/models/systemSettings.js (+7 -0)
📝 server/utils/helpers/updateENV.js (+2 -0)
server/utils/middleware/chatHistoryViewable.js (+18 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Documentation PR: https://github.com/Mintplex-Labs/anythingllm-docs/pull/107

What is in this change?

  • Enable the ability for an admin to fully disable the frontend UI and associated backend endpoints from being able to fetch the chat history for users (or embed widgets).

This use case was requested several times and while niche, is trivial to support so we have enabled it.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/2501 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 10/18/2024 **Status:** ✅ Merged **Merged:** 10/21/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `disable-chat-history` --- ### 📝 Commits (3) - [`a06e93f`](https://github.com/Mintplex-Labs/anything-llm/commit/a06e93f281310d03fd777370250cc43398f18163) Enable the ability to disable the chat history UI - [`cddf63d`](https://github.com/Mintplex-Labs/anything-llm/commit/cddf63db2c36f075a43d423b9eea23955c947f6c) forgot files - [`8ecc120`](https://github.com/Mintplex-Labs/anything-llm/commit/8ecc120f0fee68dbc873d37343b8979457ebd6ff) Merge branch 'master' into disable-chat-history ### 📊 Changes **13 files changed** (+437 additions, -271 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+9 -1) ➕ `frontend/src/components/CanViewChatHistory/index.jsx` (+50 -0) 📝 `frontend/src/components/SettingsSidebar/MenuOption/index.jsx` (+17 -2) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+152 -145) 📝 `frontend/src/models/system.js` (+31 -0) 📝 `frontend/src/pages/GeneralSettings/Chats/index.jsx` (+76 -72) 📝 `frontend/src/pages/GeneralSettings/EmbedChats/index.jsx` (+49 -46) 📝 `server/.env.example` (+9 -1) 📝 `server/endpoints/embedManagement.js` (+4 -2) 📝 `server/endpoints/system.js` (+13 -2) 📝 `server/models/systemSettings.js` (+7 -0) 📝 `server/utils/helpers/updateENV.js` (+2 -0) ➕ `server/utils/middleware/chatHistoryViewable.js` (+18 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs Documentation PR: https://github.com/Mintplex-Labs/anythingllm-docs/pull/107 ### What is in this change? - Enable the ability for an admin to fully disable the frontend UI and associated backend endpoints from being able to fetch the chat history for users (or embed widgets). This use case was requested several times and while niche, is trivial to support so we have enabled it. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:58 -05:00
yindo closed this issue 2026-02-22 18:34:58 -05:00
yindo changed title from [PR #2501] Enable the ability to disable the chat history UI to [PR #2501] [MERGED] Enable the ability to disable the chat history UI 2026-06-05 15:16:22 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4015