1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/app
Mark Stacey 80746e67b5 Improve Sentry state pre-initialization (#20491)
* Improve Sentry state pre-initialization

Previously the masked state snapshot sent to Sentry would be blank for
errors that occured during initialization. Instead we'll now include
some basic information in all cases, and a masked copy of the persisted
state if it happens after the first time the persisted state is read.

* Add test

* Fix crash when persisted state not yet fetched

* Add descriptions for initial state hooks

* Update comments to reflect recent changes

* Re-order imports to follow conventions

* Move initial state hooks back to module-level

The initial state hooks are now setup at the top-level of their module.
This ensures that they're setup prior to later imports. Calling a
function to setup these hooks in the entrypoint module wouldn't
accomplish this even if it was run "before" the imports because ES6
imports always get hoisted to the top of the file.

The `localStore` instance wasn't available statically, so a new state
hook was introduced for retrieving the most recent retrieved persisted
state.

* Fix error e2e tests
2023-08-17 14:22:31 -02:30
..
_locales Fix #20162 - Add Whats New for Global Menu (#20244) 2023-07-28 20:48:40 -02:30
build-types fixes the stake a portfolio icons not showing (#19633) 2023-06-23 11:54:59 +02:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images Fix #20162 - Add Whats New for Global Menu (#20244) 2023-07-28 20:48:40 -02:30
manifest Update mv3 minimum version to chrome v88 (#19358) 2023-05-31 17:43:26 -02:30
scripts Improve Sentry state pre-initialization (#20491) 2023-08-17 14:22:31 -02:30
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
home.html [MMI] Conditional change title in home if buildType is MMI (#17898) 2023-03-02 10:18:46 -06:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html [MMI] Added custom title for institutional (#19844) 2023-06-30 15:53:55 +02:00
popup.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
trezor-usb-permissions.html chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00