Commit Graph

1174 Commits

Author SHA1 Message Date
Jaco Greeff
5ff5bc02f9
Add derivation path for accounts (#825)
* Add derivation path for accounts

* Create using seed & path
2019-03-21 16:40:03 +01:00
Travis CI
99ea0fd136 [CI Skip] 0.26.0-beta.7 2019-03-20 16:13:18 +00:00
Jaco Greeff
96615d5957
Bump UI, HDKD keyring (new substrate crypto) (#813)
* Bump UI, HDKD keyring (new substrate crypto)

* Bump ui/* versions

* Pull in latest util-crypto, bp39 fix

* Bump common

* Small enhancements, cleanups (testing WIP)

* Bump

* Update after merge

* Bumps, fix transfer calculation (value may be non-existent)

* Bumpo dependencies

* Label extrinsic hash

* Signature updates

* Update deps

* Adjust status display

* Close status items on click

* Update withRouter duplication

* API bump, (some) creation fixes

* Move bip39 out of the worker (fast enough now via WASM)

* Update after master merge

* Cleanup deps (re-write yarn.lock)
2019-03-20 17:06:29 +01:00
Travis CI
d6da91ab0e [CI Skip] 0.26.0-beta.6 2019-03-20 14:41:58 +00:00
Ross Bulat
d7f73b1baf Mobile friendly sidebar, auto hide and show on resize (#818)
* mobile friendly sidebar;

* substrate logo support

* >=

* logo size + node info padding

* polkadot toggle no padding

* padding

* remove padding trans

* tooltip overflow fix

* z-index fix

* simple var names

* remove unneeded state

* menu toggle animation

* menu toggle behaviour

* <Responsive /> + menu toggle

* yarn lock

* <Responsive /> flexbox fix

* scroll-y fix

* stefies-sassy-sidebar-suggestions-submission

* remove lodash

* enums

* apps/constants

* copyright

* literally  literals
2019-03-20 15:34:48 +01:00
Travis CI
ac88edcbc4 [CI Skip] 0.26.0-beta.5 2019-03-19 17:32:39 +00:00
Stefanie Doll
74479ab1df
Add active setting to SUI <Tab> (#821) 2019-03-19 18:23:29 +01:00
Travis CI
b2b21cf744 [CI Skip] 0.26.0-beta.4 2019-03-18 13:24:44 +00:00
Travis CI
f00854b3df [CI Skip] 0.26.0-beta.3 2019-03-18 11:55:45 +00:00
Jaco Greeff
0b167e1662 Revert packages to pre-hdkd keyring (to be merged) 2019-03-18 12:49:38 +01:00
Travis CI
c9076af1c7 [CI Skip] 0.26.0-beta.2 2019-03-18 11:26:10 +00:00
Jaco Greeff
84eafd3846 Revert sr25519 seeds 2019-03-18 12:19:25 +01:00
Jaco Greeff
476ea4ab8e Revert "Bump deps (#816)"
This reverts commit 58f7940c03.
2019-03-18 12:17:39 +01:00
Jaco Greeff
71fe9d7b9e Revert "[CI Skip] 0.26.0-beta.0"
This reverts commit d0d21f0ec4.
2019-03-18 12:17:34 +01:00
Travis CI
d0d21f0ec4 [CI Skip] 0.26.0-beta.0 2019-03-14 16:04:50 +00:00
Jaco Greeff
58f7940c03
Bump deps (#816) 2019-03-14 16:58:40 +01:00
Travis CI
bc0fb795c7 [CI Skip] 0.25.1 2019-03-14 13:37:20 +00:00
Jaco Greeff
2aae91ee44
Swap to publishing -beta.x on merge (#815) 2019-03-14 14:31:03 +01:00
Travis CI
dde65b7220 [CI Skip] 0.24.43 2019-03-14 09:52:09 +00:00
Jaco Greeff
338bd517a0
Remove /index imports (swap to bare) (#814)
* Remove /index imports (swap to bare)

* Bump deps
2019-03-14 10:45:58 +01:00
Travis CI
3542eed426 [CI Skip] 0.24.42 2019-03-13 12:31:00 +00:00
Jaco Greeff
7bb5fd0588
Inject react router into content (work-around) (#810) 2019-03-13 13:24:54 +01:00
Travis CI
41ef13fe67 [CI Skip] 0.24.41 2019-03-13 11:37:14 +00:00
Stefanie Doll
142be0ad75 Include isJsonObject util in settings-app (#811)
* Include isJsonObject util in settings-app

* pass full state as State

* Wording error message
2019-03-13 12:31:14 +01:00
Travis CI
fce97fc6f5 [CI Skip] 0.24.40 2019-03-13 11:08:01 +00:00
Stefanie Doll
d1fe487392
Fix editor bugs after refactor (#812)
* Add invalid class only when invalid prop is passed

* adjust css to fix overflow bug in app-js
2019-03-13 12:02:16 +01:00
Travis CI
c37f2fe018 [CI Skip] 0.24.39 2019-03-12 12:11:43 +00:00
Jaco Greeff
e3b2b8d2f8
Remove InputNumber shift check (#807) 2019-03-12 13:03:06 +01:00
Jaco Greeff
e6bced1d9a
Block explorer expanded (#801)
* Add extrinsic hash to detail display

* Move BlockByHash -> ByHash

* Query block by number

* isEmpty check fro block and header
2019-03-12 13:02:39 +01:00
Jaco Greeff
e7eb08851f
Move TxButton to ui-app (#799)
* Move TxButton to ui-app (re-usable)

* Add txFailed, txSuccess & txUpdate callbacks to queue

* Linting

* Update Modal.tsx
2019-03-12 13:02:04 +01:00
Jaco Greeff
105205fb46
Auto-add all packages to webpack alias (#798)
* Auto-add all packages to webpack alias

* Use findPackages approach is jest.config as well

* Remove debug log
2019-03-12 13:01:37 +01:00
Jaco Greeff
9fe4510724
Bump deps (#808) 2019-03-12 13:00:33 +01:00
Ross Bulat
9dc5f50f73 Fixed sidebar w. scrollable icons (#796)
* enhanced sidebar

* ts

* tidyup

* bump

* fix

* yarn lock

* package json

* package json

* fixed sidebar

* lodash throttle

* tslint

* yarn lock

* universal height

* logo width

* post conflicts

* toggle bar

* tidyup

* tidyup, remove flex on sidebar wrap

* conflict

* yarn lock

* ts

* yarn lock

* sticky sidebar

* wrapper classes

* cleanup

* polkadot pink dial down

* revert pink remove, consistent collapse pos

* eagle-eyed jaco

* collapsed icon margin 0
2019-03-12 12:17:05 +01:00
Travis CI
7ff2aff2b3 [CI Skip] 0.24.38 2019-03-12 11:10:24 +00:00
Stefanie Doll
ee968a59c3
Editor for custom types and ActionStatus (#794)
* Added code editor to developer settings

* Added code editor to developer settings

* Added ActionStatus on save

* Added translate to new strings

* tslint fixes

* Valid status message

* Added styling, an error class and a description to Editor component

* Updated yarn.lock

* Include Editor from ui-app

* Added invalid prop to Ediitor component

* use classes util instead of classnames module

* Move settings tab content to seperate components

* Finalized validation logic

* reset placeholder

* removed leftover code comment

* remove comsole.log

* code cleanup
2019-03-12 12:04:27 +01:00
Travis CI
4ce1a3678d [CI Skip] 0.24.37 2019-03-08 11:47:42 +00:00
Stefanie Doll
4ff77eee26
Move editor from app-js to ui-app component (#795)
* Move editor from app-js to ui-app component

* move export

* Move codeflask in package.json
2019-03-08 12:41:58 +01:00
Travis CI
7c6b190c4b [CI Skip] 0.24.36 2019-03-08 11:17:52 +00:00
Jaco Greeff
7f964b01e7
Bump API (subId & result out of order fix) (#797) 2019-03-08 12:11:50 +01:00
Travis CI
c180bd6e90 [CI Skip] 0.24.35 2019-03-07 12:30:52 +00:00
Jaco Greeff
852f3c7918
Hide staking actions (when on bond API) (#792)
* Hide staking actions (when on bond API)

* Remove unused import

* Pull in new API with updated Metadata

* Hide low/high when there are no intentions

* Cleanup linting issues
2019-03-07 13:25:06 +01:00
Travis CI
a307f48007 [CI Skip] 0.24.34 2019-03-07 11:27:14 +00:00
Jaco Greeff
e1330b6d0e
Bump API (Header with number alias) (#791) 2019-03-07 12:20:18 +01:00
Travis CI
5850d328ec [CI Skip] 0.24.33 2019-03-07 09:56:19 +00:00
Stefanie Doll
8984b66179 Sd remove console.error for missing runtime modules (#788)
* Changed console.error to console.info

* Updated yarn.lock
2019-03-07 10:50:01 +01:00
Travis CI
59af4f8a39 [CI Skip] 0.24.32 2019-03-06 16:25:59 +00:00
Jaco Greeff
2831e66fbd
Don't include webpack-plugin-serve in prod (#787) 2019-03-06 17:20:08 +01:00
Travis CI
dd2edeaa5c [CI Skip] 0.24.31 2019-03-06 12:10:47 +00:00
Stefanie Doll
339f98890f
delete react-hot-loader devDependency (#785) 2019-03-06 13:05:00 +01:00
Travis CI
4475c53c1d [CI Skip] 0.24.30 2019-03-06 12:01:05 +00:00
Jaco Greeff
7195d29724
Add resolution overrides (#786)
* Add resolution overrides

* Add yarn.lock
2019-03-06 12:54:00 +01:00
Travis CI
81e8b6db2d [CI Skip] 0.24.29 2019-03-05 16:38:07 +00:00
Stefanie Doll
d55697e530
Add hot module reloading to apps (#784)
* Removed live-reload

* Turn App into React.Component

* Working HMR version 1

* Removed custom `module.hot.accept` function

* Added new line at the end of file

* Remove withMulti

* Removed unused imports & declarations

* Remove leftover BareProps import

* Fixed copy & paste error in copyright header
2019-03-05 17:31:58 +01:00
Travis CI
8d34ffb5c0 [CI Skip] 0.24.28 2019-03-05 15:08:16 +00:00
Ross Bulat
5078f3ae2c Enhanced Sidebar (#773)
* enhanced sidebar

* ts

* tidyup

* bump

* fix

* yarn lock

* package json

* package json
2019-03-05 16:02:09 +01:00
Travis CI
8ce348d684 [CI Skip] 0.24.27 2019-03-04 17:04:24 +00:00
Jaco Greeff
f270d45a22
Swap HMR to liveReload (#783)
* Move WebpackPluginServe last

* Swap to liveReload (which is what we had)

* Bump deps
2019-03-04 17:58:17 +01:00
Travis CI
8e9f202d54 [CI Skip] 0.24.26 2019-03-04 10:53:35 +00:00
Jaco Greeff
379161b749
Show system events (extrinsic success & failure) (#782) 2019-03-04 11:47:53 +01:00
Travis CI
f85147736a [CI Skip] 0.24.25 2019-03-04 10:31:01 +00:00
Jaco Greeff
d9cacd8322
Adjust wording for password labels (#774)
* Adjust wording for password labels

* Update Backup.tsx

* Update ChangePass.tsx

* Update with new API interfaces
2019-03-04 11:25:11 +01:00
Travis CI
3b5335e04e [CI Skip] 0.24.24 2019-03-01 10:25:23 +00:00
Jaco Greeff
946bb17311
Handle unknown types (via createType) (#771)
* Handle unknown types (via createType)

* Bump deps
2019-03-01 11:19:36 +01:00
Travis CI
f95b60c108 [CI Skip] 0.24.23 2019-02-28 15:42:21 +00:00
Jaco Greeff
449310e0c9
Don't pass UI_MODE/UI_THEME via env (#769) 2019-02-28 16:36:50 +01:00
Travis CI
ea9cacc175 [CI Skip] 0.24.22 2019-02-28 14:28:35 +00:00
Jaco Greeff
3698698a8a
Bump deps (#768)
* Bump deps

* Bump
2019-02-28 15:22:52 +01:00
Travis CI
8d3beb20f0 [CI Skip] 0.24.21 2019-02-28 12:25:28 +00:00
Travis CI
a03aed315d [CI Skip] 0.24.20 2019-02-27 16:43:10 +00:00
Jaco Greeff
34687e1765
Initialise Vector correctly based on subtype (#765) 2019-02-27 17:36:59 +01:00
Travis CI
d28a19897e [CI Skip] 0.24.19 2019-02-27 14:10:15 +00:00
Jaco Greeff
bf8e2b15ba
Check instanceof to determine param (numbers only) (#764) 2019-02-27 15:04:03 +01:00
Travis CI
9294dc895a [CI Skip] 0.24.18 2019-02-27 10:06:29 +00:00
Jaco Greeff
7858192058
Check for both v0 & v1 files (#762) 2019-02-27 10:58:07 +01:00
Mokhtar Naamani
29f76b1636 Fix app-accounts Restore feature (#761) 2019-02-27 08:33:02 +01:00
Travis CI
bb206677a7 [CI Skip] 0.24.17 2019-02-26 17:18:42 +00:00
Jaco Greeff
3989c8c7c1
Bump deps (#757)
* Bump deps

* yarn start, well, starts again
2019-02-26 18:10:42 +01:00
Travis CI
84f4af6edd [CI Skip] 0.24.16 2019-02-25 13:29:46 +00:00
Stefanie Doll
3f8ef157e4
Compress code with snappyjs (#755)
* Compress Base64 strings with snappy

* Move wrapper fix to different PR

* Added snappy typescript declaration

* type str and ch

* Updated yarn.lock
2019-02-25 14:24:19 +01:00
Travis CI
ea7d66dccd [CI Skip] 0.24.15 2019-02-24 12:39:29 +00:00
Stefanie Doll
b56480c9ca
Smaller quick-fixes for app-js (#756)
* Fix wrong copyToClipboard link

* Removed duplicate 'js--App' wrapper

* Fixed overflow in editor for longer code examples
2019-02-24 13:33:44 +01:00
Travis CI
3acd9c16c2 [CI Skip] 0.24.14 2019-02-22 17:02:48 +00:00
Jaco Greeff
8ba8e1820b
Wrap SideBar in router (styled-component + old react-router) (#754) 2019-02-22 17:56:57 +01:00
Travis CI
e6eb18de97 [CI Skip] 0.24.13 2019-02-22 16:27:13 +00:00
Travis CI
028fcae8ac [CI Skip] 0.24.12 2019-02-22 12:56:53 +00:00
Stefanie Doll
970911536c
Share functionality for app-js api playground (#740)
* First WIP

* Move all action buttons to component

* More WIP

* removed query-string module, share example through location.hash

* Copy over deep clone

* Fixed onload behaviour

* Working example 'read from url' <-> 'write to url'

* Populate location.hash to state

* comment

* Add selected option to dropdown

* Dropdown WIP debugging

* Removed attempted workaround for MUI Dropdown component Bug, added Fixme

* Added copy to clipboard functionality

* Added feedback animation on copy & switched component back to PureComponent

* Tslint fixes & yarn.lock dump

* Added hash router types

* More type fixes

* Attempt to fix strictNullChecks for document.getSelection()

* Fixed wrong conditional

* prettier links

* Tiny styling tweaks

* Added routing to index

* Removed empty devDependencies from package.json

* Fix sharing

* Try `history` without typing

* Yarn.lock dump

* Removed leftover LocalStorage component

* Removed HashRouterProps

* Code formatting changes

* addressing tslint errors

* Added match ro Props

* Added history: any to Props declaration
2019-02-22 13:51:07 +01:00
Travis CI
b5fa33ded0 [CI Skip] 0.24.11 2019-02-22 10:18:54 +00:00
Jaco Greeff
af7aea33df
Bump API, fix Option handling on storage (#751) 2019-02-22 11:13:31 +01:00
Travis CI
a1d4cec6e4 [CI Skip] 0.24.10 2019-02-22 07:18:48 +00:00
Jaco Greeff
03d7865047
Expand https -> ws connection info (#749)
* Expand https -> ws connection info

* Update NodeInfo.tsx

* Update Connecting.tsx

* Remove apps--App (& Content/SideBar flex embedded)
2019-02-22 08:11:08 +01:00
Jaco Greeff
4a1dacd239
InputAddress selects current value (via search) (#746) 2019-02-22 08:10:28 +01:00
Travis CI
5ed108ef14 [CI Skip] 0.24.9 2019-02-21 15:00:42 +00:00
Jaco Greeff
12ffd0425a
Fix referendum votes not showing (#748)
* Fix referendum votes not showing

* Bump deps
2019-02-21 15:54:53 +01:00
Travis CI
839b79b612 [CI Skip] 0.24.8 2019-02-21 12:53:29 +00:00
Jaco Greeff
f23ce1d764
Bump ui-identicon (Substrate default) (#745) 2019-02-21 13:48:03 +01:00
Travis CI
72e3c9fff2 [CI Skip] 0.24.7 2019-02-21 10:12:03 +00:00
Jaco Greeff
06dd4651f2
Cleanup ComponentMap (easier to reason about) (#744)
* Cleanup CompoinentMap (easier to reason about)

* Remove voting countdown
2019-02-21 11:06:36 +01:00
Travis CI
1fa3d3de78 [CI Skip] 0.24.6 2019-02-20 16:53:08 +00:00
Jaco Greeff
142780f3ac
Bump api (latest substrate master support) (#741) 2019-02-20 17:47:35 +01:00
Travis CI
36b0000781 [CI Skip] 0.24.5 2019-02-20 15:45:41 +00:00
Jaco Greeff
b6836fb282
Dried Danta support (#739)
* Don't filter chains (use specified props)

* Bump @polkadot/ui-settings
2019-02-20 16:39:52 +01:00
Travis CI
272b0ea5c2 [CI Skip] 0.24.4 2019-02-20 12:26:21 +00:00
Jaco Greeff
d24571d767
Fix InputBalance (with value prop, si calc) (#738)
* Fix InputBalance (with value prop, si calc)

* Cater for si and non-si cases (with si apply for default)

* Cleanup InputNumber interface
2019-02-20 13:20:50 +01:00
Travis CI
b4a702bc84 [CI Skip] 0.24.3 2019-02-20 11:59:13 +00:00
Stefanie Doll
333b94001e
Bugfix: deep clone imported snippets (#737)
* Yarn.lock update

* Deep clone imported snippets, state.snippet empty on default

* Fixed wrong defailt type for 'selected'

* Fix onMount behaviour
2019-02-20 12:53:48 +01:00
Travis CI
7234bfcad5 [CI Skip] 0.24.2 2019-02-20 09:32:00 +00:00
Jaco Greeff
9adfd46cc3
Bump i18next version (with usage changes) (#736)
* Bump i18next version (with usage changes)

* Remove unneeded i18n wrapping (Unlock)

* Bump semantic-ui version
2019-02-20 10:26:27 +01:00
Travis CI
615f3f564d [CI Skip] 0.24.1 2019-02-20 08:30:16 +00:00
Jaco Greeff
a76bfe1f2f
Bump apps version (#735) 2019-02-20 09:24:54 +01:00
Travis CI
1f4baed039 [CI Skip] 0.23.37 2019-02-20 07:51:17 +00:00
Jaco Greeff
4889fb7147
Pull in new API (Option<Type> for storage) (#730)
* Pull in new API (Option<Type> for storage)

* staking_nominating is Option

* WIP

* Seems working, however democracy, not happy

* Bump API, Option storage fix

* Pull latest API

* Api version display
2019-02-20 08:45:42 +01:00
Travis CI
0adfcef046 [CI Skip] 0.23.36 2019-02-19 17:34:03 +00:00
Stefanie Doll
f0198a35d4
Bugfix: Editor doesn't update onLoad if no custom example is selected (#732) 2019-02-19 18:28:16 +01:00
Travis CI
f719a0071a [CI Skip] 0.23.35 2019-02-19 15:27:42 +00:00
Stefanie Doll
12ff6fe32a
Populate example name to input for custom examples (#731)
* Set snippet name as default value in save input field

* Onlu prefill input for custom examples
2019-02-19 16:18:19 +01:00
Travis CI
aaac78021c [CI Skip] 0.23.34 2019-02-19 09:55:04 +00:00
Stefanie Doll
a056be741b
Save code snippets to local storage (#718)
* Fine tuning examples

* WIP First proposal to save snippets

* Don't add code wrapping multiple times

* Smaller adjustments

* Fix 'reset selected on load' bug

* Reverted Button size type declaration change, doesn\t belong in this PR

* Wrapper formatting

* Save button style

* removed constructor from editor

* fix metadata example

* Added constants file

* Moved local storage popup to separate component

* Remove functionality WIP

* upgraded yarn lock

* Moved Local storage to separate component, fixed lyfecycle methods, moved props.childre to render in HOC

* Changed simplyfied examples for debugging back to original

* Cleanup leftover comments

* More leftover comments cleanup

* More cleanup

* Moved makeWrapper back to seperate component

* Add code wrapper for default examples in constructor to prevent lifecycle update bugs

* Make onBlur optional

* Updated yarn.lock

* FIXME comment for ui-app Button bug inside <Popup />

* translation and removed empty classname
2019-02-19 10:49:37 +01:00
Travis CI
2bd21393aa [CI Skip] 0.23.33 2019-02-18 16:39:27 +00:00
Jaco Greeff
5c59c3f991
Warp ui--row inside Params (#727)
* Warp ui--row inside Params

* Media queries for node info
2019-02-18 17:34:19 +01:00
Travis CI
68f203d99d [CI Skip] 0.23.32 2019-02-18 16:16:10 +00:00
Jaco Greeff
166ceb740f
Fix InputBalance with initial value (#726)
* Fix InputBalance with initial value

* Initial si units
2019-02-18 17:10:40 +01:00
Travis CI
4e60a19a5f [CI Skip] 0.23.31 2019-02-18 13:51:11 +00:00
Jaco Greeff
cf23041b85
Pull in @polkadot/ui-util (#724)
* Pull in @polkadot/ui-util

* Pull in @polkadot/ui-util

* Skip tests
2019-02-18 14:45:29 +01:00
Travis CI
9a3eede508 [CI Skip] 0.23.30 2019-02-16 16:12:33 +00:00
Jaco Greeff
77cecc81f6
Fix validatorPrefs input (#721)
* Fix validatorPrefs input

* Display summary with value
2019-02-16 17:07:12 +01:00
Travis CI
0412f16e87 [CI Skip] 0.23.29 2019-02-15 17:50:26 +00:00
Jaco Greeff
b9bf4826bd
Bump deps (#720)
* Bump deps

* Bump deps

* Revert sui bump
2019-02-15 18:44:53 +01:00
Travis CI
a9a72b6cef [CI Skip] 0.23.28 2019-02-15 11:02:27 +00:00
Jaco Greeff
dac2734ab6
Schnorrkel support (#710)
* Schnorrkel support

* Additional export cleanups (move to root & types)

* Bump

* Bump deps

* Update deps

* Bump deps

* Bump deps
2019-02-15 11:57:10 +01:00
Travis CI
c3686eb31f [CI Skip] 0.23.27 2019-02-14 16:29:11 +00:00
Jaco Greeff
bc0c9bfe43
Inject keyring only on dev chains (#717)
* Inject keyring only on dev chains

* Remove useless deconstruct
2019-02-14 17:23:55 +01:00
Travis CI
f8e26cbf7a [CI Skip] 0.23.26 2019-02-14 12:31:36 +00:00
Jaco Greeff
ba5ecc2205
Display '<empty>' for U8a which is isEmpty (not the default) (#716) 2019-02-14 13:26:23 +01:00
Travis CI
5785d71d90 [CI Skip] 0.23.25 2019-02-13 21:54:44 +00:00
Jaco Greeff
5feb22b07e
Cleanup @polkadot/types imports (#711) 2019-02-13 22:49:10 +01:00
Travis CI
e1d5340791 [CI Skip] 0.23.24 2019-02-13 20:55:16 +00:00
Jaco Greeff
6fb30b9ae3
Trap accounts not in keyring (#709)
* Trap accounts not in keyring

* Remove loose log

* Add isSendable prop

* Remove useless spec
2019-02-13 21:50:01 +01:00
Travis CI
011e7711f1 [CI Skip] 0.23.23 2019-02-13 12:58:06 +00:00
Jaco Greeff
de63d887a1
Adjust collapsed logo top/bottom margings (#708) 2019-02-13 13:53:00 +01:00
Travis CI
9b2a56dd44 [CI Skip] 0.23.22 2019-02-13 12:47:44 +00:00
Jaco Greeff
f4be787cad
Merge Explorer & Nodeinfo apps (#706)
* Merge Explorer & Nodeinfo apps

* Fix block hash component rendering
2019-02-13 13:42:22 +01:00
Travis CI
a7a379f583 [CI Skip] 0.23.21 2019-02-13 12:05:04 +00:00
Jaco Greeff
147cc185af
Small css adjustments for SideBar sizing (#705) 2019-02-13 12:59:34 +01:00
Travis CI
bce8ff479c [CI Skip] 0.23.20 2019-02-13 11:36:48 +00:00
Stefanie Doll
a69548866b
App-js follow up tasks (#703)
* Bump up yarn.lock

* Clean up examples, added jacos example to storage examples

* Fixed Dropdown

* Update package.json

* resize wip

* css resize fix

* Add line-break after code in exec to prevent catch from  being commented out

* Fixed typo in example

* Formatting

* More formatting

* Added missing semicolon

* Update to use UI signer

* Make visible on sidebar

* Combine some info from samples

* blockPeriod.toNumber() (oops, dropped that, reinstate)

* lifecycle bugfix for duplicate comments

* Kicked Intro, moved info to WRAPPER

* removed leftover <Intro /> import
2019-02-13 12:30:41 +01:00
Travis CI
c57fee1494 [CI Skip] 0.23.19 2019-02-13 10:55:24 +00:00
Jaco Greeff
e591a7be64
Bump API (#704) 2019-02-13 11:50:01 +01:00
Travis CI
f30fe4f2ec [CI Skip] 0.23.18 2019-02-12 21:35:14 +00:00
Jaco Greeff
61674a7989
Add Signer interface for API (#683)
* Add Signer interface for API

* Attach signer to API instance

* Integrate signer with updates (untested)

* Update with working signer integration (logging an issue still)

* Restore console hooks, feedback on signed

* Remove unneeded console.log

* Marge install
2019-02-12 22:29:47 +01:00
Travis CI
ce63296007 [CI Skip] 0.23.17 2019-02-12 17:11:48 +00:00
Jaco Greeff
9f17297d3c
Bump API (#702) 2019-02-12 18:06:08 +01:00
Travis CI
81a3c60d1e [CI Skip] 0.23.16 2019-02-12 15:48:38 +00:00
Jaco Greeff
7b48e4e9d2 Wait for isReady before js exec (#701) 2019-02-12 16:43:01 +01:00
Travis CI
20761bea00 [CI Skip] 0.23.15 2019-02-12 15:01:03 +00:00
Jaco Greeff
75b519151b
Collapse sidebar (#700)
* Collapse sidebar

* Collapse button is fixed

* Small updates (styling)

* Add small collapsed logos
2019-02-12 15:55:32 +01:00
Travis CI
c14de86faa [CI Skip] 0.23.14 2019-02-12 10:18:46 +00:00
Jaco Greeff
ef82b7f58c
Adjust Editor/Output sizing (#697) 2019-02-12 11:13:25 +01:00
Travis CI
73ee2578eb [CI Skip] 0.23.13 2019-02-12 07:29:31 +00:00
Alex Siman
f597953131 Fix typos in app-123code/README (#699)
* Fix typo in app-123code/README: -> appropriate

* Fix more typos in README of 123code
2019-02-12 08:24:09 +01:00
Travis CI
c6ba9eb695 [CI Skip] 0.23.12 2019-02-11 22:27:26 +00:00
Jaco Greeff
bdd7e4b12e
Remove password rows on modals (#698) 2019-02-11 23:21:50 +01:00
Travis CI
dbf35f1fe6 [CI Skip] 0.23.11 2019-02-11 21:16:30 +00:00
Jaco Greeff
06c6b1c0df
Bump API to latest (#695)
* Bump API to latest

* Update deps
2019-02-11 22:10:58 +01:00
Travis CI
a5524cf3ab [CI Skip] 0.23.10 2019-02-11 20:52:47 +00:00
Jaco Greeff
ffcb8ff37f
Cleanup Tuple state updates (#690)
* Cleanup Tuple state updates

* Cleanup setStrate in Vector as well
2019-02-11 21:47:21 +01:00
Travis CI
9c09cad99f [CI Skip] 0.23.9 2019-02-11 20:20:52 +00:00
Travis CI
23693eef0a [CI Skip] 0.23.8 2019-02-11 17:08:24 +00:00
Stefanie Doll
061f346fd6
Sd 668 app console (#684)
* [app-js] fixed copyright

* [app-js] css fixes

* [app-js] Add api to window object

* Make CSS columns resizable (FF & Chrome)

* Window Interface export

* formatting

* Make columns responsive, added Dropdown

* Added code snippets

* Strip down output to functional component

* removed component state, removed onEdit, update on select

* Editor styling

* Added snippets and local storage

* output formatting

* Example dummies

* Cleanup & examples

* Added util & keyring @polkadot modules to window object

* Moved intro to component to make it translatable

* Added more RPC examples

* small fix

* WIP exaples

* Styles for resizer, fixed flex overflow misbehaviour

* remove code from snippets for options,

* Added labels to dropdown

* Examples

* More examples and removed deprecated examples

* Added labels to dropdown -> missing type decl.

* correst link to ui-keyring package

* Make tslint happy

* Pull api clone/disconnect into sd-668 (#686)

* JS playground & console (start something...)

* It runs...

* WIP

* Use codeflask

* Highlights

* Small updates, console v0.1 is ok to play with

* Bump

* Only shadow, no border (article)

* Allow API to be disposed of between runs

* Clone and disconnect API

* Move id generation (no need for constructor)

* Small updates

* Small type adjustments

* smaller fixes after code review

* updated yarn.lock

* move options calculation out of return

* Remove exposure of api to window object

* Expand JS console logging (#691)

* Expand JS console logging

* Log extrinsics directly

* switch to getDerivedStateFromProps()

* roll back ts versions

* react-i18next rollback to 9.0.2

* Lock  react-i18next to 9.0.2
2019-02-11 18:02:34 +01:00
Travis CI
e3ac5dbc3d [CI Skip] 0.23.7 2019-02-11 10:53:39 +00:00
Jaco Greeff
3a70c0b587
Explorer flex for events, extrinsics (medium+) (#689) 2019-02-11 11:48:07 +01:00
Travis CI
dbaea308cc [CI Skip] 0.23.6 2019-02-11 09:58:00 +00:00
Jaco Greeff
70f24e73a0
CC breaks on events, fix for UI (need proper solution in api) (#688) 2019-02-11 10:52:39 +01:00
Travis CI
05cab02ac6 [CI Skip] 0.23.5 2019-02-10 16:53:28 +00:00
Xiliang Chen
b415ab847d better handling of large values (#678) 2019-02-10 18:48:13 +02:00
Travis CI
76537ffc0a [CI Skip] 0.23.4 2019-02-10 15:36:17 +00:00
Jaco Greeff
c0d0666be6
Show balance units with denomination (inline-text) (#677)
* Show balance units with denomination (inline-text)

* Update tests for unit display
2019-02-10 17:30:59 +02:00
Travis CI
dc6d942e88 [CI Skip] 0.23.3 2019-02-05 06:07:05 +00:00
Jaco Greeff
d873512ccc
Forward-port low-hanging breaks (#673)
* Pull in media from jg-ui-break

* Test apps, pull in flex-media settings
2019-02-05 08:01:40 +02:00
Travis CI
136ce9cf8a [CI Skip] 0.23.2 2019-02-01 11:11:55 +00:00
Jaco Greeff
5df31ca256
Unsub from newHead snippet (#669) 2019-02-01 12:06:27 +01:00
Travis CI
862a7c893e [CI Skip] 0.23.1 2019-02-01 10:23:13 +00:00
Jaco Greeff
fb9cf70a71
Javascript & API console app (#666)
* JS playground & console (start something...)

* It runs...

* WIP

* Use codeflask

* Highlights

* Small updates, console v0.1 is ok to play with

* Bump

* Only shadow, no border (article)
2019-02-01 11:17:32 +01:00
Travis CI
d8f2b6a7dd [CI Skip] 0.22.60 2019-02-01 08:29:11 +00:00
Jaco Greeff
0d73b439e2
Settings does not need the API available (#667) 2019-02-01 09:23:30 +01:00
Travis CI
5a3f28e7d8 [CI Skip] 0.22.59 2019-01-31 20:26:13 +00:00
Jaco Greeff
1e86fb745c
Bump API for hash-value signatures (#665)
* Bump API for hash-value signatures

* Imports, hide tabs, not apps

* Update with derive-fixed API

* Remove unused type import
2019-01-31 21:19:36 +01:00
Travis CI
348b30bdeb [CI Skip] 0.22.58 2019-01-31 17:08:09 +00:00
Jaco Greeff
a8ed300dc4
Small init changes (static state) (#663)
* Small init changes (static state)

* Hide vanity on empty accounts

* Require accounts for apps, cleanup needsApi/needsCalls

* Display InputAddress when disable (but no options)

* Filter toolbox based on accounts

* Accounts gated via app, don't display add

* Cleanup linting

* Validation display & clear on settings types

* Split save for developer & general

* Add Reset button to dev settings
2019-01-31 18:02:47 +01:00
Travis CI
15cc5190f0 [CI Skip] 0.22.57 2019-01-30 21:20:46 +00:00
Jaco Greeff
ef0c5b1e3f
Misc. small tweaks (settings) (#662) 2019-01-30 22:15:04 +01:00
Travis CI
7efa0add26 [CI Skip] 0.22.56 2019-01-30 20:46:23 +00:00
maxwellfoley
22f0529244 Allow custom node URLs in settings (issue #644) (#657)
* warn when transaction size is >10MB #500

* Formatting changes for CI

* More formatting changes for CI

* Third time's the charm?

* moved code to only apply to extrinsics

* formatting for linter

* allow custom node urls

* cleanup for linter
2019-01-30 21:41:01 +01:00
Travis CI
8ba5d7579c [CI Skip] 0.22.55 2019-01-30 19:46:11 +00:00
Jaco Greeff
6ce31fc1da
Rework Tabs component (using react-router) (#660)
* Rework Tabs component (using react-reouter)

* Remove unneeded props (already specified)

* Bump API

* Bump API for finalised v1 support
2019-01-30 20:40:29 +01:00
Travis CI
02741498ca [CI Skip] 0.22.54 2019-01-28 19:36:19 +00:00
Jaco Greeff
3ff2053370
Bring tabs into apps without (consistency) (#659)
* Bring tabs into apps without (consistency)

* Small signer updates

* Explorer info as label

* Adjust fonts for modals

* Cleanup imports

* .ui.modal base color

* Adjust Account summary opacity

* Bump API (metadata V1 events)

* Update Event.tsx

* Remove order overrides

* Expand isDisabled balance

* Update index.tsx

* Update index.tsx
2019-01-28 20:30:49 +01:00
Travis CI
ac84a529e4 [CI Skip] 0.22.53 2019-01-28 11:13:10 +00:00
Jaco Greeff
a6c44dd4fb Labelling cleanups & API bump (balances via Address) (#658)
* Labelling cleanups & API bump (balances via Address)

* Documentation join

* Align padding for article with padding

* Extra console.log removed

* Text update
2019-01-28 12:08:01 +01:00
Travis CI
e5a3086547 [CI Skip] 0.22.52 2019-01-27 21:38:51 +00:00
Jaco Greeff
f547f8f0b1
Rework labelled layouts (#654)
* Rework labelled layouts

* Adjust storage output display

* Minor adjustments

* Linting cleanups

* Remove unused injected ia8n

* Minor adjustments

* Force Param re-render, fix Nonce params

* Text updates

* Expand Params key
2019-01-27 22:33:29 +01:00
Travis CI
f52761afa2 [CI Skip] 0.22.51 2019-01-27 12:12:07 +00:00
Jaco Greeff
82b144f9e4
Update disabled styling (#653) 2019-01-27 13:06:35 +01:00
Travis CI
72cc2b6d67 [CI Skip] 0.22.50 2019-01-27 11:56:13 +00:00
Jaco Greeff
653c2a505f
Basic info display for 123-code (#641)
* Add withCalls

* withCalls operational

* Basic header display & cleanups

* Global account selector for app

* Remove errant debug log

* Simple transfer applet working

* Update Upgrade.tsx

* Update InputNumber.tsx

* Update Transfer.tsx

* Move TxButton back to 123code (for the time being)

* Good enough for a v1
2019-01-27 12:50:47 +01:00
Travis CI
e1a17a86c1 [CI Skip] 0.22.49 2019-01-26 16:32:29 +00:00
Jaco Greeff
612b5d0f45
API update (metadata v1), fragment support (#652)
* Use fragments instead of [] returns

* Frament part 2

* Update API

* Update Creator.tsx

* Review cleanups
2019-01-26 17:27:13 +01:00
Travis CI
11c0224b3a [CI Skip] 0.22.48 2019-01-26 09:12:26 +00:00
maxwellfoley
cfb60e6f21 Warn user when RPC request size is >10MB (#621)
* warn when transaction size is >10MB #500

* Formatting changes for CI

* More formatting changes for CI

* Third time's the charm?

* moved code to only apply to extrinsics

* formatting for linter
2019-01-26 10:07:21 +01:00
Travis CI
5fb8863f8e [CI Skip] 0.22.47 2019-01-25 16:28:14 +00:00
Jaco Greeff
3cc49d15df
Fix AccountIndex, Tuple & Vector disabled displays (#647)
* Fix AccountIndex, Tuple & Vector disabled displays

* Fix Log rendering with U8a

* Fix AddressSummary child block display
2019-01-25 17:23:04 +01:00
Travis CI
9aa7596fdb [CI Skip] 0.22.46 2019-01-25 10:40:19 +00:00
Jaco Greeff
077dfc398d
Hover & signer name updates (#646)
* Hover should not hop all over the screen

* Rework signer with name/address display
2019-01-25 11:34:56 +01:00
Travis CI
e695149786 [CI Skip] 0.22.45 2019-01-24 21:43:36 +00:00
Jaco Greeff
0663483a2e
Type rendering updates (#643)
* Type rendering updates

* Moment renders via Amount

* Remove errant console.log
2019-01-24 22:38:17 +01:00
Travis CI
a3526127c6 [CI Skip] 0.22.44 2019-01-24 14:15:00 +00:00
Jaco Greeff
5325f3695e
API bump, bool fix (#642) 2019-01-24 15:09:32 +01:00
Travis CI
7d5ccf7aae [CI Skip] 0.22.43 2019-01-22 20:10:55 +00:00
Jaco Greeff
1d0dc50fd4
Display last-authored block per validator (#640) 2019-01-22 21:05:08 +01:00
Travis CI
b4cc7f451a [CI Skip] 0.22.42 2019-01-22 13:56:48 +00:00
Jaco Greeff
ff70e91af0
Minor formatting updates (count events & extrinsics) (#638)
* Minor formatting updates (count evnts & extrinsics)

* flex alignment, font-familt (headers)

* Height adjustment (slight)
2019-01-22 14:51:45 +01:00
Travis CI
fea5ff2c70 [CI Skip] 0.22.41 2019-01-22 12:44:11 +00:00
Jaco Greeff
bbb9bb0fee
Move app-rpc into app-toolbox (#637)
* Staking condensed

* Move app-rpc into app-toolbox

* Adjust children rendering (summary)

* Polkadot highlights

* Display most-recent as expanded (explorer)
2019-01-22 13:38:56 +01:00
Travis CI
932f63bd3a [CI Skip] 0.22.40 2019-01-22 10:19:29 +00:00
Jaco Greeff
bae3c98e20
Hide description until hover (explorer) (#636)
* Hide description until hover (explorer)

* Flexable top margin
2019-01-22 11:14:07 +01:00
Travis CI
da59e29191 [CI Skip] 0.22.39 2019-01-22 09:29:14 +00:00
Jaco Greeff
2e8b73fe90
Node info & explorer info density adj. (#635)
* Poll for system_health (keep-alive)

* Node info & exp,orer info density adj.
2019-01-22 10:24:00 +01:00
Travis CI
2209e491e0 [CI Skip] 0.22.38 2019-01-21 18:12:07 +00:00
Jaco Greeff
509176c95d
Set info refresh at 9.9s (no summary movement) 2019-01-21 19:06:59 +01:00
Travis CI
c117b44f88 [CI Skip] 0.22.37 2019-01-21 16:11:24 +00:00
Jaco Greeff
d3202c79a6
Poll for system_health (keep-alive) (#634) 2019-01-21 17:04:55 +01:00
Travis CI
2ca3c16966 [CI Skip] 0.22.36 2019-01-21 15:33:38 +00:00
Jaco Greeff
e86c437e91
Warm up frequently-used subscriptions (#633) 2019-01-21 16:28:12 +01:00
Travis CI
1f15c54309 [CI Skip] 0.22.35 2019-01-21 14:55:03 +00:00
Jaco Greeff
fd5797f129
Lookup balance from accountId (#632) 2019-01-21 15:49:54 +01:00
Travis CI
5a705f3aff [CI Skip] 0.22.34 2019-01-21 14:10:38 +00:00
Jaco Greeff
c52116adb9
Don't make storage queries with missing params (#631)
* Don't make storage queries with missing params

* Remove debug logs
2019-01-21 15:05:09 +01:00
Travis CI
20a748451e [CI Skip] 0.22.33 2019-01-21 13:16:13 +00:00
Jaco Greeff
e86fb8de43
Add setting of ValidatorPrefs (#624)
* Add setting of ValidatorPrefs

* Bump API

* Pull through initial values in InputNumber
2019-01-21 14:10:52 +01:00
Travis CI
b73043e2f7 [CI Skip] 0.22.32 2019-01-21 11:11:20 +00:00
Jaco Greeff
3061057e30
Bump API, Node info peer id displayed (#630)
* Node info peer id displayed

* Latest API

* Add peer best & countdown to nodeinfo
2019-01-21 12:06:18 +01:00
Travis CI
4c301cebc0 [CI Skip] 0.22.31 2019-01-20 23:44:53 +00:00
Jaco Greeff
ef6ae9d1ed
Remove extrinsic list duplication (#625) 2019-01-21 00:39:42 +01:00
Travis CI
c9fd88425c [CI Skip] 0.22.30 2019-01-20 23:32:01 +00:00
Jaco Greeff
f065e9945d
Purge left-over app-vanitygen references (#629) 2019-01-21 00:26:42 +01:00
Travis CI
df97d2f55d [CI Skip] 0.22.29 2019-01-20 12:21:23 +00:00
Jaco Greeff
864171e00a
Simplify i18n templates (#623)
* Start...

* Complete simplify i18n
2019-01-20 13:14:27 +01:00
Travis CI
592c626428 [CI Skip] 0.22.28 2019-01-19 21:23:49 +00:00
Jaco Greeff
45e42047f3
Node status app (#618)
* Structure for app-status (bonus: starting app-template to document)

* Add steps to add a new app from the template

* Follow instructions, ensure we have something working

* README update

* Disable Wiki (for the time being)

* Split last sidebar render helper

* speellung (edit: spelling), AppProps & empty new apps (current)

* app-template -> app-123code

* Status header in-place

* Very basic distus display in place

* Overflow for hash

* app-status -> app-nodeinfo
2019-01-19 22:18:35 +01:00
Travis CI
8f3f1e724d [CI Skip] 0.22.27 2019-01-18 22:09:32 +00:00
Jaco Greeff
eb0abb8307
Cleanup api call usage (#617)
* Rename apiPromise -> api

* First attemp at React render component (unused)

* Cleanup api call usage

* Cleanup linting

* Remove render component

* Adjustments on HOC types (& usage)
2019-01-18 23:04:13 +01:00
Travis CI
67a9a481e5 [CI Skip] 0.22.26 2019-01-18 15:40:08 +00:00
Travis CI
b4f2fd43e2 [CI Skip] 0.22.25 2019-01-18 10:28:58 +00:00
Jaco Greeff
c5c8a20ca4
Small fixes & tweaks (#614)
* Small fixes & tweaks

* lintin fix (extra import)

* ui-params inputs AccountIndex as number
2019-01-18 11:21:44 +01:00
Travis CI
cc875402d6 [CI Skip] 0.22.24 2019-01-17 17:15:34 +00:00
Jaco Greeff
ac2e809e97
Bump deps (#613)
* Bump deps

* Typo
2019-01-17 18:10:04 +01:00
Travis CI
39a2a74cc8 [CI Skip] 0.22.23 2019-01-17 15:00:47 +00:00
Jaco Greeff
9afe50ff64
Bump API, use derive.accounts.* (#612) 2019-01-17 15:55:50 +01:00
Travis CI
fe5c345bae [CI Skip] 0.22.22 2019-01-17 10:05:06 +00:00
Jaco Greeff
c3821bdb1b
Update with latest API (with derive) (#611)
* Pull in latest API

* Use derive from api

* Update with latest API
2019-01-17 10:59:22 +01:00
Travis CI
cc5271d9ff [CI Skip] 0.22.21 2019-01-16 14:39:23 +00:00
Jaco Greeff
150465a75b
Cleanups to HOC injectors (#609) 2019-01-16 15:34:06 +01:00
Travis CI
c1ee2f1720 [CI Skip] 0.22.20 2019-01-16 10:28:27 +00:00
Jaco Greeff
7f375c04a5
Bump API & deps (#606)
* Bump API & deps

* Bump repo-specific deps

* Fix vanity stats display
2019-01-16 11:23:20 +01:00
Travis CI
09ae868727 [CI Skip] 0.22.19 2019-01-15 08:43:16 +00:00
Jaco Greeff
6611577a86
Move vanity generation to accounts app (#603)
* Bare code move from app-vanitygen

* Dirty, but vanity shows up

* Add directly from vanity
2019-01-15 09:37:35 +01:00
Travis CI
b9dad9ffb9 [CI Skip] 0.22.18 2019-01-14 15:56:55 +00:00
Jaco Greeff
309da4204b
Update HOC props with typing (no any) (#602) 2019-01-14 16:49:39 +01:00
Travis CI
28097c9a08 [CI Skip] 0.22.17 2019-01-14 14:24:10 +00:00
Jaco Greeff
7e01f3cb37
Allow edit/add from address in recents (#601)
* Allow edit/add from address in recents

* Package upgrade restore after merge
2019-01-14 15:16:28 +01:00
Travis CI
3c7ea6fbca [CI Skip] 0.22.16 2019-01-14 13:15:35 +00:00
Jaco Greeff
50004c523a
Add basic icons to the fee display (#600) 2019-01-14 14:08:38 +01:00
Travis CI
f2c7eaefdf [CI Skip] 0.22.15 2019-01-14 12:28:33 +00:00
Jaco Greeff
a834850280
Remove wrongly introduced toNumber in fees (#599) 2019-01-14 13:21:34 +01:00
Travis CI
f82fbdf2e4 [CI Skip] 0.22.14 2019-01-14 12:04:13 +00:00
Jaco Greeff
19258df2c6
Display transaction fees on signer (#596)
* Move fee display component to ui-signer

* Format fee display

* Cleanup Fees, adjust calls with no params

* WIP

* WIP

* Cleanup derive file naming)

* Fees align with transfer

* Calculate fees (minimum) around proposals

* Apply nonce length correctly
2019-01-14 12:55:36 +01:00
Travis CI
69b4b79606 [CI Skip] 0.22.13 2019-01-14 10:54:56 +00:00
Jaco Greeff
47d08cb3d5
Detect invalid nominator (#598) 2019-01-14 11:49:44 +01:00
Travis CI
712675b604 [CI Skip] 0.22.12 2019-01-12 18:09:42 +00:00
Jaco Greeff
1a8da504c8
Fix balance formatting (#593) 2019-01-12 19:04:40 +01:00
Travis CI
72e6f5f3e3 [CI Skip] 0.22.11 2019-01-12 16:59:20 +00:00
Jaco Greeff
42409e6b72
Display all events on expanded block view (#591) 2019-01-12 17:54:15 +01:00
Travis CI
a6b808466d [CI Skip] 0.22.10 2019-01-12 15:40:01 +00:00
Jaco Greeff
b68c1a4f5e
Update summary info displays (#590)
* Display activated block for referendums

* Display authorities for block generation

* Fix author calculation
2019-01-12 16:35:04 +01:00
Travis CI
2c38dbf3da [CI Skip] 0.22.9 2019-01-12 08:43:23 +00:00
Jaco Greeff
014ae780e4
Split ui-api, update API version (#589)
* Split ui-api, update API version

* Update (awaiting API changes to go through)

* Cleanup ui-api exports

* Bump API (SubscriptionPromise support)

* Linting fixes

* Update renames

* Do display balances.Transfer (shows for non-owned accounts)

* Bump API
2019-01-12 09:38:07 +01:00
Travis CI
21cc608ee9 [CI Skip] 0.22.8 2019-01-11 18:38:57 +00:00
Jeff Reiner
1a7de5c803 adding in Wiki link to sidebar (#556)
Closes #444
2019-01-11 19:30:55 +01:00
Travis CI
aad588f608 [CI Skip] 0.22.7 2019-01-11 14:00:14 +00:00
Jaco Greeff
8e2f80d176
Submit extrinsics via signAndSend (#585)
* WIP first bits...

* Coversion should be ok, testing remains

* Tie up loose ends

* Bump deps
2019-01-11 14:54:18 +01:00
Travis CI
f2aff50736 [CI Skip] 0.22.6 2019-01-10 16:33:45 +00:00
Jaco Greeff
ecb61d02ae
Display balance with calculated SI units (#583)
* Display balance with calculated SI units

* Unused auto-import

* Update tests (format params)
2019-01-10 17:28:49 +01:00
Travis CI
8847473e8d [CI Skip] 0.22.5 2019-01-10 15:03:51 +00:00
Jaco Greeff
1504b66eeb
Display events created via extrinsic submission (#582)
* Display events created via extrinsic submission

* Global democracy events
2019-01-10 15:58:40 +01:00
Travis CI
3124b113b7 [CI Skip] 0.22.4 2019-01-10 14:53:34 +00:00
Jaco Greeff
d93169e172
Rework Params & Params Vector (#581)
* Split Params into ui-params

* Fix Vector value detection/adding

* Update jest config
2019-01-10 15:48:07 +01:00
Travis CI
ac99ca671f [CI Skip] 0.22.3 2019-01-10 10:56:52 +00:00
Jaco Greeff
0a5382ba0d
Update API, fixing isReady wait (#579)
* Update API, fixing isReady wait

* Bump (previous version didn't deploy all packages, npm, tsk, tsk)
2019-01-10 11:52:13 +01:00
Travis CI
7e1fe75eab [CI Skip] 0.22.2 2019-01-10 09:04:44 +00:00
Jaco Greeff
312f57f302
Provide fallback for tx defaults (Extrinsic, Proposal) (#576) 2019-01-10 10:00:05 +01:00
Travis CI
274c9f32cc [CI Skip] 0.22.1 2019-01-09 17:13:58 +00:00
Jaco Greeff
c0df704d66
Re-introduce Compact<Index> transaction support (#574) 2019-01-09 18:05:16 +01:00
Travis CI
001c390be3 [CI Skip] 0.21.22 2019-01-09 10:12:04 +00:00
Jaco Greeff
cb5f4f4b50
Revert Compact<Index> API until we have full support (#573)
* Rever Compact<Index> API until we have full support

* Fix requested API versions (module resolution)
2019-01-09 11:07:00 +01:00
Travis CI
35510c92e9 [CI Skip] 0.21.21 2019-01-09 06:36:15 +00:00
Jaco Greeff
46cf21bac9
Allow networkId from settings defaults (Alex & CC spec overrides) (#569) 2019-01-09 07:31:35 +01:00
Travis CI
bbcc8afee9 [CI Skip] 0.21.20 2019-01-08 18:44:39 +00:00
Jaco Greeff
43a4da151a
Bump API, Compact<Index> support (#563)
* Bump API, Compact<Index> support

* Bump for 0.38

* Allow numberFormat to format Compact

* Re-instate new compact API

* Update static Vector display
2019-01-08 19:39:47 +01:00
Travis CI
c7e90add8b [CI Skip] 0.21.19 2019-01-08 15:51:20 +00:00
Jaco Greeff
501de3c9fd
WS_URL override takes precedence (#566) 2019-01-08 16:45:03 +01:00
Travis CI
b5774378f7 [CI Skip] 0.21.18 2019-01-07 16:58:46 +00:00
Jaco Greeff
fef9f61c65
Use ApiPromise instance, replace ApiObservable (#540)
* Expose ApiPromise, cleanup API props

* WIP

* First component via ApiPromise

* More items via ApiPromise

* More robust availability handling

* Disable routes based on API endpoint checks

* Handle promises

* Low-hanging fruit for call conversion

* Remove extra params

* Adjust rx components with children props

* Start pulling in derived values

* Additional derived

* Bump

* More derived values

* Add derive.balances.fees

* Additional account lookups

* derive lookup for Id -> Index mappings

* Cleanups, accountIdToIndex

* Rework for new API

* Update deps, all-ok after API bumps

* Add voting and validating balances

* Cleanup callback

* Democracy wrap-up

* 2019

* withApiPromise -> withApiCall

* Calculate referendum number

* Fix balances, withObservableBase -> withObservable

* Cleanup with actual interfaces

* withApiCall -> withCall

* Bumps

* api-observable types replaced

* Half-effort to adjust extrinsic creation

* No api-observable refs anymore

* Cleanup storage query app

* Cleanup call

* Voting works...

* Add Vote component

* Update API
2019-01-07 17:54:01 +01:00
Travis CI
a26235d1f5 [CI Skip] 0.21.17 2019-01-03 17:22:38 +00:00
Jaco Greeff
47ca853ff8
Allow submission of unsigned (inherent) (#557)
* Allow submission of unsigned (inherent)

* Remove stray log

* Update text to refelect unigned

* Cleanup stray import
2019-01-03 18:17:26 +01:00
Travis CI
92a0f05d92 [CI Skip] 0.21.16 2019-01-01 16:35:52 +00:00
Jaco Greeff
f37056465f
Bump deps, subscription re-creation (#555) 2019-01-01 17:30:50 +01:00
Travis CI
a2c0f4cc3d [CI Skip] 0.21.15 2018-12-31 15:44:24 +00:00
Jaco Greeff
2a11232178
Only set isAction when children passe (#553) 2018-12-31 16:39:32 +01:00
Travis CI
a8fb64e402 [CI Skip] 0.21.14 2018-12-31 15:28:10 +00:00
Jaco Greeff
3f8b92c8ba
Tuples populate actual values as inputs (#551) 2018-12-31 16:23:23 +01:00
Travis CI
6afd2ed5b6 [CI Skip] 0.21.13 2018-12-31 14:31:56 +00:00
Jaco Greeff
5c7d4ce7e5
Logs render Tuples as Params (#549)
* Logs render Tuples as Params

* Remove misplaed logs
2018-12-31 15:27:05 +01:00
Travis CI
fd1174efb1 [CI Skip] 0.21.12 2018-12-31 12:53:29 +00:00
Jaco Greeff
2044bd14b6
Wrap and break static text (#547) 2018-12-31 13:48:27 +01:00
Travis CI
acafbe9a62 [CI Skip] 0.21.11 2018-12-30 12:02:08 +00:00
Jaco Greeff
04d72bf5cf
Unknown to allow hex/bytes input (#545)
* Unknown to allow hex/bytes input

* Bump deps
2018-12-30 12:57:08 +01:00
Travis CI
0007d15aa2 [CI Skip] 0.21.10 2018-12-29 19:21:27 +00:00
Jaco Greeff
0257eaeae1
Allow custom type registration (#543) 2018-12-29 20:15:04 +01:00
Travis CI
a723847d91 [CI Skip] 0.21.9 2018-12-28 16:24:54 +00:00
Jaco Greeff
30f5d12bac
Log observable not being created, don't throw (#542)
* Log observable not being created, don't throw

* Bump deps
2018-12-28 17:20:02 +01:00
Travis CI
6be818443b [CI Skip] 0.21.8 2018-12-27 15:12:45 +00:00
Travis CI
9ffc81de52 [CI Skip] 0.21.7 2018-12-27 14:08:31 +00:00
Jaco Greeff
7c73e032b1
Tone down colors (secondary + primary) (#538) 2018-12-27 15:03:33 +01:00
Travis CI
a1e8cca7d2 [CI Skip] 0.21.6 2018-12-26 15:23:45 +00:00
Jaco Greeff
7d853cab13
Large font adjust, 3rem -> 2.75rem (#536)
* Large font adjust, 3rem -> 2.75rem

* Adjust version display (reflect latest published)
2018-12-26 16:19:02 +01:00
Travis CI
018a96f43d [CI Skip] 0.21.5 2018-12-26 14:30:09 +00:00
Jaco Greeff
b135026d81
Adjust colors (secondary, primary) (#534) 2018-12-26 15:25:21 +01:00
Travis CI
db88aac4e8 [CI Skip] 0.21.4 2018-12-26 14:22:56 +00:00
Jaco Greeff
cc01778ccf
Display last finalised block (#535) 2018-12-26 15:17:56 +01:00
Travis CI
1814704a89 [CI Skip] 0.21.3 2018-12-25 15:23:17 +00:00
Travis CI
4373f467b6 [CI Skip] 0.21.2 2018-12-25 14:00:01 +00:00
Jaco Greeff
2215556de3
Bump deps, fix compact encoding (large values) (#533)
* Bump deps, fix encoding lengths

* Add next redirect (test)

* Typo
2018-12-25 14:55:09 +01:00
Travis CI
19fe24e750 [CI Skip] 0.21.1 2018-12-21 16:46:49 +00:00
Jaco Greeff
4f96fc0d3f
Merge next into master (#529)
* Update API deps

* Duplicate new Api from api

* Explorer renders

* Cleanup trapping

* Allow Moment values

* Vector -> Array

* Add mapping FIXME

* Updates

* proposals -> publicProposals

* QueueTx

* nonce -> accountNonce

* Cleanup (some) naming

* FIXME

* Cleanups

* cmp & isZero on UInt

* WIP... storage dropdowns may work after latest API PR...

* Misplaced .public

* Update exposed methods

* Remove getBlock checks (available in poc-3)

* Align method/section

* Align with API (method)

* api-codec -> types

* Reanme API interfaces

* Type updates, still very much a WIP

* We have updating queries... without params

* Chainstate app is working

* Get rid of some params imports

* Cleanups

* Remove app-example... outdated, non-working

* Remove app-example link from README

* Additional cleanups

* InputRpc dropdowns working

* We can make transfers (Transfer app)

* Call doesn't encode toU8a

* Cleanup to use extrinsics from Api

* Remove references to @polkadot/params

* Update deps

* Submitting transactions hsould work in app-*

* Bump

* Extrinsics app renders

* Extrinsic app can transfer

* Adapt travis.yml

* Force things to pass checks...

* Update @polkadot/dev for gh-pages -> next

* Bump dev (hopefully now gh-pages deploy)

* Default theme

* Don't skip signer for sending

* Don't throw on unknown types

* Signer queue rework

* Render input params for rpc

* Explorer click-through working

* Update deps

* WIP#327 - app-accounts with ss58 address inputs

* transformtoss58 returns valid address or null

* syntax

* app-accounts

* app-democracy

* app-extrinsics

* app-rpc

* app-staking

* app-transfer

* Generate ui-identicon from ss58 as input

currently handling null address with null return - there should be a better way to do this but it "works".

* ui-app

adapt onChange Props params

* manage identities with ss58 addresses rather than u8a.

also currently handling null value input, should be a better way to handle this but currently "works".

* ui-signer use ss58 address in keyring

* ui-signer combine duplicate imports

* ui-signer signMessage with ss58 address

derive public key by decoding ss58 input

* use 'accountId' as variable name instead of 'ss58'

* Addressing some issues

* sanity check for accountId by decoding and checking public key

* allow u8a account id types for more flexibility around short address input types in the future

* throw error on generate identicon with empty seed

* fix: accountId over publicKey

Transactions work in extrinsics and transfers.

* fix linting errors in  rpc, addresses, transfer, identicon

* accountId in stakelist

* Allow file upload for Bytes

* Extrinsic change updates correctly, Params track codec instances

* Unused import

* Cleanup conflicts, linting

* [next] Display balance with μ, k & m (#350)

* Display balance with μ, k & m

* balanceFormat to handle UInt

* let -> const

* Format static Balance properly

* Take care of new extrinsics format

* m -> M (not mili, mega)

* [next] Proposals & democracy updates (#352)

* Update README.md

* Proposals actually submit (non-valid atm)

* New API package

* Promposal propose

* Poposal decoding

* Proposal & Referendums show up

* Formats

* Proposal & voting works as expected

* Staking works as expected

* Staking & Democracy fully operational

* Update package.json

* [next] Update API deps (#354)

* Update API deps

* Update type locations

* Update api deps

* [next] Add mnemonic support from keyring (#356)

* Add mnemonic support from keyring

* Bump @polkadot/api

* Bump dependencies (#358)

* [next] Add app-settings (#359)

* [next] Add app-settings

* Update deps, cleanups

* Re-encode address for adding

* Action for seedType selection

* Revert denominations (#360)

* [next] Dependency bumps (#362)

* Bump API decoding

* Bump deps

* [next] Chain configs (#361)

* Revert denominations

* Chain Id

* Distinct colours

* Cleanup options for settings

* Adjust tests aftrer colour change

* Gated on isConnected & isReady

* Allow selection/add of AccountIndex

* Remove examples (code removed already)

* Reverse Id <-> Index lookups

* Index reverse lookups

* Usable AccountIndex

* [next] Bump API (#363)

* [next] Merge master (#364)

* Update README.md

* Re-lock account only after save

* trying to get mapping of nominators correct (#346)

* trying to get mapping of nominators correct

* changed double quote to single

* Fix for disabled chain state button bug (#351)

* merge prev and next params on Selection key change

* build error

* [next] Balance formatting (#365)

* Update README.md

* Re-lock account only after save

* trying to get mapping of nominators correct (#346)

* trying to get mapping of nominators correct

* changed double quote to single

* Fix for disabled chain state button bug (#351)

* merge prev and next params on Selection key change

* build error

* Load order (we need chain)

* Dropdown for seed type selection

* Allow SI unit selection on number inputs

* Remove unused function

* Cleanup BalanceFormatter

* Fix tests

* [next] Bump API version (#366)

* Bump API version

* Proposal construction & chain units

* Update Extrinsic -> Call

* Pass correct call params

* Cleanup linting

* Re-encode address on loading

* Bump

* Lint fix.

* [next] Import from package indexes (#370)

* [next] Import form package indexes

* Update deps, fix Transfer balance checks

* Add error on unlock

* Save account with hex encoded (not address)

* Import InputAddress for swap

* Bump @polkadot/api (staking nominators show up)

* Align api & util deps

* Bump @polkadot/api

* [next] Bump API, adjust call/method (#372)

* Bump API, adjust call/method

* Add votes correctly to yay/nay

* [next] Local Testnet

* Don't link block 0

* [next] FF Warning message (#374)

* FF Warning message

* Bump deps, massage message a bit

* Bump deps

* i18next upgrade changes

* Bump yarn to 1.10.1 in engines, travis (#379)

* [next] submitAndWatchExtrinsic for transactions (#377)

* WIP: Replace submitExtrinsic with submitAndWatchExtrinsic

TODO:
* don't `complete` when calling send, rather update as update messages come in from API
* adjust queue statuses in UI with new Status codec type from API.

* update api wrapper for subscribeAndWatch

* Update index.tsx

* subscribe to updates

* remove unneeded subscribe

* display result type

* Wrap up submitAndWatch status display

* Status background colours

* Revert indent

* Queue status icons (#380)

* [next] Bump dependencies (#383)

* Bump dependencies

* Update mock creation

* Don't mangle classes via uglify (#384)

* [next] Update status overlay styling (#385)

* Update status overlay styling

* Adjust colours for status messages

* Slight padding adjustments

* [next] refactor: Create export index files in ui-react-rx/src/{with/util} for single line destructuring imports (#388)

* refactor: Create ui-react-rx/src/with index of exports. Import single line destructuring

* refactor: Create ui-react-rx/src/util index of exports. Import single line destructuring

* refactor: Use ui-react-rx/src/ index of exports. Import single line destructuring

* refactor: Refactor to use exported index

* refactor: Refactor to use another exported index

* fix: Add missing license headers. Avoid import from index in same location

* [next] Support latest substrate master (#390)

* Update deps (api, compact support)

* Bump deps

* Update deps

* Compact<BlockNumber> for Header

* Handle Compact<*> rendering

* Cleanup warnings

* Update deps

* Not perfect, but warn on (invalid) hashes for blocks

* [next] keyring classify (#393)

* refactor: reorder imports and props alphabetically

* fix: Make class methods private

* fix: Restrict user restoring account to select only .json. Add missing withLabel

* refactor: Replace onBack with onCreateAccount and onRestoreAccount

* fix: Show console.log of error in try/catch of Backup/Restore

* fix: accountAll is array of objects

* refactor: Move Backup keyring logic into ui-keyring

* refactor: Move restoreAccount logic into ui-keyring

* refactor: Move validatePass to ui-keyring as isPassValid with MAX_PASSWORD_LEN

* refactor: Issue #138 convert closure to separate function declare, call, export

* refactor: Issue #138 convert function to ES6 class object

* refactor: Move addPair, create, createMnemonic, restore, save into Keyring class

* refactor: Move backup/encrypt/forget account, get accounts, and save account meta functions into Keyring class

* refactor: Move get address/addresses, forget/save address, and save recent functions into Keyring class

* refactor: Move isPassValid, isAvailable functions into Keyring class

* refactor: Move loadAll into Keyring class

* refactor: Move much of ui-keyring/options into Keyring class

* refactor: Move private methods to top of class

* fix: fix: Prevent creating multiple instances of Keyring class

* Prevent creating multiple instances of Keyring class. i.e. the following does not create the second instance:

```
const keyringInstance = new Keyring();
const keyringInstance2 = new Keyring();
```

* References:
	* https://codepen.io/JoeCoulam/pen/mRqbzz
	* https://medium.com/@dmnsgn/singleton-pattern-in-es6-d2d021d150ae
	* https://stackoverflow.com/questions/26205565/converting-singleton-js-objects-to-use-es6-classes/26227662#26227662

* fix: Prevent calling initOptions of Keyring singleton multiple times

* the following calls to initOptions are prevented since initOptions called when instance created with by loadAll() function:

```
const keyringInstance = new Keyring();
keyringInstance.initOptions();
keyringInstance.initOptions();
```

* test: Add test for Keyring singeton instance check and so initOptions only callable once

* feat: Move Keyring options back. Remove singleton check. Move initOptions check. Only export Keyring instance

* Move keyring options back into options folder

* Remove checking if Keyring is singleton

* Move checking if initOptions called multiple times and associated tests out of Keyring and into options folder file

* Add type to pair to fix linting

* Remove exporting Keyring class, only Keyring instance is exported

* refactor: Class-ify the Keyring options directory into a class named

* fix: Store state outside of Keyring instance

* refactor: Move keyring state into Keyring class. Add getters and setters

* Move observable accounts and addresses into Keyring class.

* Rename KeyringInstance interface to KeyringStruct (similar to app-settings)

* Add getter for keyring, accounts, and addresses to Keyring

* Add setter for keyring

* Add AccountSubject type

* Fix State type to use AccountSubject instead of AddressSubject

* Small private member tweaks

* Rework (overzealous private members)

* Fix rename in test

* [next] Block explorer event display (#392)

* Update README.md

* Re-lock account only after save

* trying to get mapping of nominators correct (#346)

* trying to get mapping of nominators correct

* changed double quote to single

* Fix for disabled chain state button bug (#351)

* merge prev and next params on Selection key change

* build error

* Updated required Node version in README (#367)

The minimum Node version is 10.1.0 as specified in the package.json 'engines'. The installation fails if the node version is below that (eg. v10.0.0 ), that's why I changed it in the README

* Simple (unformatted) event display

* section, method + types

* Display events on explorer

* Styling & overflow fixes

* Fix linting issues

* Node 10.13.0 LTS

* Revert message on block, reduce flicker

* [next] Update nvmrc version. Add missing packages to Readme. Indicate LTS required (#395)

* docs: Fix typo in Readme

* fix: Update nvmrc to version in package.json

* docs: Add missing packages to Readme. Indicate that LTS is required

* Render logs in expanded block display (#396)

* [next] Cleanup staking list balance displays (#397)

* Cleanup staking list balance displays

* Don't naked map balances (params passed)

* Cleanup block display with cleaner formatting (#398)

* Only filter dev accounts when in dev (#401)

* [next] Move BIP generation to worker (UI responsiveness) (#400)

* Move BIP generation to worker (responsive)

* Test & cleanup via local prod build

* [next] Fix length encoding for uploaded Bytes (#405)

* Fix length encoding for uploaded Bytes

* Remove addressed FIXME

* Cleanup linting, adjust encoding via helpers

* [next] Handle null nonce in extrinsics (in addition to undefined) (#407)

* Handle null nonce (in addition to undefined)

* Adjust types for partials

* Helper for submit RPC

* [next] Highlight validators (#402)

* Add isHiglight to IdentityIcon

* Display validator highlight in Address{Row,Summary}

* Highlight validators in AddressMini

* Highlight validators in AddressInput

* Display zero balalnce as 0 instead of 0.000f (#408)

* Cleanup explorer header display (#410)

* [next] Align article headers (all h3, no extra classes) (#411)

* Align article headers (all h3, no extra classes)

* Adjust overflowing columns in explorer

* Adjust app contemnt to cover screen (#412)

* [next] Retrieve hash instead of calculating (slower) (#415)

* Retrieve hash instead of calculating (slower)

* Cleanups

* Allow raw-key queries via the storage app (#416)

[next] Allow raw-key queries via the storage app

* [next] Remove IdentityIcon bond dependencies (#419)

* Remove IdentityIcon bond dependencies

* Cleanup tests

* Update README

* Update header

* Update headers

* Catch & display observable status errors (#422)

* [next] refactor: Move backup/restore functionality to Keyring. See details (#386)

* refactor: reorder imports and props alphabetically

* fix: Make class methods private

* fix: Restrict user restoring account to select only .json. Add missing withLabel

* refactor: Replace onBack with onCreateAccount and onRestoreAccount

* fix: Show console.log of error in try/catch of Backup/Restore

* fix: accountAll is array of objects

* refactor: Move Backup keyring logic into ui-keyring

* refactor: Move restoreAccount logic into ui-keyring

* refactor: Move validatePass to ui-keyring as isPassValid with MAX_PASSWORD_LEN

* fix: Change allAccounts type to SubjectInfo

* refactor: Example with clearer usage of  for React Dropzone

* [next] refactor: Issue #138. Convert closure into ES6 class object. Move methods into class (#387)

* refactor: Issue #138 convert closure to separate function declare, call, export

* refactor: Issue #138 convert function to ES6 class object

* refactor: Move addPair, create, createMnemonic, restore, save into Keyring class

* refactor: Move backup/encrypt/forget account, get accounts, and save account meta functions into Keyring class

* refactor: Move get address/addresses, forget/save address, and save recent functions into Keyring class

* refactor: Move isPassValid, isAvailable functions into Keyring class

* refactor: Move loadAll into Keyring class

* refactor: Move much of ui-keyring/options into Keyring class

* refactor: Move private methods to top of class

* fix: fix: Prevent creating multiple instances of Keyring class

* Prevent creating multiple instances of Keyring class. i.e. the following does not create the second instance:

```
const keyringInstance = new Keyring();
const keyringInstance2 = new Keyring();
```

* References:
	* https://codepen.io/JoeCoulam/pen/mRqbzz
	* https://medium.com/@dmnsgn/singleton-pattern-in-es6-d2d021d150ae
	* https://stackoverflow.com/questions/26205565/converting-singleton-js-objects-to-use-es6-classes/26227662#26227662

* fix: Prevent calling initOptions of Keyring singleton multiple times

* the following calls to initOptions are prevented since initOptions called when instance created with by loadAll() function:

```
const keyringInstance = new Keyring();
keyringInstance.initOptions();
keyringInstance.initOptions();
```

* test: Add test for Keyring singeton instance check and so initOptions only callable once

* feat: Move Keyring options back. Remove singleton check. Move initOptions check. Only export Keyring instance

* Move keyring options back into options folder

* Remove checking if Keyring is singleton

* Move checking if initOptions called multiple times and associated tests out of Keyring and into options folder file

* Add type to pair to fix linting

* Remove exporting Keyring class, only Keyring instance is exported

* refactor: Class-ify the Keyring options directory into a class named

* fix: Store state outside of Keyring instance

* refactor: Move keyring state into Keyring class. Add getters and setters

* Move observable accounts and addresses into Keyring class.

* Rename KeyringInstance interface to KeyringStruct (similar to app-settings)

* Add getter for keyring, accounts, and addresses to Keyring

* Add setter for keyring

* Add AccountSubject type

* Fix State type to use AccountSubject instead of AddressSubject

* Small private member tweaks

* Rework (overzealous private members)

* Fix rename in test

* merge latest from next. fix merge conflicts

* fix linting error

* fix: Remove unncessary code

* Bump API version (bugfixes) (#424)

* [next] Apply fee color classes correctly (#426)

* Apply fee color classes correctly

* Class ordering

* Adjust menu & IdentityIcon styling (#427)

* Cleanup proposal & referendum display (#429)

* [next] Cleanup Referendums & voting process (with Vec<KV>) (#431)

* Cleanup Referendums & voting process (with Vec<KV>)

* Remove FIXME (addressed)

* [next] Cleanup styling (#428)

* Adjust backgrounds to be slightly darker

* Cleanup validator/intentions lists

* update readme reflect removal of ui-react (#434)

* moved shared function to parent (#404)

* moved shared function to parent

* lint

* remove balance array dance

* lint

* Bump deps, metadata parsing (#436)

* article styling updates (#437)

* [next] Merge master, param change update (#438)

* Marge master, param change update

* Tie params to section.method

* [next] autoFocus app fields (#439)

* autoFocus app fields

* Toolbox autoFocus

* Cleanup warnings in staking nominate

* Align borders

* Remove unused var

* [next] Revert menu border override (#440)

* Revert menu border override

* Revert article single border

* Menu background

* Align grays

* Lighten content background

* [next] Support dynamic Tuple & Array inputs (#441)

* Allow Tuple value entry

* Fire Param events

* Remove extra debug log

* Allow entry of Array<*>

* Bump deps

* Bump deps (API d.ts fixed)

* [next] Display intention/validator name in staking list #303 (#448)

* Added getAccount() method to ui-keyring package

* Added getDisplayName function for staking accounts/ addresses

* removed deprecated argument from earlier approach

* formatting (added empty line)

* Removed unnecessary typecheck & encoding from getAccount(),

* Added getAccount to types.d.ts

* removed space

* changed type of `address` to string (failing build fix)

* [next] Backup warning modal on account creation #394 (#447)

* Added address summary and auto-download of backup file to 'create'-modal

* Removed deprecated code after falsy merge

* Fixed typo Plesae -> Please

* Move check for whenCreated property from saveAccount to separate method

* removed unnecessary return statement

* grammar fix 'was' -> 'is'

* Added Highlight to Modal class, styling adjustments

* removed surrounding <p> in modal content

* Changed Modal.Highlight to built in MUI Modal.Description

* renamed translation key of Modal.Description

* Moved timestamp creation back to save Account

* [next] Explicit Identityicon prefix (#446)

* set IdentityIcon default prefix

* Update with import from keyring

* Rework encoding/decoding of addresses

* Update keyring deps

* [next] Bump deps (#449)

* Bumpo deps, work around i18next definitions being wonky (again)

* Cleanup yarn.lock

* [next] add user notifications in App-Accounts (#391)

* add toaster for app-accounts status changes

* status notifs

* linter

* lint

* refactor with addressmini

* remove debugger statement

* fixintl, status obj creation pattern

* lint

* Track events globally, alert use (notification pop-up)  (#413)

* move Status component to ui-app

* move status stuff up the component tree

some more generalizations with action types

* global status

currently works in app-accounts and ui-signer

* I18n and linting

* lintlint

* style

* add notifs to app-address

* status notifs with backup, changepass

* addresses unnecessary translates

* lint

* Fix merge

* Vector should not render add/remove in isDisabled mode (#452)

* [next] Bump API version (#455)

* Bump API version

* Bump deps

* Update README and LICENSE

* Bump dependencies

* [next] Track extrinsics, don't allow until accountIndex is updated (#406)

* dont allow queueing until accountindex increments

* WIP: deny txn submit before account nonce increments

* readding blocked extrinsics to the queue. Still need to properly set the accountNonce though

* queue unclog

* remove unnecessary _this=this scoping dance

* Moving the need for `?:` to a separate issue

* update types to match codec, account for different accountid with same nonce

* Fix toString for undefined (#456)

[next] Fix toString for undefined

* [next] Cleanup translate HOC definitions (#457)

* Cleanup translate HOC definitions

* Alignment

* [next] Bump API for Grandpa compat (#461)

* Bump API for Grandpa compat

* Update types for new API

* [next] Handle byte display consistently (#463)

* Handle byte display consistently

* Chack blocked status against completed status

* Bump

* Democracy countdown (lauch & voting) (#464)

* Bump API to handle StorageData -> Bytes with prefix (#466)

* Bump dependencies, align with stricter TS checks (#467)

* Only remove local files, not nested (#468)

* Bump api deps (#469)

* Display nonce via toString(), cleanup blocked checks (#470)

* [next] Bump deps, update with linting rules (#472)

* Bump deps, update with linting rules

* Update root package config

* Revert testing ruleset config

* Update tslint config pulling in dev-react

* Bump deps with UI packages, remove now unused eslint config (#474)

* Move types.d.ts -> types.ts (#475)

* [next] Bump dependencies (#481)

* Bump deps

* Bump deps

* Cleanup lintin issues with 3.2.1

* Bump @polkadot/api with Tuple map support

* Format JSON results from RPC app

* [next] Make settings accessible from non-running node (#484)

* Add onCopy to IdentityIcon

* Allow settings to be accessible when no node

* Proper license naming for identicon (#488)

* [next] Split ui-{identicon,keyring,settings} into ui repo (#491)

* Split ui-{identicon,keyring,settings} into ui repo

* Correct settings import from ui-app

* Use @polkadot/ui-* split from npm

* Update with latest @polkadot/ui

* Migrate to travis-ci.com, bump deps

* Change non-local imports to direct

* #459 Add spread and copy buttons for substrate.code query (#465)

* #459 Add spread and copy buttons for substrate.code query

* fix code style checks

* render spread&copy buttons for all queries which produce byte code

* Type and name refinement

* #459 A first revision where spread functionality for Byte queries is implemented

* remove state property

* Review fixes

* Review fixes

* break query output for overflowing content

* call valueToText with -1

* Fix linter issue

* [next] Global shared status queue and consumer (#490)

* Global shared status queue and consumer

* Bump deps

* Adjust styling

* Remove copy (unimplemented), spread & concat

* [next] Display received events (balalnces.Transfer atm) (#494)

* Display received events (balalnces.Transfer atm)

* Cleanup Status class

* Keys for values in Vector

* Extra information on address decode errors (#495)

* [next] Cleanup React & API errors (#498)

* Cleanup React & API errors

* Revert value override, breaks input

* InputNumber does not switch between controlled and uncontrolled

* Status has key for entries

* Adjust receive icon

* Bump dependencies, cleanup Unknown types (#499)

* Bump dependencies, cleanup Unknown types

* Cleanup status styling, icon stretch

* [next] fix: Fixes #493. Contain logs digest item within div (#497)

* fix: Fixes #493. Contain logs digest item within div

* refactor: Remove monospace and drop-down css. Add only wrapping and space between elements

* fix: Remove AuthoritiesChange, forgotten how that got there, but not required

* Allow onCopy Status for IdentityIcon (#501)

* Allow onCopy Status for IdentityIcon

* Clanup same-package imports

* [CI Skip] Update .codeclimate.yml (#502)

* [next] Bump dependencies (#503)

* Bump dependencies

* Bump dependencies

* Downgrade react-dropzone (8.x has new context API)

* Bump deps (API types fix)

* Cater for check where key has no meta (#504)

* Align number inputs to 0 defaults (#506)

* fix InputAddress display (#509)

* [next] Bump dependencies (#512)

* Bump dependencies

* Don't change status (flicker) when completed

* Expand status timeout

* Pull svg from ui-assets (#513)

* [next] Read chain properties, inject (#514)

* Read chain properties, inject

* Linting

* Bump deps (#520)

* Bump deps

* ... and include lockfile

* [next] Support latest Polkadot types (#523)

* Bump deps, latest Polkadot types

* Rendered for ParaId

* [next] Charred Cherry support (#522)

* Charred Cherry support

* Update deps to include CC

* Update injection & new method interfaces

* Naming, extrinsic vs method

* Update ExtrinsicStatus results

* Bump deps

* [next] launguage -> language (#524)

* [next] Bump deps, support latest metadata struct (#525)

* Bump deps, support latest metadata

* Bumpdeps

* Bump dev

* Bump local deps

* Display target period * 2 (#526)

* Alexanber support (#528)

* Bump API

* Bump deps

* Fix referendums, chain id for Alexander

* Bump deps
2018-12-21 17:17:26 +01:00
Travis CI
f2ad55570f [CI Skip] 0.20.30 2018-11-26 09:12:00 +00:00
Radka Gettová
bc50ad0ad9 Make Block Hash "Hover to Copy"-able (#458) 2018-11-26 10:06:24 +01:00
Travis CI
2b76730194 [CI Skip] 0.20.29 2018-10-17 14:40:26 +00:00
Travis CI
70d9f1b169 [CI Skip] 0.20.28 2018-10-11 20:39:43 +00:00
kwingram25
31372afb31 Fix for disabled chain state button bug (#351)
* merge prev and next params on Selection key change

* build error
2018-10-11 22:34:56 +02:00
Travis CI
d8c15858dd [CI Skip] 0.20.27 2018-10-09 17:57:23 +00:00
Marni
456e6202c4 trying to get mapping of nominators correct (#346)
* trying to get mapping of nominators correct

* changed double quote to single
2018-10-09 19:51:46 +02:00
Travis CI
fe52bcb730 [CI Skip] 0.20.26 2018-10-09 15:26:16 +00:00
Jaco Greeff
0a38f454e3
Re-lock account only after save 2018-10-09 17:21:14 +02:00
Travis CI
25d57d0be3 [CI Skip] 0.20.25 2018-10-04 19:03:46 +00:00
Travis CI
a774ff9c82 [CI Skip] 0.20.24 2018-10-03 19:23:31 +00:00
YJ
9d29d9ccfc change button ordering (#345) 2018-10-03 21:17:35 +02:00
Travis CI
11ab5152a1 [CI Skip] 0.20.23 2018-09-30 11:35:30 +00:00
Luke Schoen
9a33e05d54 fix: Show errors. Add Password maxLength. Fix classes lib. Fix styles. (#335)
* Account change password

* Small cleanups

* Props, State to Component

* fix: Allow change account immediately after create account without refresh page

* fix: Add missing label prop to allow overriding default label

* feat: Add maxLength of 32 to Password component and pass prop to Input

* fix: Restricted spacebar key in Password using onKeyDown

* fix: Add missing classes library to Password component Input

* fix: Add className to ChangePass modal component using classes library

* fix: Reorder props alphabetically

* fix: Add missing  namespace to className of AddressSummary in ChangePass

* fix: Show submission errors in ChangePass modal using Semantic Message component

* fix: Add side padding to error component in ChangePass modal

* fix: Removed unused variable to fix TS lint error

* revert showing error messages

* fix: Revert restriction so allow spacebar key in Password using onKeyDown

* fix: Add className to outer Modal component
2018-09-30 13:29:08 +02:00
YJ
f32ba0f92d quickfix - typo (#342) 2018-09-30 13:24:11 +02:00
Travis CI
f47abef443 [CI Skip] 0.20.22 2018-09-30 11:07:26 +00:00
Luke Schoen
759070488a fix: Fixes #340 prevent spaces in InputNumber (#341)
* currently user cannot enter "0 ", but this prevents user from entering a space after any digit, i.e. "3 4" or "3  " or "3   3  3  "
2018-09-30 12:59:55 +02:00
Travis CI
3626705ada [CI Skip] 0.20.21 2018-09-28 16:57:13 +00:00
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
Travis CI
ce83d2d17c [CI Skip] 0.20.20 2018-09-26 18:31:10 +00:00
Jaco Greeff
818dfb2498
Account backup & restore functionality (#333)
* Account JSON backup & restore

* import isObject from correct package

* Fix isLocked logic

* Add "or"
2018-09-26 20:24:43 +02:00
Travis CI
e089a6c395 [CI Skip] 0.20.19 2018-09-26 14:55:30 +00:00
Luke Schoen
0c8e19911c fix: Fixes Issue #144. Extrinsics with high balance restarts webpage (#221)
* fix: Fixes Issue #144. Balance to submit with transaction changed to string

Placeholder indicates acceptable range of values to user in the interim until form validation incorporated.
Max value must be the balance of the account minus one, otherwise the Polkadot Node will give error `Runtime: proposer's balance too low`.
Min value must be above 0.000000000000001, otherwise the Polkadot Node will give error `Runtime: proposer's balance too low`

* fix: Add validations to string input. Add unit tests

Note that entering a large number after all inputs are valid (including code dragged and dropped) causes error `Uncaught Error: byte array longer than desired length`. This is because it only starts encoding after all input fields are valid, but the maximum balance is 64 bits for poc-1 and 128 bits for latest master branch

* fix: Add internationalisation, maxLength to input, validate depending on chain used

- add internationalisation
- add maxLength to input field depending on whether poc-1 (64bit) or latest (128bit) chain used
- pass down api chain data via props
- add unit tests for balance input field, new tests not all passing but don't understand why. since using unsigned 64bit and 128bit
- add balance input field validation to only accept numbers
- when i add `&& maxBN64Bit.gte(inputBN)` or `&& maxBN128Bit.gte(inputBN)` it doesn't appear
to work correctly as in the UI it doesn't allow a length as much as expected

* fix: Must pass in as string as String(xyz) converts to scientific notation x...e+21 for large numbers

* fix: Remove String(xyz) that was converting to scientific notation. Throw on it or non-string input.

* fix: Prop value is BN converted to string with toString(10) according to BN.js docs

* fix: Translate the placeholder

* refactor: Move external dependencies above local. Add missing whitespace

* fix: Scientific value detection on e+ not just letter e

* feat: Add input field validation message notification to extrinsic balance

* refactor: Move expected responses generation into enum in separate file

* WIP - trying with input type number and onKeyDown

* WIP - split into onKeyDown and onKeyUp

* feat: Add scientific notation equivalent in info message. Yet to use converted value when submit

* fix: Allow user to select all that they've entered in input field

* feat: Converts from scientific notation with submit. Need to fix input as crashes on 9e19

* fix: Remove debugging console.log so it doesn't crash

* fix: Calculate size based on actual bitlength before checking BN value against max

* fix: Allow use of decimal point only in scientific notation. Prevent successive decimal point entry

* fix: Update error message with example

* feat: Create InputNumber instead of extending Balance. Requires PR with mods to polkadot-js/apps

* fix: Remove accidently added vscode config

* fix: Remove step and min props since not using input type number

* refactor: Remove debugging console logs from extrinsics

* fix: Remove disused step

* fix: Remove comments and add whitespace

* fix: Remove unnecessary check if balance is defined when it must be

* fix: Fix logic

* fix: Show error when user enters e or e+ without a number afterwards

* test: Update existing tests. Still must add new tests

* test: Fix tests for scientific vs exponential notation

* test: Add remaining tests

* test: Refactor tests in order used

* refactor: clean up comments and duplicate code

* fix: Replace implementation with restrictions on key combos instead of horrible previous approach

* fix: Prevent notification with info from displaying when there are errors. Remove console logs

* fix: Prevent user pasting balance in exponential notation with invalid exponent. Only allow + symbol entry immediately after letter e

- Only allow user to enter + symbol immediately after letter e for exponential input.
- Prevent error when user pastes input with invalid exponent (i.e. when user pastes into the input field for Balance 232e11+ it was crashing with error `error:  RangeError: Invalid array length
    at scientificToDecimal`)

* refactor: Add comment to input cursor and move

* remove todo note

* fix: Prevent user entering 0's at start

* restore: Restore Balance instead of incorrect implementation of InputNumber

* WIP - initially add generic identity function where Balance wraps InputNumber type

* remove generic ident fn

* feat: Add GenericInputNumber

* fix: Add InputNumber generic wrapper of Input and Notification for use in Balance or elsewhere

* fix: Address review comments.

* fix: Fix linting errors and remove useless new line

* fix: Add WarnMessage. Remove UI message for it to be account balance minus 1

* fix: Fix bitLength error when small amount entered. Fix NaN test. Allow input of 0 with warning.

* fix: Allow select all, cut, copy, paste whilst preventing input of a, x, c, v

* fix: Fix linting error that appeared in CI

* fix: Remove conflicting restriction on use of 0

* test: Add enzyme test for default load of Balance component

* test: Add basic enzyme tests to simulate Info, Warning, and Error Notifications

* fix: Address some review comments. See commit details

* Refactor nested condition into `isValidLength` instead of `(values[index].type === 'Balance' ? checkValueBitLength(...`
* Fix alphabetical ordering
* Change to `Between 0 DOT` instead of `Between 1 DOT`
* Add License heaer to chainSpec.ts
* Replace `if (!(typeof input === 'string')) ` with `isString`
* Add blank lines for all blocks in isValidBalanceExpectedResponses.ts

* fix: Remove NaN check since unnecessary. Replace with test for just single e input

* Remove check for NaN since unnecessary. NaN is not string type so will show error associated with the test for string
* Add initial check for input value that contains just 'e' since it should not show same error message as say '1e'

* fix: Revert to just allow integers and decimals without scientific notation

* docs: fix comments

* refactor: Split isValid ternary across multiple lines for readability

* refactor: Remove unnecessary blank line

* fix: Remove nested if condition

* refactor: Split isCopy function definiton from function body implementation similar to in ui-signer

* refactor: Split function definition from function body for all keyboard utils

* fix: Replace event any type with KeyboardEvent type for all keyboard functions

* fix: Remove TranslateFunction with just string as type of messages

* fix: Replace deprecated keyCode and which with key.

* fix: Move isValidLength into isValidBalance

* fix: Split imported packages

* fix: Split imported packages in Balance spec

* fix: Change placeholder to request positive integer input and update messages

* refactor: Split function body onto new line

* fix: Split function body onto new line for readability

* refactor: Split ternary across multiple lines

* fix: Use BN instead of Number for info message

* fix: pass up destructured event properties

* fix: Remove SUIEvent type definition

* fix: Reduce maxLength in digits that user allowed to enter by 1

* merge latest from master

* fix: Remove transfer terminology from Balance placeholder

* Move logic to child

* fix: Remove assignment to optional

* fix: Remove DOT references since number can be anything and substrate chains have own token

* fix: Add missing blank lines and reorder alphabetically

* Non-numeric keys outright without error notification. Use MAX_SAFE_INTEGER built-in

* fix: Reordering

* fix: Remove showing error to user when they enter value over max bitlength

* fix: Restrict user enter value greater than max safe integer

* fix: Do not pass translate down from Balance. Fix tests

* test: Move tests to InputNumber

* Return only value from onChange in InputNumber. Bug since isValid keydowns allowed

* fix: Fixes review comments. See commit message details:

* `onChange` in InputNumber is just `onChange: (value: BN) => void` without an `isValid` property. `isValid` is now set to `true` in Balance as we've taken care of all the invalid cases (i.e. automatically reverting the input if the user pastes an invalid value, or preventing input of non-decimal values in keyDown)

* New input value is reverted to previous valid input field value if the input field value becames invalid (i.e. if they enter a value that's above the maximum allowable). i.e. 0.1111111111111111111111111111111 is allowed, but if any additional 1's are entered (i.e. 0.1111111111111111111111111111111111111) at the end it exceeds max for 128 bit, and we automatically prevent these invalid values from being entered (instead of informing the user through a notification).

* Refer to input as "input" instead of "balance" (i.e. for i18n keys, etc)

* Remove duplicate `KEYS.BACKSPACE`

* Add unit tests for isNonDecimal and isNonInteger

* Remove `KEYS.ZERO` from `KEYS_ALLOWED` and add to isValidDecimal and isValidInteger checks instead

* Split isValidNumber into isValidNumber and isValidKey. Since keyDown has access to the key and can prevent the input (but only has access to the previous input field value before the new key was entered), we check if the the new key entered is valid in isolation of the whole valued by calling isValidKey. Then in onChange where we have access to the new input field value we validate it calling isValidNumber.

* In InputNumber.tsx the Input component accepts `defaultValue={defaultValue || '0'}`, and also we're also overriding the value with the previous valid value with `value={revertedValue}` if the user input is found to be invalid. However React complains with the following errors in the browser Chrome Inspector:

```
Warning: Input contains an input of type text with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components
```

```
Warning: A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component.
```

I have tried as many ways as possible to just use one or the other (i.e. defaultValue or value) to resolve these warnings but so have not being able to replicate the same functionality that works.

* fix: Remove new line

* fix: Remove complexity. See detailed commit comments

Progress update:

* ASSUMPTION: InputNumber may be used in future for useful error, warning, and info messages, so leave the boilerplate props along with Notification.

* ASSUMPTION: Displaying an info message in scientific notation i.e. 3e+7
causes more confusion than benefit since most users are non-techy. In future this when we have Issue #86 Settings App, it could be added as an optional extra that could be toggled by the user along with Issue #224 E-Notation

* ACTIONS:
	* [x] - Remove display of scientific notation equivalent
	* [x] - Remove warning 'number.warn.zero' when user enters 0 value
	* [x] - Remove info notification 'number.info.scientific' when user enters valid value
	* [x] - Remove `toScientificNotation` function, which is incorrectly passed the TranslationFunction `t` anyway.
	* [x] - Remove `IsValidWithMessage` type and replace return value with just a boolean of whether its valid or not
	* [x] - Move `isValidNumber` into React componet, and do not pass the TranslationFunctio to it!
	* [x] - Move `isValidKey` into React componet, and do not pass the TranslationFunctio to it!
	* [x] - Move `isNonDecimal` into React componet, and do not pass the TranslationFunctio to it!
	* [X] - Remove `isNonInteger` and isNonInteger.ts and isNonInteger.spec.js since no longer using
	* [X] - Remove `error`, `warn`, `info` from InputNumber state, since we're filtering out everything not valid. Instead add them as optional props (so Balance or another component can display notifications if required)
	* [X] - Move tests for isValidKey into InputNumber React component, and remove isValidKey.spec.js
	* [X] - Move tests for isValidNumber into InputNumberReact component, and remove isValidNumber.spec.js
	* [X] - Move tests for isNonDecimal into InputNumberReact component, and remove isNonDecimal.spec.js
	* [X] - Update InputNumber.spec.js to remove useless tests that check that the Notification component isn't shown
	* [X] - Make methods `private` as relevant
        * [X] - move chainSpec and keyboard subfolder files into InputNumber. Move contents of constants into InputNumber except for BIT_LENGTH_128
	* [X] - Move all the different files that are only used in the number input into functions inside that input. Then we also get rid of calling external functions (like isNumberValid) with t as a param. Keep it small, keep it together.
        * [X] - Remove `cursorIndexInputField` function since we're not trying to check the current cursor position in the input field anymore
	* [X] - Assume that based on @jacogr's comment: "I'm struggling to see where we are actually now doing errors in the Balance input - it filters everything non-valid.".
          * Action: Change isValid from being true, to being assigned to the value of !isError
        * Note: DO NOT update the Extrinsics component to use the 'fees' observable (as it's used in the Transfer App) so the Balance input field is invalid (appears "red" and Submit Transaction button disabled) when the value entered plus fees exceeds the sender's balance. Reasoning: We cannot determine the size of the tx in there at all - there is a FIXME for the hardcoding of the size (already wrong for poc-3), in the Transfer App. So without the final signed size, it currently cannot be done. `fee = baseTxFee + (tx-size-in-bytes * feePerByte)`. We cannot get the tx-size-in-bytes atm. (hardcoded to 156 in Transfer, which assumes only publicKeys and is not the case when we get to poc-3). There is an issue logged that goes through all the fees. Signer needs to have a method exposed that takes all the params as given, encodes the extrinsic and returns the total fee or size. So nothing stopping us, it just has not been done properly. (Signer does not even know in the modal what the final size would be - that is the first stop, showing the fees in there. Then the apps, then maybe extrinsics if it still has a use)
	* [X] - "Seems SUI docs are currently broken. But in the cases where you absolutely need to point to an input with an attachment, their Label does exactly that and allows attachment with a pointer to an Input. So at most Notification should just warp that. And it really should only be used is completely exceptionally circumstances. (And I really couldn't see any such circumstances from playing with the actual inputs. So at this point seems like a good, although unused in practice idea.)"
          * [X] - Remove Notification component, and all the error, warn, and info props, as we won't be showing notifications
	* [ ] - Integrate into the Transfer App `send a value of` where actual transfers will be done (see @jacogr comment and screenshot). Incorporate the Balance/InputNumber into the Transfer App, which currently just uses an <Input> field and isError={!hasAvailable} to determine highlight the input field "red" and disable the Submit button when they don't have sufficient balance.
         * ACTION: Unable to get this to work. If I change the Input to Balance in Transfer.tsx to the following, then when I modify the value in the Transfer tabs "send a value of" input field, it shows an `Error: Assertion failed` in the console
```
            {/* <Input
              defaultValue='0'
              isError={!hasAvailable}
              label={t('amount', {
                defaultValue: 'send a value of'
              })}
              min={0}
              onChange={this.onChangeAmount}
              type='number'
            /> */}
            <Balance
              defaultValue={{ value: '0' }}
              isError={!hasAvailable}
              label={t('transfer.amount', {
                defaultValue: 'send a value of'
              })}
              onChange={this.onChangeAmount}
            />
```
Error mentioned above:
```
InputNumber.tsx?299c:129 Error: Assertion failed
    at assert (bn.js?cda7:6)
    at BN._initArray (bn.js?cda7:145)
    at BN.init [as _init] (bn.js?cda7:82)
    at new BN (bn.js?cda7:39)
    at Transfer.onChangeAmount.amount (Transfer.tsx?f63a:45)
    at Balance.onChange.value (Balance.tsx?8315:42)
    at InputNumber.onChange.value (InputNumber.tsx?299c:127)
    at Object.Input.onChange.event [as onChange] (Input.tsx?a939:36)
    at apply (_apply.js?59ad:15)
    at baseInvoke (_baseInvoke.js?199b:21)
```

* fix: Move BIT_LENGTH_128 into InputNumber

* refactor: Remove disused keys from constant. Remove useless isShift fn. Use Spread operator.

* refactor: Simplify comments

* refactor: remove useless maxSafeIntegerBN

* refactor: remove useless check for isZero

* refactor: Simplify isNonDecimal function

* refactor: remove maxValue from being maxLength arg. remove useless defaultMaxLength fn

* fix: Use InputNumber in Transfer instead of Balance

* refactor: move non-number specific keyboard functions to Input instead of InputNumber

* refactor: Reorder alphabetically exports

* refactor: Remove disused withApi and translate from Balance and simplify defaultValue

* refactor: spread operator to pass down props before overrides if any

* test: Add more isValidNumber tests. Add maxValue and isValidBitLength tests

* fix: fix maxValue function

* test: Add maxLength test for 128 bit

* refactor: remove unnecessary line in test

* fix: Remove support for decimals since BN.js only supports integers

* refactor: optimise by using isNaN instead of isNonInteger for single character checks

* fix: revert using spread operator to pass down props

* fix: Add bitLength prop to InputNumber. Move maxConservativeLength function. See detailed comments

* bitLength passed down as prop from Transfer and Balance to InputNumber is 128 bit for latest chain specification

* Move maxLength method out of InputNumber class and rename maxConservativeLength also to avoid name conflict with the maxLength prop

* Change argument of maxConservativeLength to the maxValueLength to simplify

* Update InputNumber tests

* Add default bit length for InputNumber is 32 bit for normal numbers

* fix: Add BitLength type and BitLengthOption enum

* fix: prevent user entering value preceded by 0

* refactor: Replace ternary with more readable

* feat: Add 8 and 16 to BitLength for future-proofing and consistency
2018-09-26 16:45:41 +02:00
Travis CI
8b9080566a [CI Skip] 0.20.18 2018-09-26 06:22:25 +00:00
Jaco Greeff
ad4e976f54
Account change password functionality (#332)
* Account change password

* Small cleanups

* Props, State to Component
2018-09-26 08:14:48 +02:00
Travis CI
0720454772 [CI Skip] 0.20.17 2018-09-21 08:38:56 +00:00
Jaco Greeff
65bc158582
Cleanup app-accounts, align with addresses (#331)
* Cleanup app-accounts, align with addresses

* Remove 'restore' action (copy gone wrong)

* Bump dependencies

* Bump deps (again, api was not included properly...)
2018-09-21 10:33:39 +02:00
Travis CI
ce091f203e [CI Skip] 0.20.16 2018-09-19 12:49:52 +00:00
Jaco Greeff
15788c1051
Check valid params fro RPC app (#321) 2018-09-19 14:42:51 +02:00
Travis CI
2195ca131d [CI Skip] 0.20.15 2018-09-19 10:49:35 +00:00
Thibaut Sardan
d58aa09cf2 modify voting button and graph colors (#328) 2018-09-19 12:43:29 +02:00
Travis CI
df03d413dd [CI Skip] 0.20.14 2018-09-19 09:52:17 +00:00
YJ
a86bcc76cf FIX#323: dont call trim on trim nonstring type value (#326) 2018-09-19 11:38:24 +02:00
Travis CI
e2f4f2de71 [CI Skip] 0.20.13 2018-09-18 14:26:41 +00:00
Pierre-Luc Gagné
678a65609d Added a warning popup at account creation for seed backup (#325)
* Added a warning popup at account creation for seed backup

* change i18n labels
2018-09-18 16:20:01 +02:00
Travis CI
8ee702a811 [CI Skip] 0.20.12 2018-09-18 08:49:02 +00:00
Travis CI
94d4a958dc [CI Skip] 0.20.11 2018-09-18 08:40:20 +00:00
Jaco Greeff
2aea3178bf
Update Api, remove poc-1 compatibility (#318)
* Update Api, remove poc-1 compatibility

* Update deps
2018-09-18 10:31:48 +02:00
Travis CI
9848ecbb65 [CI Skip] 0.20.10 2018-09-14 14:39:08 +00:00
Jaco Greeff
86a32683b3
Substrate theme with different Identicon (#313)
* Substrate theme with different Identicon

* Typo
2018-09-14 16:32:40 +02:00
Travis CI
3b768db359 [CI Skip] 0.20.9 2018-09-14 13:28:20 +00:00
Jaco Greeff
935b28c9b9
Adjust staking overview display (#312) 2018-09-14 15:20:15 +02:00
Travis CI
82be7d8905 [CI Skip] 0.20.8 2018-09-14 11:17:11 +00:00
Jaco Greeff
4364b9939d
Fix transfer copy, cleanup styles (#311) 2018-09-14 13:10:51 +02:00
Travis CI
624fe6953d [CI Skip] 0.20.7 2018-09-14 10:46:40 +00:00
Jaco Greeff
b903f63ff3
Fix Address add flicker (#309)
* Fix Address add flicker

* Clenaup unused

* use getDerivedState in Tabs

* Mark functions private

* Creator autoFocus on Input

* No extra {} on proptype
2018-09-14 12:40:35 +02:00
Travis CI
a5e1fa003d [CI Skip] 0.20.6 2018-09-13 14:37:15 +00: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
Travis CI
b50a378c6f [CI Skip] 0.20.5 2018-09-13 13:57:18 +00: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
Travis CI
f16160c8f3 [CI Skip] 0.20.4 2018-09-13 12:03:13 +00:00
Jaco Greeff
fa8fff639f
Format submitMessage output in a usable format (#298)
* Format submitMessage output in a usable format

* Bump deps
2018-09-13 13:56:20 +02:00
Travis CI
e2e1fec499 [CI Skip] 0.20.3 2018-09-13 11:18:06 +00:00
Jaco Greeff
416d7bbb16
Parity Substrate theming (#296)
* Parity Substrate logo (THEME)

* Remove unused type

* Adjust page title based on theme

* Allow theme overrides

* Allow theme overrides on Modals

* Remove debug console log

* Page title hangs off renamed UI_THEME

* FIXME for Identicon

* UI_MODE removal of apps

* Update deps (after merge)

* Bump deps
2018-09-13 13:10:31 +02:00
Travis CI
0cf88177fc [CI Skip] 0.20.2 2018-09-13 09:42:17 +00:00
Luke Schoen
189e486ed8 feat: Fixes Issue #260. Allow use Enter to submit extrinsics (#265)
* WIP: Fixes #260. Autofocus password input field. Press tab after enter password to switch focus to submit

* feat: Clicks Submit Transaction when user presses Enter after entering password

* fix: Remove console logs and no need to focus

* test: Add test setup. setState not changing currentItem from undefined

* fix: Change tabIndex values to number instead of string

* fix: Use Refs instead of JS DOM access

* fix: Add missing newline

* test: Test modal show after setState. Skipped pending resolution of Enzyme issue

* fix: Remove string from tabIndex prop type

* fix: Remove use of SUIEvent. Use React refs not HTML DOM queries

* test: Update tests but skipping since awaiting resolution of enzyme issue

Reference: https://github.com/airbnb/enzyme/issues/1794

* WIP

* fix: Simply call onSend instead of long-winded approach with Refs

* test: Fix tests to use promises instead of callbacks

* fix: Fix tslint error to handle promises correctly

* fix: Remove return since broke functionality. Use await to handle promise. Use key instead of keyCode
2018-09-13 11:36:52 +02:00
Travis CI
165fb68e74 [CI Skip] 0.20.1 2018-09-11 07:16:10 +00:00
Jaco Greeff
73a2aa6879
Basic transfer app (#293)
* Update dependencies

* Add transfer app skeleton

* Basic transfer app

* Bump versions

* Remove unneeded prop

* Fix app-transfer not found (CI, due to version bump)

* Display reserved balance message

* Misplaced debug log

* Display no-effect warning

* Remove FIXME TODO (done)
2018-09-11 09:08:31 +02:00
Travis CI
9a90f00c75 [CI Skip] 0.19.61 2018-09-11 05:57:44 +00:00
Luke Schoen
88963b03a1 fix: Part fix #264. Remove end space. Use consistent monospace (#291)
* fix: Part fix #264. Trim address. Add CopyButton. Align CopyButton with monospace

* fix: Remove CopyButton

* fix: Add empty div so double clicking to copy address only selects the address itself

* fix: Add key prop to div to avoid error

* fix: Add PostCSS Mixins. Reuse font family for hashes. Add missing license header.

* Add PostCSS Mixins dependency to allow reuse to make CSS DRYer

* Create generic mixin for common font family used by different hashes displayed in UI (i.e. block, data, address)

* Create extension of the generic mixin for the block hash

* Add missing license header

* fix: Rename mixin to hash font traits

* fix: Remove hash-block-font-family since we are only using it once

* fix: Revert Mixins and variable
2018-09-11 07:52:55 +02:00
Marni
2c24ed9d78 added forget modal functionality to addresses (#288)
* added forget modal functionality to addresses

* fixed mistakes and added centering css

* Bump dependencies

* FIXME around RxJs (with types) upgrade

* fix: Fixes #290. Toggles Address Add/Edit menu correctly (#292)

* fix: Fixes #290. Toggles Address Add/Edit menu correctly

* fix: Rename to hasNoAddresses

* fixed modal title
2018-09-11 07:52:12 +02:00
Marni
3eed706835 marni-WIP-284-added account meta to forget modal (#287)
* added account meta to forget modal

* added modal size (tiny) and styling to center account summary info

* removed article - not needed

* Bump dependencies

* FIXME around RxJs (with types) upgrade

* fix: Fixes #290. Toggles Address Add/Edit menu correctly (#292)

* fix: Fixes #290. Toggles Address Add/Edit menu correctly

* fix: Rename to hasNoAddresses

* fixed modal title and added blank line
2018-09-11 07:51:30 +02:00
Travis CI
406cb6158c [CI Skip] 0.19.60 2018-09-10 10:28:23 +00:00
Luke Schoen
e7725361d2 fix: Fixes #290. Toggles Address Add/Edit menu correctly (#292)
* fix: Fixes #290. Toggles Address Add/Edit menu correctly

* fix: Rename to hasNoAddresses
2018-09-10 12:19:58 +02:00
Travis CI
ffd4febeaf [CI Skip] 0.19.59 2018-09-07 10:35:59 +00:00
Jaco Greeff
c018f66e4d FIXME around RxJs (with types) upgrade 2018-09-07 12:29:24 +02:00
Jaco Greeff
725b5d98eb Bump dependencies 2018-09-07 11:58:19 +02:00
Travis CI
efc366a3aa [CI Skip] 0.19.58 2018-09-05 14:54:17 +00:00
Jaco Greeff
ebe9cac14d
Staking storage updates (#285)
* storage -> state

* Update dependencies

* Ensure key triggers Params value update
2018-09-05 16:46:06 +02:00
Travis CI
72dc05e3d6 [CI Skip] 0.19.57 2018-09-05 10:16:39 +00:00
Marni
e08e21a74d Marni wip 219 forget confirmation (#277)
* WIP: Not sure if this is proper use of Link / Button

* remove console log

* remove space

* trying to create a forgetting modal

* first commit with new forgetting file - unsure this is right

* hopefully fixed the incorrect use of translate?

* fixed other requested changes with translate
2018-09-05 12:09:45 +02:00
Marni
f5a19e6062 WIP 257 extrinsics no accounts (#273)
* WIP: Not sure if this is proper use of Link / Button

* remove console log

* remove space

* moved logic to index and use accountsObservable

* fixed travis recs

* added translate import and t(), changed button to simple link, updated div to main
2018-09-05 12:07:40 +02:00
Travis CI
351072a4e4 [CI Skip] 0.19.56 2018-09-04 13:44:23 +00:00
Jaco Greeff
ab569c6911
Fix AccountId display in labels (#281)
* Fix AccountId display in labels

* Trim InputAddress query values

* Add cursor: copy to CopyButton
2018-09-04 15:38:20 +02:00
Travis CI
6e3b90d197 [CI Skip] 0.19.55 2018-09-04 08:33:49 +00:00
Jaco Greeff
c9b2bfbc57
Update dependencies (missing staking methods) (#279) 2018-09-04 10:25:30 +02:00
Travis CI
2a5a47c4a9 [CI Skip] 0.19.54 2018-09-03 13:11:27 +00:00
Jaco Greeff
444bb4ea9c
yay -> aye in democracy (#275)
* yay -> aye in democracy

* Upgrade polkadot-identicon
2018-09-03 15:06:21 +02:00
Travis CI
89093bf067 [CI Skip] 0.19.53 2018-08-29 12:41:42 +00:00
Jaco Greeff
7047f9b572
Introduce Tabs component for in-app menus (#267)
* Introduce Tabs component for in-app menus

* Change Addresses & Toolbox to Tabs

* Cleanup Tabs (directory -> file)

* Adjust disabled button opacity down
2018-08-29 14:34:01 +02:00
Travis CI
f5d84c1870 [CI Skip] 0.19.52 2018-08-29 09:03:51 +00: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
Travis CI
26ac8ca7fa [CI Skip] 0.19.51 2018-08-23 10:56:07 +00:00
Jaco Greeff
943737338f
Decode Proposals in block explorer (#256)
* Decode Proposals in block explorer

* Render decoded read-only key/value as disabled

* Remove debug logging
2018-08-23 12:47:34 +02:00
Travis CI
185eff674e [CI Skip] 0.19.50 2018-08-22 15:07:56 +00:00
Jaco Greeff
40637fe55b
Additional webpack splitting config (#253)
* Additional webpack splitting config

* Adjust bundles

* Naming of bundles
2018-08-22 17:01:05 +02:00
Travis CI
d4cf3c4d36 [CI Skip] 0.19.49 2018-08-22 13:37:13 +00:00
Jaco Greeff
62e94be233
Stretch SideBar to max height (useful in explorer) (#250)
Stretch SideBar to max height, relative i18next paths
2018-08-22 15:30:18 +02:00
Travis CI
b4d43a0f71 [CI Skip] 0.19.48 2018-08-22 11:54:30 +00:00
Jaco Greeff
d3b6ed447e
Cleanup extra classes(...), additional semantic elements (#249) 2018-08-22 13:48:40 +02:00
Travis CI
43d2b48ea3 [CI Skip] 0.19.47 2018-08-22 10:31:06 +00: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
Travis CI
d4d03ab259 [CI Skip] 0.19.46 2018-08-22 09:10:20 +00:00
Jaco Greeff
261e547264
Bring back chain_getBlock checks (disabling on explorer) (#247)
* Bring back chain_getBlock checks (disabling on explorer)

* Update deps, auto-adjust SideBar width

* Simplify info display
2018-08-22 11:02:07 +02:00
Travis CI
4bf165564e [CI Skip] 0.19.45 2018-08-21 14:01:36 +00:00
Jaco Greeff
aa9fe88ed0 Update dependencies 2018-08-21 15:53:59 +02:00
Travis CI
b87adfef09 [CI Skip] 0.19.44 2018-08-21 12:41:36 +00:00
Jaco Greeff
3bdcc6ba38
Update sidebar logo, spacing & colours (#243)
* Update sidebar logo, spacing & colours

* Cleanup styles (combine imports)

* Adjust overall base font colour

* Align overall background colours

* Ease out accent colours
2018-08-21 14:32:59 +02:00
Travis CI
9da965516c [CI Skip] 0.19.43 2018-08-21 10:06:08 +00:00
Jaco Greeff
cf8f2064f8
Cleanup address default saving (#242) 2018-08-21 12:01:12 +02:00
Travis CI
553d4b73a4 [CI Skip] 0.19.42 2018-08-20 15:51:39 +00:00
Jaco Greeff
bf4b3b4ed9
Keyring observable subject around available options (#240)
* Start of keyring observable

* All update operations through observables

* Cleanup create

* onChange -> rxChange for observables

* Options is observable

* Fix swap bug with same params

* Missing onChange -> rxChange

* Cleanups

* Remove extra comment
2018-08-20 17:44:32 +02:00
Travis CI
921621187c [CI Skip] 0.19.41 2018-08-20 09:04:02 +00:00
Jaco Greeff
b5b66e5990
Store addresses via actual address (when PK pasted) (#239)
* Store addresses via actual address (when PK pasted)

* Reformat pk addresses (wrong) as encoded

* Remove debug log
2018-08-20 10:56:30 +02:00
Travis CI
2edae7f11b [CI Skip] 0.19.40 2018-08-20 08:55:48 +00: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
Travis CI
090f4d4cc8 [CI Skip] 0.19.39 2018-08-17 13:15:32 +00:00
Jaco Greeff
99c9062272
Cleanup JSON recursive formatting (#236) 2018-08-17 15:07:47 +02:00
Travis CI
81f9beb110 [CI Skip] 0.19.38 2018-08-17 08:45:59 +00:00
Jaco Greeff
a6715a974e
Fix encoding to allow both poc-1 & poc-2 blocks (#234) 2018-08-17 10:40:35 +02:00
Travis CI
a6f6d1aefd [CI Skip] 0.19.37 2018-08-16 20:59:11 +00:00
Jaco Greeff
682331e793
Display justifications for block click-through (#230)
* Display justifications for block click-through

* >25/25 display
2018-08-16 22:52:01 +02:00
Travis CI
41608a139b [CI Skip] 0.19.36 2018-08-16 15:43:36 +00:00
Jaco Greeff
39fb78afd4
Retrieve block information (#229)
* Retrieve block information

* Render unknown addresses

* Don't render extrinsics count (getBlock) if not needed

* Fix dep versions
2018-08-16 17:35:32 +02:00
Travis CI
39397bad4a [CI Skip] 0.19.35 2018-08-16 11:45:38 +00:00
Jaco Greeff
97ef5548c9 Update dependencies 2018-08-16 13:38:25 +02:00
Jaco Greeff
abcb098461 Merge master 2018-08-16 11:17:00 +02:00
Jaco Greeff
6da7153446 Update dependencies 2018-08-16 11:14:18 +02:00
Travis CI
e6b04cbb1c [CI Skip] 0.19.34 2018-08-16 08:46:42 +00: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
Travis CI
6183cc27d6 [CI Skip] 0.19.33 2018-08-15 16:24:22 +00:00
Jaco Greeff
a817db5fe2
Pull in new subscription API (tracking subs per method) (#227)
* Pull in new subscription API (tracking subs per method)

* Add apiMethods (support checks)

* Quick (not dirty) extrinsic count
2018-08-15 18:16:57 +02:00
Travis CI
9c3d59284c [CI Skip] 0.19.32 2018-08-15 10:10:01 +00:00
Jaco Greeff
907dc875c5
Adjust header styling (font-weight) (#225) 2018-08-15 12:02:27 +02:00
Travis CI
2c449ae088 [CI Skip] 0.19.31 2018-08-15 08:44:18 +00: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
Travis CI
7768f51639 [CI Skip] 0.19.30 2018-08-13 10:12:14 +00: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
Travis CI
ec869f6f5b [CI Skip] 0.19.29 2018-08-12 15:33:24 +00:00
Travis CI
018310ba9c [CI Skip] 0.19.28 2018-08-10 13:21:09 +00: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
10358ff4be === null 2018-08-10 13:05:31 +02:00
Travis CI
b97226a184 [CI Skip] 0.19.27 2018-08-10 10:38:49 +00:00
Jaco Greeff
fae7b9592a Bump polkadot-identicon 2018-08-10 12:32:19 +02:00
Jaco Greeff
108f629692 Bump polkadot-identicon 2018-08-10 12:30:56 +02:00
Travis CI
04848f092c [CI Skip] 0.19.26 2018-08-10 10:30:31 +00:00
Travis CI
6b5d7b9ea1 [CI Skip] 0.19.25 2018-08-08 21:00:19 +00:00
Jaco Greeff
46af1e3497
Swap to polkadot-identicon (#207)
* Swap to polkadot-identicon

* Delete index.spec.js

* Delete index.spec.js
2018-08-08 22:54:50 +02:00
Travis CI
72794e83c5 [CI Skip] 0.19.24 2018-08-08 15:26:15 +00: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
Travis CI
6c053761dd [CI Skip] 0.19.23 2018-08-08 13:03:12 +00: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
Travis CI
759ff2d5f0 [CI Skip] 0.19.22 2018-08-08 10:32:22 +00:00
Jaco Greeff
d5bfe7dbc5
Nominating layout fix (CSS-only) (#209) 2018-08-08 12:25:10 +02:00
Travis CI
3e55184e60 [CI Skip] 0.19.21 2018-08-08 09:21:04 +00:00
Jaco Greeff
ec1a110cb2
Add AddressRow component (#208) 2018-08-08 11:15:33 +02:00
Travis CI
e80b3adc2d [CI Skip] 0.19.20 2018-08-08 00:18:42 +00: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
Travis CI
ab26caa399 [CI Skip] 0.19.19 2018-08-06 19:55:43 +00: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
Travis CI
21c9979ed8 [CI Skip] 0.19.18 2018-08-06 13:47:21 +00: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
9f9c937a41
Format storage entries in a div (#197)
* Format storage entries in div (with icons)

* Update queries to have same alignment
2018-08-06 15:33:21 +02:00
Travis CI
8e21521b30 [CI Skip] 0.19.17 2018-08-06 13:29:46 +00:00
Jaco Greeff
3d10c5d818
Convert u8a pk to address for IdentityIcon (#196)
* Convery u8a pk to address for IdentityIcon

* *sigh* unused vars

* Additional unused var cleanup
2018-08-06 15:25:10 +02:00
Travis CI
86311c074d [CI Skip] 0.19.16 2018-08-03 17:02:10 +00:00
Jaco Greeff
bf5f75d491
(un)Nominate functionality (#183)
* (un)Nominate functionality

* Small cleanups
2018-08-03 18:55:44 +02:00