-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add favorites to browser menu #12060
Conversation
Signed-off-by: Kai Huang <kai.huang@consensys.net>
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. |
Bitrise✅✅✅ Commit hash: 24d64ba Note
|
Based on the size of the BrowserTab file and the small scope of the change, we will not be writing unit test in this PR since that requires a much larger refactoring effort. Will defer to when we break this component out. |
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.
Reviewed UI changes, good work with Go to Favorites. But also observed a couple of differences:
- Go to Favorites, option works properly and redirects the user to https://home.metamask.io/
- In the screencast shared above, it shows that there is only one tab. But I see two tabs here. Is this intentional?
- The Avatars doesn't load in the favorites tab. Also, the entire Url is rendered in the title rather than the name of the dapp
@NidhiKJha tabs depends on what device, iOS or Android, you're on. |
@NicolasMassart I tested on android |
I have read the CLA Document and I hereby sign the CLA |
## **Description** - bump `detox` - migrate detox patch Silence `patch-package` setup warning ## **Related issues** ## **Manual testing steps** ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Signed-off-by: Kai Huang <kai.huang@consensys.net>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12060 +/- ##
==========================================
+ Coverage 55.35% 55.47% +0.12%
==========================================
Files 1767 1772 +5
Lines 39841 39938 +97
Branches 4965 4974 +9
==========================================
+ Hits 22052 22157 +105
+ Misses 16274 16265 -9
- Partials 1515 1516 +1 ☔ View full report in Codecov by Sentry. |
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
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
if (url.current === OLD_HOMEPAGE_URL_HOST) return reload(); | ||
await go(OLD_HOMEPAGE_URL_HOST); | ||
trackEvent( | ||
createEventBuilder(MetaMetricsEvents.DAPP_GO_TO_FAVORITES).build(), |
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.
DAPP_GO_TO_FAVORITES
is not defined (it's in DESCRIPTION instead of events).
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.
@NicolasMassart could this cause the event to not fire?
const goToFavorites = async () => { | ||
toggleOptionsIfNeeded(); | ||
if (url.current === OLD_HOMEPAGE_URL_HOST) return reload(); | ||
await go(OLD_HOMEPAGE_URL_HOST); |
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.
go
takes 2 params
Description
We're adding in a "Go to Favorites" option into the browser menu so users can navigate to https://home.metamask.io, allowing them to access their previous favorites pages. After switching to the Portfolio dapps for a user's homepage, we received a decent amount of user feedback wanting this feature back in.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Actual
favorite.mov
Pre-merge author checklist
Pre-merge reviewer checklist