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
[DDW-595] Warn user when pasting an address of the same wallet #2506
[DDW-595] Warn user when pasting an address of the same wallet #2506
Conversation
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.
There is a UX issue:
The warning briefly shows up but disappears after a few seconds (I guess this has something to do with the wallets data refresh every 5 seconds - maybe this is overriding the boolean flag again?).
The length of how long it is shown varies (again, probably because of the wallets data refresh interval kicking in at different times)
CleanShot.2021-04-05.at.11.28.56.mp4
@aleksandardjordjeviciohk I agree with @DominikGuzei. The outline on the field sometimes is displayed for a split second and you can't see the tooltip because it hides very quickly. Maybe it can be displayed all the time as the red outline when the address is incorrect? This way, every time the user hovers the field, they should be able to see the tooltip. Check this video. |
…ng tooltip show/hide
@aleksandardjordjeviciohk The previous issue is fixed, nice work 👍 I found other issues in this instance:
|
…s for receiver input field
…s for receiver input field
…s for receiver input field - validity
…-address-of-the-same-wallet
These issues are fixed, pls recheck @gabriela-ponce |
@aleksandardjordjeviciohk The fixes look good on the build 17524. |
…s for receiver input field focus with tooltip
…asting-an-address-of-the-same-wallet' into feature/ddw-595-warn-user-when-pasting-an-address-of-the-same-wallet
@gabriela-ponce @DominikGuzei can you guys review again |
…-address-of-the-same-wallet
@aleksandardjordjeviciohk the yellow warning does not show (only the borders are yellow) when pasting in an address of the same wallet: CleanShot.2021-04-08.at.20.19.40.mp4I guess that's caused by the instant switch to the ADA field … but I would expect to see the warning test immediately and not switch to the ADA field right away (since the user probably doesn't want to finish this operation anyway) |
@aleksandardjordjeviciohk The issue on this comment is fixed, nice job 👍
I could replicate the issue @DominikGuzei mentioned in the previous comment. I agree that the tooltip should be displayed in that scenario. |
…-address-of-the-same-wallet
…updates for autoFocus
source/renderer/app/components/widgets/forms/InlineEditingInput.js
Outdated
Show resolved
Hide resolved
source/renderer/app/components/widgets/forms/InlineEditingInput.js
Outdated
Show resolved
Hide resolved
source/renderer/app/components/widgets/forms/InlineEditingInput.js
Outdated
Show resolved
Hide resolved
…asting-an-address-of-the-same-wallet' into feature/ddw-595-warn-user-when-pasting-an-address-of-the-same-wallet
@aleksandardjordjeviciohk I checked the behavior for all inputs and most of them are ok, but found a minor inconsistency:
Also, I have a few blockers to complete the testing of this task:
|
They will show up eventually. Please stand by 🙏
You can skip that part as it is not easy to enable it at the moment... |
@input-output-hk/daedalus-review I updated this PR to point to the |
@gabriela-ponce this is the same behavior as in production or develop builds. The input remains focused (even if you click outside of it) after you submit an incorrect URL. |
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.
Works good!
This PR adds warning message as tooltip to the user when pasting an address of the same wallet in the send form.
POTENTIALLY BREAKING CHANGES 💥
This PR includes an improved Input component in react-polymorph to make it more configurable and support use cases like in this PR: input-output-hk/react-polymorph#173
Input and FormField components from now on support:
The breaking change is that ALL form fields in the whole application now show their errors on focus/hover by default - this needs to be checked carefully before merging this PR.
TODO ✅
Screenshots
Testing Checklist 👀
Slack QA thread
❗we need to test out all form fields across the whole app, so we could be sure that nothing is broken.
Test Scenarios
Scenario 1 - Use Address from Wallet A on Wallet A
Scenario 2 - Use Address from Wallet B on Wallet A
Review Checklist
Basics
feature
/bug
/chore
,release-x.x.x
)yarn test
)yarn dev
)yarn package
/ CI builds)yarn flow:test
)yarn lint
)yarn prettier:check
)yarn manage:translations
produces no changes)yarn storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review
done
column on the YouTrack board