Skip to content

Add user feedback for clipboard copy failures#408

Open
Sharanyaaa08 wants to merge 1 commit into
Durgeshwar-AI:mainfrom
Sharanyaaa08:add-user-feedback-to-clipboard-copy-failures
Open

Add user feedback for clipboard copy failures#408
Sharanyaaa08 wants to merge 1 commit into
Durgeshwar-AI:mainfrom
Sharanyaaa08:add-user-feedback-to-clipboard-copy-failures

Conversation

@Sharanyaaa08

Copy link
Copy Markdown

@Durgeshwar-AI ,

Description

Implemented user feedback for failed image copy actions in the PDF to PNG results section.

Changes Made

  • Added error handling for clipboard copy failures.
  • Added a visible error message when image copy fails.
  • Kept existing success feedback when copy succeeds.
  • Logged copy errors for debugging purposes.

Before

  • Copy failures were only logged in the console.
  • Users received no visible feedback.

After

  • Users now see:
    "Unable to copy image. Please download it instead."
  • Success feedback ("Copied!") remains unchanged.

Fixes #347

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@Sharanyaaa08 is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Durgeshwar-AI

Copy link
Copy Markdown
Owner

@Sharanyaaa08 Use the sonner package which is installed to show the feedbacks

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.

Show Error Feedback When Copy to Clipboard Fails

2 participants