Commit Graph

120 Commits

Author SHA1 Message Date
Jaco Greeff
488bfef0c4
Add trackStream, impl. in staking overview (#1891)
* Add trackStream, impl. in staking overview

* Use trackStream in Address

* Fix linting

* Add reward displays
2019-11-15 15:06:47 +01:00
Jaco Greeff
c167227845
Add useApiContext (#1890)
* Add useApiContext

* Add missing withApiContext import

* useCacheKey, rename headers

* Adjustment on sessionRewards naming

* Renames based on defacto standards
2019-11-15 10:51:12 +01:00
Jaco Greeff
03158fb594
Add useFavorites hook (incl. react-hooks package) (#1873)
* Add useFavorites hook

* useFavorites to Nominate

* Fix filter: grayscale positioning
2019-11-12 18:32:52 +01:00
Jaco Greeff
e7e4efebeb
Enable validator overview (#1872)
* Enable validator overview

* CallDiv indicator for consts
2019-11-12 14:39:38 +01:00
Jaco Greeff
5ec79faa4a
Add fav & current as nominations (#1869)
* Add fav & current as nominations

* Toggle nominee at end

* Selection icons for council
2019-11-11 23:35:00 +01:00
Jaco Greeff
a3b3eb9930
Small fav display tweaks (#1868)
* Add staking favorites (top of list)

* Small display  tweaks

* Checks
2019-11-11 20:51:04 +01:00
Jaco Greeff
2a52609f23
Add staking favorites (top of list) (#1866) 2019-11-11 19:58:13 +01:00
Jaco Greeff
55eb877e14
Small optimizations (staking display, recalcs) (#1862) 2019-11-09 15:05:37 +01:00
Jaco Greeff
3c475fbafe
Cleanup non-imOnline display (#1853) 2019-11-08 09:34:36 +01:00
Jaco Greeff
82242b36d2
Staking warnings (display swap) (#1838) 2019-11-03 22:11:40 +01:00
Jaco Greeff
5164e86aff
Points index adjustments (#1836)
* Points index adjustments

* Linting
2019-11-03 14:48:04 +01:00
Jaco Greeff
d05eb94052
Add Expanded component (#1834) 2019-11-03 10:50:15 +01:00
Jaco Greeff
12739270ba V1 Activity 2019-11-03 08:37:33 +01:00
Jaco Greeff
e3bca04936
Staking RPC & UI optimizations (#1833)
* Staking query optimization

* Final roundup

* Bump API with new derive  interfaces
2019-11-02 23:54:23 +01:00
Jaco Greeff
08a36be445
Expand imOnline (blocks + message) (#1821)
* Expand imOnline (blocks + message)

* Merge master, bump API

* Fix linting
2019-10-31 20:04:00 +01:00
Jaco Greeff
c8c0a1d9c3
Staking display query opt. (#1819)
* Cleanup staking balance rendering

* Nominator details only on onClick

* Fix V1 display

* default for withNominations
2019-10-31 16:16:04 +01:00
Jaco Greeff
73e6d49a9a
Swap derive idAndIndex to info only (#1817) 2019-10-31 11:29:17 +01:00
Jaco Greeff
3948690528
Nominations current elected (#1816)
* Nominations for currentElected

* Drop nominatioons (for now)

* Display forks (i.e. multi authors)
2019-10-31 09:41:21 +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
58aacb4c65 Remove disabled 2019-10-29 22:48:22 +01:00
Jaco Greeff
03e021325c
Some small staking dangling bits (#1812)
* Some small staking dangling bits

* Point formatting
2019-10-29 22:30:21 +01:00
Jaco Greeff
3c5bee6dcf
Era points (#1811) 2019-10-29 21:34:26 +01:00
Jaco Greeff
d3bd098f9a
Place authors on a context (#1808)
* Pleace authors on a context

* Cleanup empty effect

* Cleanup context, no new object
2019-10-29 15:00:03 +01:00
Jaco Greeff
2abad7669e
Display old blocks (#1807)
* Display old blocks

* Ghost old blocks

* Block position
2019-10-29 13:52:04 +01:00
Jaco Greeff
3b8a763a3e
Display heartbeats via state (#1806)
* Display heartbeats via state

* Bump deps with API support

* Update sigs

* More linting
2019-10-29 12:48:33 +01:00
Jaco Greeff
3837ce1db6
Small staking render adjustments (#1798)
* Small staking rendering improvements

* Only display once stash is available
2019-10-29 08:20:35 +01:00
Jaco Greeff
fb35cbf375
Staking Address func. (incl. performance improvements) (#1744)
* Staking Address func. (incl. performance improvements)

* Skip unneeded re-renders

* Use reducer

* Get rid on transform-only state

* Don't re-create empty objects
2019-10-21 11:40:51 +02:00
Jaco Greeff
024a55e3d0
Fix nominate display, add commission display (#1703)
* Fix nominating display, Closes https://github.com/polkadot-js/apps/issues/1701

* Add commission display on staking overview
2019-10-07 15:27:43 +02:00
Jaco Greeff
0e70ce1b8b
Some more css -> styled conversions (#1677) 2019-10-01 14:29:56 +02:00
Jaco Greeff
5ee21ae275
Staking performance updates (#1670)
* Staking performance updates

* More default on props
2019-09-26 22:21:16 +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
ff5b5c2a3f
Remove unused balances props (#1647)
* Remove unused balances props

* Comment CSS horribleness

* Extra {

* Merge master
2019-09-23 15:21:11 +02:00
Jaco Greeff
514d99894d
Bump deps (#1603) 2019-09-12 16:32:40 +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
kwingram25
2752bedc6e
Functional components (app-*) (#1559)
* Functional components (app-*)

* refactor

* refactor

* refactor

* refactor

* refactor

* Revert "refactor"

This reverts commit 300a12ed7de5b1000f32f5269dff67f5ee1c1515.

* onRemove
2019-08-29 17:45:02 +02:00
kwingram25
1f51e600d1 Display ReceivedHeartbeats status for staking accounts (#1476)
* Display ReceivedHeartbeats status for staking accounts

* Fix

* linting error

* complete merge

* fix changed event sig

* fix recentlyOnline check
2019-08-28 16:12:24 +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
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
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
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
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
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
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