Ariella Vu
b898115bad
Jest: Add browser.runtime (webextension-polyfill) utils tests ( #16483 )
...
* jest: add browser-runtime.utils tests
* browser-runtime.utils: rm checkForLastErrorAndWarn
- will be removing use in https://github.com/MetaMask/metamask-extension/pull/16488
2 years ago
George Marshall
be5d70623e
Adding some propType fixes to `TextFieldBase` ( #16508 )
...
* Adding some propType fixes
* lint fixes
2 years ago
George Marshall
6907c4a565
Adding `TextFieldSearch` component ( #16296 )
...
* Adding TextFieldSearch component
* Updating docs and stories
* Moving controlled test into testing utils
* Fixing spelling in prop types af => of
2 years ago
Dan J Miller
0a5c46b156
Prevent user from editing a contract interaction created by a dapp ( #16498 )
...
* Prevent user from editing a contract interaction created by a dapp
* Code cleanup
* Fix e2e test selector
* Fix e2e test
* Fix e2e test
* Update snapshot
2 years ago
Brad Decker
c9527e745f
upgrade gulp-autoprefixer ( #16439 )
2 years ago
Garrett Bear
dcf79b0c99
Feat/16185/button primary housekeeping ( #16457 )
...
* ButtonPrimary housekeeping
* use sizes
* update test and danger type
2 years ago
Nidhi Kumari
780728daa8
added 50% border radius support to the Box component ( #16486 )
...
* added 50% border radius support to the Box component
* added height and width
* fixed lint issue
2 years ago
Andy Pan
4937bb465a
[i18n:zh_tw] Sync and update translation for zh_TW ( #11212 )
...
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2 years ago
Adnan Sahovic
bf1db006fd
Added a 'Verify contract details' link to SetApprovalForAll confirmation screens ( #15756 )
2 years ago
Ariella Vu
a87c1750b0
MV3: Update service worker restart logic and keep-alive logic for dapp support ( #16075 )
...
* dapp: add debug statements
* dapp: add retry logic [debug]
* dapp: keep SW alive on rpc request
* Revert "dapp: add debug statements"
This reverts commit ea21786f7f66c712eea02405cd68fe925d227ffa.
* dapp: try to set up ext streams asap on reset
* dapp: apply keep alive logic to phishingPageStream
* dapp:put keep-alive logic behind isManifestV3 flag
* Re-activate streams after a period of service worker in-activity
* dapp: rm extra function
* dapp: update phishing onDisconnect
* dapp: fix eslint missing global chrome
* add EXTENSION_MESSAGES const
* use EXTENSION_MESSAGES more generic comment
* update comment
* dapp: clean timeout and interval
* Fix DAPP action replay
* execute DAPP action replay for only MV3
* fix
* fix
* fix
* comment out DAPP action replay code
* fix
* fix
* fix
* scripts/background: use browser polyfill
* Revert "scripts/background: use browser polyfill"
This reverts commit 2ab6234d11b3b11e10dd993d454eeaad63bfc886.
* scripts/background: use browser polyfill
* script/background: check lastError
* dapp: use EXTENSION_MESSAGES
* scripts/background: send ready msg to all tabs
* dapp: update onMessage handler comment and name
* dapp: return values onMessage listener
see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage#addlistener_syntax
* dapp: mv onMessage listener
* dapp: add onMessage setupPhishingExtStreams
* dapp: rn reset -> destroy streams
* dapp: rn reset -> destroy for phishing streams
* dapp: clean comment
* dapp: rm unused comments
planning to be readded in follow-up PR: #16250
* dapp: onMessage return Promise|undefined
* dapp:clean: add missing undefined return type
* dapp: use new checkForErrorAndLog for Chrome API
handy stackoverflow: https://stackoverflow.com/a/28432087/4053142
* dapp:fix: return tabs.query result
* dapp:eslint: return undefined
fix Expected to return a value at the end of arrow
function.eslintconsistent-return
* background: do not query tabs w/out url
* background: rm Could not establish... catch
- no longer needed after improved tabs query
* dapp:clean: rm unused checkForError... for now...
* dapp: prevent setupExtensionStreams called twice
- calling connect will trigger disconnect and may cause issues
- only setup streams if they are not connected
* dapp: handle onDisconnect lastError
- throwing errors from contentscript will break the dapp, so only warn
- not handling lastError when it's found will also break the dapp
* background: update tabs.query url comment
* background: update tabs.query url comment 2
* dapp: fix SW restart for multi dapp support
- ref: https://stackoverflow.com/a/54686484/4053142
* dapp:clean: rm extra "." from console.warn
* clean: comments for dapp and background
* Adding catch block (#16454 )
* fix: FireFox provider injection
* lib/util: fix invalid checkForErrorAndWarn export
* bg: add explanation for tabs.sendMessage catch
* dapp: add browser-runtime.utils
* runtime.utils: add checkForLastErrorAndLog
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2 years ago
Mark Stacey
3a19c9c109
Merge pull request #16476 from MetaMask/master-sync
...
Sync develop with master v10.22.0
2 years ago
Peter Yinusa
b2293e6648
[e2e]: log exceptions when tests fail ( #16453 )
...
* log exceptions inc background
* show full stacktrace
* use driver api
* lint
2 years ago
Frederik Bolding
8f30e03613
[FLASK] Fix an issue with updating snaps that have caveat permissions ( #16473 )
2 years ago
seaona
d58025d142
Merge branch 'master' into master-sync
2 years ago
Mark Stacey
308033edbf
Merge pull request #16353 from MetaMask/Version-v10.22.0
...
Version v10.22.0
2 years ago
seaona
d4d8a8a13d
Add Changelog entry for fix Network form by validating chainId
2 years ago
Alex Donesky
68684bfd11
fix chainId validation on network form ( #16452 )
2 years ago
Alex Donesky
b2e621b5f9
fix chainId validation on network form ( #16452 )
2 years ago
David Walsh
de0f1ec51b
BETA - Update verbiage for success messages after onboarding ( #16343 )
2 years ago
George Marshall
9821c59e11
`TextField` component updates ( #16424 )
...
* Updating showClearButton prop name and making component dumber
* Docs update
* Adding missing proptype
* Fixing casing on tests
* Replacing clear button placeholder with ButtonIcon and docs update
* Fixing linting issues
* Adding note about controlled only for showClearButton to work and fixing some tests
* Updating test to include controlled testing setup function for clearButton tests
2 years ago
Adnan Sahovic
568683d1c5
Warning on a Send transaction request ( #16220 )
2 years ago
Daniel Liu
4b08d2ecf8
docs: fix obsolete link of nvm in README.md ( #16238 )
...
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2 years ago
Dan J Miller
1db38adf4c
Call onbootcleanup at the end of the tx controller constructor ( #16449 )
...
* Call onbootcleanup at the end of the tx controller constructor
* Update app/scripts/controllers/transactions/index.js
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2 years ago
Dan J Miller
5a28a7bd6d
Call onbootcleanup at the end of the tx controller constructor ( #16449 )
...
* Call onbootcleanup at the end of the tx controller constructor
* Update app/scripts/controllers/transactions/index.js
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2 years ago
Peter Yinusa
d39c0f8096
Upgrade geckodriver to latest version, run ci tests with Firefox v106.0.4 ( #16383 )
...
* update geckodriver
* update ff binary in ci
* dedupe
2 years ago
seaona
73ee36a972
Merge branch 'master' into Version-v10.22.0
2 years ago
Vladimir Saric
42be5a07d7
Replaced addresses by the address component on SignTypedData v4 signatures ( #16018 )
...
* Replaced addresses by the address component on SignTypedData v4 signatures
* Fixing signature-request e2e tests
* Modified scss file for signature-request message
* Using address component for rendering the addresses and bold label where hex address is not valid
* Modify the address component
* Added proper BEM syntax for class names and used Box and Typography
* FIxing e2e tests
* Commited requested changes from George and added storybook
* Review requested changes
* Created new component for rendering data in signature-request-message.js
* Fixing proper usage for getAccountName and getMetadataContractName selectors
* Fixing e2e tests
2 years ago
seaona
15c7530601
Changelog for 10.22.0 ( #16436 )
...
* Changelog for 10.22.0
* Update CHANGELOG.md Fix crash after restoring MetaMask if you had snaps installed
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
* Update CHANGELOG.md Fix a problem with displaying snaps transaction insight data
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
* Update CHANGELOG.md Improve transaction confirmation page performance
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2 years ago
Nidhi Kumari
4a247a95cb
Added Tag Url Component ( #16159 )
...
* added tag url file structure
* added tag url component
* updated args in tag url
* updated avatar favicon and button link in Tag url
* updated Text component in Tag URL
* added tests to the tag url component
* fixed typos
* replaced buttonbase with button link
* added lock icon to the tag-url component
* updated typo
* renamed style and prop names
* updated prop name and tests
* fixed name for tag in readme
* fixed test statements
* updated prop names
* updated story
* fixed typo in test file
* updated lock icon rendering and icon color
* updated lock icon prop
* updated README
* updated tests for tag url
* added snapshot testing
* updated Readme for tag url
* updated label as per src
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
2 years ago
George Marshall
67e0b60dcf
Update `TextFieldBase` to include InputComponent prop ( #16422 )
...
* Update TextFieldBase to include InputComponent
* Updating docs
* Adding test
* Update to docs
* Lint fixes
* Small doc fixe to remove some unneded spaces
2 years ago
Nidhi Kumari
ce9af8aac3
Added Picker Network Component ( #16340 )
...
* added file structure for picker-network
* updated accessory prop with props
* added tests and documentation to picker network
* updated picker network classnames
* updated custom tests for picker network
* updated css in picker network
* updated readme and stories
* added snapshot testing
* changed behaviour to button
* updated snapshot for button
* updated label as per src
2 years ago
David Walsh
35e25023d5
BETA - Update verbiage for success messages after onboarding ( #16343 )
2 years ago
Garrett Bear
03af17747b
Feat/15088/add button icon ( #16277 )
...
* 15088: add button icon
* button icon story updates
* add primary type
* update button icon docs
* add test
* button icon updates
* button icon and test updates
* button icon border radius and test update
* remove padding prop
* button icon updates
* Update ui/components/component-library/button-icon/button-icon.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button-icon/button-icon.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button-icon/button-icon.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* add aria label for storybook demo
Co-authored-by: George Marshall <george.marshall@consensys.net>
2 years ago
Garrett Bear
a28d727caf
Feat/16290/add button component ( #16305 )
...
* add button component
* add all button props
* update tests
* add button type prop
* fix base button size const
* add href prop to button base
* Update ui/components/component-library/button/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* update tests
* Update ui/components/component-library/button-primary/button-primary.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button/button.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button/button.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/component-library/button/button.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
* update button props on readme
* linting issue fix
Co-authored-by: George Marshall <george.marshall@consensys.net>
2 years ago
Peter Yinusa
6cca9892b2
refactor sentryHooks object ( #16435 )
2 years ago
Thomas Huang
25bb6ef861
Continue converting tests from enzyme to @testing-library/react ( #16401 )
2 years ago
David Walsh
f05acf8133
BETA - Update logo imagery ( #16304 )
...
* BETA - Update logo imagery
* Restore basic metamask rotating fox
* Adding story and updating colors
* Add beta to following logo
* New, square images
* Add 512 icon
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2 years ago
Peter Yinusa
07b39deb61
E2e remove redundant code ( #16432 )
...
* remove unused code
* remove unused code
2 years ago
Mark Stacey
6ff8044421
Remove obsolete builds ( #16430 )
...
The `brave` and `opera` builds are obsolete; in practice we have been
using the Chrome build for those browsers, because they are based upon
Chromium and are compatible with the Chrome extension API.
2 years ago
Adnan Sahovic
328626debe
Warning on a Send transaction request ( #16220 )
2 years ago
Michele Esposito
522eb72e49
chore: add bundle size diff to metamaskbot ( #16098 )
2 years ago
Guillaume Roux
d154cc78e4
[FLASK] Catch and display errors in snaps insight ( #16416 )
...
* snaps insight error catching and error state
* revert confirm-transaction-base changes
* display empty state if data is null
* add loading state
* reset errors and loading state on call
* update hasNoData
* update length check in component
2 years ago
David Drazic
5e746dcc2f
[FLASK] Add snap cronjobs ( #16239 )
...
* Add Cronjob controller configuration
* Add Cronjob permission icon and description
* Add lint fix changes
* Add missing action to the allow-list
* Fix permission
* Fix icon and message
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2 years ago
Nicholas Ellul
18f11fc0bc
Fix the rendering of certain domain names in connected-sites list ( #16074 )
...
* Fix rendering origins in connected-sites list
2 years ago
Olusegun Akintayo
aba3b94c1a
Fix orphaned data warning ( #16413 )
2 years ago
Daniel
1a9ebab828
Enable new networks for Swaps ( #16396 )
2 years ago
Jyoti Puri
6c0930899d
Make event tracking idempotent using unique messageId ( #16267 )
2 years ago
Niranjana Binoy
6f27c9065c
Fix to direct the token detection settings search to the correct row ( #16407 )
2 years ago
Frederik Bolding
02088e445d
Parallelize E2E tests to cut CI time in half ( #16417 )
...
* Experiment with parallellizing E2E
* Fix lint
* Try parallelism 8
* Apply suggestions from code review
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2 years ago
Filip Sekulic
f3efe5a0bd
Add improved token allowance experience toggle ( #16291 )
2 years ago