1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages
Mark Stacey f763979bed
Add support for one-click onboarding (#7017)
* Add support for one-click onboarding

MetaMask now allows sites to register as onboarding the user, so that
the user is redirected back to the initiating site after onboarding.
This is accomplished through the use of the `metamask-onboarding`
library and the MetaMask forwarder.

At the end of onboarding, a 'snackbar'-stype component will explain to the
user they are about to be moved back to the originating dapp, and it will
show the origin of that dapp. This is intended to help prevent phishing
attempts, as it highlights that a redirect is taking place to an untrusted
third party.

If the onboarding initiator tab is closed when onboarding is finished,
the user is redirected to the onboarding originator as a fallback.

Closes #6161

* Add onboarding button to contract test dapp

The `contract-test` dapp (run with `yarn dapp`, used in e2e tests) now
uses a `Connect` button instead of connecting automatically. This
button also serves as an onboarding button when a MetaMask installation
is not detected.

* Add new static server for test dapp

The `static-server` library we were using for the `contract-test` dapp
didn't allow referencing files outside the server root. This should
have been possible to work around using symlinks, but there was a bug
that resulted in symlinks crashing the server.

Instead it has been replaced with a simple static file server that
will serve paths starting with `node_modules` from the project root.
This will be useful in testing the onboarding library without vendoring
it.

* Add `@metamask/onboarding` and `@metamask/forwarder`

Both libraries used to test onboarding are now included as dev
dependencies, to help with testing. A few convenience scripts
were added to help with this (`yarn forwarder` and `yarn dapp-forwarder`)
2019-11-22 13:03:51 -04:00
..
add-token Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
confirm-add-suggested-token Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
confirm-add-token Enable indent linting via ESLint (#6936) 2019-07-31 10:17:11 -10:00
confirm-approve Show transaction fee units on approve screen (#7468) 2019-11-19 09:41:28 -04:00
confirm-deploy-contract Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-ether Disable unnecessary curly braces in JSX (#7454) 2019-11-18 11:38:47 -03:30
confirm-send-token
confirm-token-transaction-base Fix confirm token transaction amount display (#7081) 2019-08-31 13:26:49 -03:00
confirm-transaction Refactor signature-request-original (#7415) 2019-11-20 18:03:49 -04:00
confirm-transaction-base Enforce a single boolean attr notation in JSX (#7465) 2019-11-18 19:53:41 -03:30
confirm-transaction-switch 4byte fallback (#6551) 2019-06-18 09:47:14 -02:30
create-account Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
first-time-flow Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00
home Add migration notification for users with Sai (#7450) 2019-11-18 18:16:28 -03:30
keychains Add migration on 3box imports and remove feature flag (#7209) 2019-09-26 03:24:52 -04:00
lock
mobile-sync Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
provider-approval Fix provider approval metadata (#7349) 2019-11-04 17:28:50 -04:00
routes Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
send Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
settings Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30
unlock-page
index.js
index.scss Redesign approve screen (#7271) 2019-11-05 11:43:48 -03:30