-
Notifications
You must be signed in to change notification settings - Fork 985
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
Wallet: loading routes #18279
Wallet: loading routes #18279
Conversation
Jenkins Builds
|
ffef56d
to
cadd2d7
Compare
[routes | ||
{:amount amount | ||
:status :default | ||
:from-network from-network | ||
:to-network to-network}] | ||
[routes | ||
{:status :loading | ||
:from-network (:network-name (nth (seq networks) 1)) | ||
:to-network (:network-name (nth (seq networks) 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 simplify this code by having one routes element and set the corresponding value of from-network
, to-network
, status
and amount
in the let bindings
{:content-container-style {:flex-grow 1 | ||
:align-items :center | ||
:justify-content :center}} |
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.
We should set this style in a styles file
@OmarBasem thanks for your PR! Can you please rebase and fix linting? |
I think we should have some input from the design team on how we should handle this. By now I think it is okay?, but probably they can come up with an elegant solution to this. cc @mariocnovoa @pedro-et |
42% of end-end tests have passed
Failed tests (24)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePR:
Expected to fail tests (4)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (20)Click to expandClass TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestDeepLinksOneDevice:
|
@@ -8,7 +8,7 @@ | |||
[token] | |||
(let [token-symbol (cond-> token | |||
(keyword? token) name | |||
:always (comp string/lower-case str))] | |||
:always string/lower-case)] |
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 thought @ulisesmac recently handled this? is there still issues here? 🤔
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.
@J-Son89 these are old changes. Not relevant anymore.
To be followed in: #18491 |
fixes: #18278
This PR implements loading routes UI in wallet send flow.
A few points that needs consideration:
The loading routes UI assumes that we know in advance what are the possible routes, but that's not the case. We first need to fetch the routes then display them.
Currently, we display the best route only. I have noticed that the best route is usually the first network after mainnet, so in this PR I am assuming this will be the best route while in loading state. But is there a way to know/calculate these routes in advance. Especially that later on we want to display all the possible routes, not just the best route.
On Desktop app, it only displays a loading indicator while loading the routes, so maybe on mobile we should do the same?
Designs
Demo:
https://github.com/status-im/status-mobile/assets/29354102/2d3510f7-6d3a-4816-a29c-d7bb2b79bb8e