-
Notifications
You must be signed in to change notification settings - Fork 31
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
[Metrics] Add wallet metrics #560
Conversation
src/frontend/screens/Onboarding/walletSelection/screens/import/index.tsx
Outdated
Show resolved
Hide resolved
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 some questions
src/frontend/screens/Onboarding/walletSelection/screens/import/index.tsx
Outdated
Show resolved
Hide resolved
src/frontend/screens/Onboarding/walletSelection/screens/import/index.tsx
Outdated
Show resolved
Hide resolved
src/frontend/screens/Onboarding/walletSelection/screens/import/index.tsx
Outdated
Show resolved
Hide resolved
1e7d4da
to
7610e85
Compare
src/frontend/screens/Onboarding/walletSelection/screens/import/index.tsx
Show resolved
Hide resolved
patches/@metamask+sdk+0.12.0.patch
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.
this conflicts with our window.ethereum type definition in the frontend even though this is imported in the main process
There is also no reason for this to be exported by the node.js mm sdk. Created an issue here for it MetaMask/metamask-sdk#491
Ready for review again @eliobricenov @flavioislima 👍 |
<div | ||
className={styles.defaultProfileImage} | ||
style={{ | ||
backgroundColor: |
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 you maybe turn this into a variable to make to more readable and easy to change?
Also, the color code 202124
on a constant so would be easier to change in the future.
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.
Nice refactor. Code is cleaner now using smaller components 👍🏽
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.
Looks good overall.
left just some small comments 👍🏽
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!
...nboarding/walletSelection/screens/import/components/BrowsersAndManualImportOptions/index.tsx
Outdated
Show resolved
Hide resolved
<div className={styles.profileOptionsContainer}> | ||
{getPackageManagersForBrowser().map((pkgManager) => { | ||
if (importOptions[browserSelected]![pkgManager].length === 0) | ||
return null |
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.
For readability, lets at least put another new line under the return null
or we wrap it with curly brackets
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.
sure I'll add brackets but we should not enforce linting styles through code review. It wastes time. If it passes the linter, it should be okay
Here is the issue for adding eslint curly to enforce this at the linting level #581
...nboarding/walletSelection/screens/import/components/BrowsersAndManualImportOptions/index.tsx
Outdated
Show resolved
Hide resolved
...nboarding/walletSelection/screens/import/components/ImportAndCreateOptions/index.module.scss
Show resolved
Hide resolved
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.
The above consider them as optional, so please do not feel blocked. LGTM 🙌
Improve wallet metrics in onboarding modal
Update MetaMask Mobile to 0.12.0
Fix MetaMask one time passcode (OTP) bug where it wouldn't show in some cases when reconnecting on subsequent app launches
Flowchart with events:
https://www.figma.com/file/JG7Rbq91JE8JbtvGVFNLPH/Metrics?type=whiteboard&node-id=0%3A1&t=RpQbfJfp1CIvv44j-1
Manual Test Cases are in qase under "Metrics -> Wallet Onboarding"
Submodule PR's
AC