Commit Graph

37 Commits

Author SHA1 Message Date
Jaco Greeff
2209078f5c
Adjust UI highlights based on chain/node color settings (#2384)
* Adjust app hightlights

* Default fallback
2020-03-14 08:49:50 +01:00
Jaco Greeff
d1ef960c40
User latest era only for global staking counter (#2382) 2020-03-13 22:17:09 +01:00
Jaco Greeff
ec7b1b65b5
Bump API (#2378) 2020-03-12 23:55:08 +01:00
Jaco Greeff
83a2ddedd4
useCallback in all staking callbacks (#2376)
* Add React.emomo to some components

* Linting

* useCallback for callbacks

* Additional useCallback impl.
2020-03-12 12:59:09 +01:00
Jaco Greeff
304dab95cc
Add React.memo to some components (#2375)
* Add React.emomo to some components

* Linting
2020-03-12 11:15:38 +01:00
Jaco Greeff
ac8c7cc410
Add global reward alert for payouts (#2370) 2020-03-11 17:30:01 +01:00
Jaco Greeff
45265f7cd3 Optional call 2020-03-09 21:42:25 +01:00
Keith Ingram
3afceac9d1
Parachains app (#2308)
* parachains app

* fin

* fin

* rec changes

* Fix sudo lookup

* sudoKey is already a string

* fix CI

* Fix build, re-gen i18n

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-03-02 08:48:29 +01:00
Keith Ingram
1c8e504457
TxButton to functional (#2314)
* TxButton to functional

* bug fix

* Small moves

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-03-01 18:55:54 +01:00
Jaco Greeff
756203fab8
Pull in collective hooks (from PR) (#2264) 2020-02-11 15:24:09 +01:00
Jaco Greeff
79de1162ea
useTranslation Suspense fallback (#2158)
* useTranslation Suspense fallback

* import path

* Some small useTranslation conversions
2020-01-20 17:20:04 +01:00
Jaco Greeff
03a5b2726c
Bump API (incl. staking ledger fixes) (#2156)
* Bump API (incl. staking ledger fixes)

* Api context

* Replace counter

* Linting

* Swap t -> useTranslation

* Cleanup unwrap

* Rebuild i18n (& make auto-config)

* Remove old eslint override
2020-01-20 15:08:03 +01:00
Jaco Greeff
562e11dc06
Bump deps (#2091) 2020-01-06 16:16:50 +01:00
Jaco Greeff
74dbf64808
Add useIsMountedRef hook (#2041)
* Add useIsMountedRef hook

* Use mounted ref on async operations (staking)

* Rework historic caching

* linting
2019-12-13 17:22:14 +01:00
Jaco Greeff
6c58db0187
Small cleanups on withCalls (#2040)
* Fixups

* More

* Some withCalls -> useCall

* Linting

* Always defined

* Re-apply democracy changes

* TimePeriod adjusted

* Cleanup imports

* Additional

* More conversions

* Small loading cleanups

* Small context updates
2019-12-13 15:55:15 +01:00
Jaco Greeff
24526345dc
Rework staking accounts layout (#2031)
* Rework staking accounts layout

* Optimize sort, simple substract

* Unneeded ?.

* Remove AddressCard

* Bump API
2019-12-11 18:37:57 +01:00
Jaco Greeff
0402d0e10f
Force reward retrieval to single-shot (#2013)
* Force reward retrieval to single-shot

* Remove inner setTimeout
2019-12-08 22:00:29 +01:00
Jaco Greeff
d2322b4d32
Fix refresh on council proposals (#2012) 2019-12-08 19:34:49 +01:00
Jaco Greeff
c58cbc6eaf
Fix useStream unsub (#2010)
* Fix useStream unsub

* non-deobounced on input
2019-12-07 23:19:14 +01:00
Jaco Greeff
644fd0099a Improve rewards rendering 2019-12-06 00:10:23 +01:00
Jaco Greeff
c0b9451b78
Bump deps (#2001)
* Bump deps

* Rewrite
2019-12-05 13:18:38 +01:00
Keith Ingram
a69bdfeef1 Propose tech committee motions (#1996)
* Propose tech committe motions

* bug, ignore .vscode

* linting

* Some cleanups

* Move Propose back
2019-12-04 12:22:19 +01:00
Keith Ingram
9bc6194265
Replace TxComponent and TxModal (base) (#1951)
* essentials

* cleanup

* versions

* rv file

* useForm function refs

* restore button ref

* adjust TxModalNew

* refactor

* useTx

* arg

* rework

* linting

* restore changed comps
2019-12-02 13:42:49 -08:00
Jaco Greeff
2175a11e24
Proposal counters (#1982) 2019-12-02 19:41:43 +01:00
Jaco Greeff
50e44f2f2f
Fix historic blocks produced display (#1966) 2019-11-30 13:11:37 +01:00
Jaco Greeff
2648ee30e2
Bump API (#1907)
* Tracker updates

* Bump API

* Fix linting

* track* comments
2019-11-19 10:59:02 +01:00
Jaco Greeff
c337e4dacb
Show rotate keys (as available) (#1906) 2019-11-18 16:44:37 +01:00
Jaco Greeff
b82b769ca5
Cleanup reward graphs (#1904)
* Cleanup reward graphs

* Cleanup import
2019-11-17 14:37:33 +01:00
Jaco Greeff
c3e16ac040
s/useApiContext/useApi/ (#1900) 2019-11-16 20:21:46 +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
bffa6589b7
Add currency indicator to staking charts (#1897) 2019-11-15 22:18:33 +01:00
Jaco Greeff
e8745b4909
Map non-account stashes (#1892) 2019-11-15 17:23:32 +01:00
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
87dbcd2067
Align graph lengths (#1887) 2019-11-15 01:04:26 +01:00
Jaco Greeff
03a3336584
Add slashing graph (#1886) 2019-11-14 23:31:26 +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