1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
Commit Graph

6654 Commits

Author SHA1 Message Date
OGPoyraz
99bd28d1d9
fix: support alerts confirmation page without pending transactions (#18983) 2023-05-19 14:13:34 +02:00
Ariella Vu
ab4ef4f744
[Bug]: Updating and Adding ConfirmPageContainer Tests (#19149)
* updating the tokenBalance fetch and Token standard type to enable the Total in setSetApproveForAllWarning

* updating the base-10 for the BN.toString() conversion

* updating review comments

* adding string conversion to tokenBalance

* ConfirmPageContainer: mv props to the top

* ConfirmPageContainer: deprecate sinon

* updating coverage-targets

* updating the conversion base

* ConfirmPageContainer: add test for warning modal

---------

Co-authored-by: Niranjana Binoy <43930900+NiranjanaBinoy@users.noreply.github.com>
2023-05-19 01:22:43 +03:00
Ariella Vu
813ad984ce
Fix contract interaction recipient and contract address (#18855) 2023-05-18 18:19:40 +01:00
Niranjana Binoy
56440a84db
Cleanup PR: Renaming getNetworkName and moving that to utils file (#19160) 2023-05-18 09:53:11 -04:00
Niranjana Binoy
3fe5d3fc4c
[Bug]: Enabling the display of token total in SetApprovalForAll (#18863) 2023-05-18 09:51:38 -04:00
Andrew Peters
67614593a8
Disable Previous Button on First Page (#17610)
* disable prev page button

* test added

* test fixes

* tests fixed

* test fix

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Mike B <32695229+plasmacorral@users.noreply.github.com>
2023-05-18 09:24:04 -04:00
legobeat
8675c7863e
devDeps: storybook@7 (#19092)
* devDeps: pin @babel/core and @babel/runtime in resulotions
    Without this: misses patch, lavamoat error


* storybook 6 to 7 migration
* devDeps: add @storybook/addon-mdx-gfm
* fix lint deps
* devDeps: remove unused require-from-string
* devDeps/resolutions: @types/react@^16.9.53
* devDeps: add @storybook/cli
* storybook: new-frameworks migration
* iyarc: remove resolved dependency advisory
* deps: set globalthis@1.0.1 in resolutions
   This is required since a file is copied over from a set path in the dist
   package subdirectory as of d13aabde23 (#10014).
   A future update should either vendor the shim, or update to
   compatibility with a maintained upstream version.

* mdx2 migration fixes
* chore: bump ljharb packages
* devDeps: @storybook/*@^7.0.10->^7.0.11
* storybook: update preview.js to use v7 addon api
* ci/test/storybook: echo between storybook build&test
* ci/circleci: resources tweak
* info-tab: handle undefined global.platform
* update lavamoat build policy
* update lavamoat browserify policies
2023-05-18 11:07:42 +09:00
Nazrul Hassan
9ef9327507
Adding design-system enums and deprecating consts (#19133)
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-05-17 17:44:51 -05:00
David Walsh
577e4cba0b
UX: Multichain: Don't filter out custom mainnet RPCs (#19150) 2023-05-17 12:26:15 -05:00
David Walsh
556d3d82cc
UX: Multichain: Fix prop error from invalid Box prop (#19188) 2023-05-17 12:25:41 -05:00
David Walsh
724c69ea7c
UX: Multichain: Ensure percentage of account name always shown (#18976)
* UX: Multichain: Ensure percentage of account name always shown

* Remove extra spacing between value and menu, use proposed widths

* Setup widths via storybook and props

* Remove spacing between avatar and asset value

* WIP: Setup customization for Sara, update hard-coded font sizes

* Implement final widths

* Cleanup CSS
2023-05-17 11:53:54 -05:00
Albert Olivé
ebc887021e
[MMI] Added code fences for account menu (#17965)
* Added code fences for account menu

* updates test and messages json

* clean up

* icons

* icons color correct

* icon size fix

* icon size fix

* adds mmi entries and updates to the new IconName

* clean up

* lint

* clean up

* prettier

* prettier

* camel case

---------

Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-05-17 16:58:00 +02:00
Albert Olivé
804d352d58
[MMI] Add MMI modals with their styles to the app/modals (#18621)
* Added code fences

* Fixing code fences

* Fixed paths

* Fixing issues

* Fixed imports

* removes fences in scss file and un-needed prop

---------

Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
2023-05-17 16:57:46 +02:00
Nidhi Kumari
ac6fb3bb09
UX Multichain: updated assets to tokens in home page (#19144)
* updated assets to tokens in home page

* lint fix

* lint fix

* updated tests and spec files

* lint fix
2023-05-17 08:30:47 +05:30
George Marshall
e3eec3a43d
Fixes clear button size TextFieldSearch (#19153)
* Fixing broken prop

* Adding translations and hopefully fixing the display of the native search icon on mobile
2023-05-16 13:15:13 -07:00
Daniel
471889e5bb
Enable token detection for the Aurora network, fix primary token for Aurora, update a URL (#19009) 2023-05-16 17:57:04 +02:00
Albert Olivé
a017a1bae0
[MMI] Added note to trader code fencing (#18051)
* Added note to trader code fencing

* Started adding code fences in signature-request

* Finished code fencing

* Improving code

* adds check and runs prettier

* Fixed storybook and code fences bundle

* Added missing dependency

* updates fences

* fewer lines

* undo previously merged PR

* ran lavamoat auto

* adds test

* prettier

---------

Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-05-16 16:44:08 +01:00
António Regadas
b982bea130
[MMI] adds wrong network notification (#19168)
* adds component and test

* adds correct icon and story file

* lint

* typo fix
2023-05-16 16:59:42 +02:00
Dhruv
488f212d28
Part of #18714 and #17670:set-approval-for-all-warnings (#19115)
* Changes to set-approval-for-all-warnings

* Suggested changes

* Updating deprecated components, improving semantic html and fixing text css strong tag styles

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
2023-05-15 15:40:00 -07:00
Mark Stacey
4bd74c5059
Fix lint error (#19157)
Fix a lint error recently introduced by a merge conflict.
2023-05-15 18:37:20 -02:30
Dhruv
5135b80de7
Part of #18714 and #17670: Changes to nfts-detection-notice.js (#19051)
* Changes to nfts-detection-notice.js

* Adding story

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2023-05-15 11:08:48 -07:00
Dhruv
c9f420234f
Changes to gas-items-details (#19075) 2023-05-15 10:56:20 -07:00
Harsh Shukla
8a8c8fad10
Part of ##18714 Replace deprecated design system typography consts with enums in: confirm-page-container.component.js (#19065) 2023-05-15 10:50:49 -07:00
Harsh Shukla
1c346674df
Part of #18714 Replace deprecated design system typography consts with enums in: 'srp-input' (#19040)
* Part of #18714 Replace deprecated design system typography consts with enums in:  'srp-input'

* Update ui/components/app/srp-input/srp-input.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update srp-input.js

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
2023-05-15 09:52:02 -07:00
David Walsh
e5fdb72acc
UX: Multichain: Improve networks selector (#19083)
* UX: Multichain: Improve networks selector

* Update ui/selectors/selectors.js

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>

* Update ui/selectors/selectors.js

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>

* Update ui/selectors/selectors.js

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>

* Improvements

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-05-15 10:15:39 -05:00
Albert Olivé
f95320d03e
[MMI] Started adding styles imports with code fences (#17943)
* Started adding styles imports with code fences

* FIxed prettier issues

* removed fences since they dont do anything

* Update ui/components/ui/ui-components.scss

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

---------

Co-authored-by: Antonio Regadas <antonio.regadas@consensys.net>
Co-authored-by: António Regadas <apregadas@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2023-05-15 12:38:54 +01:00
Ariella Vu
aa9ee8af6c
Update useDraftTransactionGasValues (#19105)
* useDraftTransactionGasValues: update return value

* rn useDraftTransactionGasValues
-> useDraftTransactionWithTxParams
2023-05-12 13:27:25 -05:00
Dan J Miller
578f73b2ea
Ensure the GasDetailsItem component can handle a tx with a maxPriorityFee of 0 (#19102)
* Ensure the GasDetailsItem component can handle a tx with a maxPriorityFee of 0

* Clean up code

* Update ui/components/app/gas-details-item/gas-details-item.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-05-12 12:31:15 -02:30
OGPoyraz
d859181029
fix: use approvals selector fn in permission selectors (#19095) 2023-05-11 16:40:51 +02:00
OGPoyraz
d37d5bf0ee
feat: Refactor Transaction Confirmation selector (#18796) 2023-05-11 07:56:17 +02:00
Nidhi Kumari
46c2f1cc56
removed mmi fencing from copy icon in header (#19087)
* removed mmi fencing from copy icon

* updated snapshot
2023-05-10 15:41:03 +02:00
Vinicius Stevam
df3db6e559
Adopt ApprovalType from core (#18567) 2023-05-10 06:36:01 +01:00
Harsh Shukla
e991439718
Part of #17670 & #18714: Replace Typography with Text component in token-details-page.js (#18741)
* Worked on issue #17670 & #18714 in file token-details-page.js in file

* Worked on issue #17670 & #18714 in file token-details-page.js in file

* Update token-details-page.js
2023-05-09 17:55:30 -07:00
Dhruv
490e0770c7
Changes to edit-gas-display.component.js (#19037)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-05-09 17:52:16 -07:00
George Marshall
32688c2e3c
Adding ModalFocus component (#18979) 2023-05-09 14:33:29 -07:00
George Marshall
62ffd8022a
Some style, accessibility and sematic html updates to modal sub components (#19034) 2023-05-09 14:09:10 -07:00
Nidhi Kumari
6535e34943
Replaced all fa-icon-circle with INFO icon (#17539)
* replace all fa-icon-circle with INFO icon

* updated classnames

* updated classnames

* updated snapshots

* updated colors

* resolved errors

* fixed relative import

* fixed lint errors

* added story for alerts tab

* update snapshot

* updated info-circle

* updated enum for iconName

* removed classnames

* updated iconName in settings

* fixed lint errors and snapshots
2023-05-09 23:04:58 +05:30
Nidhi Kumari
cde449925b
UX Multichain: updated margin top for assets tab (#19071)
* updated margin top for assets tab

* remove changes from yml file

* remove changes from yml file
2023-05-09 11:32:56 -05:00
Dominik Rudzki
4cb3284136
Fix popover scroll button WhatsNewPopup hiding (#19017)
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2023-05-09 11:32:29 -05:00
David Walsh
09b113e0df
Fix #19060 - Ensure there's multiple accounts before focusing search (#19062) 2023-05-09 07:38:36 -05:00
David Walsh
124678e701
Fix #19059 - Show network picker when locked (#19063) 2023-05-09 01:06:54 -07:00
David Walsh
ecea162b10
UX: Multichain: Update deprecated variables (#19058) 2023-05-09 01:05:47 -07:00
David Walsh
b981377304
UX: Multichain: Disable network and account picker when necessary (#18909) 2023-05-08 12:32:39 -05:00
Dhruv
c4e7b5532d
Changes to custody-labels.js (#19038) 2023-05-08 12:28:46 -05:00
David Walsh
995887aa92
UX: Multichain: Ensure network picker renders properly for long and short names (#18974)
* UX: Multichain: Ensure network picker renders properly for long and short network names

* Updatte ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.js

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.scss

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Update ui/components/multichain/app-header/app-header.scss

Co-authored-by: George Marshall <george.marshall@consensys.net>

* Fix jest issue

---------

Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-05-08 09:50:13 -05:00
David Walsh
90630edef7
Fix #18916 - UX: Multichain: Network picker design updates (#18962)
* Remove border radius from network menu list

* Provide background color for test network avatars

* Make button size large

* Update ui/components/multichain/network-list-item/network-list-item.js

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>

* Fix lint

---------

Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
2023-05-08 09:50:04 -05:00
Harsh Shukla
4ad281c806
Part of #17670 & #18714: Replace Typography with Text component: nft-details.js (#18771)
* Update nft-details.js

* Update nft-details.test.js.snap

* Update nft-details.js

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update ui/components/app/nft-details/nft-details.js

Co-authored-by: George Marshall <georgewrmarshall@gmail.com>

* Update nft-details.test.js.snap

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-05-08 19:52:33 +05:30
António Regadas
7ebd561ff9
[MMI] adds mmi logic in home view (#18960)
* adds mmi logic to home container

* adds code fences to home component

* adds code fences to home component

* lint fix

* lint fix

* updates fences and runs prettier

* version bump

* clean up code fence
2023-05-08 15:09:00 +01:00
David Walsh
a5494fc637
UX: Multichain: Account Details Fixes (#18999)
* Fix account details editable label

* Fix font-weight of the password label

* Remove duplicate error

* Hide password warning on first screen after bad password, autofocus password field

* Fix jest failure

* Restore className
2023-05-08 09:03:34 -05:00
Harsh Shukla
dd04913e7e
Working on some lint issues in 2 files. (#18633)
* Addressed some lint issues.

* Worked on the mentioned lint issue.

* Worked on the CRLF lint issues.

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2023-05-08 08:55:25 -05:00