mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
cef95f8733
We currently store the JSON-RPC request and response objects in the permission activity log. The utility of doing this was always rather dubious, but never problematic. Until now. In Flask, as the restricted methods have expanded in number, user secrets may be included on JSON-RPC message objects. This PR removes these properties from the permission activity log, and adds a migration which does the same to existing log objects. We don't interact with the log objects anywhere in our codebase, but we don't want unexpected properties to cause errors in the future should any log objects be retained. This PR also updates relevant tests and test data. It makes a minor functional change to how a request is designated as a success or failure, but this should not change any behavior in practice. |
||
---|---|---|
.. | ||
__mocks__ | ||
actions | ||
i18n-party-addon | ||
images | ||
initial-states/approval-screens | ||
reducers | ||
1.INTRODUCTION.stories.mdx | ||
2.DOCUMENTATION.stories.mdx | ||
3.COLORS.stories.mdx | ||
i18n.js | ||
locales.js | ||
main.js | ||
manager.js | ||
metamask-storybook-theme.js | ||
metametrics.js | ||
preview-body.html | ||
preview-head.html | ||
preview.js | ||
README.md | ||
test-data.js |
Storybook
We're currently using Storybook as part of our design system. To run Storybook and test some of our UI components, clone the repo and run the following:
yarn
yarn storybook
You should then see:
info Storybook started on => http://localhost:6006/
In your browser, navigate to http://localhost:6006/ to see the Storybook application. From here, you'll be able to easily view components and even modify some of their properties.