-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Fix #19548 - Increase address copy to clipboard time #19948
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
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
d25d4aa
to
3603415
Compare
Builds ready [3603415]
Page Load Metrics (1574 ± 41 ms)
Bundle size diffs
|
ui/components/multichain/address-copy-button/address-copy-button.js
Outdated
Show resolved
Hide resolved
Builds ready [f983445]
Page Load Metrics (1636 ± 54 ms)
Bundle size diffs
|
Is the default time really only 3 seconds? I expect there's a lot more places where this will be a problem. Also, what happens if you copy from one place, wait 55 seconds, and then copy from another? Will the clipboard clear in 5 seconds? |
I like this solution but if I copy address from account 1 then it stays copied and even I switch to account 2 the tooltip and icon is still in copied state even though the copied text is address from account 1. Functionality wise it's working fine and if I copy the address from account 2, it's updated. Screen.Recording.2023-07-11.at.2.48.44.PM.mov |
Builds ready [dd9c379]
Page Load Metrics (1565 ± 37 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #19948 +/- ##
========================================
Coverage 69.54% 69.54%
========================================
Files 983 983
Lines 37161 37161
Branches 9963 9963
========================================
Hits 25841 25841
Misses 11320 11320
|
On the IOS mobile client there is an expectation set for the user by including the following text "stored for 1 minute" when an SRP or private key is copied. Unfortunately, there was not an effective way to enforce the clipboard purge on Android. Should we inform the user within the UI that the clipboard will be cleared after 1 minute? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves #19948 |
Extension product and design are going to look into these as future improvements, but we are going to just change the delay in this PR as an MVP, so we can get it into the v10.34.0 release. |
Explanation
Increases the time before clipboard gets cleared after copying a wallet address.
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.