aws / mynah-ui

The chat interface of Amazon Q Developer (for IDEs)
https://aws.github.io/mynah-ui/
Apache License 2.0
19 stars 14 forks source link

Add “Copy to Clipboard” Functionality to Chat Bubbles #168

Open visten1 opened 2 weeks ago

visten1 commented 2 weeks ago

Summary

Currently, in the chat component, only code snippets have a “copy to clipboard” icon. However, it would be highly beneficial for users to have the option to copy the entire content of a chat bubble (for both text and code bubbles) directly, without needing to select the text manually.

Problem Statement

For users, especially in support and collaboration scenarios, it’s common to share the entire response or instruction from a chat bubble with others. Currently, users must select the content manually, which can be time-consuming and error-prone, especially on mobile devices. A “copy to clipboard” button for the entire chat bubble would greatly improve the user experience and make sharing information more convenient.

Proposed Solution

Add a “copy to clipboard” button/icon for each chat bubble, ideally positioned on the bottom right (next to the thumbs up/down) for accessibility and consistency. This icon would work similarly to the existing “copy to clipboard” functionality for code snippets but would encompass all the text in the chat bubble.

Expected Behavior

1.  Each chat bubble displays a “copy to clipboard” icon when hovered (or in the bottom right corner).
2.  Clicking the icon copies the full content of the chat bubble to the user’s clipboard.
3.  An optional toast or tooltip can confirm that the content has been copied successfully.
4.     When pasted into Obsidian/Notion, it should copied exactly how it was shown

Alternative solution

Jurredr commented 1 week ago

Thank you for taking the time to request a feature. Good idea. Currently, there are higher priority items to be worked on, but we will take this on in our backlog.