Commit Graph

79 Commits

Author SHA1 Message Date
Jaco Greeff
8b69b54346
Bump deps (#2232)
* Bump deps

* Update types
2020-02-04 15:09:21 +01:00
Jaco Greeff
efd0e727d1
Bump API (#2224)
* Bump API

* Type adjustments

* Update zero const
2020-02-02 11:03:20 +01:00
Jaco Greeff
7466d6b239
Add derive availability failsafes (global) (#2210)
* Add derive availability failsafes (global)

* Check all isApiReady
2020-01-28 17:28:15 +01:00
Jaco Greeff
1d8613655f
Convert options & items (tabs) to useMemo (#2207)
* Convert options & items (tabs) to useMemo

* Add missing var in useMemo

* Remove floating isSubstrateV2

* Cleanup staking entry

* Remove unneeded ?
2020-01-28 15:01:18 +01:00
Jaco Greeff
196dbcbaff
AddressMulti -> InputAddressMulti (#2195) 2020-01-24 15:23:56 +01:00
Jaco Greeff
40d7926381
Remove old votes from council (#2193) 2020-01-24 14:40:52 +01:00
Jaco Greeff
9905927862
Swap council voting from TxModal (#2141)
* Swap council voting from TxModal

* Cleanup toggles

* Apply account filters

* useCouncilMembers

* Pass filter through to Propose

* Linting
2020-01-23 12:22:10 +01:00
Jaco Greeff
1d5a756b69
Auto-add Button.Group inside Modal.Actions (#2165)
* Auto-add Button.Group inside Modal.Actions

* Pass onCancel prop through to Modal.Actions

* Cancel rendering in contracts
2020-01-21 17:34:34 +01:00
Jaco Greeff
8e971ef7eb
Use ButtonCancel for all Cancel-only buttons (#2164)
* Use ButtonCancel for all Cancel-only buttons

* Small cleanups
2020-01-21 15:47:44 +01:00
Jaco Greeff
18af907070
Set Modal default to open (#2157) 2020-01-20 15:30:25 +01:00
Jaco Greeff
8f5d450dd0
Swap council slashing cancel threshold to 50% (#2151) 2020-01-19 17:12:42 +01:00
Jaco Greeff
be79bbc325
Additional useTranslation (#2118)
* Additional useTranslation

* Cleanup imports

* Cleanup unused props
2020-01-15 21:14:47 +01:00
Jaco Greeff
54f22ac526
Slash revert council proposal (#2093)
* Slash revert council proposal

* Disabled slashes when none
2020-01-07 13:31:58 +01:00
Jaco Greeff
562e11dc06
Bump deps (#2091) 2020-01-06 16:16:50 +01:00
Jaco Greeff
aa99272e27
Updae the council counter refresh (#2082) 2019-12-20 13:33:37 +01:00
Jaco Greeff
15bd35fd90
Add useTranslation for all apps (#2076) 2019-12-19 11:08:21 +01:00
Jaco Greeff
a441dc3a9f
Hide council voting when not a member (#2071)
* Hide council voting when not a member

* Disable instead of hide
2019-12-18 13:20:45 +01:00
Jaco Greeff
31dea14271
Fix explorer (v1), withObservable unload & democracy images (#2062)
* Fix explorer (v1), withObservable unload & democracy images

* API bump

* Seconding count

* DerivedCollectiveProposal type
2019-12-17 11:00:42 +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
ef388226b8
Add multi-address selection component (#2028) 2019-12-10 16:20:14 +01:00
Jaco Greeff
2f899cef4d
Add header prop on Modal (#2025)
* Add header prop on Modal

* Bump API, fixed electionsPhragmen

* s/HEADER/header/
2019-12-09 23:35:12 +01:00
Jaco Greeff
dafea25972
Allow voting on treasury page (#2019)
* Allow voting on treasury page

* More re-usable voting components (a start)

* Ficup imports

* Adjust modals

* Bump API
2019-12-09 17:54: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
644fd0099a Improve rewards rendering 2019-12-06 00:10:23 +01:00
Jaco Greeff
a9baa96e87
Show democracy dispatch queue (#1997)
* Show democracy dispatch queue

* Bump API
2019-12-04 16:07:13 +01:00
Jaco Greeff
6b59fe485f Optional proposal, hash required 2019-12-03 13:15:06 +01:00
Luke Schoen
d94241f624 fix: Fixes #1986 proposals of undefined (#1987)
* fix: Fixes #1986 proposals of undefined

* fix: Prevent undefined proposals in packages/app-council/src/useCounter.ts

Co-Authored-By: Jaco Greeff <jacogr@gmail.com>

* fix: Revert change since api.derive.democracy is always defined
2019-12-03 11:52:24 +01:00
Jaco Greeff
661771f1ea Fix motion top layout 2019-12-02 21:34:42 +01:00
Jaco Greeff
8c13dad2a2 Use end + delay for activation 2019-12-02 21:30:46 +01:00
Jaco Greeff
2eb21c938f
Layout changes for motions (#1983) 2019-12-02 21:01:35 +01:00
Jaco Greeff
2175a11e24
Proposal counters (#1982) 2019-12-02 19:41:43 +01:00
Jaco Greeff
dfc22f3b4c Add motion count 2019-12-02 18:03:29 +01:00
Jaco Greeff
43d6f3d969
Rework council display (#1976)
* Rework council layout

* Updates

* Bump API
2019-12-02 15:49:46 +01:00
Jaco Greeff
3efc08b71d Fix motions address display 2019-12-02 12:05:02 +01:00
Jaco Greeff
e1464b85f9
Adjust with API with explicit registry (#1922)
* Update for latest API (explicit registry)

* Edgeware adjusted types

* Bump API
2019-11-21 17:04:54 +01:00
Jaco Greeff
be039f9d5a
Fix InputBalance default display (#1880) 2019-11-14 11:44:40 +01:00
Jaco Greeff
918822f48a
Auto-populate Vote balance (#1879)
* Auto-populate Vote balance

* Commenting
2019-11-14 10:44:15 +01:00
Keith Ingram
7e65066d18 Functional InputNumber with fixed bugs (#1820)
* Functional InputNumber

* linting

* linting

* remove max button

* linting

* linting

* version

* version

* combine values

* fix

* Re-enable SI dropdown

* KSM  formats

* Formatting tweaks

* Mini fixes

* Adjust postfix opacity

* Linting

* More linting

* Remove unneeded list override

* Misc small adjustments

* Vertical alignment
2019-11-12 12:00:44 +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
6a053c2319
Change selection for council votes (#1865) 2019-11-11 17:57:14 +01:00
Jaco Greeff
73d8fbc1d8
Add runnersup to council (#1852) 2019-11-07 22:26:54 +01:00
Jaco Greeff
a7404079cb
Bump deps (#1849) 2019-11-07 00:25:40 +01:00
Jaco Greeff
b847268bd6
Add voting balance display (#1843)
* Add voting balance display

* Linting

* Naming
2019-11-04 23:05:32 +01:00
Jaco Greeff
27662a3a19
Council hot fixes for consts, members (via API bump) (#1814)
* Council hot fixes for consts, members (via API bump)

* Bump API

* Vote fixes
2019-10-30 00:56:46 +01:00
Jaco Greeff
420343224d
Lookup nicknames (#1793) 2019-10-28 20:48:53 +01:00
Jaco Greeff
aa48fe1f1b
Show existing council votes (#1791)
* Show existing council votes

* Fix lint
2019-10-28 16:33:45 +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
b18a8e7e98
Display council voters (#1787)
* Display council voters

* Show voting stake

* Adjust AddressMini widths
2019-10-28 12:43:50 +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
91c4e2c602
Allow voting for members & candidates (#1771)
* Allow voting for members & candidates

* Allow voting for mebers

* Add defaultnames (candidate/member)
2019-10-27 13:13:50 +01:00