Commit Graph

97 Commits

Author SHA1 Message Date
Thibaut Sardan
1b1046cf85 Use balances.all when possible and show existential deposit (#1258)
* use balances.all when possible and show existential deposit

* indentation

* lint
2019-06-01 08:12:03 +02:00
Thibaut Sardan
9c3b497608
unlocking -> unbonding (#1252)
* unlocking -> unbonding

* only show bonded on stash
2019-05-31 14:39:57 +02:00
Jaco Greeff
90925fe648
External links from blocks/addresses/extrinsics to polkascan (#1230)
* External links from blocks/addresses to polkascan

* Ok, I give up... abs again :(

* Add extrinsic links
2019-05-30 17:58:24 +02:00
Thibaut Sardan
e875930812
update address book (#1243) 2019-05-30 13:09:26 +02:00
Jaco Greeff
065bea0829
Add "deposit" button to address (transfer to) (#1233)
* Add "deposit" button to address (transfer to)

* Add keys for modal & buttons
2019-05-29 12:52:00 +02:00
Jaco Greeff
7564c51248
Bumps, minor style adjustments (labels) (#1226)
* Bumps, minor style adjustments (labels)

* Remove unneeded flags to AddressRow

* Labels to React.ReactNode

* Rewrite yarn.lock

* Unneeded override
2019-05-29 09:32:33 +02:00
Jaco Greeff
4e4e9514e5
Swap accounts/addresses/staking to CardGrid & Card layout (#1225)
* Swap accounts/addresses to CardGrid & Card layout

* Staking to CardGrid layout

* Staking styling adjustments

* Edit inputs left align
2019-05-28 10:59:15 +02:00
Jaco Greeff
0eb050c430
Swap Addresses to grid layout (as in accounts) (#1224)
* Swap Addresses to grid layout (as in accounts)

* Failsafe in cryptotype

* Edit works. Needs to be made generic.

* Address overview + create dialog
2019-05-28 07:25:49 +02:00
Jaco Greeff
5b5ab129d3
Turn SideBar transfer into modal link (#1217)
* Turn SideBar transfer into modal link

* ui--RecentlyOffline badge location
2019-05-27 22:24:59 +02:00
Jaco Greeff
f76f1ab594
Account/Address create modals (#1221)
* Account/Address create modals

* Spacing

* Account Create modal (& use by vanity)

* Account Create & Import wired in
2019-05-27 22:09:36 +02:00
Jaco Greeff
c41321e30a
Swap AddressSummary for AddressRow (#1212)
* Swap AddressSummary for AddressRow

* Update name/address on change

* Move AddressRow to right
2019-05-27 12:40:22 +02:00
Jaco Greeff
5896ba0454
Move balances description to accounts help (#1216)
* Move balances description to accounts help

* Update packages/app-accounts/src/md/basic.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
2019-05-27 12:22:41 +02:00
Jaco Greeff
0c5f76f2ad
Add available balances to transfer modal (#1210)
* Add available balances to transfer modal

* Hide transfer modal

* Fix editing bug

* ... don't hide... yet

* liniting

* Fix broken address search

* Adjust labels (there is space)

* Adjust padding for fees

* Convert fee calculations in transfer app

* Hide all secondary buttons (non-hover)

* Re-apply row padding fix

* ui-reactive labels

* balance -> total

* label, string -> React.ReactNode

* Redeem shows

* Incorporate help messages

* Move transfer

* default AddressSummary size, 64

* Swap to AddressRow... everywhere

* AccountInfo (and use in staking/accounts)

* Modal tweaks

* De-emphasise extrinsic inherent

* Align class name with filename

* Hide AddressInfo (?)'s (for now)

* onEnter saves, closes (name)
2019-05-27 10:20:44 +02:00
Jaco Greeff
d194e34a6a
Transfer fees calc cleanups (#1209) 2019-05-24 16:18:37 +02:00
Thibaut Sardan
fc59f53869
Send button on account (#1193)
* starting point

* show all accounts

* edit and save a name but remains ugly

* actually don't use deriveStateFromProps

* fix AdressRow

* indentation

* upperCase

* bring back the index

* trim input

* change edition l&f

* lint

* cater for small screens

* address comments

* lint and alphabetical order

* allow viewing and editing tags

* better UX when tag editing and styling for no tags

* nonce refactoring and show balances

* crypto type

* styling balances

* use css grid

* fix address row and creator

* with buttons

* button styling

* locked tooltip

* edit button always visible

* init

* fix conflicts

* transfer functionnality

* styling the modal

* clean up

* clean up bis

* Transfer dialog enhancements (#1196)

* Button/TxButton submit on enter (#1170)

* Button/TxButton submit on enter

* promise linting

* testing ref approach

* Add TxComponent to handle submit on enter

* remove accountNonce

* remove input ref

* remove TxButton constructor

* remove comment

* empty constructor

* linting

* bug with null ref

* linting

* [CI Skip]  0.33.0-beta.74

* Redirect correctly when user has no account (#1191)

* right link and hide tabs plus buttons primary

* fix comments

* create highlight

* [CI Skip]  0.33.0-beta.75

* Mark ExtrinsicFailed as error (#1190)

* Hide edit on injected accounts, Button w/ tooltip (#1192)

* Hide edit on injected accounts, Button w/ tooltip

* Don't display "add tags" when not isEditable

* Indentation

* [CI Skip]  0.33.0-beta.76

* Make enable() call to extensions (#1194)

* Make enable() call to extensions

* It works

* Add overlay for injected (prompt)

* Use signer from injectedPromise

* [CI Skip]  0.33.0-beta.77

* withInjected -> PureComponent (fix new refs) (#1195)

* withInjected -> PureComponent (fix new refs)

* Consume data from context

* Expand injected

* Close modal on tx start

* align fees

* remove blank lines
2019-05-24 13:03:54 +02:00
Jaco Greeff
9426ec9c31
Hide edit on injected accounts, Button w/ tooltip (#1192)
* Hide edit on injected accounts, Button w/ tooltip

* Don't display "add tags" when not isEditable

* Indentation
2019-05-22 22:01:55 +02:00
Thibaut Sardan
fe2fe5718a
Redirect correctly when user has no account (#1191)
* right link and hide tabs plus buttons primary

* fix comments

* create highlight
2019-05-22 18:37:04 +02:00
kwingram25
dc943d7cd6
Button/TxButton submit on enter (#1170)
* Button/TxButton submit on enter

* promise linting

* testing ref approach

* Add TxComponent to handle submit on enter

* remove accountNonce

* remove input ref

* remove TxButton constructor

* remove comment

* empty constructor

* linting

* bug with null ref

* linting
2019-05-22 18:08:58 +02:00
Thibaut Sardan
797c12be3c
Account overview (#1163)
* starting point

* show all accounts

* edit and save a name but remains ugly

* actually don't use deriveStateFromProps

* fix AdressRow

* indentation

* upperCase

* bring back the index

* trim input

* change edition l&f

* lint

* cater for small screens

* address comments

* lint and alphabetical order

* allow viewing and editing tags

* better UX when tag editing and styling for no tags

* nonce refactoring and show balances

* crypto type

* styling balances

* use css grid

* fix address row and creator

* with buttons

* button styling

* locked tooltip

* edit button always visible

* nits cleanup

* lint

* address comments

* try to prevent jump on editing

* no jump when no tags

* tweak for tag jump

* forgot the useless spacer

* align AddressSummary childre top right

* fix key warning and nits

* CSS stuff to align things

* Fix merge gone wrong
2019-05-22 15:38:44 +02:00
Jaco Greeff
8f44ab50aa
Vanity -> styled-components (#1149) 2019-05-14 06:44:03 +02:00
Jaco Greeff
89e77120a7
Allow tags in Account/Address edit (#1142)
* Start of tag input

* Add tags to account edit

* Don't allow edits/tags on dev accounts

* Add tags to address book

* Update description

* Add tags as part of address & account creation

* Linting
2019-05-13 18:01:08 +02:00
Jaco Greeff
904b07005a
Rework account & address modals (#1143)
* Modal styling

* Update account forgetting

* Swap name prop to AddressRow/Summary to defaultName

* typo

* Backup modal

* Don't allow edit on isTesting accounts

* ChangePassword modal update

* Label help on password labels

* typo

* Create & backup dialog

* Addressbook forget

* Update packages/app-accounts/src/modals/Forgetting.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/Creator.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/modals/Backup.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/modals/Backup.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-address-book/src/Forgetting.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-address-book/src/Forgetting.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/modals/ChangePass.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/modals/Backup.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-accounts/src/modals/Forgetting.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
2019-05-13 15:59:04 +02:00
Jaco Greeff
bb5cf67d61
Convert some apps to styled components (#1099)
* Move 123code to styled components

* Convert some apps to using styled-components
2019-05-10 14:03:37 +02:00
Jaco Greeff
c673d17839
Handle key suri parsing errors (#1104) 2019-05-08 13:09:39 +02:00
Jaco Greeff
f99b886c10
Allow creation via dev seed (#1078)
* Allow creation via dev seed

* Fix indent (unrelated)

* Linting
2019-05-07 09:58:37 +02:00
Jaco Greeff
c9b35f71f7
Fix vanitygen (type passing) & support sr25519 (#1066)
* Fix vanitygen (type passing)

* Correct types

* Allow sr25519 vanity generation
2019-05-03 11:03:06 +02:00
Jaco Greeff
dec64403c6
Consistent staking filter placement (#1064) 2019-05-02 13:37:51 +02:00
Jaco Greeff
9ad89704e5 Old json checksum & imports (#1055)
* Old json checksum & imports
* Set address null on chage of file
* Organise imports
2019-04-30 18:18:36 +02:00
Thibaut Sardan
345cd06539 Add help on critical apps (#1030)
* add help on account app

* add help on addresses app

* add help on transfer app

* typos

* add help for voting app

* add help slidein for accounts

* correction session needs to be ed25519

* add transfer and address book

* add democracy and fix typo

* Update packages/app-democracy/src/md/basic.md

Co-Authored-By: Tbaut <33178835+Tbaut@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Tbaut <33178835+Tbaut@users.noreply.github.com>

* Update packages/app-transfer/src/md/basic.md

* use both DOTs and Units, move crypto to help, fix typo
2019-04-29 17:13:17 +02:00
Thibaut Sardan
0622299362 Mark raw seed as invalid if smaller than 32 char (#1022)
* mark raw seed as invalid if empty

* remove logs

* lint

* require a seed >=32

* Seed length checking

* Linting
2019-04-29 13:58:20 +02:00
kwingram25
56aef9398b Add BondedRx component & display bonded value, refactor RecentlyOffline (#923)
* recently offline on own accounts

* wip bonded display

* RxBonded component

* travis-ci

* import mistake

* redo

* RRemove balance (overview) & index (accounts)

* Remove session.validators

* Re-add displaying only the last offline block

* Small setState cleanup (+ State in generic)
2019-04-08 14:01:20 +02:00
Jaco Greeff
b492b96c53
Swap default accounts to sr25519 (#854)
* Swap default accounts to sr25519

* Swap focus
2019-03-27 15:38:03 +01:00
Jaco Greeff
9ab3a0b52f
Remove libsodium dependency (#829)
* Remove libsodium dependency

* Replace sodium chunk with @polkadot/wasm-* chunk
2019-03-22 15:31:04 +01:00
Jaco Greeff
5ff5bc02f9
Add derivation path for accounts (#825)
* Add derivation path for accounts

* Create using seed & path
2019-03-21 16:40:03 +01:00
Jaco Greeff
96615d5957
Bump UI, HDKD keyring (new substrate crypto) (#813)
* Bump UI, HDKD keyring (new substrate crypto)

* Bump ui/* versions

* Pull in latest util-crypto, bp39 fix

* Bump common

* Small enhancements, cleanups (testing WIP)

* Bump

* Update after merge

* Bumps, fix transfer calculation (value may be non-existent)

* Bumpo dependencies

* Label extrinsic hash

* Signature updates

* Update deps

* Adjust status display

* Close status items on click

* Update withRouter duplication

* API bump, (some) creation fixes

* Move bip39 out of the worker (fast enough now via WASM)

* Update after master merge

* Cleanup deps (re-write yarn.lock)
2019-03-20 17:06:29 +01:00
Jaco Greeff
338bd517a0
Remove /index imports (swap to bare) (#814)
* Remove /index imports (swap to bare)

* Bump deps
2019-03-14 10:45:58 +01:00
Jaco Greeff
d9cacd8322
Adjust wording for password labels (#774)
* Adjust wording for password labels

* Update Backup.tsx

* Update ChangePass.tsx

* Update with new API interfaces
2019-03-04 11:25:11 +01:00
Jaco Greeff
7858192058
Check for both v0 & v1 files (#762) 2019-02-27 10:58:07 +01:00
Mokhtar Naamani
29f76b1636 Fix app-accounts Restore feature (#761) 2019-02-27 08:33:02 +01:00
Jaco Greeff
9adfd46cc3
Bump i18next version (with usage changes) (#736)
* Bump i18next version (with usage changes)

* Remove unneeded i18n wrapping (Unlock)

* Bump semantic-ui version
2019-02-20 10:26:27 +01:00
Jaco Greeff
bdd7e4b12e
Remove password rows on modals (#698) 2019-02-11 23:21:50 +01:00
Jaco Greeff
a8ed300dc4
Small init changes (static state) (#663)
* Small init changes (static state)

* Hide vanity on empty accounts

* Require accounts for apps, cleanup needsApi/needsCalls

* Display InputAddress when disable (but no options)

* Filter toolbox based on accounts

* Accounts gated via app, don't display add

* Cleanup linting

* Validation display & clear on settings types

* Split save for developer & general

* Add Reset button to dev settings
2019-01-31 18:02:47 +01:00
Jaco Greeff
6ce31fc1da
Rework Tabs component (using react-router) (#660)
* Rework Tabs component (using react-reouter)

* Remove unneeded props (already specified)

* Bump API

* Bump API for finalised v1 support
2019-01-30 20:40:29 +01:00
Jaco Greeff
f547f8f0b1
Rework labelled layouts (#654)
* Rework labelled layouts

* Adjust storage output display

* Minor adjustments

* Linting cleanups

* Remove unused injected ia8n

* Minor adjustments

* Force Param re-render, fix Nonce params

* Text updates

* Expand Params key
2019-01-27 22:33:29 +01:00
Jaco Greeff
653c2a505f
Basic info display for 123-code (#641)
* Add withCalls

* withCalls operational

* Basic header display & cleanups

* Global account selector for app

* Remove errant debug log

* Simple transfer applet working

* Update Upgrade.tsx

* Update InputNumber.tsx

* Update Transfer.tsx

* Move TxButton back to 123code (for the time being)

* Good enough for a v1
2019-01-27 12:50:47 +01:00
Jaco Greeff
612b5d0f45
API update (metadata v1), fragment support (#652)
* Use fragments instead of [] returns

* Frament part 2

* Update API

* Update Creator.tsx

* Review cleanups
2019-01-26 17:27:13 +01:00
Jaco Greeff
864171e00a
Simplify i18n templates (#623)
* Start...

* Complete simplify i18n
2019-01-20 13:14:27 +01:00
Jaco Greeff
45e42047f3
Node status app (#618)
* Structure for app-status (bonus: starting app-template to document)

* Add steps to add a new app from the template

* Follow instructions, ensure we have something working

* README update

* Disable Wiki (for the time being)

* Split last sidebar render helper

* speellung (edit: spelling), AppProps & empty new apps (current)

* app-template -> app-123code

* Status header in-place

* Very basic distus display in place

* Overflow for hash

* app-status -> app-nodeinfo
2019-01-19 22:18:35 +01:00
Jaco Greeff
c5c8a20ca4
Small fixes & tweaks (#614)
* Small fixes & tweaks

* lintin fix (extra import)

* ui-params inputs AccountIndex as number
2019-01-18 11:21:44 +01:00
Jaco Greeff
c3821bdb1b
Update with latest API (with derive) (#611)
* Pull in latest API

* Use derive from api

* Update with latest API
2019-01-17 10:59:22 +01:00