[PR #5139] [MERGED] feat: Add tooltip for paperclip attach button when no files are parsed #5316

Closed
opened 2026-06-05 15:20:57 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5139
Author: @angelplusultra
Created: 3/4/2026
Status: Merged
Merged: 3/7/2026
Merged by: @timothycarambat

Base: masterHead: 5089-feat-tooltip-for-paperclip-icon-in-chat-window


📝 Commits (5)

  • fae038b fix broken tooltip
  • 6c68466 fix tooltip not showing on homepage
  • 006263a Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5089-feat-tooltip-for-paperclip-icon-in-chat-window
  • 7346af2 fix tooltip rendering behind input on homepage
  • 3293aab Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5089-feat-tooltip-for-paperclip-icon-in-chat-window

📊 Changes

3 files changed (+14 additions, -1 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatTooltips/index.jsx (+6 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx (+6 -1)
📝 frontend/src/pages/Main/Home/index.jsx (+2 -0)

📄 Description

Pull Request Type

  • feat (New feature)

Relevant Issues

resolves #5089

Description

The paperclip (attach file) button in the chat prompt input was missing a tooltip when no parsed files exist in the workspace. This tooltip was originally present but was removed in commit 0fb33736 (PR #4261 - "Workspace Chat with documents overhaul"), which replaced the simple text tooltip with the interactive ParsedFilesMenu tooltip. However, the ParsedFilesMenu tooltip only renders when parsed files exist, leaving the button with no tooltip otherwise.

This adds a simple text tooltip ("Attach a file to this chat") that displays when no parsed files are present, using the existing chat_window.attach_file translation key which is already defined across all supported locales.

  • When files exist: behavior unchanged (interactive ParsedFilesMenu tooltip)
  • When no files exist: shows "Attach a file to this chat" tooltip

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • I have tested my code functionality

🔄 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/5139 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/7/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5089-feat-tooltip-for-paperclip-icon-in-chat-window` --- ### 📝 Commits (5) - [`fae038b`](https://github.com/Mintplex-Labs/anything-llm/commit/fae038b3d8f0b1475c883bedbebf982afdef893e) fix broken tooltip - [`6c68466`](https://github.com/Mintplex-Labs/anything-llm/commit/6c684664bb3fb559afece400a9e9f55113a16a7c) fix tooltip not showing on homepage - [`006263a`](https://github.com/Mintplex-Labs/anything-llm/commit/006263aaff85b3ad2db1a70112d61352af3336c3) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5089-feat-tooltip-for-paperclip-icon-in-chat-window - [`7346af2`](https://github.com/Mintplex-Labs/anything-llm/commit/7346af2f0d3892ef1f5e573131c306416424c6d3) fix tooltip rendering behind input on homepage - [`3293aab`](https://github.com/Mintplex-Labs/anything-llm/commit/3293aab71019569eabb3e62af224d55e6aac6bcc) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 5089-feat-tooltip-for-paperclip-icon-in-chat-window ### 📊 Changes **3 files changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatTooltips/index.jsx` (+6 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/AttachItem/index.jsx` (+6 -1) 📝 `frontend/src/pages/Main/Home/index.jsx` (+2 -0) </details> ### 📄 Description ### Pull Request Type - [x] ✨ feat (New feature) ### Relevant Issues resolves #5089 ### Description The paperclip (attach file) button in the chat prompt input was missing a tooltip when no parsed files exist in the workspace. This tooltip was originally present but was removed in commit 0fb33736 (PR #4261 - "Workspace Chat with documents overhaul"), which replaced the simple text tooltip with the interactive `ParsedFilesMenu` tooltip. However, the `ParsedFilesMenu` tooltip only renders when parsed files exist, leaving the button with no tooltip otherwise. This adds a simple text tooltip ("Attach a file to this chat") that displays when no parsed files are present, using the existing `chat_window.attach_file` translation key which is already defined across all supported locales. - When files exist: behavior unchanged (interactive `ParsedFilesMenu` tooltip) - When no files exist: shows "Attach a file to this chat" tooltip ### Developer Validations - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] I have tested my code functionality --- <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-06-05 15:20:57 -04:00
yindo closed this issue 2026-06-05 15:20:57 -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#5316