Commit Graph

168 Commits

Author SHA1 Message Date
Jaco Greeff
d5e34157b5
Kusama CC1 -> Kusama (bond override) (#1536)
* Kusama CC1 -> Kusama (bond override)

* Kusama logo for W3F nodes
2019-08-26 09:15:06 +02:00
Jaco Greeff
2dde1326df
0.34 (#1530) 2019-08-24 14:14:57 +02:00
Jaco Greeff
8e2551138e
Swap to subscribeNewHeads in API (#1529) 2019-08-24 12:47:26 +02:00
Jaco Greeff
1323886c2c
Cleanup waiting count (direct from next list) (#1527) 2019-08-24 08:34:08 +02:00
Jaco Greeff
9908f0721e
Render validators based on stashId or address (#1525)
* Render validators based on stashId or address

* Fix waiting count

* Start call subscriprion  with setTimeout

* Remove stray debug log

* Ignore controller error when setting

* Update Kusama chain name
2019-08-23 15:41:09 +02:00
Jaco Greeff
b8cb835b32
Only warn for controller === stash (Dev, Kusama) (#1519) 2019-08-21 21:41:13 +02:00
Jaco Greeff
48faaf9541
Update for 2.x ValidatorPrefs (#1513)
* Update for 2.x ValidatorPrefs

* Whitepace, linting...

* Type cleanups

* Cater for ValidatorPrefs, no unstake
2019-08-19 21:05:31 +02:00
Jaco Greeff
a841ee9f64
Bump API (Offences) (#1507) 2019-08-17 11:53:31 +02:00
Jaco Greeff
0946e0e678
Render session hex (#1497)
* Render session hex

* session keys as part of AddressInfo

* fix: 48 bits and remove from the overview

* fix validator prefs and sessionsId.length

* fix #1500 and put block number in for V2
2019-08-14 07:37: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
2b3617236d
Bump API, Keys -> Tuple (#1486) 2019-08-09 10:07:29 +02:00
Jaco Greeff
87351fdd1d
Import session keys for author_rotateKeys (#1484)
* Session keys input

* Impoirt session keys for author_rotateKeys

* Bump API

* Defaults
2019-08-08 16:16:57 +02:00
Jaco Greeff
35a316f861
Swap session inputs to address (matches rotate RPC for 2.x) (#1475)
* Swap session inputs to address (matches rotate RPC for 2.x)

* Naming for v1/v2

* Use sessionIds

* Update for keys in triplicate

* Bump API
2019-08-07 22:12:47 +02:00
Lowhearth
27292b9794 Adjusted article padding and corrected Row's buttons position (1465) (#1469)
* Adjusted article padding and corrected Row's buttons position. Fixes #1465

* Corrected name-input overlapping account's id when editing

* Adjusted Row-buttons to keep bottom margin consistent and added name ellipsis.

* Removed buttons height to prevent bottom div displacement.
Adjusted text-wrap to work with spaces
2019-08-06 11:24:45 +02:00
Jaco Greeff
c7b6e26e45
Session keys for 2.x (#1461) 2019-08-02 13:52:01 +02:00
Jaco Greeff
b4de745cda
Support latest api (with dynamic types) (#1447)
* Make a start, halfway down with issues found...

* Around  80% through untangling  the linter

* Seems linted...

* Adjust latest

* Update for latest (Moment -> u64)

* Method -> Call

* Bump api from npm

* formatNumber (no unwrap needed)

* Update to latest ui packages

* Revert internal version downgrades
2019-07-29 12:24:43 +02:00
Thibaut Sardan
64e2f8e99c Fix account wrongly seen as current validator (#1446)
* fix(): current validators

* fix(): return null
2019-07-26 12:20:37 +02:00
Jaco Greeff
8bb35dd9ff
Complete eslint swap (#1407) 2019-07-16 11:56:40 +02:00
Jaco Greeff
144c8bbd85
eslint fixes (round 2) (#1401)
* eslint fixes (round 2)

* ui-params converted

* Tiny.

* Classes fix

* Some type cleanups

* Cleanup traling ,

* < 1k

* Small additions

* <750

* Mini updates modifiers

* More ui-app cleanups

* 312 problems (182 errors, 130 warnings)
2019-07-15 23:17:19 +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
679219fe97
Staking compatibility with v2 (#1397)
* compat v2

* nits

* array synthax for eslint

* array synthax for eslint

* array synthax for eslint

* isSubstrateV2 in ui-api
2019-07-14 17:32:55 +02:00
Thibaut Sardan
42e0baf332 Bonded and available as labelExtra in Staking > bond more funds (#1371)
* bonded and available

* alphabetical ordering

* keep only available, +10% opacity for label and labelExtra

* lint
2019-07-09 17:25:06 +02:00
Jaco Greeff
68a523a778
Beauty is in the eye of the beerholder (#1328)
* Beuty is in the eye of the beerholder

* Signer dialog

* .multiple with address

* Transfer wrapper

* Multiple input height

* 2rem -> 1.75rem

* Adjustments for invalid

* Break IdentityIcon out of box

* Small layout adjustments

* Row adjustment

* Remove commented styles

* Remove commented code

* Remove unneeded padding

* Remove unused i81n

* Display messages with input-like styling

* InputFile & Messages overrides

* Adjust input margins (non-flex)

* Center icon

* Adjust labelExtra placement, staking dropdown

* Combine linked lists into one

* Fix developer settings
2019-07-08 22:33:57 +02:00
Thibaut Sardan
a2d6a61d0e Fix "query.staking.bonded Bonded expect one argument" (#1361)
* fix 1069

* remove that automatically imported import
2019-07-07 18:40:15 +02:00
Thibaut Sardan
27135475fa
Stray log (#1356) 2019-07-02 16:26:21 +02:00
Thibaut Sardan
d16a4282ee
Support 1.x setKey & 2.x setKeys (#1322)
* setKeys

* new one first

* use same sessionId with both keys
2019-06-29 10:11:45 +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
kwingram25
b74755bbaa
Treasury app (#1324)
* treasury app

* fixes

* more fixes

* treasury app

* fixes

* more fixes

* fixes + collections

* force travis
2019-06-25 15:20:53 +01:00
Jaco Greeff
1a404b76ca Additional styled componentn adjustments (#1337) 2019-06-24 16:40:32 +01:00
Jaco Greeff
c76161263b
Small rework of styled (to bottom) (#1310)
* Small rework of styled (to bottom)

* Add isRoot to council
2019-06-19 17:31:31 +02:00
Jaco Greeff
b497f5599a
Seconding modal (#1313)
* Seconding modal

* Add voting modal, adjust button placement
2019-06-19 15:56:53 +02:00
Jaco Greeff
53339e5f1b
Democracy layout changes (#1309)
* Democracy layout changes

* Select democarcy.propose as default

* Revert default, blonde moment

* Remove min-height for ui--Card

* Extract Item styles

* Extract all styles into styled-components

* lint hack

* Update Row.tsx

* Update Address.tsx

* Small layout cleanups
2019-06-19 13:13:48 +02:00
Thibaut Sardan
096b3fa944
CSS fixes (#1300)
* colum for accounts

* wrapping trick for chrome
2019-06-17 20:51:31 +08:00
Thibaut Sardan
6749d694cc Use AddressCard (#1295)
* use addressCard

* alphabetical
2019-06-15 12:29:45 +02:00
Thibaut Sardan
c9c88c3bff
Fix nits from previous PRs (#1292)
* spacer

* address in lower case

* bring back names in staking overview

* lint

* uppercase only for names

* remove type in AddressCard

* same fix for council members

* reflect selection in setRewardDestination

* nowrap on edit and copy icons

* nit comment
2019-06-14 18:20:55 +08: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
43aaacf40e
Extract (some) explorer styling (#1286)
* Bump deps

* Extract explorer (some) styling

* Bump deps

* Bump deps
2019-06-09 07:50:13 +02:00
Jaco Greeff
269c966e46
Fix AddressMini padding on staking (#1285) 2019-06-07 09:38:00 +02:00
Jaco Greeff
8123602356
Remove absolute from RecentlyOffline (#1276)
* Remove absolute from RecentlyOffline

* Remove extra/unneeded offline query

* Remove unneeded guard
2019-06-05 10:19:32 +02:00
Jaco Greeff
434b7bb6e9
Add AddressCard (#1269)
* Add AddressCard

* Simplify AddressCard rendering
2019-06-04 13:30:49 +02:00
Jaco Greeff
ba6b0c6df7
Basic council overview (#1267)
* Cleanup styles for staking

* Basic council members list

* AddressRow adjustments

* Less-spacy rows

* Adjust after merge

* Move accounts to first tranch

* s/council/members/

* Update CardGrid.tsx

* Remove any on styled props

* Small readability tweak
2019-06-04 10:04:14 +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
6ef01c0024
Render AddressRow balances from AddressInfo (#1259)
* Render AddressRow balances from AddressInfo

* Extract BalanceActiveType

* Filtering around AddressSummary children
2019-06-01 08:36:28 +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
c64f3c905a
Small adjustments on staking & mini labels (#1222)
* Small adjustments on staking & mini labels

* Formatting
2019-05-27 22:00:01 +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