-
Notifications
You must be signed in to change notification settings - Fork 984
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
fix(swap): display very small numbers max values, fix scientific notation, display long number & handle decimal mismatch #21388
base: develop
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (32)
|
827adec
to
754bbfd
Compare
538d51c
to
bce3eb3
Compare
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
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.
Thanks for the PR 🙌
Overall, I think the code looks good, but I'm just not sure I understand some of the intended behaviour, so I left a few comments.
If possible, could you also provide some screen captures showing the new behaviour please? 🙏
(def gradient-start | ||
{:width 64 | ||
:position :absolute | ||
:top 0 | ||
:left 0 | ||
:bottom 0 | ||
:z-index 1}) | ||
|
||
(def gradient-end | ||
{:width 64 | ||
:position :absolute | ||
:top 0 | ||
:right 0 | ||
:bottom 0 | ||
:z-index 1}) |
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.
Maybe we can add a def
named gradient-common
for all the shared keys?
(def icon-size 32) | ||
(def container-padding 24) | ||
(def max-cursor-position 5) |
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.
How are we calculating the container-padding
value? Is it possible to reference this from a style file?
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.
for max-cursor-position
, is it possible that value will need to smaller on devices with smaller screens?
100% of end-end tests have passed
Passed tests (7)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestWalletMultipleDevice:
Class TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityOneDeviceMerged:
|
hi @briansztamfater thank you for PR. |
Hey @VolodLytvynenko, that's a known issue, check note from issue 2 in PR description. We can create a issue to follow up after we upgrade the React Native version |
@briansztamfater Oh yes, sorry for this. I have missed this Unfortunately issue 21331 is not fixed fully. There is some additional way to make SNT not default in the receive field. Take a look please Steps to Reproduce:
Actual Result:SNT is not shown as the default token in the "receive" field. snt.mp4Expected resultSNT is shown as the default token in "receive" field |
bce3eb3
to
2a9d3b4
Compare
2a9d3b4
to
b385258
Compare
@VolodLytvynenko thanks for testing, and sorry about that, issue should be fixed now :) |
b385258
to
584fb5c
Compare
…ndle decimal mismatch when changing tokens, display long numbers Signed-off-by: Brian Sztamfater <[email protected]>
584fb5c
to
7e05edf
Compare
86% of end-end tests have passed
Failed tests (1)Click to expandClass TestWalletMultipleDevice:
Passed tests (6)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
Class TestCommunityOneDeviceMerged:
|
Hey, thank you for the fix! SNT is usually shown as the default, but sometimes it doesn’t appear, especially right after the initial login Steps to Reproduce:
Actual result:SNT is not shown as the default token in the "Receive" field after relogin. defaultsnt.mp4Expected Result:SNT should be displayed as the default token in the "Receive" field after relogin. ENV:IOS, Android |
@briansztamfater additionally, we discussed the issue related to predefined SNT yesterday. Could you take a look and see if this issue can be fixed within the scope of this PR? Otherwise, it can be addressed separately |
fixes #21348
fixes #21347
fixes #21331
fixes #21330
Summary
This PR fixes a couple of bugs in the Swap flow:
Platforms
Areas that maybe impacted
Functional
Steps to test
Issue 1
Issue 2
[NOTE] There's an Android bug in our current version of React Native (0.73) that prevents us to position the text input at the start of it (facebook/react-native#44171), thus will have to follow-up on this once we update to 0.74+ where this seems to be fixed (reactwg/react-native-releases#283)
Issue 3
Issue 4
status: ready