Danica Shen
f5426a84d9
feat(mme-17212): convert shared/constants/swaps.js -> Typescript ( #17322 )
2023-01-24 16:38:01 +00:00
Maarten Zuidhoorn
2900fe2c1a
Move subject type enum to @metamask/subject-metadata-controller
( #16431 )
...
* Move subject type enum to @metamask/controllers
* Fix imports
2023-01-24 16:03:01 +01:00
Brad Decker
3ff12d70e9
Replace usages of conversion util in rest of UI folder in favor of Numeric ( #17334 )
2023-01-24 08:44:49 -06:00
amerkadicE
dd09245ff6
Fix/use etherjs specific imports ( #15461 )
...
* replace ethers with submodules
Co-authored-by: Alex <adonesky@gmail.com>
2023-01-24 08:10:36 -06:00
Brad Decker
ead1446c98
Refactor usages of conversion util in the app folder and shared folder in favor of Numeric ( #17331 )
2023-01-23 11:41:01 -06:00
Vladimir Saric
f988dc1c5e
Enable the Token Allowance flow by default for all users ( #16740 )
2023-01-23 21:49:55 +05:30
Jyoti Puri
3e523e2382
Use PageContainerFooter to render footer on all confirmation pages ( #17316 )
2023-01-23 20:52:12 +05:30
Nidhi Kumari
180eabea06
Added toaster for removed NFTs ( #17297 )
...
* added notification for remove nfts
* reverted names for tabs
* updated default key
* updated snapshot
* updated remove nft toast to danger
2023-01-23 17:23:44 +05:30
Nidhi Kumari
c5368c152b
Added storybook check to CI ( #17092 )
...
* added storybook test runner
* added test runner in ci
* updated test for ci and fixed lint error
* updated lavamoat policy
* updated test command
* updated playwright
* changed command to storybook;ci
* updated command
* updated instance for test-storybook
* updated playwright
* added playwright step
* replaced concurrently with start-server-and-test
* updated the static storybook directory
* replaced first with last
* updated lock file
* replaced first with last
* updated test-storybook with maxworkers
* updated .depchechrc
* updated yml
* removed id from banner base
* replaced broken stories with .stories-to-do.js extesnsion
* updated token allowance story
* removed duplicacies from yarn
* fixed lavamoat
* removed filename comment
* updated links for docs
* fixed file extension for stories
* updated path for stories.json
* updated stories.json path
* yarn updated
* updated stories
* updated yarn
* updated wait on
2023-01-21 00:57:46 +05:30
Brad Decker
92f6ea6f6b
Relocate conversion utils to shared/modules/conversion.utils.js ( #17319 )
2023-01-20 11:04:37 -06:00
David Walsh
24551b7e9c
Fix #17138 - Allow ActionMessage to be autohidden after a given number of milliseconds ( #17269 )
2023-01-20 09:33:36 -06:00
ryanml
a19a5d60d3
Convert shared/constants/hardware-wallets.js -> Typescript ( #17310 )
2023-01-20 09:14:40 -06:00
Nidhi Kumari
90d2ca0727
updated initial state of new imported nfts to expanded ( #17285 )
2023-01-19 23:01:13 +05:30
Nidhi Kumari
0fdff8955c
added title for each nft in asset dropdown ( #17286 )
2023-01-19 23:00:35 +05:30
Dan J Miller
45fa923814
Clarify effect of autodetect tokens toggle ( #17293 )
...
* Clarify effect of autodetect tokens toggle
* Fix test
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-01-19 15:10:40 +00:00
Dan J Miller
f4391bb5c4
Allow user to scroll network form in onboarding modal ( #17291 )
2023-01-19 15:10:24 +00:00
Danica Shen
8f915807e4
fix(mme-14830): fix consistent tab when switching languages ( #17155 )
2023-01-19 15:05:42 +00:00
Dan J Miller
c90d389b84
Clarify effect of autodetect tokens toggle ( #17293 )
...
* Clarify effect of autodetect tokens toggle
* Fix test
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-01-19 11:33:08 -03:30
Dan J Miller
9a8bb81358
Allow user to scroll network form in onboarding modal ( #17291 )
2023-01-19 10:44:47 -03:30
Ariella Vu
2d6529bc5c
GasDisplay: hide duplicate testnet value ( #17207 )
...
- when isTestnet && !showFiatInTestnets
2023-01-18 22:43:40 +07:00
Brad Decker
5f6d2ba6b0
Convert Transaction constants to typescript ( #17149 )
2023-01-18 08:47:29 -06:00
Niranjana Binoy
20cbe44d63
Moving transaction-alerts component from /ui/pages/confirm-transaction folder to ui/component/app folder ( #17272 )
2023-01-18 09:30:26 -05:00
Vladimir Saric
c82c967c46
Fixing error when user input some letter in token allowance flow ( #17117 )
...
* Fixing error when user input some letter in token allowance flow
* Rename the regex variable name and added a brief comment above its definition
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2023-01-18 10:53:10 +01:00
ryanml
a276208891
Fixing broken stories ( #17227 )
2023-01-17 18:42:02 -07:00
aleksandar-mihajlovic
48dd819763
Fix for showing warning when no pending confirmations when network switching ( #17179 )
2023-01-17 15:37:35 -06:00
aleksandar-mihajlovic
082772fd08
Fix for contacts tab alignment bugs ( #17171 )
2023-01-17 15:36:33 -06:00
David Walsh
7d616fa513
NFTs: Add proper padding to import warning ( #17202 )
2023-01-17 14:26:16 -06:00
Niranjana Binoy
ca68e0e197
Toggle option to enable/disable balance and Token rate checking for using third-party API ( #16772 )
2023-01-17 18:41:47 +00:00
Thomas Huang
4c3c4eebac
Final conversion of tests from enzyme to @testing-library/react ( #16862 )
...
* Add transaction activity log component
* Remove duplicate tx activity log snapshot.
* Convert Advanced Tab to tlr.
* Lint fix
* Change ENS to DNS in mock state data.
* Add test ids for speedup, cancel, rety buttons.
* Convert TransactionListItemDetails component to RTL.
* Convert PageContainerHeader component to RTL.
* Convert TokenInput component to RTL.
* Convert UnitInput component to RTL.
* Convert withModalProps to RTL.
* Convert i18n-helper to RTL.
* Convert ConfirmSeedPhrase component to TLR.
* Convert AddRecipient component to RTL.
* Set process.env metamask build type to 'main' for test
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2023-01-17 07:51:35 -08:00
Niranjana Binoy
a0bb4a6c5a
Toggle option to enable/disable balance and Token rate checking for using third-party API ( #16772 )
2023-01-17 10:23:04 -05:00
ryanml
a51d3d9f4c
Fix MetaMetrics settings toggle styling ( #17224 )
2023-01-17 12:53:48 +00:00
ryanml
d5fea389e3
Fix MetaMetrics settings toggle styling ( #17224 )
2023-01-17 05:52:55 -07:00
Michal
32a2411cf5
Remove textarea caret dep ( #17105 )
...
remove dependency for mascot head movement
2023-01-16 13:07:59 +00:00
ryanml
214afe1992
Remove 'Verify contract details' link on Sig Req screen when 'verifyingContract' is absent ( #17128 )
...
* Remove 'Verify contract details' link on Sig Req screen when 'verifyingContract' is not provided
* Adding tests
2023-01-13 12:28:52 -07:00
David Walsh
52a28d52b3
Remove ONBOARDING_V2 flag for release ( #16865 )
...
* Remove ONBOARDING_V2 flag for release
* Remove new usage
* Update e2e tests
* Update incremental-security.spec.js
* Fix lint
Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
2023-01-13 18:37:15 +00:00
David Walsh
3cc8a4535a
Onboarding v2: Implement requested metrics ( #17090 )
2023-01-13 18:37:03 +00:00
David Walsh
7760f4d658
Remove ONBOARDING_V2 flag for release ( #16865 )
...
* Remove ONBOARDING_V2 flag for release
* Remove new usage
* Update e2e tests
* Update incremental-security.spec.js
* Fix lint
Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
2023-01-13 10:25:01 -06:00
David Walsh
72a1df247c
Onboarding v2: Implement requested metrics ( #17090 )
2023-01-13 10:11:27 -06:00
amerkadicE
00aee11c2a
Add contact unit tests ( #17131 )
2023-01-13 09:52:03 -06:00
David Walsh
d468739ff0
Ensure the NFT feature flag has changed in all places ( #17152 )
2023-01-11 23:04:02 -07:00
ryanml
5061eac2e7
Fix duplicate button issue on Ledger connectivity screen ( #17130 )
2023-01-11 11:34:05 -07:00
David Walsh
ff6a9a19d5
Onboarding V2 - Fix CSS/React warnings from last screen ( #17125 )
2023-01-11 15:55:23 +00:00
Filip Sekulic
61d5a6e4d5
Fixed navigation through multiple unapproved transactions for ERC20 tokens ( #16822 )
2023-01-11 15:53:03 +00:00
David Walsh
c12d469af2
Onboarding V2 - Fix CSS/React warnings from last screen ( #17125 )
2023-01-11 09:21:19 -06:00
Filip Sekulic
fc83a1b631
Fixed navigation through multiple unapproved transactions for ERC20 tokens ( #16822 )
2023-01-11 09:01:50 -06:00
PeterYinusa
8690cb0f5a
Security and Privacy Settings Re-org ( #16756 )
2023-01-11 14:17:55 +00:00
Olusegun Akintayo
effbd7f953
Security and Privacy Settings Re-org ( #16756 )
2023-01-11 12:55:20 +00:00
Adnan Sahovic
f5c95860f7
Display large and small numbers as decimals instead of scientific notation on token allowance confirmation screens ( #16676 )
...
Co-authored-by: VSaric <vladimir.saric@consensys.net>
Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-10 23:03:57 +00:00
David Walsh
c2ffac6e31
Fix #16959 - Don't allow user to see welcome or password creation screen after a keyring has been created ( #17024 )
2023-01-10 13:56:50 +00:00
David Walsh
7cd2b28cd5
Fix #16959 - Don't allow user to see welcome or password creation screen after a keyring has been created ( #17024 )
2023-01-09 14:55:48 -06:00
ryanml
64eae7d3f0
Fix spacing issue in Settings Search input ( #17108 )
...
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-09 13:54:28 -07:00
ryanml
470bfea08d
Fix 'Back' navigation from Restore Vault page when accessed from popup window ( #17095 )
2023-01-09 20:09:25 +00:00
ryanml
925c835a89
Onboarding V2: Fix 'Securing my Wallet' when coming from backup reminder after account recovery ( #17088 )
2023-01-09 20:09:02 +00:00
George Marshall
b653b4f934
Fixing some incorrect CSS color vars ( #17033 )
...
* Fixing some incorrect css vars
* Static hex value fix
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-09 11:58:34 -08:00
ryanml
7ea827565c
Fix 'Back' navigation from Restore Vault page when accessed from popup window ( #17095 )
2023-01-09 04:19:53 -07:00
amerkadicE
5964ece8d3
Ensure that protect your funds popover is displayed above tooltip ( #17084 )
2023-01-08 16:45:14 -06:00
amerkadicE
6ace8955d3
Make username mandatory when adding to address book ( #17044 )
2023-01-06 10:36:32 -06:00
ryanml
e8809cffaf
Onboarding V2: Fix 'Securing my Wallet' when coming from backup reminder after account recovery ( #17088 )
2023-01-05 23:14:32 -07:00
Adnan Sahovic
fbbc1df853
Display large and small numbers as decimals instead of scientific notation on token allowance confirmation screens ( #16676 )
...
Co-authored-by: VSaric <vladimir.saric@consensys.net>
Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-05 08:58:16 -06:00
Filip Sekulic
e6038d542a
Update UI for transaction security check in settings ( #16830 )
2023-01-04 15:59:48 -06:00
HowardBraham
b9d9112b97
Prevent account name collisions ( #16752 )
...
* dealt with most of the problems in the Create Account dialog
* Fixed "newAccountNumberName" localizations
* In another language, don't allow accounts named, for instance, Cuenta 3
* Editing an account name later now follows the same rules
* Fixing lint errors
* Responding to the review by @adonesky1
* Worked with @montelaidev to alter the RegExp, in order to catch spaces before and after the account name
* Fixed line breaks for eslint
2022-12-22 11:27:31 -06:00
Daniel
2832f8a97e
Update quote selection for Optimism ( #16998 )
2022-12-21 20:59:34 +01:00
Alex Donesky
1a842aabb6
Replace eth-optimism/contracts
package with local snippet of gas price ABI and address ( #16891 )
2022-12-20 14:05:07 -06:00
dragana8
e7e72cf6fc
Fix insufficient currency buy or receive error message ( #16979 )
2022-12-20 17:44:18 +01:00
Dan J Miller
cb2f25f767
Show user the general contract interaction screen for token approvals, when the asset standard is undefined ( #16765 )
...
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2022-12-20 17:41:21 +01:00
Guillaume Roux
85f260c22d
[FLASK] Use custom UI for dialogs ( #16973 )
...
* update dialog templates to use custom UI
* add TODO comments
* Fix showDialog hook and destructuring
* Regen LavaMoat policies
* Re-add legacy snap confirmation for now
* Fix circular dependency issue
* Revert change to token-util
* Fix lint
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-12-20 11:44:22 +01:00
Olusegun Akintayo
13de51e748
Security and Privacy Settings Re-org ( #16756 )
2022-12-19 18:46:36 +01:00
Dan J Miller
22fc60a341
Show user the general contract interaction screen for token approvals, when the asset standard is undefined ( #16765 )
...
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2022-12-19 13:38:28 -03:30
legobeat
204f39ef12
ui: make settings search regex range explicit ( #16903 )
...
* ui: make settings search regex range explicit
- Addresses CodeQL advisory #31
- Removes `][^ as valid characters
* ui: settings-search: ignore leading/trailing whitespace
2022-12-17 05:28:13 +09:00
dragana8
d2f8083d64
Fix insufficient currency buy or receive error message ( #16979 )
2022-12-16 10:17:01 -06:00
David Walsh
6439a0e934
Onboarding: Set SeedPhraseBackedUp when appropriate ( #16875 )
...
* Onboarding: Set SeedPhraseBackedUp when appropriate
* Dispatch setSeedPhraseBackedUp
* Fix test
* Make call async
* Fix test
* Fix test
* enhance test
Co-authored-by: Alex <adonesky@gmail.com>
2022-12-16 12:57:51 +01:00
George Marshall
09d29ef00d
Renaming broken stories to clean up console ( #16905 )
...
* Renaming broken stories. Fixing deprecated default arg syntax for stories using defaultValue
* Fixing imports
2022-12-15 14:46:30 -08:00
legobeat
1acb1b2e5d
Refactor password validation ( #16902 )
...
* ui: add common constant PASSWORD_MIN_LENGTH=8
* ui: simplify password validation logic
* ui: getPasswordStrengthLabel using t from context
Co-authored-by: Alex Donesky <adonesky@gmail.com>
2022-12-15 20:56:27 +00:00
David Walsh
43adc60956
Onboarding: Set SeedPhraseBackedUp when appropriate ( #16875 )
...
* Onboarding: Set SeedPhraseBackedUp when appropriate
* Dispatch setSeedPhraseBackedUp
* Fix test
* Make call async
* Fix test
* Fix test
* enhance test
Co-authored-by: Alex <adonesky@gmail.com>
2022-12-15 08:38:15 -06:00
Alex Donesky
5accaf88b9
add back error when password is too short ( #16876 )
2022-12-15 11:03:15 +01:00
Alex Donesky
9dd30a0ac6
add back error when password is too short ( #16876 )
2022-12-14 19:20:55 -06:00
Alex Donesky
bcfe67a132
fix issue where final onboarding pages are not show ( #16943 )
2022-12-14 18:00:12 +01:00
David Walsh
b40fd429fb
Fix #16804 - Onboarding - Prevent odd behavior with clicks and show/hide password ( #16878 )
2022-12-14 16:38:45 +01:00
Jyoti Puri
4e272beb26
User should be able to search setting to batch account balance request ( #16887 )
2022-12-14 16:34:58 +01:00
Jyoti Puri
6bc01a1e97
Fix onboarding V2 Install complete page ( #16941 )
2022-12-14 16:27:59 +01:00
Alex Donesky
fde7cb5e17
remove the ability to navigate back into the onboarding flow after completing onboarding ( #16916 )
...
* fix issue when navigating back into the onboarding flow after completing onboarding
* disable navigating back into the onboarding flow
* lint
* fix test
* lint
2022-12-14 15:06:46 +01:00
Vladimir Saric
219e3129dc
Added reject transactions modal to be present in the footer of the approve screen ( #16832 )
...
* Added reject transactions modal in the footer
* Use Button component for multiple unapproved tx
2022-12-14 11:15:25 +01:00
Alex Donesky
c76453d6cb
fix issue where final onboarding pages are not show ( #16943 )
2022-12-14 12:19:52 +05:30
Jyoti Puri
929dfbfd21
Fix onboarding V2 Install complete page ( #16941 )
2022-12-13 15:44:08 -06:00
Alex Donesky
6a23dcc68a
remove the ability to navigate back into the onboarding flow after completing onboarding ( #16916 )
...
* fix issue when navigating back into the onboarding flow after completing onboarding
* disable navigating back into the onboarding flow
* lint
* fix test
* lint
2022-12-13 12:08:28 -06:00
Daniel
a6da5fd4c3
Add Optimism's L1 fee for an approval tx into total L1 fee in Swaps ( #16929 )
2022-12-13 18:28:05 +01:00
Vladimir Saric
11f24deef6
Added reject transactions modal to be present in the footer of the approve screen ( #16832 )
...
* Added reject transactions modal in the footer
* Use Button component for multiple unapproved tx
2022-12-13 13:33:35 +01:00
Jyoti Puri
9a4739c813
User should be able to search setting to batch account balance request ( #16887 )
2022-12-12 20:35:21 +05:30
David Walsh
dcffa4c7bc
Fix #16804 - Onboarding - Prevent odd behavior with clicks and show/hide password ( #16878 )
2022-12-12 08:36:02 -06:00
Frederik Bolding
5cca4b9b44
[FLASK] Fix a crash that occurred after a snap confirmation had been approved ( #16864 )
...
* Fix a crash that occurred after a snap confirmation had been approved
* Fix lint
* Move code below early return
2022-12-12 12:32:31 +01:00
David Walsh
7a1f75d17f
Fix #16852 - Update support link for BETA ( #16853 )
2022-12-09 08:01:40 -06:00
Jyoti Puri
8125473dc5
Removing flag for EIP1559 V2 support ( #16446 )
2022-12-09 00:07:06 +05:30
David Walsh
7d3b1d08da
NFTs: Update COLLECTIBLES_V1 to NFTS_V1 ( #16851 )
2022-12-08 11:37:47 -06:00
David Walsh
9dbc8b8ec0
Privacy - Show default selected network after a custom network has been added during onboarding ( #16789 )
...
* Privacy - Allow users to set a custom RPC from the onboarding process (#16767 )
* Privacy - Allow adding custom IPFS from onboarding (#16782 )
* Privacy - Show default selected network after a custom network has been added during onboarding
* WIP: Show dropdown list of networks
* Add network switcher to the onboarding advanced privacy screen
* Fix duplicate imports
* Provide default for networks
* Update ui/helpers/utils/ipfs.js
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
* Fix lint
* Remove unwanted changes
* Fix lint
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-12-08 16:50:47 +00:00
David Walsh
5d15026f2f
Privacy - Update metametrics copy during onboarding ( #16825 )
2022-12-08 16:48:26 +00:00
David Walsh
43c278d813
Privacy - Show default selected network after a custom network has been added during onboarding ( #16789 )
...
* Privacy - Allow users to set a custom RPC from the onboarding process (#16767 )
* Privacy - Allow adding custom IPFS from onboarding (#16782 )
* Privacy - Show default selected network after a custom network has been added during onboarding
* WIP: Show dropdown list of networks
* Add network switcher to the onboarding advanced privacy screen
* Fix duplicate imports
* Provide default for networks
* Update ui/helpers/utils/ipfs.js
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
* Fix lint
* Remove unwanted changes
* Fix lint
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2022-12-08 10:42:23 -06:00
Pedro Figueiredo
5f6d5706ef
fix locales for advance config ( #16849 )
2022-12-08 16:34:13 +00:00
Pedro Figueiredo
3a456a45fc
fix locales for advance config ( #16849 )
2022-12-08 14:20:59 +00:00
ryanml
a759d427f0
Remove new address alert ( #14811 )
...
* Removing new address alert
* remove unused copy
* fix broken e2e test
* rework layout nesting
* satisfy lint
* change layout to fix firefox tests
* change selector specificity on e2e test
* revert test change after fix has been merged from develop
* fix linting
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
2022-12-08 14:20:24 +00:00
David Walsh
ead5076b86
Privacy - Update metametrics copy during onboarding ( #16825 )
2022-12-07 12:56:57 -06:00