ryanml
47f6d46bb3
Add alt text for NFT images ( #17284 )
2023-01-25 08:08:35 -06:00
Nidhi Kumari
8a6bf4d1c9
Nit fixes for story-test integration ( #17344 )
...
* nit fix for story-test integration
* updated package.jsson
2023-01-25 09:24:13 +05:30
Garrett Bear
0bf6aeb5f5
icon audit, remove xxs icon size ( #17089 )
...
* icon audit, remove xxs icon size
* update icon file names and snapshots
* remove unused icon- code and fix icons with slash issue
* close icon fix
* remove icons id
* update snapshot
* font awesome icon list
* remove font awesome
* fix linting issue
2023-01-24 09:39:46 -08:00
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
David Walsh
cf10b2a1a0
Fix #17300 , #16843 - Use proper source for image of IPFS NFTs ( #17302 )
2023-01-23 16:04:11 -06:00
Brad Decker
b4c5837760
Remove usages of Conversion util in components folder in favor of Numeric ( #17333 )
...
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
2023-01-23 13:30:43 -06:00
Brad Decker
d2c3abea51
Refactor Errors E2E test to no longer rely upon a real error ( #17332 )
...
Co-authored-by: Danica Shen <zhaodanica@gmail.com>
2023-01-23 12:58:35 -06:00
Frederik Bolding
ef69e2ae48
[FLASK] Update onboarding text to fit new panel ( #17345 )
...
* Update Flask onboarding text to fit new panel
* Fix lint
2023-01-23 18:43:35 +01: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
Nidhi Kumari
213240349d
Updated Icons in Title of NFTs ( #17205 )
...
* icon update for nft
* updated icon for previously owned icon
* removed isPreviouslyOwned condition
2023-01-23 22:38:35 +05:30
Vladimir Saric
f988dc1c5e
Enable the Token Allowance flow by default for all users ( #16740 )
2023-01-23 21:49:55 +05:30
Brad Decker
af83e120dc
Convert app//scripts/lib/util.js to typescript ( #17330 )
2023-01-23 10:18:22 -06:00
aleksandar-mihajlovic
16851c83ef
Added fix for overlaping text in mozzila in activity tab ( #17235 )
2023-01-23 09:48:14 -06:00
Jyoti Puri
3e523e2382
Use PageContainerFooter to render footer on all confirmation pages ( #17316 )
2023-01-23 20:52:12 +05:30
Filip Sekulic
27d34166fe
Security provider check (OpenSea) ( #16584 )
2023-01-23 20:02:01 +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
David Walsh
cb6ee2b3fe
Use async/await instead of Promise.resolve ( #16221 )
2023-01-20 14:20:18 -06:00
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
Ariella Vu
c744f2d0cf
TransactionDecoding: rm unwanted cursor: pointer ( #17318 )
2023-01-20 21:37:50 +07:00
Ariella Vu
149b5721ad
Fix transaction decoding data types string
and bool
( #17299 )
...
* TransactionDecoding: support string type
- fixes #16951
- fixes #16952 (string cut off)
* TransactionDecoding: support bool type
2023-01-20 20:31:26 +07: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
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
ryanml
63a3de6768
Various NFT UI fixes ( #17153 )
...
* Various NFT UI fixes
* Addressing review feedback
* Using ButtonIcon component for copy icon
* Using button for collectible item
2023-01-18 15:39:15 -07:00
Thomas Huang
d99854baac
Convert signature request component to tlr. ( #17268 )
2023-01-18 11:34:28 -08:00
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
ryanml
d8ce8612bd
Update copy and fix duplicate entries for Token Detection Settings search results ( #17273 )
2023-01-18 11:13:57 -03:30
David Walsh
37174d749c
Fix #17162 - Add NFT disclaimer to details page ( #17266 )
2023-01-18 08:37:16 -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
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
David Walsh
554939cc66
Fix #17142 - Ensure toggle arrow is visible in dark mode ( #17204 )
2023-01-17 09:19:26 -06:00
Michal
49c8b279be
harden export account ( #17241 )
...
harden export account
2023-01-17 15:01:12 +00:00
ryanml
d5fea389e3
Fix MetaMetrics settings toggle styling ( #17224 )
2023-01-17 05:52:55 -07:00
ryanml
c77629f8aa
Removing erroneous blank lines in ui/components ( #17225 )
2023-01-17 05:52:04 -07:00
Vladimir Saric
3c38ff3899
Validating or restricting the number of digits on token allowance flow ( #17234 )
...
* Validating or restricting the number of digits after the decimal point that the user can enter and styles for Max button and description with error message
* Use better solution for validation the number of digits on token allowance flow
2023-01-16 14:11:46 -03:30
Michal
32a2411cf5
Remove textarea caret dep ( #17105 )
...
remove dependency for mascot head movement
2023-01-16 13:07:59 +00:00
Nidhi Kumari
1df72c6e4e
Added padding/margin inline support to the Box component ( #17134 )
...
* added tests and css for more padding/margin support
* updated README
* fixed spacings
* fixed spacings
2023-01-14 10:54:25 +05:30
Garrett Bear
1265731344
Feat/16637/button housekeeping ( #16872 )
...
* button housekeeping
* add iconsearch
* fix description
* readme update
* update disabled classnames
* buttonlink disabled class
* add disabled proptypes
* add constant exports
* update disabled style classes
* update snapshot for box pill classname
* add buttonTextProps
* update primarybutton background color to use box props
* update button secondary and link to use box props
* update tests
2023-01-13 13:58:09 -08: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
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
105762b0ed
Fix 16842 - Update NFT error message so that it's caught properly and displayed ( #17165 )
...
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-01-13 09:33:01 -06:00
Filip Sekulic
e70b6dc29e
13/12 ( #16948 )
2023-01-13 20:11:07 +05:30
Victor Naumik
7df712b888
Display primaryType in signTyped instead of 'Message' string ( #17077 )
...
* fix: Display primaryType in signTyped instead of 'Message' string
* fix: added #17077 to changelog
* fix: remove unused signatureRequest1 message to fix test-lint failure
* Update CHANGELOG.md
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
* test: add assertion for the primaryType to signature-request component test
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2023-01-12 15:52:02 +01: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
Garrett Bear
01c0d7823d
Feat/15085/banner base component ( #16828 )
...
* add banner base component
banner base wip
remove base avatar
banner base
* add banner base
* Update ui/components/component-library/banner-base/banner-base.stories.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/component-library/banner-base/banner-base.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* named export org fix
* Update ui/components/component-library/banner-base/README.mdx
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* updated changes to banner base
* banner base updates
* fix description/children
* move banner base down
* Update ui/components/component-library/banner-base/README.mdx
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/component-library/banner-base/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/banner-base/banner-base.js
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
* Update ui/components/component-library/banner-base/banner-base.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/banner-base/banner-base.test.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/banner-base/banner-base.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* fix linting
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-01-11 09:42:18 -08:00
Nidhi Kumari
6e900fb0e3
housekeeping for Avatar Favicon ( #16931 )
...
* housekeeping for avatar favicon
* added test for custom className
* fixed lint errors
* updated avatar favicon in tag url
* updated import
* updated readme and fixed label
* updated tag url snapshot
* updated snapshot for favicon
2023-01-11 21:41:06 +05:30
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
Garrett Bear
e236792a90
add width docs to box component ( #17007 )
...
* add width docs to box component
2023-01-09 22:30:29 -08:00
Nidhi Kumari
56a3afaace
avatar account housekeeping ( #16930 )
...
* avatar account housekeeping
* avatar number to the diametere
* fixed lint errors
* converting blockie to number
* updated README
* updated constants for avatar account
2023-01-09 16:38:43 -08: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
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
Alaa Hadad
174d3dbcf0
soft disable onramp provider wyre ( #17102 )
2023-01-09 13:44:13 -03:30
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
Nidhi Kumari
be227705d0
added padding/margin inline, inline-start and inline-end support to Box Component ( #17085 )
...
* added padding/margin inline-start and inline-end support
* updated story for margin
2023-01-06 12:10:28 +05:30
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
Nidhi Kumari
a1c5224997
housekeeping for picker-network ( #16982 )
...
* updated test in picker-network
* fixed import order in README
* fixed global import path
* fixed formatting
2023-01-05 15:30:42 -08:00
Nidhi Kumari
c9ddee9155
updated colors for typography component ( #17009 )
...
* updated colors for typography
* updated valid colors
2023-01-05 13:04:48 -08: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
Vladimir Saric
4d12c36cf8
Align custom spending cap Max button in approve screen for multiple languages ( #16927 )
...
* Align custom spending cap Max button in approve screen for multiple languages
* Modify some css styles and adding Box props
* Using ButtonLink component instead of <button/>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-04 22:31:52 +05:30
Vladimir Saric
23653f4c08
Added unit tests and story for SignatureRequestData component ( #16759 )
2023-01-04 09:31:23 -06:00
Frederik Bolding
05d50eee73
Improve SignatureRequest
performance ( #17052 )
...
* Improve SignatureRequestData performance
* Memoize more selectors
2022-12-22 16:37:51 -03:30
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
Nidhi Kumari
f8881a01db
AvatarWithBadge Housekeeping ( #16985 )
...
* updated classnames
* updated readme and tests for avatar with badge
* updated constants in root
* replacing BADGE_POSITIONS with AVATAR_WITH_BADGE_BADGE_POSITIONS
2022-12-22 00:36:40 +05:30
Ariella Vu
25e9184d9a
i18n: fix missing locale for "en" error ( #17014 )
...
on locale change
2022-12-22 00:31:06 +07: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
amerkadicE
362497ed64
Track when token balance is changed to update value on approval screen ( #16964 )
...
* Track when token balance is changed to update value on approval screen
* Code refactor
* Fix unit test
* Fix sign approval balance
* Refactor code
2022-12-20 09:24:28 -03:30
Frederik Bolding
7e7a0f1f72
[FLASK] Use custom UI for transaction insights ( #16912 )
...
* Allow custom UI for transaction insights
* Fix margin
* Small fixes to CSS and selectors
* Rename property
* Fix E2E locally
* Bump test-snaps
* Bump test-snaps
2022-12-20 11:44:49 +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
Dan J Miller
074c2934fe
remove warning on revoke approval for all nfts ( #16953 )
...
Co-authored-by: EresDev <eresdev@hotmail.com>
2022-12-16 22:37:18 +05:30
dragana8
d2f8083d64
Fix insufficient currency buy or receive error message ( #16979 )
2022-12-16 10:17:01 -06:00
Ariella Vu
462e5faab5
Fix token balance precision on confirm token approval page from soon-to-be-deprecated token allowance flow ( #16934 )
...
* ConfirmToken: fix token balance onboarding v1
this UI/UX should be deprecated following PR#16740, maybe v10.25
* TokenApproval: use precision for token balance
* EditApproval: calc utilizing existing util
2022-12-16 22:20:05 +07: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