Skip to content

Feat #1255: update copy button status by displaying popup and setting…#1259

Open
dataCenter430 wants to merge 2 commits intoeigent-ai:mainfrom
dataCenter430:update-copy-status
Open

Feat #1255: update copy button status by displaying popup and setting…#1259
dataCenter430 wants to merge 2 commits intoeigent-ai:mainfrom
dataCenter430:update-copy-status

Conversation

@dataCenter430
Copy link

@dataCenter430 dataCenter430 commented Feb 13, 2026

Changes Made

  1. AgentMessageCard.tsx
    Imported Check, useCallback, useState, useTranslation, and toast
    Added copied state and async handleCopy with try/catch
    On success: show toast "Copied to clipboard", set copied to true, reset after 2 seconds
    On failure: show error toast
    Copy icon switches to a green check icon for 2 seconds after a successful copy
  2. UserMessageCard.tsx
    Same copy feedback behavior and UI as above
  3. FeedbackCard.tsx
    Same copy feedback behavior and UI as above

Behavior

Toast: toast.success(t('setting.copied-to-clipboard')) on successful copy (using existing i18n key)
Icon: copy icon → green check icon for 2 seconds after copy
Error: toast.error('Failed to copy to clipboard') on clipboard failure
Uses async navigator.clipboard.writeText with proper error handling

Closes #1255

@dataCenter430
Copy link
Author

dataCenter430 commented Feb 13, 2026

Hi, @Wendong-Fan , Could you please review the PR?

@Wendong-Fan
Copy link
Contributor

Hi, @Wendong-Fan , Could you please review the PR?

thanks @dataCenter430 for the contribution! Could you add a short video or snapshot for your PR like how #1258 did? Thanks!

@dataCenter430
Copy link
Author

Hi @Wendong-Fan
Thank you for reviewing and considering this PR.
I’ve attached a short video demonstrating the implementation to provide additional context.
Please let me know if anything needs clarification or further refinement.

I’m very excited about Eigent-ai and would love to continue contributing to the project. I truly appreciate any feedback you can share on how I can improve this PR or align better with the repository’s standards.

Looking forward to your thoughts, thank you again!
https://github.com/user-attachments/assets/73467ca5-a0d5-4b99-85ad-fbb124acb79c

@dataCenter430
Copy link
Author

Hi @Wendong-Fan
I also noticed that there isn’t currently a Linux-specific build of Eigent available.
Would it be possible to create and publish a Linux version as well? I’d be happy to help explore what’s needed to make that happen.
Looking forward to your thoughts, thank you!

@Wendong-Fan Wendong-Fan added this to the Sprint 15 milestone Feb 15, 2026
@Wendong-Fan Wendong-Fan added Review Required github_actions Pull requests that update GitHub Actions code and removed github_actions Pull requests that update GitHub Actions code labels Feb 15, 2026
@Wendong-Fan
Copy link
Contributor

Hi @Wendong-Fan Thank you for reviewing and considering this PR. I’ve attached a short video demonstrating the implementation to provide additional context. Please let me know if anything needs clarification or further refinement.

I’m very excited about Eigent-ai and would love to continue contributing to the project. I truly appreciate any feedback you can share on how I can improve this PR or align better with the repository’s standards.

Looking forward to your thoughts, thank you again! https://github.com/user-attachments/assets/73467ca5-a0d5-4b99-85ad-fbb124acb79c

thanks @dataCenter430 for the contribution! Could @bytecii and @nitpicker55555 help reviewing this?

@Wendong-Fan
Copy link
Contributor

Hi @Wendong-Fan I also noticed that there isn’t currently a Linux-specific build of Eigent available. Would it be possible to create and publish a Linux version as well? I’d be happy to help explore what’s needed to make that happen. Looking forward to your thoughts, thank you!

hey @dataCenter430 , we have supported Ubuntu/linux version, you can download from https://github.com/eigent-ai/eigent/actions/runs/22019072282, but we haven't do comprehensive test on this system, feel free to check and provide any feedback, thanks in advance!

@dataCenter430
Copy link
Author

Hi @Wendong-Fan I also noticed that there isn’t currently a Linux-specific build of Eigent available. Would it be possible to create and publish a Linux version as well? I’d be happy to help explore what’s needed to make that happen. Looking forward to your thoughts, thank you!

hey @dataCenter430 , we have supported Ubuntu/linux version, you can download from https://github.com/eigent-ai/eigent/actions/runs/22019072282, but we haven't do comprehensive test on this system, feel free to check and provide any feedback, thanks in advance!

@Wendong-Fan thank you for your consideration.
I'll check it.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Update the copy button status when it's activated.

2 participants