[PR #1995] [MERGED] Add drag-and-drop to chat window #3851

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1995
Author: @timothycarambat
Created: 7/29/2024
Status: Merged
Merged: 7/30/2024
Merged by: @timothycarambat

Base: masterHead: dnd-chat-window


📝 Commits (4)

  • c698b94 Add drag-and-drop to chat window
  • ab8c9dd add uploader icon and remove empty space text when attachments are present
  • 9c18916 color theme
  • 08569fe color update

📊 Changes

10 files changed (+525 additions, -49 deletions)

View changed files

📝 .vscode/settings.json (+2 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx (+2 -1)
frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/dnd-icon.png (+0 -0)
frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx (+136 -0)
frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx (+176 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+5 -2)
📝 frontend/src/components/WorkspaceChat/ChatContainer/index.jsx (+39 -46)
📝 frontend/src/models/workspace.js (+51 -0)
📝 frontend/tailwind.config.js (+5 -0)
📝 server/endpoints/workspaces.js (+109 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #xxx

What is in this change?

Adds native DnD for file uploading and embedding in one action by drag-n-drop items into the chat window.

  • default users cannot do this so they dont edit the workspace for others.

Additional Information

  • Refactors the chat .streamChat to not need a conditional and is instead handled automatically.

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/1995 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 7/29/2024 **Status:** ✅ Merged **Merged:** 7/30/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `dnd-chat-window` --- ### 📝 Commits (4) - [`c698b94`](https://github.com/Mintplex-Labs/anything-llm/commit/c698b9458db81214bf44f1789cb5e119e8194f82) Add drag-and-drop to chat window - [`ab8c9dd`](https://github.com/Mintplex-Labs/anything-llm/commit/ab8c9dda575dd58a58ff4701cd5e19309e42c354) add uploader icon and remove empty space text when attachments are present - [`9c18916`](https://github.com/Mintplex-Labs/anything-llm/commit/9c18916a12a3aab354aaee7c141d1bade32d6112) color theme - [`08569fe`](https://github.com/Mintplex-Labs/anything-llm/commit/08569fea92e3aa2de30bf261f09e05f169693da7) color update ### 📊 Changes **10 files changed** (+525 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `.vscode/settings.json` (+2 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx` (+2 -1) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/dnd-icon.png` (+0 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx` (+136 -0) ➕ `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx` (+176 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+5 -2) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/index.jsx` (+39 -46) 📝 `frontend/src/models/workspace.js` (+51 -0) 📝 `frontend/tailwind.config.js` (+5 -0) 📝 `server/endpoints/workspaces.js` (+109 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [x] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #xxx ### What is in this change? Adds native DnD for file uploading and embedding in one action by drag-n-drop items into the chat window. - `default` users cannot do this so they dont edit the workspace for others. <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information - Refactors the chat `.streamChat` to not need a conditional and is instead handled automatically. <!-- 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:37 -05:00
yindo closed this issue 2026-02-22 18:34:38 -05:00
yindo changed title from [PR #1995] Add drag-and-drop to chat window to [PR #1995] [MERGED] Add drag-and-drop to chat window 2026-06-05 15:15:33 -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#3851