-
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: routes ui for bridge flow #19959
Conversation
Jenkins BuildsClick to see older builds (25)
|
e141474
to
4dcf3e6
Compare
token-available-networks-for-suggested-routes) | ||
token-available-networks-for-suggested-routes) |
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.
I am not sure what does token-available-networks-for-suggested-routes
mean, is it the available routes for the user's network preferences?
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.
Are the possible networks where a route could be found for the selected token.
@@ -56,13 +57,15 @@ | |||
(send-utils/network-amounts from-network-values-for-ui | |||
disabled-from-chain-ids | |||
receiver-networks | |||
transaction-type |
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.
I see sometimes transaction-type
and others tx-type
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.
I'll refactor to just use tx-type
👍
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.
Updated!
(filter | ||
#(or (and to? | ||
(or | ||
(= tx-type :bridge) | ||
(contains? receiver-networks-set (:chain-id %)))) | ||
(not to?))) |
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.
What is to?
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.
The logic differs a bit if we are calculating networks for the From column or the To column, so it is a flag that indicates whether if we are calculating things for receiver or sender.
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.
Refactored this on other PR. Check #19674 (comment)
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.
I think you can refactor the relevant changes here too, or they may overwrite the other changes (?)
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.
They will conflict when I merge one of both PRs so I prefer to so refactor them once and rebase
PR description missing issue number, is there an open issue to be linked? |
@OmarBasem I haven't found one, I found the bug while testing and started to work on it, I will create one issue edit the description. EDIT: Created #19970 and linked to it in the description |
4dcf3e6
to
e9e06b9
Compare
88% of end-end tests have passed
Failed tests (5)Click to expandClass TestWalletMultipleDevice:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (46)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
|
533b755
to
d95def4
Compare
Testing of wallet PRs is blocked until the problem with networks/balances is resolved #20011 |
BTW, I need to solve conflicts before testing |
Hey @briansztamfater, tbh it is not completely clear what and where exactly the problem is: those banners with It might also be better to test and update go version which includes changes to the router first and then test this PR, WDYT? |
2cdd919
to
214e7aa
Compare
No problem @qoqobolo, I finished with the rebase and solving conflicts, so now is ready to test whenever you feel the conditions are met 👍 . |
87% of end-end tests have passed
Failed tests (5)Click to expandClass TestWalletMultipleDevice:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (45)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
Class TestWalletOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestDeepLinksOneDevice:
|
Thanks for your work and patience @briansztamfater! |
214e7aa
to
725a57a
Compare
Signed-off-by: Brian Sztamfater <brian@status.im>
725a57a
to
07e81de
Compare
fixes #19970
Summary
This PR fixes broken UI for routes on bridge flow (+ button should not be displayed in
To
column, also selected network is not showing). Also added new unit tests on relevant utils functions to cover these cases.Testing notes
Bridge flow seems broken and user can't confirm Bridge operation, this PR only fixes routes ui.
Platforms
Areas that maybe impacted
Functional
Steps to test
Before and after screenshots comparison
Before
ridgeroutesbefore.mp4
After
bridgeroutesui.mp4
status: ready