aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib
Commit message (Collapse)AuthorAgeFilesLines
* Version Bump (#5909)v5.2.0Thomas Huang2018-12-124-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds new gas customization modal container (without content) * Adds the content of the advanced tab - w/o chart or dynamic content - to gas customize modal. * Use correct message key in gas-modal-page-container.component.js * Use BEM for css in gas-modal-page-container * Split advanced-tab-content.component.js render() method into smaller pieces; add translations to the same file. * Remove gas slider from advance-tab-content.component * Add tests for advanced-tab-component.js and subcomponents. * Improve styling of advanced-tab-content gasInput row * Adds basic tab content to gas customizer, with styled button group (static, for now). * Connect the gas-button-group component to redux and a live api. * Improvements to propdefaults in button-group.component and basic-tab-content.component * Styling fixes for gas customization advanced tab content. * Adds gas-duck.test.js tests. * Connects remained of the gas customization component to redux. * Integrate gas buttons with the send screen. * Test updates and additions for button integration with send screen. * Adds redesign for the customize gas advanced tab. * Adds not yet functional gas price chart. * Gas price chart improvements, redesign, bug fixes, and set up to receive external data * Read only connection of gas price chart to redux * Clean up for advanced gas tab customization changes. * Complete integration of gas chart with redux. * Add control arrows to advanced gas tab inputs. * Lint and unit test fixes. * Clean up gas chart code. * Update tests, plus some lint fixes, for gas-price-chart * Improve data management and tests for gas-modal-page-container price estimates. * Clean up for mmui-i11-custom-gas-price-chart branch * Redesign of gas customization basic tab. * Adds createSpeedUpTransaction to txController * Connect gas price chart to gas station api. * Adds speed up slide-in gas customization sidebar * Update e2e tests for new gas customization modal. * Fixes for components that break e2e gas customization tests, plus unit test updates. * Remove gas customization integration tests (in favour of e2e tests) * Add gas data to integration test json data set. * Add c3 and d3 to the separate dependencies bundle. * Make gas customization modal responsive. * Fix "fastest" translation message; change to sentence case * Uses more reliable api on main send screen; caches basic api results in modal * Add loading spinners when waiting for APIs in the gas customization modal * Modify results of API data to better fit gas chart: remove outliers, pad data * Clear custom gas data on hiding of gas customization modal. * Improve responsiveness of customize speed up slider. * Final gas customization fixes * Fix styling of send screen in extension view when hex data on. * Replace height: 100% rule with workaround for flexbox quirks * Fill in more Polish message translations * Update lockfile to fix errors npm has informed me that the lockfile has "errors": npm ERR! code ELOCKVERIFY npm ERR! Errors were found in your package-lock.json, run npm install to fix them. npm ERR! Missing: c3@^0.6.7 npm ERR! Invalid: lock file's d3@3.5.17 does not satisfy d3@^5.7.0 * circleci: Disable npm audit when installing packages Auditing packages when installing here doesn't help anyone as the summary isn't visible and vulnerabilities don't produce a non-zero exit code. We will have `npm audit` as an extra CI job. * npm audit fix * circleci: Replace nsp with npm audit Refs #4751 * Remove beefy dependency and its usages Refs #4768 Refs #5389 This changeset removes the beefy package that: 1. Was last published 2 yrs ago 2. Brought with it 1 moderate and 1 critical vulnerability 3. Was only used in scripts that no longer work * npm uninstall open * Update ganache-core to mitigate vuln === npm audit security report === > # Run npm install --save-dev ganache-core@2.3.1 to resolve 1 vulnerability ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Moderate │ Memory Exposure │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ bl │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ ganache-core [dev] │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ ganache-core > level-sublevel > levelup > bl │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://nodesecurity.io/advisories/596 │ └───────────────┴──────────────────────────────────────────────────────────────┘ * Deduplicate package.json file From `npm install`: > npm WARN The package css-loader is included as both a dev and production dependency. > npm WARN The package eslint-plugin-react is included as both a dev and production dependency. > npm WARN The package file-loader is included as both a dev and production dependency. > npm WARN The package gulp is included as both a dev and production dependency. It's also worth noting that the Gulp version we were using was inconsistent and there is a published v4 release on GitHub. * Fix race condition in network controller lookup() method. * Group transactions by nonce (#5886) * fix formatting of 32-byte strings in personal_sign (#5878) * Bump json-rpc-engine to v4.0.0 * Bump package lock, mostly to https links * Improve ux for low gas price set (#5862) * 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. * Show Failed transaction in the browser notification for on-chain failures (#5904) * Changelog and version bump for 5.2.0
* code review changesbrunobar792018-08-081-4/+3
|
* clear qr code data before scanningbrunobar792018-08-041-23/+22
|
* design completebrunobar792018-08-041-22/+23
|
* lintbrunobar792018-08-011-15/+14
|
* added crossbrowser support and error handlingbrunobar792018-08-011-0/+38
|
* Show checksummed addresses throughout the UIbitpshr2018-04-181-2/+2
|
* Require loglevel singleton in each module that uses itbitpshr2018-04-141-0/+1
|
* Remove unused files from ui folder. (#3577)anticlimactic2018-03-191-33/+0
| | | | | | * Removed unused UI files. Fixes #3434. * Reverted the deletion of "feature-toggle-utils.js". Reverted the deletion of the test files and modified the paths so they referred to the old-ui.
* Substitute isMascara check for explicit check if user is on mobile browser.Dan2017-12-131-12/+0
|
* Hide open in browser button on mobile (but still show on extension); adds a ↵Dan2017-12-131-0/+12
| | | | function to detect if viewing with mobile browser.
* swapped out ethereum-blockies lib for MEW blockies library, tightened up ↵Jason Clark2017-11-261-0/+364
| | | | identicon.js code
* Merge branch 'master' into NewUI-flatChi Kei Chan2017-10-251-1/+1
|\
| * Fix lint warningsDaijiro Wachi2017-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed warnings: ```md app/scripts/controllers/computed-balances.js + 35:27 warning Missing space before function parentheses space-before-function-paren + 41:14 warning 'address' is never reassigned. Use 'const' instead prefer-const + 61:9 warning 'updater' is never reassigned. Use 'const' instead prefer-const + 68:11 warning 'newState' is never reassigned. Use 'const' instead prefer-const app/scripts/controllers/network.js + 104:29 warning Missing space before function parentheses space-before-function-paren app/scripts/lib/createLoggerMiddleware.js + 4:32 warning Missing space before function parentheses space-before-function-paren + 15:2 warning Newline required at end of file but not found eol-last app/scripts/lib/createOriginMiddleware.js + 4:32 warning Missing space before function parentheses space-before-function-paren + 9:2 warning Newline required at end of file but not found eol-last app/scripts/lib/createProviderMiddleware.js + 5:34 warning Missing space before function parentheses space-before-function-paren + 13:2 warning Newline required at end of file but not found eol-last app/scripts/lib/events-proxy.js + 1:50 warning Missing space before function parentheses space-before-function-paren + 31:2 warning Newline required at end of file but not found eol-last app/scripts/lib/nodeify.js + 2:22 warning Missing space before function parentheses space-before-function-paren + 2:24 warning Missing space before opening brace space-before-blocks + 5:18 warning Missing space before function parentheses space-before-function-paren + 5:20 warning Missing space before opening brace space-before-blocks app/scripts/lib/pending-balance-calculator.js + 16:19 warning Missing space before function parentheses space-before-function-paren app/scripts/lib/pending-tx-tracker.js + 85:11 warning '||' should be placed at the end of the line operator-linebreak + 87:11 warning '||' should be placed at the end of the line operator-linebreak + 88:11 warning '||' should be placed at the end of the line operator-linebreak + 90:11 warning '||' should be placed at the end of the line operator-linebreak + 91:11 warning '||' should be placed at the end of the line operator-linebreak app/scripts/lib/port-stream.js + 3:22 warning Missing space before function parentheses space-before-function-paren + 3:24 warning Missing space before opening brace space-before-blocks app/scripts/lib/tx-gas-utils.js + 84:2 warning Newline required at end of file but not found eol-last app/scripts/lib/tx-state-history-helper.js + 12:37 warning Missing space before function parentheses space-before-function-paren + 23:30 warning Missing space before function parentheses space-before-function-paren + 30:23 warning Missing space before function parentheses space-before-function-paren + 35:28 warning Missing space before function parentheses space-before-function-paren + 41:2 warning Newline required at end of file but not found eol-last app/scripts/lib/tx-state-manager.js + 94:13 warning 'value' is never reassigned. Use 'const' instead prefer-const ui/app/reducers.js + 45:7 warning 'state' is never reassigned. Use 'const' instead prefer-const + 53:7 warning 'stateString' is never reassigned. Use 'const' instead prefer-const ui/lib/tx-helper.js + 27:2 warning Newline required at end of file but not found eol-last ui/app/components/account-dropdowns.js + 163:1 warning More than 2 blank lines not allowed no-multiple-empty-lines ui/app/components/menu-droppo.js + 22:7 warning 'style' is never reassigned. Use 'const' instead prefer-const ui/app/components/shapeshift-form.js + 135:11 warning '&&' should be placed at the end of the line operator-linebreak ui/app/components/typed-message-renderer.js + 35:25 warning Missing space before function parentheses space-before-function-paren + 42:2 warning Newline required at end of file but not found eol-last mascara/server/index.js + 11:42 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 12:36 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 13:33 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 14:40 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 20:29 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 21:29 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat + 26:40 warning Use path.join() or path.resolve() instead of + to create paths no-path-concat ```
* | Merge master to NewUI-flatChi Kei Chan2017-10-191-0/+26
| |
* | Merge branch 'NewUI-flat' into mergeChi Kei Chan2017-10-193-1/+17
|\ \ | |/ |/|
| * Confirm eth v2Chi Kei Chan2017-10-111-2/+2
| |
| * Adds checkFeatureToggle util.Dan2017-10-091-0/+11
| |
| * Merge branch 'master' into nmChi Kei Chan2017-09-191-5/+5
| |\
| * | Implement tokens list UIChi Kei Chan2017-09-061-1/+1
| | |
| * | Lint fixesDan2017-08-311-2/+2
| | |
| * | Implement utility helper for checking viewport size in jssdtsui2017-08-091-0/+5
| | |
* | | Move etherscan link logic into moduleDan Finlay2017-10-142-32/+0
| | |
* | | Add eth_signTypedData handlerSergey Ukustov2017-09-301-3/+10
| |/ |/|
* | Update etherscan links to httpsDan Finlay2017-09-021-5/+5
|/ | | | Fixes #2005
* Restore sort order fixDan Finlay2017-07-251-1/+4
|
* Replace ui with responsive-uiDan Finlay2017-07-251-5/+1
|
* Fix transaction confirmation orderingDan Finlay2017-07-181-1/+5
| | | | | | Newest tx or message will now always appear last, and a new tx proposed after the user has a confirmation box open will never change the confirmation to a different tx proposed. Fixes #1637
* Support other network linksDan Finlay2017-06-282-18/+24
|
* Auto populate token list with popular token balancesDan Finlay2017-06-141-2/+2
| | | | | | | | | Half implements #175 Things to do: - Add ability to add tokens to the list. - Persist the token tab selection (so it is an implicit preference) - Check what's up with the token-tracker polling, it seems like it is not waiting the interval.
* Merge branch 'master' into AddTokenListDan Finlay2017-06-134-45/+36
|\
| * remove more in operatorsDan Finlay2017-05-271-1/+1
| |
| * Remove commentDan Finlay2017-05-271-1/+0
| |
| * Fix contract map referenceDan Finlay2017-05-271-1/+1
| |
| * Move off in operatorDan Finlay2017-05-271-1/+1
| |
| * Add names to contract map & conf viewDan Finlay2017-05-271-3/+8
| |
| * Move to eth-contract-metadataDan Finlay2017-05-271-3/+4
| |
| * Add address image map to icon factoryDan Finlay2017-05-261-18/+21
| | | | | | | | | | | | | | Deriving from the new address image map repository I've added here: https://github.com/MetaMask/ethereum-contract-icons With this PR, images for addresses added to that repository will be shown instead of jazzicons in MetaMask.
| * Add missing changes. Create unique style for rinkeby icon.Kevin Serrano2017-04-262-0/+6
| |
* | Add placeholder etherscan token iconsDan Finlay2017-04-251-1/+25
|/
* Filter txs by txMeta network value in account detailkumavis2017-03-291-2/+2
|
* Detect tx network from txMetaDan Finlay2017-03-291-1/+1
|
* Merge branch 'ropsten-fix-2' of github.com:MetaMask/metamask-plugin into ↵kumavis2017-03-281-1/+1
|\ | | | | | | ropsten-fix
| * block explorer - ropstenkumavis2017-03-281-1/+1
| | | | | | | | etherscan differentiates between "attacked ropsten" vs "revived ropsten" https://ropsten.etherscan.io/ is the revived ropsten
* | block explorer - account link - ropstenkumavis2017-03-281-1/+1
|/ | | | etherscan differentiates between "attacked ropsten" vs "revived ropsten" https://ropsten.etherscan.io/ is the revived ropsten
* Add conditional kovan logic to etherscan link generators.Kevin Serrano2017-03-232-2/+7
|
* Got personal_sign workingDan Finlay2017-02-241-0/+1
| | | | Also fixed bug where signing would not close popup.
* Add personal sign actions and templateDan Finlay2017-02-231-5/+8
|
* Fix UI Dev Mode for Tx ApprovalDan Finlay2017-02-211-0/+5
| | | | | | | | | | The state object had been changed, but our mock states for tx approval were using the old keys. Rather than try to muck about and figure out each and every change, I've re-generated a UI dev state for tx approval, which should help @zanibas on his current project. We can continue adding new dev states as needed from here. If anyone catches a state that doesn't render correctly, it's worth checking if a new snapshot doesn't solve things. Debugged by adding new debugging loggers, and I've left them in place for easier future debugging.
* Clean up message manger includes:Frankie2017-01-291-3/+3
| | | | | | | | | Provider egine bump Remove presence of message manger in keyring controller Change the status wording fom conf to approved make Message manager a class fix messages not being apart of the badge re write message manger to better reflect controller pattern
* Merge branch 'master' into devDan Finlay2017-01-171-1/+1
|\
| * remove network Id 2 from explorer link and Add network Id 3Frances Pangilinan2016-12-211-1/+1
| |
| * Add temporary morden explorer link supportDan Finlay2016-11-221-1/+1
| |
| * Add ropsten link supportDan Finlay2016-11-221-2/+2
| |
* | LintedDan Finlay2016-12-211-1/+1
| |
* | Make notices confirmation configurableDan Finlay2016-12-211-0/+23
| | | | | | | | - Confirm button will now dismiss the lost accounts array.
* | LintedDan Finlay2016-11-231-1/+1
| |
* | Restore ropsten link supportDan Finlay2016-11-231-3/+3
| |
* | Merge branch 'dev' into i831-AddRopsten-DevDan Finlay2016-11-223-8/+7
|\ \ | |/ |/|
| * Linting to the max.Kevin Serrano2016-11-123-8/+7
| |
* | Begin adding Ropsten supportDan Finlay2016-11-221-0/+3
|/ | | | | | | | Ropsten links will still not work until Etherscan publishes their ropsten link format. At that time we will need to update ui/lib/account-link.js Otherwise, fixes #831
* Add network checks for unconfirmed TxsFrankie2016-09-091-2/+2
|
* Make element enumeration Edge compatibleDan Finlay2016-08-301-10/+7
|
* Add tolerance for failed form persistingDan Finlay2016-08-301-0/+7
|
* LintedDan Finlay2016-08-261-3/+1
|
* Remove logDan Finlay2016-08-261-1/+0
|
* Add persistent form classDan Finlay2016-08-261-0/+60
|
* Added `view more` button to transaction listDan Finlay2016-08-191-0/+18
| | | | Visible at the end of the transaction list, or if no transactions are listed, displayed right after the `No Transactions` message.
* LintedDan Finlay2016-07-121-1/+0
|
* Add nickname rendering for recipient addressDan Finlay2016-07-081-4/+18
|
* Began reworking tx conf viewDan Finlay2016-07-071-0/+17
|
* some legit linting fixeskumavis2016-06-241-2/+1
|
* icon-factory - overhaul to provide svg or imagified elkumavis2016-06-241-24/+32
|
* Manually lintedDan Finlay2016-06-221-2/+4
|
* Auto lintedDan Finlay2016-06-223-11/+10
|
* Cache identiconsDan Finlay2016-06-071-0/+52
| | | | | | | | Fixes #197 Also as a side effect, by creating this `iconFactory.cache` object, we have a convenient place for specifying stock icons for known contracts! We can just hard-code image addresses in the `ui/lib/icon-factory.js` cache instantiation, and those values will be injected into the identicon image tag `src` attributes.
* Add UI for Signing MessagesDan Finlay2016-05-041-0/+8
| | | | | | | | | | Calls to `eth.sign` are now transiently persisted in memory, and displayed in a chronological stack with pending transactions (which are still persisted to disk). This allows the user a method to sign/cancel transactions even if they miss the Chrome notification. Improved a lot of the view routing, to avoid cases where routes would show an empty account view, or transition to the accounts list when it shouldn't. Broke the transaction approval view into a couple components so messages and transactions could have their own templates.
* Fix explorer link generationDan Finlay2016-04-281-1/+4
|
* Generate explorer link to match current blockchainDan Finlay2016-04-201-0/+12