Commit Graph

49 Commits

Author SHA1 Message Date
Jaco Greeff
9c56dc7148
Don't display on-network divider (development) (#1943) 2019-11-25 13:53:35 +01:00
Jaco Greeff
e0acd15b43
useAccounts hook (#1898)
* useAccounts hook

* Drop some withRouter

* Add setImmediate to trackStream

* Combine unsubscribe into subscribe

* Use before define

* Ass trackPromise

* Cleanup mapping for params

* Addressbook display
2019-11-16 10:13:07 +01:00
Jaco Greeff
032f46cc2d
Popup menu expansion for account/address (#1896)
* Popup menu expansion for account/address

* Add chain locking to settings

* Swap top tag location
2019-11-15 20:59:06 +01:00
Jaco Greeff
df095c2829
Staking updates (#1815)
* Staking updates

* Bump API

* So currentElected first in next up

* Linting

* Remove unused state entries
2019-10-30 15:53:52 +01:00
Jaco Greeff
c6beca5a4c
Update council candidate refresh (#1790)
* Display council voters

* Show voting stake

* Adjust AddressMini widths

* Swap to (mostly) AccountIndex display

* Create modals (no default opacity)

* Trigger PR build
2019-10-28 16:24:34 +01:00
Jaco Greeff
5c380308ec
Display locked amounts (#1784) 2019-10-28 11:26:52 +01:00
Jaco Greeff
e7279751e5
Set genesisHash on toggle (#1778) 2019-10-27 16:48:48 +01:00
Jaco Greeff
8c0c870d04
Nicknames & term progress (#1772)
* Nicknames & term progress

* Add reserved display

* Hide reserved on 0
2019-10-27 14:42:35 +01:00
Jaco Greeff
2a874e4dd9
Support electionsPhragmen (#1768)
* Support electionsPhragmen

* Base voting

* Allow voting
2019-10-26 18:52:21 +02:00
Jaco Greeff
ac854e4d2c
Only trim name on create (#1756) 2019-10-24 11:10:19 +02:00
Jaco Greeff
1c3a4c937a
Update balance total to be free, reserved & bonded (#1748) 2019-10-21 12:58:12 +02:00
Eswara Sai
2a4d761e0f Added parser to extract i18n strings (#1710)
* Added parser to extract i18n strings

* Fixed issues with eslint for config file

* Moved i18n locales to apps/public folder

* Updated script to have i18n strings as default value
2019-10-11 15:12:36 +02:00
Jaco Greeff
7415befba2
Some more additional func conversions (#1692)
* Some more additional func conversions

* Create Address functional

* Minor cleanups

* Adapt ExtrinsicDisplay

* Linting updates
2019-10-04 17:45:10 +02:00
Jaco Greeff
f67058e4c0
Cleanup InputAddress export, proper props (#1673) 2019-09-27 12:29:30 +02:00
Jaco Greeff
c3ce788215
More functional components (#1667)
* More functional components

* sudo setKey

* Additional  components
2019-09-26 17:16:56 +02:00
Jaco Greeff
6f8da05805
More func. components, Button labelIcon -> icon (req.) (#1649) 2019-09-24 10:00:05 +02:00
Jaco Greeff
a9cd43c8f0
Some more func component conversions (#1639) 2019-09-20 12:04:58 +02:00
Bhanu Teja P
01271da389 Add relevant icons to top-level buttons (#1618)
* Add relevant icons to top-level buttons

* Add some missing icons

* Add some missing icons

* Add missing icons
2019-09-19 12:57:10 +02:00
Jaco Greeff
b785c8acf2
genesisHash accounts toggle (#1573)
* genesisHash accounts toggle

* Bump deps

* Adjust toggle colors

* Use Api context

* Add genesisHash to addresses (on by default)
2019-09-03 16:26:03 +02:00
kwingram25
c9790f85d9
useContext instead of withApi (#1579)
* useContext instead of withApi

* types to interface, fixes
2019-09-03 15:00:09 +02:00
Jaco Greeff
ec8be875df
typescript-eslint 2 (#1568)
* Setup for typescript-eslint 2

* Cleanup linting

* Bump ui version

* Exclude build folders
2019-09-01 13:34:56 +02:00
Jaco Greeff
e4c933cc87
Bump deps (#1560) 2019-08-30 09:09:11 +02:00
Jaco Greeff
66ca8ea61e
Hygiene, some additional type -> interface (#1552)
* Higene, some additional type -> interface

* Liniting
2019-08-28 12:52:48 +02:00
Jaco Greeff
e6ca2db884
Rename ui-* -> react-* (#1495)
* Rename ui-* -> react-*

* Rename actual folders

* react-app -> react-components

* CSS links
2019-08-12 13:12:05 +02:00
Jaco Greeff
ea829237de
eslint cleanup (as unknown as State -> Pick<State, never>) (#1405) 2019-07-15 12:36:17 +02:00
Jaco Greeff
0e2265ff70
Some initial pre-eslint cleanups (#1383)
* Some initial cleanups

* Make it lint

* Small s/type/interface/ additions

* Small minor s/type/interface/

* More type -> interface

* Add lint:new rule

* Some small updates

* Cleanup dangling tslint  issues

* Small updates

* ui-signer cleanups

* ui-reactive updated

* Make lint:new run

* Mini ui-params cleanups

* Some additions

* Tiny... and done for now.

* 1950 problems (1241 errors, 709 warnings)

* 1829 problems (1181 errors, 648 warnings)

* 1674 problems (1181 errors, 493 warnings) (no any... for now)

* Small additions.

* Array<T> -> T[] (all)
2019-07-14 22:27:12 +02:00
Thibaut Sardan
b2f6d87de1
Use empty props from CardGrid (#1304)
* empty for account, addressbook

* staking empty screen

* use multi only when values changed

* lint

* withCall paramPick transform

* use paramPick and log things

* swap logging

* Display getMethod errors in withCall

* Remove nested try

* Use updateDb to trigger an update

* fix bonding

* Revert ifs

* Update call.tsx

* lint

* stray logs
2019-06-29 10:02:58 +02:00
Jaco Greeff
f9a28fc6ea Remove all tags on create dialogs (#1348) 2019-06-25 15:15:08 +01:00
Jaco Greeff
479d5bb8bf
ui-keyring & api updates (#1326)
* ui-keyring & api updates

* Rewrite yarn.lock (pin @types/styled-components)
2019-06-21 16:44:55 +02:00
Jaco Greeff
6440e3baaa
Bump deps (change use as required) (#1293)
* Bump deps (change use as required)

* Bump api with send fix
2019-06-13 20:19:15 +02:00
Thibaut Sardan
d868adae88 Redo staking process and overview (#1268)
* remove filtering on actions tab

* remove unused balances on actions

* remove unused balances on actions

* only show stash

* show stashed including validators and nominators

* some buttons

* new stake button

* bond edit init

* BondEdit button

* combined session and validating button

* remove comments

* remove css hack

* phrasing

* validator prefs

* can edit validator prefs

* fix validatorPrefs undifined and nits

* validate unstakeThreshold (<11)

* with setting button noautoclose

* fix nominee styling

* change session and process feeling

* lint

* change nominees without defaultValue

* display and change reward destination

* change controller

* add balances on bond and unbond

* available balance, setting button right, nameOrAddress

* back to the old flow with set session key, cleanup logs

* balance off on chrome

* fix comments + a design hickup on chrome

* fix conflicts

* nits

* Various small UI fixes

* Types for getAddress defaults

* use name

* type props for Row

* lint
2019-06-13 06:04:01 +02:00
kwingram25
4b7987ae1c
New contracts app (#1283)
* new contracts app

* new contracts app

* test ci fix

* fixes

* fixes

* remove abi inline

* css code card

* icon buttons

* fixes

* fixes cont.

* travis ci fixed

* api version
2019-06-12 13:52:53 +02:00
Jaco Greeff
434b7bb6e9
Add AddressCard (#1269)
* Add AddressCard

* Simplify AddressCard rendering
2019-06-04 13:30:49 +02:00
Jaco Greeff
facf34cc2f
Additional syled-component conversions (#1265)
* Additional syled-component conversions

* Small updates

* Providers to index

* Cleanup linting
2019-06-04 13:30:16 +02:00
Jaco Greeff
f887f68cfb
Combine AddressSummary & Row (#1260)
* Combine AddressSummary & Row

* Cleanup address rendering

* Tiny tags cleanups

* Remove unused ui--AddressSummary overrides

* Column component

* Columar

* Cleanups

* Remove hot client

* Backport data padding
2019-06-02 10:13:38 +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
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
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
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
dec64403c6
Consistent staking filter placement (#1064) 2019-05-02 13:37:51 +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
03089f3f01
Rename the "Addresses" app into "Address book" (#1034)
* change addresses to address book

* rename address into contact
2019-04-18 12:27:12 +01:00