-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Start browser tab in token discovery mode #15061
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
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
|
|
|
|
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.
Left a comment, will follow up for a pair review
app/util/browser/index.ts
Outdated
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.
No need to redefine, we can use AppConstants instead
navigation.navigate(Routes.BROWSER.ASSET_LOADER, { | ||
chainId: item.chainId, | ||
address: item.address, | ||
}); | ||
} else { | ||
// Unfocus the url bar and hide the autocomplete results | ||
urlBarRef.current?.hide(); |
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.
Can call hideAutocomplete()
|
Description
skip-sonar-cloud
label due to missing test coverage inBrowserTab
. A lot of effort was spent to increase the test coverage ofBrowserTab
– previously almost zero. At this point I'm out of ideas for continuing to increase test coverage, as it would involve mocking components with auseImperativeHandle
and other contortions.Start the browser in token discovery mode. This PR is only a chunk of the work, so the feature was put behind an environment variable flag.
Related issues
Fixes: MMPD-1588
Manual testing steps
TOKEN_DISCOVERY_BROWSER_ENABLED
to"true"
in your.js.env
fileScreenshots/Recordings
Before
before.mp4
After (with environment variable flag turned on)
after.mp4
Pre-merge author checklist
Pre-merge reviewer checklist