-
Notifications
You must be signed in to change notification settings - Fork 873
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
Expose swap web ui on Android #17271
Conversation
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
c16ddbe
to
ad309f9
Compare
A Storybook has been deployed to preview UI for the latest push |
ad309f9
to
223bfff
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
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.
++
03c663b
to
b9a6f3a
Compare
A Storybook has been deployed to preview UI for the latest push |
b9a6f3a
to
ad8a77d
Compare
A Storybook has been deployed to preview UI for the latest push |
Signed-off-by: Vadym Struts <vstruts@brave.com>
Signed-off-by: Vadym Struts <vstruts@brave.com>
Signed-off-by: Vadym Struts <vstruts@brave.com>
ad8a77d
to
42c7988
Compare
Signed-off-by: Vadym Struts <vstruts@brave.com>
42c7988
to
74321b0
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.
++ Front-end
A Storybook has been deployed to preview UI for the latest push |
#endif | ||
#if BUILDFLAG(IS_ANDROID) | ||
} else if (url.is_valid() && | ||
(url.spec() == base::StringPrintf("%s://%s", |
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.
this is not the correct way to build a URL, but regardless here you should be checking the host and path
Implemented loading the "Swap" React page on android. It uses more or less the same front end code, so should look like the same page on desktop.
When next url: brave://wallet/swap is entered in address field, the same Swap page like on desktop is opened
But there is one requirement: your brave wallet should be initialized
Swap page interacts with the same back end like android wallet
Resolves brave/brave-browser#28102
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: