1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00
metamask-extension/.storybook
Erik Marks cef95f8733
Stop storing request and response objects in the permission activity log (#14485)
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.
2022-04-21 08:44:15 -07:00
..
__mocks__ unbreak storybook (#14059) 2022-03-18 19:04:59 -05:00
actions
i18n-party-addon
images Installing design tokens and writing docs in storybook (#13657) 2022-02-22 18:26:11 -08:00
initial-states/approval-screens
reducers
1.INTRODUCTION.stories.mdx Updating storybook docs (#13055) 2022-01-07 12:30:37 -08:00
2.DOCUMENTATION.stories.mdx Updating storybook docs (#13055) 2022-01-07 12:30:37 -08:00
3.COLORS.stories.mdx Installing design tokens and writing docs in storybook (#13657) 2022-02-22 18:26:11 -08:00
i18n.js
locales.js
main.js unbreak storybook (#14059) 2022-03-18 19:04:59 -05:00
manager.js
metamask-storybook-theme.js Dark Mode: Create Theme-friendly top left logo component (#13897) 2022-03-11 10:45:13 -06:00
metametrics.js Renamed metametrics.new.js to metametrics.js (#14327) 2022-04-01 14:11:12 -05:00
preview-body.html
preview-head.html
preview.js Dark Theme setup and button theming (#13651) 2022-02-25 14:11:22 -08:00
README.md
test-data.js Stop storing request and response objects in the permission activity log (#14485) 2022-04-21 08:44:15 -07:00

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.