Skip to content

Added copy-to-clipboard feature for enhanced AI responses#398

Open
Daria872 wants to merge 3 commits into
viru0909-dev:mainfrom
Daria872:main
Open

Added copy-to-clipboard feature for enhanced AI responses#398
Daria872 wants to merge 3 commits into
viru0909-dev:mainfrom
Daria872:main

Conversation

@Daria872
Copy link
Copy Markdown

@Daria872 Daria872 commented May 16, 2026

Pull Request

Description

Implemented a copy-to-clipboard feature for AI-generated responses in the chat interface to improve usability and user experience.
Added a copy button for each AI response message
Enables users to quickly copy response text to clipboard with one click
Uses browser Clipboard API for reliable copying
Provides user feedback (e.g., “Copied!” tooltip/toast if implemented)
Improves accessibility and overall interaction efficiency
Closes #380

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@Daria872 Daria872 requested a review from viru0909-dev as a code owner May 16, 2026 17:15
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

@Daria872 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nyaysetu Ready Ready Preview, Comment May 19, 2026 2:55pm

@viru0909-dev
Copy link
Copy Markdown
Owner

@Daria872 Please add the output screenshot.

@Daria872
Copy link
Copy Markdown
Author

@viru0909-dev , Added the requested output screenshots for the implemented copy-to-clipboard feature.

  • Default state UI
  • Copied state with feedback indication (“Copied!”)

Please review. Thanks!

PR1_Screenshot1 PR1_Screenshot2

@viru0909-dev
Copy link
Copy Markdown
Owner

Hi @Daria872, the copy-to-clipboard feature works perfectly. Great contribution!

However, while adding the copy button, some existing styling was accidentally removed from both CaseChatWidget.jsx and JudgeChatWidget.jsx.

Specifically, please restore the original styles related to:

  • backdropFilter glass-blur effect
  • boxShadow
  • maxHeight
  • FAB button hover transitions
  • message bubble shadows

Please restore these original styles while keeping your copy feature.

Everything else looks great!

@Daria872
Copy link
Copy Markdown
Author

@viru0909-dev , Implemented the requested copy-to-clipboard feature while retaining the existing UI/UX and widget functionality. Kindly review the updated changes. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Add Copy-to-Clipboard Support for AI Responses

2 participants