Commit Graph

21 Commits

Author SHA1 Message Date
YJ
45790239d7 fix #266 - helpful error message when input address is not in intentions list (#338)
* helpful error message when input address is not in intentions list

* check address format is valid, set error msg if not

* fix: state validate

* fix: translatable strings, address format validation from decoded address

* Import Labelled Component for error reporting

* Translatable labelled error reporting components

* handle assertion errors when decoding nominee address

* create ui-app general InputError component

* Use Input Error component to format input errors

* edits to setting state for readability and DRYness

* edits for style guidelines, remove 'any' types
2018-09-28 18:51:00 +02:00
Jaco Greeff
935b28c9b9
Adjust staking overview display (#312) 2018-09-14 15:20:15 +02:00
Jaco Greeff
f22189d955
Render nominators in staking view (#301)
* Add validators App

Fix #191

* Pull validator breakidown into staking overview

* Fix layout

* Add AddressRow component

* Minor CSS fix

* Use standard address components in the staking app

* Use new components and cleanup

* Refactor and layout work on the validators

* Re-use already available components

* Remove app-validators in tsconfig

* Render nominators

* Use row defaults applicable

* Small css fixes
2018-09-13 16:30:30 +02:00
Chevdor
3b4dcd13d8 Add displaying of the validators (#300)
* Add validators App

Fix #191

* Pull validator breakidown into staking overview

* Fix layout

* Add AddressRow component

* Minor CSS fix

* Use standard address components in the staking app

* Use new components and cleanup

* Refactor and layout work on the validators

* Re-use already available components

* Remove app-validators in tsconfig
2018-09-13 15:50:47 +02:00
Thibaut Sardan
a5240490e4 Use new colors (#259)
* use 4e4e4e-d75ea1-ffffff-89acb4-98aaae colors

* tone down lateness & anchor, use variables

* use descriptive variable names and dark blue color for anchors

* remove unused color
2018-08-29 10:57:13 +02:00
Jaco Greeff
d3b6ed447e
Cleanup extra classes(...), additional semantic elements (#249) 2018-08-22 13:48:40 +02:00
Jaco Greeff
90b8f0d5da
Start using semantic elements, cleanup imports (#248)
* Start using semantic elements, cleanup imports

* Typo

* Dark navbar
2018-08-22 12:24:13 +02:00
Jaco Greeff
4ff1392459
DRY Card display (CardBar component, consistency) (#235)
* DRY Card display (CardBar component, consistency)

* Use SummaryCard on staking

* Simplify summaries (no duplication from explorer)

* Display lateness percentage value
2018-08-20 10:49:52 +02:00
Jaco Greeff
8155e94d05
Simplify routing, redirect to default (#228)
* Simplify routing, redirect to default

* Allow subroutes

* Cleanup unused scripts

* Pass through basePath (router prop)
2018-08-16 10:40:56 +02:00
Jaco Greeff
4484883afc
Basic democracy (Referendum) overview (#216)
* Basic democacry (Referendum) overview

* Summary in-place

* Fix package name

* Proposals & Referendums are showing up

* Some basic Extrinsic formatting. (WIP)

* Basic referendum/proposal summary in place

* Referendum outcome chart

* Voting in place. It works.

* Remove extra console.log/error

* Only show balances as label
2018-08-15 10:35:53 +02:00
Jaco Greeff
46a48539b7
Additional block production overview on explorer (#212)
* Cleanup Card layouts

* Additional block production overview on explorer

* Adjust Card padding for accounts

* Observable calculations into ApiObservable

* DRY-er combineLatest + .pipe(map(...))

* .pipe(map(...))

* Progress takes value + total, auto-colors

* CardSummary with Progress

* Small style updates

* Cleanup withApiObservable (optional value name)

* Cleanup progress props

* Cleanup rpc method use

* Auto-set the prop from withStorage

* Cleanups in observable use

* Cleanups to layout

* Initial bestNumber

* Poll for changes in ApiObservable

* WIP (debug)

* Initial conversion (untested) or subscribeStorage

* s/apiObservable/observable/

* Starting to show stuff (after storage subscriptions). WIP.

* Staking UI works, still WIP on rest.

* Readability

* Storage withObservableDiv, Closes https://github.com/polkadot-js/apps/issues/215

* Add encoding FIXMEs

* 'nominee' on set click

* Align withObservable with others (single line)

* Retrieve ss58 encoded AccountId from storage

* Update with latest api (null/undefined storage distinction)
2018-08-13 12:05:11 +02:00
Jaco Greeff
391557dfc2
Detect nonce === null, set as new BN(0) (#213)
* Detect nonce === null, set as new BN(0)

* Cleanup previous hacks for null

* Bump common & api

* Bump dependencies

* Bump dependencies
2018-08-10 15:15:18 +02:00
Jaco Greeff
9b35e1ec79
Introduce Page & Navigation components (consistency) (#211)
* Introduce Page & Navigation components (consistency)

* Staking account border update
2018-08-08 17:18:57 +02:00
Jaco Greeff
4d984d9f72
Introduce higher-level ApiObservables, use stakingBalance displays (#210)
* Move observables to ui-react-rx

* Move observables into ApiObservable

* Allow AddressSummary to render passed-in balance(s)

* Render Balance consistently in summaries

* Style Mini balance

* Use ApiObservable via HOC

* Nominee balances expanded

* Render nominators for account

* Add full balance when intending
2018-08-08 14:57:09 +02:00
Jaco Greeff
d5bfe7dbc5
Nominating layout fix (CSS-only) (#209) 2018-08-08 12:25:10 +02:00
Jaco Greeff
fb9c0f7f0b
Format stakingBalance as votingBalance + nominatingBalance (#204)
* Format stakingBalance as votingBalance + nominatingBalance

* Fix version number change (revert)

* Bump api 0.15.x: rxjs 6 & class-ified providers

* API bump

* Type cleanup

* Update version of packages

* RxJs 6 style Observable imports

* Remove ZERO const
2018-08-08 02:12:30 +02:00
Jaco Greeff
278ca13812
Update util-keyring, pair.hasSecretKey -> pair.isLocked (#200)
* Update util-keyring, pair.hasSecretKey -> pair.isLocked

* Fix decrementing versions manually

* Update deps
2018-08-06 21:48:05 +02:00
Jaco Greeff
c80956b7f2
Common AddressSummary component, update staking layout (#194)
* Move AddressSummary component into ui-app

* Add children rendering to summary

* User AddressSummary in staking

* Mini summary component

* Show nominating in modal

* Check nomination against intentions (not validators)

* Update input description
2018-08-06 15:40:14 +02:00
Jaco Greeff
bf5f75d491
(un)Nominate functionality (#183)
* (un)Nominate functionality

* Small cleanups
2018-08-03 18:55:44 +02:00
Jaco Greeff
4f8c5d3bc4
Storage keys update (polkadot/storage dep update) (#181)
* Update dependencies

* Update chenged storage keys
2018-08-03 14:14:40 +02:00
Jaco Greeff
cf8a24a8da
Staking overview & actions (#171)
* Staking overview & actions

* Show session countdown

* Accounts with stake/Unstake buttons

* Small layout tweaks

* Cleanup multi-params from storage

* Submission/click works...

* Cleanups

* Render split

* Case sensitivity

* Doc links

* Icon to indicate validating
2018-08-02 17:15:07 +02:00