-
Notifications
You must be signed in to change notification settings - Fork 925
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) Implement WebUI for main portfolio screen #20635
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.
++ Desktop FE
11a8281
to
f7d9681
Compare
b65adbf
to
012f0f2
Compare
12c64e1
to
4b88a6f
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.
chromium_src
++
grd
++
bff1d07
to
b6dac7a
Compare
11495ce
to
0896e99
Compare
Add assets, transactions, NFTs, rank and hardware path
Allow all URLs that are part of Wallet host Wallet can be locked while on another page so WebUI needs the resources.
Implements new build flag `ENABLE_BRAVE_ANDROID_WEB_WALLET` and Gn constant `brave_android_web_wallet_enabled`. When feature flag is set to false old native version is used for Android Wallet. To enable/disable Android web Wallet use `brave_android_web_wallet_enabled` in `android/buildflags/buildflags.gni`.
Makes restore button available only through native UI.
This reverts commit eb57e1f.
9ded799
to
90f365b
Compare
[puLL-Merge] - brave/brave-core@20635 The provided patch modifies multiple files related to the Brave browser, specifically the android/java and browser/ui directories, affecting how the Brave Wallet feature is integrated and displayed within the browser on Android. Below, I'll provide a summarized explanation for each modified area:
In summary, the patch makes modifications across several parts of the Brave codebase to refine and adjust the wallet feature's UI presentation and integration, particularly focusing on Android. It also includes updates to the build system, refactoring of code, cleanup, and additional testing. |
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 from security perspective
@simoarpe this PR has all desktop builds disabled.
|
Resolves https://github.com/brave/roadmap/issues/944 (Roadmap issue)
Resolves brave/brave-browser#34386
Demo
webui-demo.mov
Details
Implement WebUI to show Android Wallet except for these parts that will remain native:
Header menus are hidden on Android.
Hardware Wallets are out of scope for this PR and not shown.
Expand button is shown for DApp websites as usual but is not shown when browsing Wallet pages.
Build Flag
The new WebUI implementation is behind a build flag currently set totrue
.If the build flag is set to
false
the implementation will fall back to the old Android native version.To enable/disable WebUI feature use
brave_android_web_wallet_android
boolean inandroid/buildflags/buildflags.gni
.We decided to go in favor of a leaner approach: #20635 (comment)
Known issues:
Security
Requested a security review: https://github.com/brave/reviews/issues/1455
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: