Commit Graph

273 Commits

Author SHA1 Message Date
Jaco Greeff
498a4818ff
Sort parachain lists with known first (#5011)
* Sort parachain lists with known first

* leases re-sort

* Adjust sorting
2021-04-02 21:19:52 +02:00
Jaco Greeff
31448157eb
Split parathreads tab (#4997)
* Split parathreads tab

* Keep threads warm

* Remove extra ?.

* Type for id + leases
2021-04-01 15:58:27 +02:00
Jaco Greeff
b341581f51
Crowdloan withdrawals (#4966)
* Crowdloan withdrawals

* cleanups

* Modal

* withdraw batch & single
2021-03-29 11:20:51 +02:00
Jaco Greeff
5c1cfd472d
Refresh single fund info (#4956)
* Refresh single fund info

* Media queries

* className fix

* Countdown on ended

* s/count/unique/

* loading

* only count in state
2021-03-27 09:19:11 +01:00
Jaco Greeff
2e68dc3cc0
Additional calcInflation check (#4900) 2021-03-22 10:44:49 +01:00
Jaco Greeff
bfd6e387d5
Avoind NaN for returns (#4899) 2021-03-22 10:26:07 +01:00
Jaco Greeff
e037ab2400
Bump API (derive extend) (#4867) 2021-03-18 18:46:07 +01:00
Jaco Greeff
d34bd33568
useBestNumber hook (#4846)
* useBestNumber hook

* Cleanups
2021-03-14 15:12:53 +01:00
Jaco Greeff
ad913ef880
Rework auction end blockNumber (#4833) 2021-03-12 20:02:57 +01:00
Jaco Greeff
09c1fb716d
Initial display for auction bids (#4828)
* Initial display for auction bids

* Dedupe bids
2021-03-12 13:08:25 +01:00
Jaco Greeff
e566bc321f
Crowdloan contribution (#4819)
* Crowdload contribution

* Adjust

* Add percentage raised
2021-03-11 11:47:10 +01:00
Jaco Greeff
47590a2fdb
Retrieve upcoming via actionsQueue (#4810)
* Retrieve upcoming via actionsQueue

* useEventTrigger on global & extrinsic events
2021-03-10 16:15:41 +01:00
Jaco Greeff
7d2d1842d1
Update deps (& berry) (#4765)
* Update deps (& berry)

* linting

* Additional

* Bumps

* jest babel helpers esm
2021-03-03 11:52:39 +01:00
Jaco Greeff
c12cfac0e2
Fix slashing display (#4682) 2021-02-17 11:37:00 +01:00
Jaco Greeff
9b9cc54724
Add warning to bond, not send (#4656)
* Add warning to bond, not send

* Refresh update
2021-02-11 18:48:38 +01:00
Jaco Greeff
f84a55089b
Convert all specs to type bundles (#4646)
* Convert all specs to type bundles

* Additional

* s.specVersioned/spec/

* Fix paraApi typesSpec import

* Update

* small update

* comment on mapping
2021-02-11 11:54:27 +01:00
Jaco Greeff
a72f9be38c
Don't re-read storage on useFavorites (#4639) 2021-02-09 15:38:13 +01:00
Jaco Greeff
aa15c1e65e
Ensure useLoadingDelay fires only once (#4638) 2021-02-09 15:14:27 +01:00
Jaco Greeff
1a5f8fa4e1
Protect against overflows in target calcs (#4633) 2021-02-09 10:44:17 +01:00
Jaco Greeff
90ec5de731
Bump API (#4628)
* Bump API

* Adjust for networks
2021-02-08 09:13:22 +01:00
Jaco Greeff
1ec6dfd302
Support new contracts putCode (#4622)
* Support new contracts putCode

* New works

* Swap to default constructor as available

* Split into steps
2021-02-06 15:51:09 +01:00
Jaco Greeff
024c03ba9b
Crowdloans (#4613)
* Crowdloans

* update icon

* crowdloads -> crowdloan

* Overview start

* Fund indexes

* Fund displays stucture

* Fund view

* Fund view expanded

* Update packages/page-crowdloan/src/useFundIndexes.ts

* Add skeleton

* useEventTrigger

* Cleanups

* Fund proposal

* Registrar

* Adjust current versions

* Update README.md
2021-02-06 11:24:04 +01:00
Jaco Greeff
fd0ceaff0d
Use BN_{BILLION, MILLION} constants (#4577)
* Use BN_{BILLIN, MILLION} constants

* BN_ONE

* Update packages/page-treasury/src/Overview/ProposalCreate.tsx

* Update packages/page-staking/src/Payouts/useStakerPayouts.ts

* Additional

* Update packages/page-democracy/src/Overview/Summary.tsx

* Additional

* Additional

* Re-apply

* Cleanups

* Apply suggestions from code review
2021-02-03 10:59:37 +01:00
Jaco Greeff
cef6451064
Optional staking module for info queries (#4574) 2021-02-02 09:17:38 +01:00
Jaco Greeff
1a74b927fc
Remove some floating "as any" usages (#4565) 2021-02-01 20:46:31 +01:00
Jaco Greeff
1b43ffa046
Ensure useState doesn't re-init with function calls (#4552)
* Ensure useState doesn't re-init with function calls

* extra

* Additional
2021-02-01 14:17:14 +01:00
Jhon
916a925cda
added validator/nominator flags (#4546)
* lighter read to make it more readable on dark mode

* added missing themeprops ref

* ran linter

* undo opacity 1 on non red 'other stake' to keep the focus on the whle number'

* ran linter

* isolate opacity change to format balance error text

* updated settings > metadata layout to be more consistent with the rest

* ran linter

* Update packages/page-settings/src/Metadata/Extensions.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* updated ternary condition to get rid of empty string at the end as well as fixed weird indentation on styled components

* added validator flag

* Update packages/react-hooks/src/useAccountInfo.ts

* Update packages/react-hooks/src/useAccountInfo.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-02-01 13:26:08 +01:00
Jaco Greeff
6155dbd224
Check isEditable for network swap (#4495) 2021-01-25 15:29:32 +01:00
MiZiet
b09bc9cbc9
Adjust components placement and styling in bounties list (#4460) 2021-01-22 12:06:49 +01:00
Ewa Kowalska
ff616ce89f
Fix #4419 - using bounties without treasury (#4447)
* Fix issue with no treasury

* Apply review suggestions

* Use BN_ZERO instead of api.createType
2021-01-18 20:58:55 +01:00
Jaco Greeff
00563a240b
useCallMulti on parachain proposals (#4436) 2021-01-18 12:48:37 +01:00
Thibaut Sardan
96c5e785e3
Nit, use as LedgerTypes casting (#4425)
* as LedgerType

* import type
2021-01-15 14:07:55 +01:00
Jaco Greeff
53a4ba41c4
Bump deps (w/ ui, hw-ledger) (#4418)
* Bump deps (w/ ui, hw-ledger)

* trigger
2021-01-15 08:58:16 +01:00
Jaco Greeff
19d49f09be
Move to Ledger usage with hook (#4195)
* Move ledgerChains to apps-config

* Swap Ledger capabilities to hook

* Fix type usage

* getLedger returns promise

* Revert promise result

* cleanup

* use has ledger support (#4413)

* use hasLedgerSupport

* Bump common

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
2021-01-14 20:58:02 +01:00
Jaco Greeff
fd9110f432
Swap parachain to multi calls (w/ useCallMulti) (#4414) 2021-01-14 18:15:29 +01:00
Jaco Greeff
5f3bd186c7
Add ump/dmp/hrmp queue sizes (#4412) 2021-01-14 14:37:43 +01:00
Jaco Greeff
f93cc49db6
Links to parachains (?rpc=) & best block (#4395)
* Links to parachains (?rpc=) & best block

* Adjust

* Add known types to ParaApi
2021-01-13 17:20:25 +01:00
Jaco Greeff
4b0335533a
Parachain approval (#4374)
* Parachain approval

* trigger date
2021-01-12 10:50:04 +01:00
MiZiet
75023bb4f3
Add bounties summary (#4336)
* Add bounty summary INIT

* Add timed displays

* WIP

* Add locales

* Add chain colors and progress display

* Extract useTreasury hook

* Pull spendPeriod into useTreasury

* Apply review suggestions

* Apply review suggestion

* Add check if activeBounties exists

* Add dark theme to bounty summary

* Add border-radius to HighlightedSection

* Apply review suggestions

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-01-09 12:46:52 +01:00
Jaco Greeff
2d1da5332c
Staking fixes (comm, entries) (#4329)
* Staking fixes (comm, entries)

* Flatten
2021-01-06 11:15:19 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Jaco Greeff
d548b838a2
Bump deps (w/ cleanups) (#4301) 2020-12-30 12:49:01 +01:00
Jaco Greeff
93b38ece21
Cleanup WebPack (#4258)
* Remove unused WP5 override

* Adjust

* Additional imports

* Adjust
2020-12-21 13:15:40 +01:00
Jaco Greeff
b22f61347e
Remove unused TxModal components (#4250)
* Remove unused TxModal components

* Cleanups
2020-12-20 17:50:06 +01:00
Jaco Greeff
593b42c275
Save target/overview toggles (#4249) 2020-12-20 12:55:10 +01:00
Jaco Greeff
7d071d147d
Remove global registry imports (only use on api) (#4218)
* Remove global registry imports (only use on api)

* Additional

* QR only displayed when valid

* ApiSigner
2020-12-17 11:18:34 +01:00
Jaco Greeff
530122482d
RxJs/memoizee dep cleanups (use from util) (#4212)
* RxJs/memoizee dep cleanups (use from util)

* Remove 4K runtimeChunk
2020-12-15 11:58:47 +01:00
Jaco Greeff
c1c87d2aeb
Internal deps bumps (#4194)
* Internal deps bumps

* acala
2020-12-11 12:47:59 +01:00
Ewa Kowalska
541213f233
Ek extract type only imports into separate group (#4168)
* Plug new beta of eslint plugin simple import sort

* Apply new configuration to existing imports
2020-12-07 16:04:05 +01:00
Jaco Greeff
4f3f98f97b
Don't double-up on stashId retrievals (#4157)
* Don't double-up on stashId retrievals

* Remove (onw-unused) useStashIds hook
2020-12-04 14:24:28 +01:00
Jaco Greeff
fd086de8ae
Bump API (#4139)
* Bump API

* Name matches

* Bump
2020-12-02 21:06:14 +01:00
Ewa Kowalska
87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00
Jaco Greeff
ef125783de
Allow useCall to not have .entries as any hack (#4115) 2020-11-30 13:11:51 +01:00
Jaco Greeff
837dd58c61
Recent payouts toggle (#4108)
* Recent payouts toggle

* operator exposure

* media--*

* extra toggle padding

* align
2020-11-30 01:50:32 +01:00
Jaco Greeff
118cc51dc3
Human-readable payout (target) descriptions (#4107) 2020-11-30 00:47:24 +01:00
Jaco Greeff
e6d3c61176
Use type imports from @polkadot/types/interfaces (#4103)
* Move chain params to apps-config

* Use type imports from @polkadot/types/interfaces
2020-11-29 19:03:06 +01:00
Jaco Greeff
4e926a2d33
Move chain params to apps-config (#4102) 2020-11-29 18:45:44 +01:00
Jaco Greeff
f0bf8efcf4
Ensure identity filter applies to all targets (#4100)
* Ensure identity filter applies to all targets

* Name filter removes flags

* Revert

* Apply query filters to override toggles
2020-11-29 16:54:35 +01:00
Jaco Greeff
e940117fac
Show nominator return % per target (#4091)
* Show nominator return % per target

* 2 decimals

* Remove commented
2020-11-28 16:32:53 +01:00
Jaco Greeff
4add11e7d7
Display inflation & stakedReturn info (#4085)
* Introduce useInflation hook

* linting

* Display inflation & stakedReturns
2020-11-28 14:29:51 +01:00
Jaco Greeff
f8dc3d3641
Introduce useInflation hook (#4084)
* Introduce useInflation hook

* linting
2020-11-26 15:51:59 +01:00
Jaco Greeff
ab00ed377a
Validator chill refresh (#4082) 2020-11-26 13:50:21 +01:00
Jaco Greeff
aaedb61e0d
import type { UseTranslationResponse } (#4074) 2020-11-26 10:23:52 +01:00
Jaco Greeff
a0b82d88a4
Use import type { ... } (#4052)
* Use import type { ... }

* value imports

* TypeDefInfo

* Apply suggestions from code review

* fixes... am going blind.
2020-11-19 16:20:14 +01:00
Jaco Greeff
64299ebd29
Dev bump (#4012)
* Bump API/Common (esnext exports)

* Bump deps

* Adjust

* Bumps

* Bumps

* repository

* Update dev

* Remove Rococo (for the time being)

* script extension
2020-11-11 15:28:52 +01:00
Jaco Greeff
5b28f2791b
Filter tips with from-query hashes (#3977) 2020-11-05 14:06:56 +01:00
Jaco Greeff
ee7a4de77d
Allow ABI removal on upload (#3869) 2020-10-14 09:15:13 +02:00
Jaco Greeff
9d51e0462a
Fix actual exec (#3842)
* Fix actual exec

* Adjust

* Remove (now unused) api

* Cleanup state on unmounted

* Update

* Use isPayable flag
2020-10-10 21:43:20 +02:00
Jaco Greeff
6bdb12a2ec
Watch contract state (#3838)
* Watch contract state

* Display actual outputs
2020-10-10 11:27:23 +02:00
Jaco Greeff
c4737e77ce
Don't spin when rewards have just been claimed (#3799)
* Don't spin when rewards have just been claimed

* No pre-emptive spinner stop
2020-10-01 11:29:50 +02:00
Jaco Greeff
7ba7339d96
SPDX (#3705) 2020-09-17 16:46:46 +02:00
Jaco Greeff
2c0fff2931
Single-click close for tips & motions (#3669)
* Single-click close for tips & motions

* Protect against non-close chains
2020-09-17 12:44:54 +02:00
Jaco Greeff
e91ed4cf41
Display explorer retrieval errors (instead of spinning) (#3652) 2020-09-10 12:52:38 +02:00
Jaco Greeff
d17efb4014
Display reward destination for isAccount (#3646)
* Display reward desitnation for isAccount

* Allow adjustment of destination
2020-09-09 16:21:59 +02:00
Jaco Greeff
f127e829bc
Align time unit strings (#3622)
* Align time unit strings

* Apply suggestions from code review

* dedup

* Rebuild i18n
2020-09-06 11:05:45 +02:00
Jaco Greeff
8815703d00
Bump dev, fix linting (#3603)
* Bump dev, fix linting

* Small zh adjustments

* Remove rpc.* zh
2020-09-03 16:36:24 +02:00
Jaco Greeff
2448b7f883
Hooks with useMemo (no extra re-renders) (#3567)
* Hooks with useMemo (no extra re-renders)

* Extract defaults

* sorted targets

* Linting
2020-08-29 13:16:27 +02:00
Jaco Greeff
b69dcc3fb0
Chain/Events calendar (#3505)
* Scaffolding

* next/prevMonth

* WIP

* Day layout

* Something shows

* Scheduler itesm

* Fix clacls, basics are there

* styled localized

* Constant retrievals

* Extraction cleanups

* extraMargin on article.error

* It works.

* Fix council ids

* merge yarn
2020-08-25 11:29:01 +02:00
Wei Tang
f5832feb02
Add Kulupu council config, logo and fix display of block time (#3448)
* Add KULUPU_GENESIS constant

* Add Kulupu-specific thresholds

* Add support for targetBlockTime

* Styling fix

* Init Kulupu logo

* Fix endpoint icon for Kulupu

* Fix linting
2020-08-19 15:39:37 +02:00
Jaco Greeff
ebad8635f7
Adjust useCall options (#3430)
* Adjust useCall options

* Extract useCall options

* typo

* Apply suggestions from code review

* Adjust param creation in calls
2020-08-17 12:24:51 +02:00
Jaco Greeff
9e664246ed
Parameterize treasury proposal (#3418) 2020-08-14 16:26:06 +02:00
Jaco Greeff
e16eb134aa
Validator-only payout toggle (#3386)
* Validator-only payout toggle

* ToggleButton consistency
2020-08-11 13:31:42 +02:00
Jaco Greeff
6aefdd9178
useLoadingDelay for large lists (#3310)
* useLoadingDelay for large lists

* Accounts with isLoading

* sortedAddresses afecting check
2020-08-01 15:29:52 +02:00
Jaco Greeff
43470277e7
Add slashing indicator (#3302)
* Add slashing indicator

* Display slashing on targets page

* Show chilled from before slash

* Sizing
2020-07-31 14:09:28 +02:00
Jaco Greeff
c680d25dd0
Fix pay toggle era filtering (#3291) 2020-07-30 15:21:02 +02:00
Jaco Greeff
1b6d2e9794
Adjust payout toggle with days (#3274)
* Adjust payout toggle with days

* Cleanups
2020-07-27 13:04:42 +02:00
Jaco Greeff
d35b1a1d10
Optional close on council motions (#3252)
* Optional close on council motions

* No close available short-circuit
2020-07-23 12:38:06 +02:00
Jaco Greeff
7531f01a39
Display accountIndex on SideBar (as available) (#3140)
* Display accountIndex on SideBar (as available)

* accountIndex cache

* Cleanup accountIndex re-renders

* Unneeded accountIndex effect dep
2020-07-08 00:17:59 +02:00
Jaco Greeff
e5e46accf6
Cleanup account menus (#3076) 2020-06-28 14:05:35 +02:00
Jaco Greeff
b78cc3fa2f
Adjust button rounding (#3051)
* Adjust button rounding

* ReferendumInfo icon
2020-06-25 15:34:35 +02:00
Jaco Greeff
3d7c08c689
Loading on payout era toggle (#3045)
* Loading on payout era toggle

* Some in-place BN adjustments

* More in-place additions
2020-06-24 22:28:03 +02:00
Jaco Greeff
c19082a113
Toggle for recent vs full era queries on payouts (#3044) 2020-06-24 21:25:14 +02:00
Jaco Greeff
b408d68d63
Add treasury close tip button (#3010)
* Add treasury close tip button

* Check square to indicate done

* Display close at blocks
2020-06-21 09:38:30 +02:00
Jaco Greeff
2e427e90e7
Multisig calls with weight (#2957)
* Multisig calls with weight

* approveAsMulti args check
2020-06-17 12:49:56 +02:00
Jaco Greeff
9da6b40024
Add proxied accounts, fix multisig cancel (#2958)
* Add proxied accounts, fix multisig cancel

* Multi toggle hides input

* Modal description
2020-06-15 15:51:55 +02:00
Jaco Greeff
4ab3e73a3b
useWeight hook (collective and soon on multisig) (#2955)
* useWeight hook (collective and soon on multisig)

* zero address

* Remove debug log
2020-06-15 10:36:20 +02:00
Jaco Greeff
fc5e75f01e
Alert for multisig approvals (#2953)
* Alert for multisig approvals

* Trigger on multisig events

* Allow display/submission of call data
2020-06-15 09:23:40 +02:00
Jaco Greeff
63a3b6dd29
Allow for local IPFS gateway (#2925)
* Allow for local IPFS gateway

* Trim ports
2020-06-10 19:07:33 +02:00
Keith Ingram
2081464de8
Rewrite & update to page-contracts (#2873)
* first commit

* finish

* InputMegaGas, use BN consts'

* update util'

* tags issue

* manifest

* import bn_zero

* rm

* restore contract tags

* fix tags onClose

* sec to ms

* ms -> sec

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-06-09 14:56:10 +02:00
Jaco Greeff
26b70cdf9f
Filter empty rewards (#2881)
* Filter empty rewards

* Keep to 40 eras
2020-06-04 17:37:35 +02:00
Jaco Greeff
bea9e4f053
Allow ipns with chain specifier (#2868)
* Allow ipns with chain specifier

* fallback check

* Rename dns* to ipns*
2020-06-01 15:28:58 +02:00
Jaco Greeff
b2c3eb8fd6
Failed council close with 0 length/weight (#2839)
* Failed council close with 0 length/weight

* 0/0 close for tc
2020-05-28 20:22:14 +02:00
Jaco Greeff
0789371b71
Re-add tc with length & weights (#2840)
* Re-add tc with length & weights

* Apply fixes

* Move useVotingstatus
2020-05-28 08:54:01 +02:00
Jaco Greeff
61a1f323ea
0.43 (#2824)
* Polkadot RPCs

* Primary color

* 0.43

* accountinfo local name fix

* useAccountInfo update
2020-05-26 19:44:06 +02:00
Jaco Greeff
c60ba8708a
Bumps w/ eslint (#2802)
* Bumps w/ eslint

* Additional

* Additional

* Additional

* Additional

* Remove style props

* Additional

* Additional

* Additional

* Additional (< 100)

* eslint passes, tsc next

* tsc fixes

* Update deps

* Update i18n
2020-05-24 19:41:14 +02:00
Jaco Greeff
029b5c6c80
Adjust deps for new hooks rules (#2757) 2020-05-16 10:45:54 +02:00
Jaco Greeff
f7c61f4698
Pull members from collective itself (isMember checks) (#2704)
* Pull members from collective itself (isMember checks)

* trigger stuck CI (hopefully)
2020-05-07 19:53:13 +02:00
Jaco Greeff
aa2074b20c
Slit Sidebar address Identity rendering (#2701) 2020-05-07 13:51:56 +02:00
Jaco Greeff
8074b31fca
Bump deps (#2693)
* Bump deps

* Optional tech comm
2020-05-06 16:10:56 +02:00
Jaco Greeff
cf32011976
Ledger confim address (#2686) 2020-05-04 15:39:56 +02:00
Jaco Greeff
a66db1f152
Multisig creation layout (#2674)
* Multisig creation layout

* Header cleanups

* Cleanup flag display
2020-05-02 08:56:16 +02:00
Jaco Greeff
30fac8c052
Adjust modal header (a change is as good as a holiday) (#2660)
* Adjust modal header (a change is as good as a holiday)

* Linting (memoizee types)
2020-04-30 11:50:48 +02:00
Jaco Greeff
e410cc1473
Allow selectable targets (#2637) 2020-04-27 16:30:52 +02:00
Jaco Greeff
cfeb5c7f07
Fix lock-to-network, save with genesisHash (broken after useAccountInfo move) (#2628)
* Fix chain locks

* Save with meta

* Bumps

* i18n rebuild
2020-04-25 10:16:07 +02:00
Jaco Greeff
e3400f7206
Multisig support (#2623)
* Multisig support

* Testing, sorting with timepoints

* Re-add

* lint (import fix)

* case-sensitive import
2020-04-24 20:30:08 +02:00
Jaco Greeff
a6fc6c2190
Rework registrar dialog (account filter) (#2613) 2020-04-24 19:38:48 +02:00
Jaco Greeff
67b69dc976
Split Sidebar flags (& use <Tag /> component) (#2609)
* Split Sidebar flags (& use <Tag /> component)

* Fix Account flags expansion
2020-04-23 10:49:34 +02:00
Keith Ingram
9703811f8b
AddressMenu popup when clicking on address name (#2563)
* AddressMenu

* use menu

* refactor

* draft

* cleanup

* Sidebar

* Sidebar

* improvements

* redesign

* bump

* Small adjustments

* Layout adjustments, useCallbacks (not perfect...)

* Remove _setName with extra effect, re-add badges (edit missing)

* Missing useCallback in Address

* no withSidebar on AddressToggle

* useAccountInfo CPU spikes (split effects, no useCallback deps)

* Alway have underline (even on address)

* secondary button color

* Add name callback

* Make identity appear with displayname

* Adjust judgement button position

* UI adjustments

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-04-22 19:43:20 +02:00
Jaco Greeff
f3f3ade6ce
Council proposal to functional (#2553)
* Council proposal to functional

* Small cleanups
2020-04-11 20:44:10 +02:00
Jaco Greeff
936cc70d00
Treasury tipping (#2551) 2020-04-11 15:27:25 +02:00
Jaco Greeff
7e03898bb3
Cleanup "as any" on derive with useCall (#2549)
* Cleanup "as any" on derive with useCall

* Alignment
2020-04-11 11:43:21 +02:00
Jaco Greeff
d677d64817
UI support for simple payouts (#2509)
* UI support for simple payouts

* payout modal

* Adjust with era filtering

* Slow as molasses, but seems working

* Adjust th vertical alignment

* Bump API

* Update

* Cleanup reward retrievals

* linting

* Bumps

* Some rendering optimizations

* Re-add counter

* Fix new header linting

* Actual API bump

* Bumps

* Adjustments

* Adjust payouts as stand-alone tab

* Adjust nominations

* rm unused style

* change offsets

* Adjust
2020-04-08 16:39:32 +02:00
Jaco Greeff
9a6c55a40b
Bump dev (incl. eslint fixes) (#2502) 2020-04-01 21:31:36 +02:00
Jaco Greeff
fda189f15f
Adjust for new elections (use API derives) (#2485) 2020-03-30 14:25:53 +02:00
Jaco Greeff
3dfaf17ca8
Combine status event types (#2478)
* Combine status event types

* Adjust some tables

* Adjust targets
2020-03-29 10:04:21 +02:00
Jaco Greeff
b4d0ff93a2
Bump API (dispatchQueue derive) (#2467)
* Bump API (dispatchQueue derive)

* with democracy.nextExternal
2020-03-27 21:26:23 +01:00
Jaco Greeff
cdd9b5bd56
Bump API (derived type naming updates) (#2465) 2020-03-27 16:05:20 +01:00
Jaco Greeff
e4c0cfd262
Exhaustive hooks (#2463)
* Exhaustive hooks

* selectUrl screw-up

* Adjust name badge

* Cleanup SideBar effects
2020-03-27 12:49:17 +01:00
Jaco Greeff
76b16913c2
Cleanups for AccountName (#2446)
* Cleanus for AccountName

* Remove unused toggle prop

* Re-add toggle
2020-03-23 17:18:31 +01:00
Jaco Greeff
55b8a60889
Cleanup some submission modals (#2439)
* Housekeeping, rename copyright headers

* Cleanup some submission modals
2020-03-23 09:03:27 +01:00
Jaco Greeff
b720cd1443
Hooks reworks with mounted refs (#2417) 2020-03-18 13:51:33 +01:00
Jaco Greeff
be2fe9c36d
Apply era filter onlly on recent (#2415) 2020-03-18 11:01:34 +01:00
Jaco Greeff
bb911aa9bb
Fix spinning rewards counter (#2414) 2020-03-18 10:35:08 +01:00
Jaco Greeff
1c133e7fc7
React API cleanups (#2412)
* React API cleanups

* ApiState cleanups

* Remove stray log from earlier
2020-03-18 09:47:26 +01:00
Jaco Greeff
0aab9fd809
Staking counter does not display last claimed (#2413) 2020-03-18 09:36:39 +01:00
Jaco Greeff
78bef6d4c2
Remove timeouts from call unsubs (#2393) 2020-03-16 10:50:53 +01:00
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