aboutsummaryrefslogtreecommitdiffstats
path: root/ui
Commit message (Collapse)AuthorAgeFilesLines
* Fix indentation of div.request-signature__rows code (#7045)Whymarrh Whitby2019-08-211-10/+10
|
* Add support for eth_signTypedData_v4 (#6930)Brendan Chou2019-08-211-3/+4
|
* Bug fixes for incoming transactions (#7043)Whymarrh Whitby2019-08-212-27/+11
| | | | | | * Fix styling of `.transaction-list` * Filter `incomingTxListSelector` by network as well * Start and stop block tracker polling in incoming tx controller * Add fetch with abort in bg for `IncomingTxController`
* Fetch & display received transactions (#6996)Dan J Miller2019-08-176-26/+67
|
* Revert "[ImgBot] Optimize images" (#7027)Whymarrh Whitby2019-08-1625-0/+0
| | | | | | This reverts commit 45534d9908b9a495e2afcbe8a04343b0bb4ee6a5. I'm reverting this commit due to trust issues with the author, these images can be re-optimized.
* Connections settings tab (#7013)Whymarrh Whitby2019-08-1616-163/+235
| | | | | | | | | | | | * Nix notification for Share Address * Add Connections settings tab in place of privacy mode toggle * Split ProviderApprovalController into two stores * Remove privacyMode feature flag altogether * Add migration to remove privacyMode feature flag
* Using translated string for end of flow messaging (#7021)ryanml2019-08-161-1/+1
|
* Rename Contacts List settings tab to Contacts (#7018)Whymarrh Whitby2019-08-152-2/+2
|
* Address book fixes (#6978)Dan J Miller2019-08-147-30/+38
| | | | | | | | | | * Ensure address book send flow correctly matches address book addresses to ens addresses * Use nodify on background.setAddressBook to receive correct result in actions.js * Better error handling for actions.js addToAddressBook * Eliminate unnecessary data normalization and move more data manipluation to ens-input and send-content containers
* Remove unused lostAccounts state (#6979)Whymarrh Whitby2019-08-094-27/+0
|
* Show recipient alias in confirm header if exists (#6944)Kristian Tapia2019-08-095-3/+14
|
* Merge remote-tracking branch 'origin/develop' into Version-v7.0.0Mark Stacey2019-08-071-3/+8
|\ | | | | | | | | * origin/develop: Update mobile sync (#6967)
| * Update mobile sync (#6967)Bruno Barbieri2019-08-071-3/+8
| | | | | | | | | | | | * update mobile sync * update lockfile
* | Prevent hidden popup overlayMark Stacey2019-08-072-15/+19
|/ | | | | | | | | | | | A hidden overlay was preventing interactions with the lower 356 pixels in the popup view when there are zero notifications. It was also preventing interactions with the 100 pixels above the notifications in the case where there were two notifications, which obscured the `Send` button. The first problem was solved by ensuring the notification wrapper isn't rendered when there are no notifications. The second problem was solved by updating the notification wrapper style to avoid setting a height.
* Only show notification expand icon when there are > 1 notifications that ↵Dan J Miller2019-08-061-5/+4
| | | | 'shouldBeRendered' (#6965)
* Show seed phrase challenge in browser (#6961)Dan J Miller2019-08-068-38/+39
| | | | | | | | * Open backup challenge screen, prompted from notification, in browser window * Remove no longer used showingSeedPhraseBackupAfterOnboarding related code * Make incremental-security.spec.js click through the seed phrase success screen
* Ensure showing of add contact dialog on send accounts for checksum inputsDan Miller2019-08-061-1/+1
|
* Address book name save fix (#6945)Dan J Miller2019-08-034-4/+17
| | | | | | | | | | | | * Fix address book name saving and ens input errors on good inputs on unsupported networks * Add initial e2e test for address book send flow. * No longer need to click recipient row in e2e tests * Click write button in address book e2e test on seed confirm screen * Use correct seed phrase and private key in address-book.spec tests
* New notification fixes (#6955)Dan J Miller2019-08-0313-173/+200
| | | | | | | | | | | | | | | | | | | | * Replace use of backup-notification with use of home notification * Pin notifications relative to window * Remove unneeded isRequired condition on some home.component properties * Refactor rendering of home notifications * UX for multiple notifications * Adds dismissal to provider request notification. * Fix test failures The e2e tests have been updated to reference `home-notification` classnames instead of the removed `background-notification`. The active tab proptypes and default values were updated as well.
* Restrict unconnected notice to specific protocols (#6954)Mark Stacey2019-08-031-1/+8
| | | | | | | | | | | | | | | | | The notice asking whether you wanted to connect to a site was showing up in places it shouldn't, like on the Firefox/Chrome settings pages and on our fullscreen extension. It has now been restricted to only be displayed for active tabs with specific protocols: * http * https * dat * dweb * ipfs * ipns * ssb This prevents the notice from being shown on settings pages, browser extensions, and files such as PDFs.
* Display seed phrase reminder if user has tokens (#6952)Mark Stacey2019-08-031-1/+2
| | | | | | | | | The seed phrase reminder will now be triggered if the user has eth *OR* if the user has added a token. This is to ensure that a user can't have a positive token balance without being reminded to backup the account. Checking for the token in preferences was easier than checking the actual token balance, because the token balance is not yet in Redux. That would require a more substantial refactor.
* Fixes use of 'Enter' key to save contact in address book modal (#6946)Dan J Miller2019-08-021-1/+1
|
* split AccountDetails into a separate component (#6943)Christopher Cooper2019-08-027-154/+201
|
* I5849 incremental account security (#6874)Dan J Miller2019-08-0226-25/+375
| | | | | | | | | | | | | | | | | | | | | | | | * Implements ability to defer seed phrase backup to later * Adds incremental-security.spec.js, including test dapp that sends signed tx with stand alone localhost provider * Update metamask-responsive-ui for incremental account security changes * Update backup-notification style and fix responsiveness of seed phrase screen * Remove uneeded files from send-eth-with-private-key-test/ * Apply linguist flags in .gitattributes for send-eth-with-private-key-test/ethereumjs-tx.js * Improve docs in controllers/onboarding.js * Clean up metamask-extension/test/e2e/send-eth-with-private-key-test/index.html * Remove unnecessary newlines in a couple first-time-flow/ files * Fix import of backup-notification in home.component * Fix git attrs file
* Remove logging of network dropdown props (#6940)Thomas Huang2019-08-021-1/+0
|
* Default Privacy Mode to ON, allow force sharing address (#6904)Whymarrh Whitby2019-08-0110-4/+331
|
* Enable indent linting via ESLint (#6936)Whymarrh Whitby2019-08-0165-820/+820
| | | | | | * Enable indent linting via ESLint * yarn run lint:fix
* Address book send plus contact list (#6914)Dan J Miller2019-08-0181-813/+3644
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Style Send Header * Move Send to-row to send view and restyle * Add "Recents" group to select recipient view * Rename SendToRow to AddRecipient * Basic UI and Layout * New ENSInput component * wip - fuzzy search for input * small refactor * Add Dialog * contact list initial * initial error on invalid address * clean up edit * Click to open modal * Create AddToAddressBookModal component * Modal styling and layout * modal i18n * Add to Addressbook * ens wip * ens wip * ENS Resolution * Reset input * Send to explicit address * Happy Path Complete * Add back error checking * Reset send-to when emptying input * Add back warning object * Fix linter * Fix unit test #1 - fix import paths * Remove dead tests * One more to go * Fix all unit tests * add unit test for reducers and actions * test rendering AddRecipient * Add tests for dialog boxes in AddRecipient * Add test for validating * Fix linter * Fix e2e tests * Token send e2e fix * Style View Contact * Style edit-contact * Fix e2e * Fix from-import-beta-ui e2e spec * Make section header say "add recipient” by default * Auto-focus add recipient input * Update placeholder text * Update input title font size * Auto advance to next step if user paste a valid address * Ellipsify address when recipient is selected * Fix app header background color on desktop * Give each form row a margin of 16px * Use .container/.component naming pattern for ens-input * Auto-focus on input when add to addressbook modal is opened; Save on Enter * Fix and add unit test * Fix selectors name in e2e tests * Correct e2e test token amount for address-book-send changes * Adds e2e test for editing a transaction * Delete test/integration/lib/send-new-ui.js * Add tests for amount max button and high value error on send screen to test/e2e/metamask-ui.spec.js * lint and revert to address as object keys * add chainId based on current network to address book entry * fix test * only display contacts for the current network * Improve ENS message when not found on current network * Add error to indicate when network does not support ENS * bump gaba * address book, resolve comments * Move contact-list to its own component * De-duplicate getaddressbook selector and refactor name selection logic in contact-list-tab/ * Use contact-list component in contact-list-tab.component (i.e. in settings) * Improve/fix settings headers for popup and browser views * Lint fixes related to address book updates * Add 'My accounts' page to settings address book * Update add new contact button in settings to match floating circular design * Improve styles of view contact page * Improve styles and labels of the add-contact.component * Further lint fixes related to address book updates * Update unit tests as per address book updates * Ensure that contact list groups are sorted alphabetically * Refactor settings component to use a container for connection to redux; allow display of addressbook name in settings header * Decouple ens-input.component from send context * Add ens resolution to add contact screen in settings * Switching networks when an ens address is shown on send form removes the ens address. * Resolve send screen search for ensAddress to matching address book entry if it exists * Show resolved ens icon and address if exists (settings: add-contact.component) * Make the displayed and copied address in view-contact.component the checksummed address * Default alias state prop in AddToAddressBookModal to empty string * Use keyCode to detect enter key in AddToAddressBookModal * Ensure add-contact component properly updates after QR code detection * Fix display of all recents after clicking 'Load More' in contact list * Fix send screen contact searching after network switching * Code cleanup related to address book changes * Update unit tests for address book changes * Update ENS name not found on network message * Add ens registration error message * Cancel on edit mode takes user back to view screen * Adds support for memo to settings contact list view and edit screens * Modify designs of edit and view contact in popup environment * Update settings content list UX to show split columns in fullscreen and proper internal navigation * Correct background address book API usages in UI
* Hide Copy Tx ID and block explorer link for txns w/o hash (#6928)Whymarrh Whitby2019-07-302-1/+72
|
* Remove unused props from routes and network dropdown (#6919)Mark Stacey2019-07-292-67/+5
| | | These props were discovered to be unused while I was working on #6680
* Override `ownProps` with state props in `SignatureRequest` (#6911)Mark Stacey2019-07-262-9/+1
| | | | | | | | | | | | | The `accounts` prop of `SignatureRequest` was throwing a PropType warning because `accounts` was an object instead of an array. It looks like when the `mergeProps` function was added in #6340, the ownProps were accidentally set to override the state props. The now ignored props have been removed from the parent `ConfirmTxScreen` component as well. `conversionRate` was identical to the one retrieved in `SignatureRequest`, and `selectedAddress` differed only in the fallback behaviour when `state.metamask.selectedAddress` does not exist; it will now default to the first account instead (as was the original behavior, prior to #6340).
* Remove `seedWords` completely from metamask state (#6920)Mark Stacey2019-07-267-157/+6
| | | | | | | | | | | | | | | | `seedWords` used to be stored on the metamask state temporarily at certain points. This hasn't been the case since #5994, but references to this state remained. All of the logic remained for correctly updating these `seedWords`, handling them during navigation, and scrubbing them from the state. However the state was never updated in practice. The `seedWords` are still returned by `verifySeedPhrase`, and they're still stored in component state in a few places. But they aren't ever set in the Redux metadata state or the Preferences controller. All references to this state have been removed, along with any logic for interacting with this state. A few unused actions were removed as well.
* Remove unused route constants (#6918)Mark Stacey2019-07-261-12/+0
| | | These constants were not referenced outside of this file
* Remove unused `seedPhrase` prop (#6913)Mark Stacey2019-07-251-8/+1
| | | | The `seedPhrase` prop has not been passed into the `first-time-flow-switch` component since #5994.
* Remove `AccountDropdownMini` component (#6906)Mark Stacey2019-07-257-257/+33
| | | | | | | | The `AccountDropdownMini` component featured the ability to switch accounts using a dropdown, but this functionality was disabled in #6024. It has been acting as a restyled `AccountListItem` since then. The component has been removed, and the style changes moved to the sole parent component (`RequestSignature`).
* Remove unused `time-remaining` component (#6912)Mark Stacey2019-07-258-98/+22
| | | | | | The `time-remaining` component hasn't been used since #5704, aside from a few styles. Those styles have been integrated into the `advanced-tab-content` styles, and the unused component has been deleted.
* Single asset dropdown fix (#6900)Kristian Tapia2019-07-243-2/+20
| | | | | | | | * Disable open dropdown for single asset * add test to check single asset in dropdown * fix lint errors, remove unused import
* Serve CSS as an external file (#6894)Mark Stacey2019-07-242-25/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The CSS is now served as an external file instead of being injected. This was done to improve performance. Ideally we would come to a middle ground between this and the former behaviour by injecting only the CSS that was required for the initial page load, then lazily loading the rest. However that change would be more complex. The hope was that making all CSS external would at least be a slight improvement. Performance metrics were collected before and after this change to determine whether this change actually helped. The metrics collected were the timing events provided by Chrome DevTools: * DOM Content Loaded (DCL) [1] * Load (L) [2] * First Paint (FP) [3] * First Contentful Paint (FCP) [3] * First Meaningful Paint (FMP) [3] Here are the results (units in milliseconds): Injected CSS: | Run | DCL | L | FP | FCP | FMP | | :--- | ---: | ---: | ---: | ---: | ---: | | 1 | 1569.45 | 1570.97 | 1700.36 | 1700.36 | 1700.36 | | 2 | 1517.37 | 1518.84 | 1630.98 | 1630.98 | 1630.98 | | 3 | 1603.71 | 1605.31 | 1712.56 | 1712.56 | 1712.56 | | 4 | 1522.15 | 1523.72 | 1629.3 | 1629.3 | 1629.3 | | **Min** | 1517.37 | 1518.84 | 1629.3 | 1629.3 | 1629.3 | | **Max** | 1603.71 | 1605.31 | 1712.56 | 1712.56 | 1712.56 | | **Mean** | 1553.17 | 1554.71 | 1668.3 | 1668.3 | 1668.3 | | **Std. dev.** | 33.41 | 33.43 | 38.16 | 38.16 | 38.16 | External CSS: | Run | DCL | L | FP | FCP | FMP | | :--- | ---: | ---: | ---: | ---: | ---: | | 1 | 1595.4 | 1598.91 | 284.97 | 1712.86 | 1712.86 | | 2 | 1537.55 | 1538.99 | 199.38 | 1633.5 | 1633.5 | | 3 | 1571.28 | 1572.74 | 268.65 | 1677.03 | 1677.03 | | 4 | 1510.98 | 1512.33 | 206.72 | 1607.03 | 1607.03 | | **Min** | 1510.98 | 1512.33 | 199.38 | 1607.03 | 1607.03 | | **Max** | 1595.4 | 1598.91 | 284.97 | 1712.86 | 1712.86 | | **Mean** | 1553.8025 | 1555.7425 | 239.93 | 1657.605 | 1657.605 | | **Std. dev.** | 29.5375 | 30.0825 | 36.88 | 37.34 | 37.34 | Unfortunately, using an external CSS file made no discernible improvement to the overall page load time. DCM and L were practically identical, and FCP and FMP were marginally better (well within error margins). However, the first paint time was _dramatically_ improved. This change seems worthwhile for the first paint time improvement alone. It also allows us to delete some code and remove a dependency. The old `css.js` module included two third-party CSS files as well, so those have been imported into the main Sass file. This was easier than bundling them in the gulpfile. The resulting CSS bundle needs to be served from the root because we're using a few `@include` rules that make this assumption. We could move this under `/css/` if desired, but we'd need to update each of these `@include` rules. Relates to #6646 [1]: https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded [2]: https://developer.mozilla.org/en-US/docs/Web/Events/load [3]: https://developers.google.com/web/fundamentals/performance/user-centric-performance-metrics
* Targets base inputs and only prevents outline if user uses a mouse (#6871)Terry Smith2019-07-174-9/+8
|
* Broke the close notification window logic out into it's own action. (#6864)Terry Smith2019-07-161-48/+36
|
* Re enable the setMouseUserState styles. (#6860)Terry Smith2019-07-163-2/+9
| | | Typo
* Remove stray period from Learn More link (#6853)Whymarrh Whitby2019-07-161-1/+1
|
* Add eslint dependency (#6842)Mark Stacey2019-07-151-2/+0
| | | | | | | | We had forgotten to add `eslint` as a dependency, even though we use it directly. It had always worked because we have dependencies that also depend upon it. `eslint` has also been updated to v6, which necessitated two minor changes.
* Add translation support for Learn more and All done on end-of-flow (#6847)Terry Smith2019-07-151-2/+2
|
* Merge pull request #6832 from MetaMask/master-rebasedThomas Huang2019-07-136-77/+215
|\ | | | | Master rebased
| * Version 6.7.2 gas limit fix (#6786)Dan J Miller2019-07-056-77/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce delay for eth_estimateGas calls with in test * Add test that fails when gas estimates of contract method calls without gas are too high. * Get transaction gas data from unApprovedTxs instead of confirmTransaction * Fix selection of gas data in gas-modal-page-container.container * Lint changes related to Version-6.7.2-gasLimitFix * Fix e2e tests on Version-6.7.2-gasLimitFix * Fix unit and integration tests for changes from Version-6.7.2-gasLimitFix * more e2e fixes * Add assertions for transaction values on confirm screen * Fix display of transaction amount on confirm screen.
* | Remove unused expressions (#6839)Mark Stacey2019-07-123-7/+12
| | | | | | | | | | | | | | | | | | | | Unused expressions are generally a mistake, as they don't do anything. The exceptions to this rule (short-circuit expressions and ternary expressions) have been allowed. The `webrtc-adapter` was previously ignored by eslint because it has a side-effect upon being imported. I removed the local variable instead, which should preserve the same side-effect without making eslint complain.
* | Add React and Redux DevTools (#6793)Whymarrh Whitby2019-07-111-18/+15
| | | | | | | | | | | | | | | | | | * Add React and Redux DevTools * Conditionally load react-devtools * Add start:dev npm script to run the app with devtools Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* | Rename accountManager usages (#6790)Whymarrh Whitby2019-07-111-6/+6
| | | | | | | | Co-Authored-By: Mark Stacey <markjstacey@gmail.com>
* | Delete unused ui/example.js file (#6831)Whymarrh Whitby2019-07-111-123/+0
| |
* | [ImgBot] Optimize images (#1) (#6829)filmendless2019-07-1025-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *Total -- 5,450.78kb -> 4,473.66kb (17.93%) /images/404.png -- 38.48kb -> 11.19kb (70.91%) /images/deadface.png -- 8.14kb -> 4.50kb (44.67%) /images/cancel.png -- 10.67kb -> 6.04kb (43.38%) /app/images/key-32.png -- 1.08kb -> 0.68kb (37.66%) /app/images/coinswitch_logo.png -- 3.06kb -> 1.94kb (36.43%) /images/info-logo.png -- 31.80kb -> 20.43kb (35.77%) /docs/transaction-flow.png -- 137.82kb -> 91.38kb (33.7%) /ui/design/metamask-logo-eyes.png -- 142.65kb -> 94.94kb (33.45%) /images/coinbase logo.png -- 9.55kb -> 6.43kb (32.64%) /ui/design/chromeStorePics/screen_dao_accounts.png -- 505.47kb -> 347.03kb (31.34%) /docs/architecture.png -- 136.94kb -> 94.15kb (31.25%) /ui/design/chromeStorePics/screen_dao_locked.png -- 280.38kb -> 199.54kb (28.83%) /app/images/logo.png -- 6.43kb -> 4.58kb (28.81%) /ui/design/chromeStorePics/screen_wei_account.png -- 638.31kb -> 469.17kb (26.5%) /images/pw-128x128.png -- 92.76kb -> 69.18kb (25.42%) /app/images/pw128x128.png -- 92.76kb -> 69.18kb (25.42%) /app/images/shapeshift logo.png -- 17.13kb -> 13.54kb (20.92%) /ui/design/02b-metamask-AccDetails-Send.jpg -- 107.56kb -> 92.00kb (14.46%) /images/icon-128.png -- 5.63kb -> 4.82kb (14.45%) /ui/design/chromeStorePics/icon-128.png -- 5.63kb -> 4.82kb (14.45%) /ui/design/02a-metamask-AccDetails.jpg -- 114.81kb -> 99.73kb (13.14%) /ui/design/02a-metamask-AccDetails-OverTransaction.jpg -- 119.21kb -> 103.65kb (13.06%) /ui/design/02a-metamask-AccDetails-OverToken.jpg -- 118.99kb -> 103.62kb (12.92%) /ui/design/wireframes/metamask_wfs_jan_13.png -- 409.24kb -> 357.28kb (12.7%) /ui/design/chromeStorePics/screen_dao_notification.png -- 289.55kb -> 254.49kb (12.11%) /ui/design/05-metamask-Menu.jpg -- 127.21kb -> 111.93kb (12.01%) /app/images/ethereum-metamask-chrome.png -- 58.62kb -> 51.86kb (11.52%) /ui/design/chromeStorePics/final_screen_dao_accounts.png -- 243.86kb -> 217.46kb (10.82%) /ui/design/chromeStorePics/promo1400560.png -- 255.51kb -> 228.52kb (10.56%) /images/icon-512.png -- 41.09kb -> 36.95kb (10.08%) /ui/design/chromeStorePics/promo920680.png -- 201.87kb -> 181.88kb (9.9%) /ui/design/chromeStorePics/final_screen_wei_account.png -- 247.44kb -> 223.83kb (9.54%) /ui/design/chromeStorePics/final_screen_dao_locked.png -- 215.13kb -> 196.06kb (8.87%) /ui/design/chromeStorePics/final_screen_dao_notification.png -- 209.38kb -> 192.76kb (7.94%) /ui/design/00-metamask-SignIn.jpg -- 56.49kb -> 53.22kb (5.79%) /ui/design/03-metamask-Qr.jpg -- 64.50kb -> 60.89kb (5.6%) /ui/design/01-metamask-SelectAcc.jpg -- 74.28kb -> 70.34kb (5.3%) /ui/design/02-metamask-AccDetails.jpg -- 74.00kb -> 70.15kb (5.21%) /ui/design/chromeStorePics/promo440280.png -- 56.12kb -> 53.92kb (3.93%) /app/images/icon-64.png -- 3.49kb -> 3.40kb (2.66%) /ui/design/chromeStorePics/icon-64.png -- 3.49kb -> 3.40kb (2.66%) /images/pw-48x48.png -- 3.20kb -> 3.16kb (1.34%) /ui/design/chromeStorePics/final_screen_wei_notification.png -- 189.32kb -> 187.93kb (0.73%) /images/icon-32.png -- 1.69kb -> 1.68kb (0.46%)
* | Create MetaFoxLogo component (#6819)ryanml2019-07-1010-91/+73
| |
* | Address various UI styling issues (#6744)Dan J Miller2019-07-0915-173/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add loading spinner to pending tx status label. * Add border around account icon in top right * Change style of settings toggle buttons; wrap with local components * Eliminate large space after settings labels when no description * Remove network form from advanced tab of settings * Keep new account container height to contents when in full screen
* | Replace react-addons-css-transition-group (#6816)Mark Stacey2019-07-083-3/+3
| | | | | | | | | | | | | | | | | | This package is deprecated, and is incompatible with React v16. It has been replaced by `react-test-renderer`, which has a drop-in replacement for `react-addons-css-transition-group`. Strangely, `react-test-renderer` was already listed as a dependency despite not being used. I had to downgrade it, as the version already listed was for React v16, and we're still using React v15.
* | Declare variables before use (#6806)Mark Stacey2019-07-063-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While working on #6805, I noticed that many variables were being used before they were declared. Technically this worked fine in practice because we were using the `transform-es2015-block-scoping` Babel plugin, which transforms `let` and `const` to `var`, which is hoisted. However, after removing that Babel transformation, many things broke. All instances of variables or classes being used before declared have been fixed. The `no-use-before-define` eslint rule has been added to catch these cases going forward. The rule is disabled for function declarations for the moment, because those are always hoisted. We could disable that too if we want to, but it's purely stylistic and would require a lot more changes.
* | Check for invalid gas estimates from local storage (#6800)Mark Stacey2019-07-052-133/+347
|/ | | | | | | | | | | | | | | | | | | | | | | | * Remove unused state 'gas.basicPriceAndTimeEstimates' * Check for invalid estimates from local storage Gas estimates were being cached in local storage then later retrieved, but the retrieved values were not being checked. If the data failed to save, failed to load, or was cleared since being saved, it would result in the gas estimates being set to undefined. The estimates retrieved from local storage are now checked before they are used. If they are falsy, the estimates are retrieved from the network instead. This should fix this Sentry issue: [METAMASK-6W0T](https://sentry.io/share/issue/cfe470314a5741768b19050815322aa4/) A few additional changes were made to the gas-duck tests to accommodate the use of `sinon.restore`. `restore` is strongly recommended by the `sinon` team, as neglecting to use it can result in memory leaks. It has the additional benefit of ensuring you create fresh stubs/spies for each test, which means they no longer need to be reset between tests.
* Remove UiMigrationAnnouncement and associated state (#6794)Whymarrh Whitby2019-07-048-117/+0
|
* Reduce time to show tx "speed up" buttons to 5 seconds. (#6797)Dan Finlay2019-07-041-1/+1
|
* Fix PropType warning (#6792)Mark Stacey2019-07-041-1/+1
|
* Added Confirmation Modal for Delete Network (#6776)Akshit Kr Nagpal2019-07-028-17/+99
|
* Merge pull request #6765 from MetaMask/masterDan Finlay2019-07-027-14/+121
|\ | | | | Using admin privilege to bypass code owner review because it has already [been reviewed](https://github.com/MetaMask/metamask-extension/pull/6763) and those code owners are out today.
| * Fixes display of confirm screen token decimals by not relying on ↵Dan Miller2019-06-286-14/+117
| | | | | | | | confirmTransaction state.
| * Add simulation failure to tx confirmation when transaction simulationFailsThomas2019-06-261-0/+4
| |
* | Handle invalid strings during seed phrase import (#6743)Whymarrh Whitby2019-06-282-4/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests for ImportWithSeedPhrase#parseSeedPhrase * Handle importing whitespace-only seed phrases Fixes #6694 This changeset fixes our parsing of seed phrases during import to handle the case where a user tries to import a seed phrase that consists solely of whitespace. We no longer produce an error and instead treat it as an incorrect seed phrase. * Handle importing more invalid seed phrases
* | Fix seed phrase import back button (#6758)Mark Stacey2019-06-271-0/+1
| | | | | | | | | | | | | | The back button on the import seed phrase page leaves the Redux store with `appState.forgottenPassword` set to true, which prevents the user from logging in. That flag is now unset when the user leaves the page. Fixes #6740
* | Refactor account-details-modal (#6751)Mark Stacey2019-06-275-108/+116
| | | | | | | | | | | | | | | | | | Refactor the AccountDetailsModal to follow newer conventions. Changes include: - Create a directory for the component with separate files for the component, the container, and the entrypoint. - Use jsx rather than hyperscript Fixes #6741
* | Fixes #6760, correct PropTypes for nextRoute (#6761)ryanml2019-06-271-1/+1
| |
* | Remove shapeshift deposit form (#6746)Mark Stacey2019-06-255-342/+2
|/ | | Closes #6478
* 4byte fallback (#6551)Whymarrh Whitby2019-06-1820-262/+368
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds 4byte registry fallback to getMethodData() (#6435) * Adds fetchWithCache to guard against unnecessary API calls * Add custom fetch wrapper with abort on timeout * Use opts and cacheRefreshTime in fetch-with-cache util * Use custom fetch wrapper with timeout for fetch-with-cache * Improve contract method data fetching (#6623) * Remove async call from getTransactionActionKey() * Stop blocking confirm screen rendering on method data loading, and base screen route on transactionCategory * Remove use of withMethodData, fix use of knownMethodData, in relation to transaction-list-item.component * Load data contract method data progressively, making it non-blocking; requires simplifying conf-tx-base lifecycle logic. * Allow editing of gas price while loading on the confirm screen. * Fix transactionAction component and its unit tests. * Fix confirm transaction components for cases of route transitions within metamask. * Only call toString on id if truthy in getNavigateTxData() * Fix knownMethodData retrieval and data fetching from fourbyte
* Add delete to custom RPC form (#6718, #6650)Dan J Miller2019-06-178-59/+208
|
* Fix styles on 'import account' page, update help link (#6700)Kirill Goncharov2019-06-172-2/+5
| | | | | | * Fix styles on 'import account' page, update help link * Update changelog
* Wrap smaller custom block explorer url text (#6714)Thomas Huang2019-06-173-3/+13
|
* MetaMorph - Spacing and Typeface on Extension Main view (#6584)Chi Kei Chan2019-06-1315-44/+97
| | | | | | | | | | | | | | | | | | | | * wip * Style Update: Mobile App Header * wip * Style Update: mobile menu-bar * Style Update: Primary and Secondary balance on mobile main view * Style Update: Spacing for transaction-list and transaction-list-item * Address PR Comments * Fix full-width view * line-height fixes
* Feature: sync with mobile v2 (#6673)Esteban Miño2019-06-121-3/+26
| | | | | | | | | | * handle two steps * generate new qr each 30 secs * handle change of channel cipher without changing qr code * fix typo
* Revert "fixed #5524"Jenny Pollack2019-06-073-63/+10
| | | | This reverts commit c8cb4ba3705478a16cd1e39f8edc1f277bb2ede6.
* lint cleanupMathew Kamkar2019-05-251-2/+0
|
* Enable Ledger hardware wallet support on FirefoxMathew Kamkar2019-05-251-6/+0
| | | Firefox 67 support U2F by default
* Ensures that transactions cannot be confirmed if gas limit is below 21000. ↵Dan J Miller2019-05-232-2/+24
| | | | (#6625)
* Remove unused fn arguments in AmountMaxButtonWhymarrh Whitby2019-05-211-1/+1
|
* MetaMetrics documentation (#6624)Dan J Miller2019-05-211-9/+44
|
* Improved UX for sweeping accounts (#6488)Etienne Dusseault2019-05-2119-52/+293
| | | | | | | | | | | | * Changed max button to checkbox, disabled input if max mode is on, recalculate price according to gas fee if max mode is on * Disabled insufficient funds message in the modal if max mode is on, displays proper amounts in modal when max mode is on, sets the send amount according to custom gas price after gas modal save, resets the send amount after resetting custom gas price * Disabled max mode checkbox if gas buttons are loading, refactored gas-modal-page-container * Implemented new max button & max mode message. Moved insufficient funds error to underneath the send amount field * Fixed existing integration test to pass, created new tests to ensure send amount field is disabled when max button is clicked and the amount changes when the gas price is changed. Refactored some components
* Merge pull request #6606 from industral/issue-5524Thomas Huang2019-05-163-10/+63
|\ | | | | Improve ENS Address Input
| * fixed #5524Alex Ivasyuv2019-05-153-10/+63
| |
* | Fixes bugs in 6.5.1 (#6613)Bruno Barbieri2019-05-151-1/+1
|/ | | | | | * fix bg error * fix ui exception
* Update auto-logout to recognize idle time in background (#6593)Whymarrh Whitby2019-05-142-12/+19
| | | | | | * Fix wording of autoLogoutTimeLimitDescription * AppStateController and update auto-logout functionality
* Fix RPC URL message key casing (#6595)Whymarrh Whitby2019-05-101-1/+1
|
* New settings custom rpc form (#6490)Dan J Miller2019-05-1022-30/+944
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add networks tab to settings, with header. * Adds network list to settings network tab. * Adds form to settings networks tab and connects it to network list. * Network tab: form adding and editing working * Settings network form properly handles input errors * Add translations for settings network form * Clean up styles of settings network tab. * Add popup-view styles and behaviour to settings network tab. * Fix save button on settings network form * Adds 'Add Network' button and addMode to settings networks tab * Lint fix for settings networks tab addition * Fix navigation in settings networks tab. * Editing an rpcurl in networks tab does not create new network, just changes rpc of old * Fix layout of settings tabs other than network * Networks dropdown 'Custom Rpc' item links to networks tab in settings. * Update settings sidebar networks subheader. * Make networks tab buttons width consistent with input widths in extension view. * Fix settings screen subheader height in popup view * Fix height of add networks button in popup view * Add optional label to chainId and symbol form labels in networks setting tab * Style fixes for networks tab headers * Add ability to customize block explorer used by custom rpc * Stylistic improvements+fixes to custom rpc form. * Hide cancel button. * Highlight and show network form of provider by default. * Standardize network subheader name to 'Networks' * Update e2e tests for new settings network form * Update unit tests for new rpcPrefs prop * Extract blockexplorer url construction into method. * Fix broken styles on non-network tabs in popup mode * Fix block explorer url links for cases when provider in state has not been updated. * Fix vertical spacing of network form * Don't allow click of save button on network form if nothing has changed * Ensure add network button is shown in popup view * Lint fix for networks tab * Fix block explorer url preference setting. * Fix e2e tests for custom blockexplorer in account details modal changes. * Update integration test states to include frequentRpcList property * Fix some capitalizations in en/messages.json * Remove some console.logs added during custom rpc form work * Fix external account link text and url for modal and dropdown. * Documentation, url validation, proptype required additions and lint fixes on network tab and form.
* Check for unused function arguments (#6583)Whymarrh Whitby2019-05-0948-102/+84
| | | | | | | | | | * eslint: Check for unused function arguments * eslint: Ignore unused '_' in argument list Also allow any number of '_' e.g., '__' or '___' which is to be used sparingly * Remove and rename unused arguments
* Auto logout after specific time (#6558)Chi Kei Chan2019-05-096-6/+176
| | | | | | | | | | | | | | | | | | | | * Add i18n strings * Finish Auto timeout * Fix linter * Fix copies * Add unit test to Advanced Tab component * Add back actions and container * Add basic test to ensure container completeness * No zero, fix linters * restrict negative in input
* Remove KNOWN_ADDRESS_ERROR from error objects (#6578)Chi Kei Chan2019-05-092-7/+6
| | | | | | * Remove KNOWN_ADDRESS_ERROR from error objects * Update test comments
* Use metricsEvent in AmountMaxButton componentWhymarrh Whitby2019-05-082-5/+15
|
* Allow dragging seed phrase during Confirm Seed Phrase (#6557)Chi Kei Chan2019-05-076-127/+565
| | | | | | | | | | | | | | | | | | | | | | | | * Add basic drag and drop functionality * Refactor seed phrase data structure * Insert to list when drop * Save before refactor * Finish DND * Fix linter * update package-lock.json * Address styling feedbacks * Add box shadow on hover * Finish adding unit tests * Remove describe.only
* Skip null and undefined keys when translating via context (#6543)Whymarrh Whitby2019-05-071-0/+10
| | | | | | * i18n: Don't translate null or undefined keys * Add JSDoc for I18nProvider#t context fn
* Add suffix to title text only when it exists (#6546)Whymarrh Whitby2019-05-061-1/+1
|
* Refactor ProviderApprovalController to use rpc and publicConfigStore (#6410)kumavis2019-05-044-21/+20
| | | | | | | | | | * Ensure home screen does not render if there are unapproved txs (#6501) * Ensure that the confirm screen renders before the home screen if there are unapproved txs. * Only render confirm screen before home screen on mount. * inpage - revert _metamask api to isEnabled isApproved isUnlocked
* Use tOrKey for actionKey in ConfirmTransactionBaseWhymarrh Whitby2019-05-011-1/+3
|
* Fix binding of this for I18nProvider#tOrKeyWhymarrh Whitby2019-05-011-1/+1
|
* Send metrics event from backend for on chain transaction failures (#6500)Dan J Miller2019-04-293-4/+17
| | | | | | * Send metrics event from backend for on chain transaction failures * Passes state object to backEndMetaMetricsEvent, and adds getMetaMetricState selector
* Add subheader to all settings subviews (#6502)Chi Kei Chan2019-04-292-5/+39
| | | | | | * Add subheader to all settings subviews * add margin right to subheader
* Ensure home screen does not render if there are unapproved txs (#6501)Dan J Miller2019-04-272-8/+18
| | | | | | * Ensure that the confirm screen renders before the home screen if there are unapproved txs. * Only render confirm screen before home screen on mount.
* Revert "Adds 4byte registry fallback to getMethodData() (#6435)"Thomas Huang2019-04-272-28/+4
| | | | This reverts commit 09f2a2a5476c4c119c7294f496f6590156d8d07a.
* Always show private network when RPC is not whitelisted (#6495)Chi Kei Chan2019-04-261-4/+1
|
* Fix button colors on mobile (#6493)Chi Kei Chan2019-04-251-0/+3
|
* Set max-width on network dropdown and ellipsis long network name (#6494)Chi Kei Chan2019-04-252-2/+22
|
* Merge pull request #6481 from MetaMask/address-prop-types-errorsThomas Huang2019-04-183-3/+4
|\ | | | | Address prop types errors
| * Ensure future tokens add decimals as numbers while supporting numbers and ↵Dan Miller2019-04-182-2/+2
| | | | | | | | strings in send-asset-row
| * getSeletedAsset to only return symbol strings, not token objectsDan Miller2019-04-181-1/+2
| |
* | Make height consistent on all row in send-content (#6480)Chi Kei Chan2019-04-185-13/+28
| | | | | | | | | | | | | | | | * Update all send-content row to 54px height * Remove header subtitle * Remove tests that check for send screen subheader
* | Merge pull request #6477 from MetaMask/metrics-screen-button-typeThomas Huang2019-04-181-1/+1
|\ \ | |/ |/| Update button type on metrics opt-in screen.
| * Update button type on metrics opt-in screen.Dan Miller2019-04-181-1/+1
| |
* | Merge pull request #6475 from chikeichan/send-assetThomas Huang2019-04-181-1/+1
|\ \ | | | | | | Fix PropTypes validation in send-asset-row
| * | Fix PropTypes validation in send-asset-rowChi Kei Chan2019-04-181-1/+1
| | |
* | | Update confirm to use btn-primary (#6473)Chi Kei Chan2019-04-181-5/+6
|/ / | | | | | | | | | | | | | | * Update confirm to use btn-primary * Remove console * Fix e2e test
* / Add token selection to the send screen (#6445)Chi Kei Chan2019-04-18135-132/+436
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move send to pages/ * Fix unit tests * Finish UI * Integrate asset dropdown to send actions * Remove console.log * Hide asset change during edit * Enable switch from send token to seand eth * Enable switching from token to eth when editing * Fix linter * Fixing test * Fix unit tests * Fix linter * Fix react warning; remove console.log * fix flat test * Add metrics * Address code review comments * Consistent spacing between send screen form rows. * Reduce height of gas buttons on send screen. * Make send screen gas button height dependent on size of contents.
* Merge pull request #6468 from chikeichan/network-indicator-style-fixThomas Huang2019-04-182-11/+24
|\ | | | | Fix switcher height when Custom RPC is selected or loading
| * Fix switcher height when Custom RPC is selected or when network is loadingChi Kei Chan2019-04-172-11/+24
| |
* | feature: add Goerli support (#6459)Paul Bouchon2019-04-1813-7/+77
|/
* Merge pull request #6444 from MetaMask/localhost-network-dropdownThomas Huang2019-04-174-1/+9
|\ | | | | Fixes #6321 & #6421 - Add Localhost 8545 for network dropdown names
| * Add Localhost 8545 for network dropdown namesThomas Huang2019-04-114-1/+9
| |
* | Adds 4byte registry fallback to getMethodData() (#6435)Dan J Miller2019-04-172-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | * Get contract method data from 4byte if we can't get it from eth-method-registry * Clarify token method name fallback code in getMethodData * Bugfix: don't attempt to translate falsy actionKeys in confirm-transaction-base.component.js * Rewrite getMethodFrom4Byte with async-await * Call four byte and method-registry requests in parallel in getMethodData()
* | Update buttons & colors to match design system (#6446)Chi Kei Chan2019-04-1749-395/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactoring button styles * renaming buttons * Add Link and Button styles * Update new btn styles and storybook * Fix tests * Change font weight; Update storybook * Fix linter
* | Remove unneeded array cloning in getSendToAccounts selectorWhymarrh Whitby2019-04-121-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of `Object.entries` here to map the accounts into a new array effectively produces a shallow clone of the array without guaranteeing the order of the original array (as object iteration order is implementation-specific and variable). From MDN [1]: > The **`Object.entries()`** method returns an array of a given object's own enumerable > string-keyed property `[key, value]` pairs, in the same order as that provided by a > `for...in` loop And also: > The ordering of the properties is the same as that given by looping over the > property values of the object manually. Both of which suggest that the iteration order is the same as `for...in`, which is to say that it's not specified. [2] [3] This changeset removes the cloning, keeping the shallow clone created the line before which preserves the order of the items in the array. [1]:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries [2]:https://stackoverflow.com/a/5525820/1267663 [3]:https://stackoverflow.com/a/30919039/1267663
* | repeated getSelectedAddress() func send.selectors.js removed (#6056)Sneh Koul2019-04-124-18/+9
|/
* Only pass english function names to functionType metricDan Miller2019-04-093-13/+13
|
* Distinguish between token and eth selected in home screen send button ↵Dan Miller2019-04-081-1/+1
| | | | metrics event.
* Metrics tracking gas changed - slow, average, fast, custom - on edit screen.-Dan Miller2019-04-084-0/+24
|
* Track seed phrase validation errors with MetaMetricsDan Miller2019-04-051-0/+18
|
* Merge pull request #6397 from MetaMask/wyre-deposit-modalkumavis2019-04-041-4/+4
|\ | | | | Change coinbase to wyre
| * Change coinbase to wyreThomas Huang2019-04-041-4/+4
| |
* | Fix display of gas chart on Ethereum networks (#6389)Dan J Miller2019-04-044-3/+7
|/
* Remove NoticeController (#6382)Thomas Huang2019-04-029-434/+1
|
* Remove unused account-dropdowns components (#6363)v6.3.2Whymarrh Whitby2019-04-022-811/+0
|
* Merge pull request #6375 from MetaMask/Version-6.3.1v6.3.1Thomas Huang2019-03-302-1/+9
|\ | | | | Version 6.3.1
| * Check token name constants against the lower case methodData name in conf tx ↵Dan Miller2019-03-301-1/+1
| | | | | | | | switch container.
| * Ensure correct confirm screen in case of smartcontract check failDan Miller2019-03-302-1/+9
| |
* | About tab copy changes; Update route for Info & Help in account menu (#6356)Chi Kei Chan2019-03-302-4/+4
|/
* Revert to providing inline defaults in getHexGasTotal and ↵Dan J Miller2019-03-291-4/+4
| | | | increaseLastGasPrice (#6361)
* Further e2e fixes in wake of #6364 and #6367 (#6374)Dan J Miller2019-03-292-24/+30
| | | | | | | | * getMethodData() default to abi decoded method if registry lookup errors * Update e2e tests to work with getMethodData() fallback changes * Remove indeterminency in gas input key entering in send token e2e test.
* Merge pull request #6328 from MetaMask/clearNoticeskumavis2019-03-291-12/+18
|\ | | | | Clear notices
| * lint fixkumavis2019-03-291-1/+1
| |
| * actions - setCompletedOnboarding - make async with pifykumavis2019-03-291-24/+17
| |
| * Merge branch 'develop' into clearNoticeskumavis2019-03-29699-1914/+2024
| |\
| * | Clear notices when setCompletedOnboarding is calledThomas Huang2019-03-211-4/+17
| | |
* | | Merge pull request #6372 from MetaMask/addAddressIfNewkumavis2019-03-292-2/+5
|\ \ \ | | | | | | | | prevent add duplicates when address is not new
| * | | send-footer.utils.js - addressIsNew - improve readabilitykumavis2019-03-291-1/+3
| | | |
| * | | prevent add duplicates when address is not newJenny Pollack2019-03-292-2/+3
| | |/ | |/|
* | | Merge branch 'develop' of https://github.com/vimalsagar/metamask-extension ↵kumavis2019-03-291-2/+23
|\ \ \ | |/ / |/| | | | | into vimalsagar-develop
| * | depoit-ether-modal - make buyEth args more explicitkumavis2019-03-291-2/+2
| | |
| * | PR 5575 review comment fixesVimal2019-02-281-1/+1
| | |
| * | merging upstream branchVimal2018-11-12156-1009/+3722
| |\ \
| * | | Adding CoinSwitch exchangeVimal2018-10-221-1/+22
| | | |
* | | | Defaults to the args list in increaseLastGasPrice and getHexGasTotalDan Miller2019-03-281-4/+4
| | | |
* | | | getHexGasTotal and increaseLastGasPrice now gracefully handle null and ↵Dan Miller2019-03-281-2/+2
| | | | | | | | | | | | | | | | undefined values
* | | | Open retore-vault route from popup (#6353)Chi Kei Chan2019-03-271-1/+1
| | | |
* | | | Don't include tx value in calculation of balance sufficiency for cancel ↵Dan J Miller2019-03-261-2/+2
| | | | | | | | | | | | | | | | button disabling. (#6346)
* | | | Cancel error rebased (#6341)Dan J Miller2019-03-263-16/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check balance before showing cancel * Fix linter * Use existing helper methods for calculating increased cancel price * Add tooltip for disabled button * Lint fix for cancelError branch. * Disabling of cancel button should account for value of tx.
* | | | Close transaction on close of notification window (#6340)Dan J Miller2019-03-263-33/+88
| | | |
* | | | New settings page rebased (#6333)Dan J Miller2019-03-2615-567/+946
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New setting tab * Add InfoTab * Add Advanced tab * Add Security Tab * Finish mobile view * Make new setting page responsive * Fix linter * Fix y scrolling * Update link in network dropdown * Fix e2e tests * Remove duplicate translation key * Resolve merge conflict * Only change settings header in popup view. * Place mobile-sync button in advanced-tab of settings
* | | | Replaces the coinbase link in the deposit modal with one for wyre (#6302)Dan J Miller2019-03-221-8/+8
| | | |
* | | | Fix oversized loading overlay on gas customization modal. (#6326)Dan J Miller2019-03-221-0/+4
| | | |
* | | | Fix gas fee in the submitted step of the transaction details activity log. ↵Dan J Miller2019-03-221-2/+11
| | | | | | | | | | | | | | | | (#6301)
* | | | Hide gas price chart and prevent api call when not on ethereum networks. (#6300)Dan J Miller2019-03-229-25/+73
| | | | | | | | | | | | Add missing translations in gas customization modal
* | | | Folder restructure (#6304)Chi Kei Chan2019-03-22688-1240/+809
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove ui/app/keychains/ * Remove ui/app/img/ (unused images) * Move conversion-util to helpers/utils/ * Move token-util to helpers/utils/ * Move /helpers/*.js inside /helpers/utils/ * Move util tests inside /helpers/utils/ * Renameand move confirm-transaction/util.js to helpers/utils/ * Move higher-order-components to helpers/higher-order-components/ * Move infura-conversion.json to helpers/constants/ * Move all utility functions to helpers/utils/ * Move pages directory to top-level * Move all constants to helpers/constants/ * Move metametrics inside helpers/ * Move app and root inside pages/ * Move routes inside helpers/ * Re-organize ducks/ * Move reducers to ducks/ * Move selectors inside selectors/ * Move test out of test folder * Move action, reducer, store inside store/ * Move ui components inside ui/ * Move UI components inside ui/ * Move connected components inside components/app/ * Move i18n-helper inside helpers/ * Fix unit tests * Fix unit test * Move pages components * Rename routes component * Move reducers to ducks/index * Fix bad path in unit test
* | | | Enable mobile sync (#6332)Bruno Barbieri2019-03-222-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * enable mobile sync * remove mobile sync as a preference * Fix typo
* | | | Fixing spelling of Ethereum in MetaMetrics copy (#6329)fixanoid2019-03-212-2/+2
| |_|/ |/| |
* | | Allow seed phrases with a trailing newlineWhymarrh Whitby2019-03-131-1/+1
| | |
* | | Merge pull request #6281 from MetaMask/fix-browser-back-on-reveal-seedThomas Huang2019-03-131-2/+2
|\ \ \ | | | | | | | | Fixes the use of the browser back button on the reveal seed screen
| * | | Fixes the use of the browser back button on the reveal seed screenDan Miller2019-03-121-2/+2
| | | |
* | | | ui - add missing PropTypes (#6287)kumavis2019-03-122-0/+3
| | | |
* | | | mascara - remove from project (#6283)kumavis2019-03-124-31/+23
| | | |
* | | | Remove line rather than comment outThomas Huang2019-03-121-4/+0
| | | |
* | | | No longer check network when validating checksum addressesThomas Huang2019-03-121-2/+5
|/ / /
* | | Handle undefined gas limits and prices in transaction-breakdown.component ↵Dan J Miller2019-03-072-21/+38
| | | | | | | | | | | | (#6246)
* | | Add privacy policy link to modal metrics opt-in (#6250)Dan J Miller2019-03-071-1/+7
| | |
* | | Prevent advanced gas input arrows from setting value to < 0 (#6248)Dan J Miller2019-03-072-4/+24
| | |
* | | Only call onRecipient and onSender methods if defined in sender-to-recipient ↵Dan J Miller2019-03-071-2/+6
| | | | | | | | | | | | (#6247)
* | | Fix missing this reference in addtoken button onclick method (#6245)Dan J Miller2019-03-061-1/+2
| | |
* | | Fixes the 'Percentages row tracks and gutters' decpracation warning. (#6244)Dan J Miller2019-03-061-1/+1
| | |
* | | Metametrics fixes (#6238)Dan J Miller2019-03-066-38/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve opt-in opt-out event tracking after going 'back' in onboarding. * Fix 'Switched Networks' metrics event. * Fix custom variables ids (can only use ids 1-5) * Fix tracking of function type custom variable for metametrics in confirm-transaction-base * Add missing metametrics events
* | | Wrap in spanThomas Huang2019-03-061-1/+1
| | |
* | | Fix MetaMetrics Environment Check (#6235)Dan J Miller2019-03-061-1/+1
| | |
* | | Metametrics (#6171)Dan J Miller2019-03-0581-134/+2014
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add metametrics provider and util. * Add backend api and state for participating in metametrics. * Add frontend action for participating in metametrics. * Add metametrics opt-in screen. * Add metametrics events to first time flow. * Add metametrics events for route changes * Add metametrics events for send and confirm screens * Add metametrics events to dropdowns, transactions, log in and out, settings, sig requests and main screen * Ensures each log in is measured as a new visit by metametrics. * Ensure metametrics is called with an empty string for dimensions params if specified * Adds opt in metametrics modal after unlock for existing users * Adds settings page toggle for opting in and out of MetaMetrics * Switch metametrics dimensions to page level scope * Lint, test and translation fixes for metametrics. * Update design for metametrics opt-in screen * Complete responsive styling of metametrics-opt-in modal * Use new chart image on metrics opt in screens * Incorporate the metametrics opt-in screen into the new onboarding flow * Update e2e tests to accomodate metametrics changes * Mock out metametrics network requests in integration tests * Fix tx-list integration test to support metametrics provider. * Send number of tokens and accounts data with every metametrics event. * Update metametrics event descriptor schema and add new events. * Fix import tos bug and send gas button bug due to metametrics changes. * Various small fixes on the metametrics branch. * Add origin custom variable type to metametrics.util * Fix names of onboarding complete actions (metametrics). * Fix names of Metrics Options actions (metametrics). * Clean up code related to metametrics. * Fix bad merge conflict resolution and improve promise handling in sendMetaMetrics event and confrim tx base * Don't send a second metrics event if user has gone back during first time flow. * Collect metametrics on going back from onboarding create/import. * Add missing custom variable constants for metametrics * Fix metametrics provider * Make height of opt-in modal responsive. * Adjust text content for opt-in modal. * Update metametrics event names and clean up code in opt-in-modal * Put phishing warning step next to last in onboarding flow * Link terms of service on create and import screens of first time flow * Add subtext to options on the onboarding select action screen. * Fix styling of bullet points on end of onboarding screen. * Combine phishing warning and congratulations screens. * Fix placement of users if unlocking after an incomplete onboarding import flow. * Fix capitalization in opt-in screen * Fix last onboarding screen translations * Add link to 'Learn More' on the last screen of onboarding * Code clean up: metametrics branch * Update e2e tests for phishing warning step removal * e2e tests passing on metametrics branch * Different tracking urls for metametrics on development and prod
* | | First time flow updates (#6192)Dan J Miller2019-02-2734-339/+554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Action select step of onboarding flow added. * Update navigation on create and import password screens. * Adds terms of service checkbox to create and import account screens. * Add security warning to jazzicon intro step * Update and streamline unique image to confirm seed steps of first time flow. * UI touch ups to welcome screen. * UI touch up on select action page * Fix first time import flow. * Add end of flow screen to first time flow * Replace unique image screen with updated fishing warning screen. * Update e2e tests for onboarding flow changes. * Add required translations to onboarding flow. * Update design of select action screen to emphasize create new wallet option. * Clean up onboarding flow code. * Remove notice related code from first-time-flow directory. * Use updater function argument in new-account.component
* | | Show/Hide Fiat on Testnets based on User Preference (#6153)Chi Kei Chan2019-02-2733-99/+1127
| | |
* | | Feature Flag + Mobile Sync (#5955)Dan Finlay2019-02-268-3/+449
| | |
* | | Fix gas estimation when sending to contracts (#6195)Dan J Miller2019-02-266-8/+16
| | | | | | | | | | | | | | | * Fix gas estimation when sending to contracts * Fix calculating of balance sufficiency and tx params when sending token transaction
* | | Merge pull request #6184 from chikeichan/6132Dan J Miller2019-02-202-1/+26
|\ \ \ | | | | | | | | turn camcelCase method name to space separated
| * | | turn camcelCase method name to space separatedChi Kei Chan2019-02-192-1/+26
| | | |
* | | | Merge pull request #6185 from chikeichan/5681Dan J Miller2019-02-201-5/+0
|\ \ \ \ | | | | | | | | | | Remove password check when importing Account JSON
| * | | | Remove password check when importing Account JSONChi Kei Chan2019-02-191-5/+0
| |/ / /
* / / / Change "Token Address" to "Token Contract Address" (#6182)Chi Kei Chan2019-02-201-1/+1
|/ / /
* | | Add Copy Tx ID button to transaction-list-item-details (#6146)Chi Kei Chan2019-02-173-2/+36
| | | | | | | | | | | | | | | | | | * Add Copy Tx ID button to transaction-list-item-details * Move justCopied toggle timeout inside setState callback
* | | Checksum address before slicing it for the confirm screen (#6133)Whymarrh Whitby2019-02-141-2/+6
| | |
* | | Fixed issue #5838 (#6001)Jonathan Smirnoff2019-02-1410-17/+37
| | | | | | | | | Update changelog file
* | | Add button to force edit token symbol when adding custom token (#6147)Chi Kei Chan2019-02-132-2/+38
| | |
* | | Merge pull request #6139 from whymarrh/fix-confirm-advanced-gasWhymarrh Whitby2019-02-121-1/+1
|\ \ \ | | | | | | | | Fix advanced gas controls on the confirm screen
| * | | Fix advanced gas controls on the confirm screenWhymarrh Whitby2019-02-121-1/+1
| | | |
* | | | Trim whitespace from seed phrase during importWhymarrh Whitby2019-02-121-2/+4
|/ / / | | | | | | | | | Somehow we lost 33b85cf2e
* | | Add e2e tests adjusting gas before sendingWhymarrh Whitby2019-02-091-2/+6
| | |
* | | Fix inline advanced gas editingWhymarrh Whitby2019-02-096-64/+51
| | |
* | | implement class for sign footer button (#6120)Brandon Wissmann2019-02-081-0/+1
| | |
* | | Set custom gas data in state from inline advance gas controls on send screen ↵Dan J Miller2019-02-072-2/+11
| | | | | | | | | | | | (#6114)
* | | Add Swap feature to CurrencyInput (#6091)Chi Kei Chan2019-02-067-45/+151
| | | | | | | | | | | | | | | | | | | | | | | | * Add Swap feature to CurrencyInput * Fix linter error * Fix and Add unit tests
* | | Change gas labels to Slow/Average/Fast (#6090)Chi Kei Chan2019-02-062-60/+60
| | | | | | | | | | | | | | | | | | * Change gas labels to Slow/Average/Fast * Fix unit test
* | | Add togglable advanced gas controls on send and confirm screens (#6112)Dan J Miller2019-02-0619-36/+597
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extract advanced gas input controls to their own component * Add advanced inline gas toggle to settings * Add optional advanced inline gas to send send screen * Adds optional advanced gas inputs to the confirm screen * Add info modals for advanced gas inputs. * Fix translation of advance gas toggle description. * Lint and unit test fixes for inline-advanced-gas-inputs * Increase margin above advanced options button on send screen * Move methods from constructor to property syntax in advanced-gas-inputs.component
* | | Add announcement for users migrated to the new UIWhymarrh Whitby2019-02-0512-49/+117
| | |
* | | Default to the new UI for all usersWhymarrh Whitby2019-02-055-96/+11
| | |
* | | Remove commented references to Beta UIWhymarrh Whitby2019-02-051-18/+0
| | |
* | | Remove "Use old UI" settingWhymarrh Whitby2019-02-052-37/+1
| | |
* | | EIP-1102 updates (#6006)Paul Bouchon2019-01-314-10/+12
| | | | | | | | | | | | | | | | | | * Update privacy notice * Respond to 1102 messages using tab ID
* | | Remove unused InitializeMenuScreen component (#6075)Whymarrh Whitby2019-01-311-224/+0
| | |
* | | Add visual indicator when displaying a cached balance (#5854)Dan J Miller2019-01-3014-31/+151
| | |
* | | I#5956 fix2 dont overwrite existing rpc settings (#6044)Frankie2019-01-304-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mm-controller - dont overwrite existing rpc settings * ui-networkDropdown - dont pass old network as chainId * add methods preferencesController.updateRpc and metamaskController.updateAndSetCustomRpc * use updateAndSetCustomRpc in settings to allow rpcs to be updated * use new rpc as nickname if no nick name has been supplied * fix update rpc method
* | | Order shapeshift transactions by time within the transactions listAlexander Tseung2019-01-251-12/+32
| | |
* | | Prevent send to token warning (#6058)Esteban Miño2019-01-2420-11/+242
| | |
* | | Refactor first time flow, remove seed phrase from state (#5994)Alexander Tseung2019-01-2381-448/+2485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor and fix styling for first time flow. Remove seed phrase from persisted metamask state * Fix linting and tests * Fix translations, initialization notice routing * Fix drizzle tests * Fix e2e tests * Fix integration tests * Fix styling * Fix migration naming from 030 to 031 * Open extension in browser when user has not completed onboarding
* | | Prevent send to token (#6051)Esteban Miño2019-01-238-3/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * check contact metadata * check for tokens in state * tests * update tests * validation only if sending tokens * container test
* | | Use Parity on-chain registry only when is needed (#6052)Esteban Miño2019-01-235-6/+46
| | | | | | | | | | | | | | | | | | * add and use knownMethodData to avoid infura requests * dataMethod to methodData and check empty response
* | | Refactor BalanceComponent to jsx (#6048)Alexander Tseung2019-01-216-250/+121
| | |
* | | I#5956 fix 1 (#6026)Frankie2019-01-181-0/+3
| | | | | | | | | | | | | | | * prevent invalid chainId's when adding cusstom rpcs * migration 30 removes invalid chaids from preferences and networkController for custom rpcs
* | | Fix grammar error in Current Conversion (#6029)Alexander Tseung2019-01-171-1/+1
| | |
* | | Disable account dropdown on signing screens (#6024)Alexander Tseung2019-01-175-85/+195
| | |
* | | Fix confirm screen for sending ether tx with hex data (#6008)Alexander Tseung2019-01-111-0/+6
| | |
* | | Fix ERC20 token value decoding (#5995)Hsuan Lee2019-01-041-1/+1
| | | | | | | | | When MetaMask user calls non-standard ERC20 methods such as `mint`, `tokenData` will be `undefined` and an uncaught error will break the UI
* | | Fix Component#componentDidUpdate usage (#5977)Bowen2019-01-041-3/+3
| | |
* | | Add scrolling button to account listAlexander Tseung2019-01-047-255/+394
| | |
* | | Prevent users from changing the From field in the send screen (#5922)Alexander Tseung2018-12-1419-440/+27
| | | | | | | | | | | | | | | | | | * Prevent users from changing the From field in the send screen * Fix integration tests
* | | Fix displayed time and date in the activity log. Remove vreme library, add ↵Alexander Tseung2018-12-143-10/+5
| | | | | | | | | | | | luxon library. (#5932)
* | | Merge pull request #5893 from MetaMask/loading-network-screenDan J Miller2018-12-1413-36/+330
|\ \ \ | | | | | | | | Loading network screen
| * | | Clean up for the loading-network-screenDan Miller2018-12-133-33/+24
| | | |
| * | | Improve styling of loading retry / error screenDan Miller2018-12-131-0/+6
| | | |
| * | | Adds network loading retry / error screen.Dan Miller2018-12-1310-2/+266
| | | |
| * | | Add identifier of private network to the network loading screen message.Dan Miller2018-12-133-7/+20
| | | |
| * | | Add spinner and dropdown arrow to network indicator on custom network loading.Dan Miller2018-12-132-27/+47
| | | |
* | | | Fix speed up button not showing for transactions with the lowest nonce (#5925)Alexander Tseung2018-12-131-3/+3
|/ / /
* | | Show transaction fee instead of total fee in top left of gas customization ↵Dan Miller2018-12-134-9/+9
| | | | | | | | | | | | modal.
* | | Fix width of gas customization model in notification viewDan Miller2018-12-132-3/+4
| | |
* | | Add missing translation to the gas customization component.Dan Miller2018-12-135-14/+17
| | |
* | | Ensures that advanced tab gas limit reflects tx gas limitDan Miller2018-12-125-11/+7
| | |
* | | Add submitDisabled prop to Modals. Disable submit button when creating a ↵Alexander Tseung2018-12-124-2/+44
| | | | | | | | | | | | cancel transaction (#5910)
* | | Improve ux for low gas price set (#5862)Dan J Miller2018-12-1111-66/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Show user warning if they set gas price below safelow minimum, error if 0. * Properly cache basic price estimate data. * Default retry price to recommended price if original price was 0x0 * Use mock fetch in send-new-ui integration tests.
* | | fix formatting of 32-byte strings in personal_sign (#5878)Noah Zinsmeister2018-12-101-1/+1
| | |
* | | Group transactions by nonce (#5886)Alexander Tseung2018-12-1035-337/+1133
| | |
* | | Replace height: 100% rule with workaround for flexbox quirksWhymarrh Whitby2018-12-061-1/+2
| | |
* | | Fix styling of send screen in extension view when hex data on.Dan Miller2018-12-044-12/+17
| | |
* | | Final gas customization fixesDan Miller2018-12-0417-103/+197
| | |
* | | Clear custom gas data on hiding of gas customization modal.Dan Miller2018-12-041-4/+12
| | |
* | | Modify results of API data to better fit gas chart: remove outliers, pad dataDan Miller2018-12-045-44/+126
| | |
* | | Add loading spinners when waiting for APIs in the gas customization modalDan Miller2018-12-049-6/+61
| | |
* | | Uses more reliable api on main send screen; caches basic api results in modalDan Miller2018-12-0419-139/+305
| | |