[PR #4542] [MERGED] Refactor DefaultChatContainer To Display A Simple Welcome Message #4667

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4542
Author: @angelplusultra
Created: 10/14/2025
Status: Merged
Merged: 10/15/2025
Merged by: @timothycarambat

Base: masterHead: 4491-msg-for-users-without-workspace-access


📝 Commits (9)

  • 03eb28b Refactor DefaultChat component to display a simple welcome message instead of mock chat interface onboarding text
  • 8396967 Add last visited workspace functionality
  • 4416e2a Refactor workspace fetching & last visited workspace logic into one useEffect
  • 692ded7 Enhance loading state in DefaultChat component with skeleton UI elements for improved user experience
  • 6192146 minor UI spacing changes
  • fbab5d5 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 4491-msg-for-users-without-workspace-access
  • 99fc3eb refactor order for guard clauses for early exit conditions
  • b03aa43 move last known to end of getWorkspace loader
  • 1918fad languages for PR #4542 (#4550)

📊 Changes

26 files changed (+267 additions, -698 deletions)

View changed files

📝 frontend/src/components/DefaultChat/index.jsx (+94 -235)
📝 frontend/src/components/UserMenu/UserButton/index.jsx (+7 -1)
📝 frontend/src/locales/ar/common.js (+7 -21)
📝 frontend/src/locales/da/common.js (+7 -21)
📝 frontend/src/locales/de/common.js (+7 -21)
📝 frontend/src/locales/en/common.js (+7 -22)
📝 frontend/src/locales/es/common.js (+7 -21)
📝 frontend/src/locales/et/common.js (+7 -21)
📝 frontend/src/locales/fa/common.js (+7 -21)
📝 frontend/src/locales/fr/common.js (+8 -21)
📝 frontend/src/locales/he/common.js (+7 -20)
📝 frontend/src/locales/it/common.js (+7 -21)
📝 frontend/src/locales/ja/common.js (+7 -21)
📝 frontend/src/locales/ko/common.js (+7 -20)
📝 frontend/src/locales/lv/common.js (+7 -21)
📝 frontend/src/locales/nl/common.js (+7 -21)
📝 frontend/src/locales/pl/common.js (+7 -21)
📝 frontend/src/locales/pt_BR/common.js (+7 -20)
📝 frontend/src/locales/ro/common.js (+7 -21)
📝 frontend/src/locales/ru/common.js (+7 -21)

...and 6 more files

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4491

What is in this change?

This PR refactors the DefaultChatContainer component to replace the mock chat onboarding text with a simplified welcome message that adapts to the user’s workspace status.

Details

Users without workspace access:
Displays an instructional message prompting the user to contact their administrator to request workspace access.

Users with workspace access:
The welcome message includes a “Go to {WORKSPACE_NAME}” CTA button.
- If a last visited workspace is stored in local storage and still accessible to the user, clicking the button opens it.
- If not, the app defaults to the first available workspace in the workspace list.

image image image

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/4542 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 10/14/2025 **Status:** ✅ Merged **Merged:** 10/15/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `4491-msg-for-users-without-workspace-access` --- ### 📝 Commits (9) - [`03eb28b`](https://github.com/Mintplex-Labs/anything-llm/commit/03eb28badd4bb0d7df96b71004a2857b79cb8bf2) Refactor DefaultChat component to display a simple welcome message instead of mock chat interface onboarding text - [`8396967`](https://github.com/Mintplex-Labs/anything-llm/commit/83969678c09c4948d3c32c519384dac1bdad19bf) Add last visited workspace functionality - [`4416e2a`](https://github.com/Mintplex-Labs/anything-llm/commit/4416e2a22df23d160b3e645676a6fbc88ef4597c) Refactor workspace fetching & last visited workspace logic into one useEffect - [`692ded7`](https://github.com/Mintplex-Labs/anything-llm/commit/692ded7c3a0595de4f0fb3ee1b62b4adaa39077d) Enhance loading state in DefaultChat component with skeleton UI elements for improved user experience - [`6192146`](https://github.com/Mintplex-Labs/anything-llm/commit/61921461881a7bbef59fa8c6b1f5d58637556a93) minor UI spacing changes - [`fbab5d5`](https://github.com/Mintplex-Labs/anything-llm/commit/fbab5d5bb4c17a7208cfd8e226925840e27cb6fa) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 4491-msg-for-users-without-workspace-access - [`99fc3eb`](https://github.com/Mintplex-Labs/anything-llm/commit/99fc3eb61310e176aef2ef16542f218b75be7a05) refactor order for guard clauses for early exit conditions - [`b03aa43`](https://github.com/Mintplex-Labs/anything-llm/commit/b03aa434088535502b66d168243f1bd14da8466a) move last known to end of getWorkspace loader - [`1918fad`](https://github.com/Mintplex-Labs/anything-llm/commit/1918fad52b593ae199b383228a1c9d79de17a2ed) languages for PR #4542 (#4550) ### 📊 Changes **26 files changed** (+267 additions, -698 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/DefaultChat/index.jsx` (+94 -235) 📝 `frontend/src/components/UserMenu/UserButton/index.jsx` (+7 -1) 📝 `frontend/src/locales/ar/common.js` (+7 -21) 📝 `frontend/src/locales/da/common.js` (+7 -21) 📝 `frontend/src/locales/de/common.js` (+7 -21) 📝 `frontend/src/locales/en/common.js` (+7 -22) 📝 `frontend/src/locales/es/common.js` (+7 -21) 📝 `frontend/src/locales/et/common.js` (+7 -21) 📝 `frontend/src/locales/fa/common.js` (+7 -21) 📝 `frontend/src/locales/fr/common.js` (+8 -21) 📝 `frontend/src/locales/he/common.js` (+7 -20) 📝 `frontend/src/locales/it/common.js` (+7 -21) 📝 `frontend/src/locales/ja/common.js` (+7 -21) 📝 `frontend/src/locales/ko/common.js` (+7 -20) 📝 `frontend/src/locales/lv/common.js` (+7 -21) 📝 `frontend/src/locales/nl/common.js` (+7 -21) 📝 `frontend/src/locales/pl/common.js` (+7 -21) 📝 `frontend/src/locales/pt_BR/common.js` (+7 -20) 📝 `frontend/src/locales/ro/common.js` (+7 -21) 📝 `frontend/src/locales/ru/common.js` (+7 -21) _...and 6 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4491 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> This PR refactors the DefaultChatContainer component to replace the mock chat onboarding text with a simplified welcome message that adapts to the user’s workspace status. #### Details **Users without workspace access:** Displays an instructional message prompting the user to contact their administrator to request workspace access. **Users with workspace access:** The welcome message includes a “Go to {WORKSPACE_NAME}” CTA button. - If a last visited workspace is stored in local storage and still accessible to the user, clicking the button opens it. - If not, the app defaults to the first available workspace in the workspace list. <img width="1904" height="1064" alt="image" src="https://github.com/user-attachments/assets/fa9a44b2-29ac-4d4d-acd3-26f347375de7" /> <img width="1904" height="1064" alt="image" src="https://github.com/user-attachments/assets/733923de-cfe5-42bb-ae3f-d3db7f5170f6" /> <img width="1904" height="1064" alt="image" src="https://github.com/user-attachments/assets/e7d5a9f4-02a0-4a65-ad63-fe3cebe2e936" /> ### 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 - [ ] 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:36:17 -05:00
yindo closed this issue 2026-02-22 18:36:18 -05:00
yindo changed title from [PR #4542] Refactor `DefaultChatContainer` To Display A Simple Welcome Message to [PR #4542] [MERGED] Refactor `DefaultChatContainer` To Display A Simple Welcome Message 2026-06-05 15:19:43 -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#4667