Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy + past icon for addresses in bounty cards #131 #133

Merged
merged 3 commits into from
May 28, 2024

Conversation

ie2173
Copy link
Collaborator

@ie2173 ie2173 commented May 28, 2024

Copy + past icon for addresses in bounty cards #131

Description

In response to #131 I have added copy and paste functionality to allow a user to copy the issuer's address to their clipboard. Additionally a toast message will appear on screen on successful copying of the address. Should an error occur, then a toast message will show up letting the user know that there was an issue copying the address.
Please see attached files for example of feature in action.
Screenshot 2024-05-28 at 01 24 20
Screenshot 2024-05-28 at 01 27 01

Type of Change

Please check the type of change your pull request introduces:

  • Bug fix (non-breaking change which fixes an issue)
  • [ x] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

The only testing I have done is inspected the feature by inspecting the functionality on my localhost. I have tried on multiple bounty cards and have not encountered any errors. I have not tested the feature on Mobile, but believe it will still operate as it should on desktop. Let me know if you need me to test mobile, and I will do that and then resubmit the pull request.

Related Issues

N/A

Additional Information

I had the option between a 3rd party library, document.execCommand and navigator.clipboard and figured for simplicity, and accessibility for browsers that navigator.clipboard would suffice. I am willing to revisit either of these options should I need to revise this code.

I have checked to see compatibility around browsers for the feature via canIUse and feel this feature is compatible with most modern browsers users would use.

…st function for successful copy to clipboard
Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
poidh-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 8:42am
poidh-app-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 8:42am

Copy link
Owner

@picsoritdidnthappen picsoritdidnthappen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fantastic!

@picsoritdidnthappen picsoritdidnthappen merged commit 3922f15 into staging May 28, 2024
4 checks passed
@picsoritdidnthappen picsoritdidnthappen deleted the ie2173/CopyAddressFeature branch September 18, 2024 17:24
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.

2 participants