1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00
metamask-extension/ui
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
..
__mocks__ Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
components Fix 'Global Menu Explorer / Account Details' What's New (#20371) 2023-08-03 13:49:32 -02:30
contexts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
css Fix #18423 - Ensure token details stay within dropdown (#19626) 2023-06-21 16:28:53 -05:00
ducks Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens (#20388) 2023-08-03 18:22:17 -02:30
helpers Add improved downloading logic when exporting state logs (#19872) 2023-07-27 15:45:51 -02:30
hooks fix(clipboard): Increase DEFAULT copy to clipboard time (#20008) 2023-07-27 15:59:16 -02:30
pages Improvements to Swaps quote auto-selection logic, fix and edge case with zero-balance tokens (#20388) 2023-08-03 18:22:17 -02:30
selectors Fix 'Global Menu Explorer / Account Details' What's New (#20371) 2023-08-03 13:49:32 -02:30
store Add additional Sentry E2E tests (#20425) 2023-08-16 14:46:53 -02:30
index.js Improve Sentry state pre-initialization (#20491) 2023-08-17 14:22:31 -02:30
index.test.js Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00