1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 21:00:13 +01:00
Commit Graph

2094 Commits

Author SHA1 Message Date
Dan Finlay
d9d442ed1f Began adding jazzicons
Currently experiencing a few problems:

1. Tons of errors on app start. It's as if Jazzicon is getting called many times at start with some object as its diameter.
2. Weird visual glitches. When leaving a view with a jazzicon, it flashes off its border radius.
3. Messy transitions. Might want to just re-do the transitions. They just look awful, it's barely worthwhile.
2016-05-10 23:07:01 -07:00
kumavis
9c91da72f5 ui - account list - fix select account 2016-05-10 17:22:09 -07:00
kumavis
c2c33ff6cd ui - redesign - app header + accounts selection 2016-05-10 16:52:07 -07:00
Dan Finlay
d8bee4f599 Make default providers more easiliy configurable for metamask devs
No longer do our `mainnet` and `testnet` buttons set specific RPC urls. Now they set `provider.type`, which gets interpreted with code.

Currently the provider types of `mainnet` and `testnet` point to our new scalable backends, but these could be re-interpreted to use any other provider, be it etherscan, peer to peer, or otherwise.

Makes it easier for us to upgrade our infrastructure without incorporating migration logic into the program.
2016-05-10 15:37:13 -07:00
Dan Finlay
d3b541e126 Fix transition bugs after vault restore 2016-05-10 10:45:31 -07:00
Dan Finlay
7f32560b03 Fix account loading bug 2016-05-10 10:31:53 -07:00
Dan Finlay
c30a67b2de Restored signTx action 2016-05-06 14:46:04 -07:00
Dan Finlay
356da540d1 Style transaction list using new panel component 2016-05-06 14:42:08 -07:00
Dan Finlay
a9fc4f452f Move account panel style into reusable component
The styles that defined the `account-panel` component now belong to the `panel` component, which is now used by the `account-panel` component for its styles.

It accepts an optional `onClick` property that it will fire when clicked!

Planning to use it for the tx-list.
2016-05-06 14:24:01 -07:00
Dan Finlay
ebb0aac7dd Always show transaction list 2016-05-05 13:27:00 -07:00
Dan Finlay
64b635fc76 Fix account navigation link 2016-05-05 12:23:54 -07:00
Dan Finlay
f92189a721 Restored back button to account detail view.
The `Change Acct` button was confusing multiple users, reverted that bit.
2016-05-05 12:14:51 -07:00
Dan Finlay
6ee193f802 Merge branch 'MoveAccountExportToSubview' into FixButtonStyleBug 2016-05-04 20:41:59 -07:00
Dan Finlay
93db6cacb5 Fix button width transition bug
Fixes #160
2016-05-04 20:41:34 -07:00
Dan Finlay
d929f80532 Fix routing bug
Where sometimes the account list was shown when first unlocking, after momentarily showing the detail panel.
2016-05-04 20:37:39 -07:00
Dan Finlay
f4d58ebc70 Move account export to subview
Account detail view now has an animated transitioning `subview` section that allows us to show extra details within it.

Clicking `export` now slide replaces the transaction list with the export UI.

Added cancel/done/submit buttons to the Export UI. Done submits like Enter did, the other two transition back to the transaction list.

For some reason when first unlocking, the selected account is being instantly replaced with the accounts list, so I need to fix that before merging this into master.
2016-05-04 18:08:31 -07:00
Dan Finlay
9c6ec054b1 Show any pending txs when unlocking
Before the unlock action hard-routed to the home route, now it has a condition where it will show pending transactions instead.
2016-05-03 15:04:15 -07:00
Dan Finlay
46e100f595 Improve tx UI 2016-05-03 14:44:36 -07:00
Dan Finlay
e6c4d63ccd Add UI for Signing Messages
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.
2016-05-03 14:32:22 -07:00
Dan Finlay
988165224b Fix outdated transitions
Fixes #151

- Cancelling or completing a tx now goes back to account detail view.
- Restoring a vault now does not select an unloaded account, shows account list.
- Account list now never selects an item only uses the cells as buttons.
2016-04-29 17:02:36 -07:00
Dan Finlay
118da12197 Merge branch 'master' into Identicon 2016-04-29 14:01:58 -07:00
Dan Finlay
9360e33510 Convert icons to identicons 2016-04-29 12:45:46 -07:00
Dan Finlay
c88c3ccd81 Fix slack link 2016-04-29 11:41:59 -07:00
Dan Finlay
d017c28441 Filter transaction list for current blockchain network
When starting up, we now create a `web3` inside the `background.js` process, which we pass to the `idStore` and ask for the current `network`.

We include the `network` on `app.metamask.network` in the state object.

We re-request the network when changing provider.

We filter the transaction list for transactions that match the current network.
2016-04-27 18:04:33 -07:00
Dan Finlay
781334da47 When no account is selected, show accounts view 2016-04-25 15:18:20 -07:00
Dan Finlay
1025eb3b4f Persist selected account
When selecting an account, we now persist the selection to the `configManager`, so the selection can be restored when re-unlocking Metamask.

Also found the bug where `rawtestrpc` was still being used as a default, and fixed it!
2016-04-25 14:14:34 -07:00
Dan Finlay
4c46cbc99c Fixed some loading bugs 2016-04-25 13:49:46 -07:00
Dan Finlay
44c68eb23c Fix test 2016-04-25 13:41:06 -07:00
Dan Finlay
2dd7bd6bd0 Make account detail view the primary view
- When unlocking, the first account is now selected by default and displayed as the main view.
 - There is now a "CHANGE ACCT" button on the detail view to show the accounts list.
 - Clicking an account from the accounts list now navigates to the detail view and selects that account.
 - Config/Info screen "back" buttons now fire a new action, `GO_HOME`, which is configured to navigate to the accountDetail view, putting that logic in one place.
 - When locking and unlocking again, the first account is always displayed, eventually we should persist the selection.
2016-04-25 12:38:43 -07:00
Dan Finlay
820736b427 Add RPC config buttons and styles
- Add save button for custom RPC input field
 - Add button for RPC at `localhost:8545`.
 - Improve `Current RPC` display.
2016-04-22 14:39:12 -07:00
Dan Finlay
7455a0fa32 Improve transaction list title 2016-04-19 19:10:22 -07:00
Dan Finlay
7276e80816 Removed logs 2016-04-19 18:58:34 -07:00
Dan Finlay
d6ab6bb4fa Fix floating point input bug
When sending a transaction, we were converting to BN before handling decimals, which meant we were losing any precision past a decimal point, since BN does not handle decimals!

Put this numeric normalization into a utility function with a test around it and got it working.
2016-04-19 18:56:22 -07:00
Dan Finlay
f79601ee58 Generate explorer link to match current blockchain 2016-04-19 18:21:28 -07:00
Dan Finlay
0a0a631af2 Improve some UI formatting 2016-04-19 17:31:34 -07:00
Dan Finlay
13cac5943e Move transaction list after account panel 2016-04-19 17:27:20 -07:00
Dan Finlay
c858b70585 Moved transaction-list into its own component 2016-04-19 15:07:15 -07:00
Dan Finlay
8fe113e8d9 Merge branch 'master' into TransactionList 2016-04-19 13:03:00 -07:00
John Whitton
b953dc9ae1 Prototype Transaction Details in account-detail.js
Rough prototype with hyperlink
2016-04-19 12:34:49 -07:00
Dan Finlay
1d56ab821e Fix displayed RPC address
Fixes #119
2016-04-18 17:35:42 -07:00
Dan Finlay
33dc68535d Add leading zero to account balances 2016-04-15 09:42:20 -07:00
kumavis
cef1f2a65f ui - util - fixes#110 formatBalance 2016-04-14 21:19:08 -07:00
Dan Finlay
8527d051b0 Fix eth resolution
utils.formatBalance was returning rounded ether, was not useful for displaying account balances.

Now returns four decimal points, and is easily configurable for more, with passing tests.

Spoiler alert:  Don't you dare divide bignumber wei. Bignumber does not have decimals. Keep it as wei, format it as ether.
2016-04-14 13:20:19 -07:00
Dan Finlay
d814a45dff Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00