Commit Graph

1174 Commits

Author SHA1 Message Date
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
Travis CI
b78d1296e9 [CI Skip] 0.19.15 2018-08-03 12:20:35 +00:00
Jaco Greeff
4f8c5d3bc4
Storage keys update (polkadot/storage dep update) (#181)
* Update dependencies

* Update chenged storage keys
2018-08-03 14:14:40 +02:00
Travis CI
b0f7558674 [CI Skip] 0.19.14 2018-08-03 11:53:47 +00:00
Luke Schoen
0748a27426 fix: Fixes #94 by adding missing filter for extrinsics timestamp (#165)
* refactor: Rename InputStorage key to method to be consistent with InputExtrinsic

* fix: Add filter to both section and method that considers isHidden prop

* refactor: Move into meaningful private functions

* fix: Fix linting errors

* test: Add Unit Tests to check shouldDisplaySection function

* fix: Remove unnecessary import

* restore file naming

* refactor: Move shouldDisplaySection into utils folder

* refactor: Move more common functionality into util

* remove unused isObject

* restore by removing unnecessary types. propose private type for storage

* fix: Remove explicit passing through the type for storage since its default

* feat: Use shared logic for showing section and methods in InputRpc

* refactor: Move shared types into util folder with section visibility type

* fix: type is public or private

* WIP: methods[name] TypeScript error

Element implicitly has an 'any' type because type '{}' has no index signature

* fix: Fix TSLint errors using jacos solution
2018-08-03 13:46:17 +02:00
Travis CI
30344652d3 [CI Skip] 0.19.13 2018-08-03 07:57:38 +00:00
Jaco Greeff
88b7190c2b Bump deps 2018-08-03 09:50:01 +02:00
Travis CI
6f3059491e [CI Skip] 0.19.12 2018-08-02 15:21:32 +00:00
Jaco Greeff
cf8a24a8da
Staking overview & actions (#171)
* Staking overview & actions

* Show session countdown

* Accounts with stake/Unstake buttons

* Small layout tweaks

* Cleanup multi-params from storage

* Submission/click works...

* Cleanups

* Render split

* Case sensitivity

* Doc links

* Icon to indicate validating
2018-08-02 17:15:07 +02:00
Travis CI
b3e6bd113f [CI Skip] 0.19.11 2018-08-02 08:19:20 +00:00
Luke Schoen
df91405d1b fix: Fixes #163 Concat index before value for queries with array response (#172)
Applies to queries to storage @polkadot/storage/ such as staking.ts and session.ts having type ['AccountId'].
2018-08-02 10:13:45 +02:00
Travis CI
2ddff94741 [CI Skip] 0.19.10 2018-08-02 05:40:11 +00:00
Jaco Greeff
1ea1e193c6
sodium-wasm support (#170)
* sodium-wasm support

* Update deps
2018-08-02 07:34:39 +02:00
Travis CI
fb9d0153c2 [CI Skip] 0.19.9 2018-07-31 13:34:50 +00:00
Chevdor
ede7b13c77 Add multistage docker image (11MB) (#164) 2018-07-31 15:29:00 +02:00
Travis CI
ea523021ce [CI Skip] 0.19.8 2018-07-31 09:13:11 +00:00
Jaco Greeff
d8d9564503
Fix yarn run vanitygen (#167) 2018-07-31 11:07:50 +02:00
Travis CI
38502ea04f [CI Skip] 0.19.7 2018-07-30 10:12:09 +00:00
Jaco Greeff
dec2432956 Bump deps 2018-07-30 12:07:04 +02:00
Jaco Greeff
613c10a455 Bump deps 2018-07-30 11:48:29 +02:00
Travis CI
d7a686f109 [CI Skip] 0.19.6 2018-07-29 14:33:22 +00:00
Jaco Greeff
1a00af0626 Update deps 2018-07-29 16:28:12 +02:00
Travis CI
7c09b33f2f [CI Skip] 0.19.5 2018-07-25 10:04:50 +00:00
Jaco Greeff
6a7c9f3b71
Display UI version on sidebar (#160) 2018-07-25 11:58:04 +02:00
Travis CI
a353c54b01 [CI Skip] 0.19.4 2018-07-24 16:30:06 +00:00
Travis CI
a7001f785c [CI Skip] 0.19.3 2018-07-24 15:31:13 +00:00
Jaco Greeff
9e8557bcb1
Add length prefix to Bytes type (#159)
* Add length prefix to bytes

* Update types
2018-07-24 17:26:17 +02:00
Travis CI
0d7f056f07 [CI Skip] 0.19.2 2018-07-23 15:59:20 +00:00
Jaco Greeff
ed97c6c4aa
Bump api (params: null revert) (#157) 2018-07-23 17:54:22 +02:00
Travis CI
6f3ed409e3 [CI Skip] 0.19.1 2018-07-23 14:38:10 +00:00
Jaco Greeff
d4ad240462 Bump deps, staking.(un)nominate 2018-07-23 16:31:44 +02:00
Travis CI
4db0572e82 [CI Skip] 0.18.26 2018-07-22 12:10:48 +00:00
Jaco Greeff
2dccb5959f
Update deps, fix formatting, parachain priv methods (#156)
* Update deps for empty params

* Bump deps

* Render ParachainId
2018-07-22 14:05:38 +02:00
Travis CI
c3183ff351 [CI Skip] 0.18.25 2018-07-15 16:06:37 +00:00
Jaco Greeff
7e1b5b1ab6 Bump deps 2018-07-15 18:01:01 +02:00
Travis CI
20e161b02d [CI Skip] 0.18.24 2018-07-13 14:32:36 +00:00
Travis CI
d5b4057db4 [CI Skip] 0.18.23 2018-07-13 14:14:19 +00:00
Travis CI
397184cf19 [CI Skip] 0.18.22 2018-07-13 12:34:32 +00:00
Jaco Greeff
cf053d97d4
Display version in console on launch (#152) 2018-07-13 14:28:11 +02:00
Travis CI
c1de6977fd [CI Skip] 0.18.21 2018-07-13 11:13:12 +00:00
Jaco Greeff
753a89f38f
Cleanup Identicon icon append (#151)
* Cleanup Identicon icon append

* Add SO link

* Ooops, unused vars :(

* Magic number
2018-07-13 13:01:26 +02:00
Travis CI
a186eb2c3d [CI Skip] 0.18.20 2018-07-13 09:32:39 +00:00
Jaco Greeff
67691af8c3
Update Referendum text display (#145) 2018-07-13 11:26:56 +02:00
Travis CI
02aefa60e1 [CI Skip] 0.18.19 2018-07-13 09:11:59 +00:00
Jaco Greeff
433749524c
Wrap SideBar items in withRouter (#150) 2018-07-13 11:06:50 +02:00
Travis CI
0fc2144a3e [CI Skip] 0.18.18 2018-07-13 07:50:44 +00:00
Jaco Greeff
2a23e0db46
Clear values on extrinsics change (#148) 2018-07-13 09:45:11 +02:00
Travis CI
7c912a2cde [CI Skip] 0.18.17 2018-07-13 05:45:13 +00:00
YJ
57800cdb83 Fixes #103: Convert functional components to pure (#135)
* ui-signer pureComponentify

* ui-react pureCompify

* Status queue prop

* ui-app Button

* ui-app InputExtrinsic

* apps, app-rpc, ui-app, ui-react

* app-extrinsics, app-explorer, apps

* fixes for tslint

* more linter fixes

* Update index.tsx

* Update index.tsx

* Update Nonce.tsx

* Update index.tsx

* Update Results.tsx

* Update index.tsx

* Update Queries.tsx

* Update NodeInfo.tsx

* Update index.tsx

* Update Item.tsx

* style fixes

* TSLINTs
2018-07-13 07:40:31 +02:00
Travis CI
6a694f7c5b [CI Skip] 0.18.16 2018-07-12 17:49:31 +00:00
Jaco Greeff
b5c4bc0122
Expand/simplify example: getStorage with keys definitions (#137)
* Update dependencies

* Update examples with simplified storage

* Update dependencies

* Revert tsc location override (check)

* Update dependencies
2018-07-12 19:44:00 +02:00
Travis CI
8e23cd04d7 [CI Skip] 0.18.15 2018-07-12 15:53:56 +00:00
Jaco Greeff
84e5ab8cbb
Fix index change not updating for 0 (#142)
* Fix index change not updating for 0

* Update resolutions
2018-07-12 17:48:22 +02:00
Travis CI
d8940c9f49 [CI Skip] 0.18.14 2018-07-11 15:25:40 +00:00
Jaco Greeff
5dc348304c
Encode consensus.setStorage(KeyValueStorage[]) (#131)
* Start of override KeyValueStorage

* All Upload of KV storage data

* Update dependencies

* KV parse & submission

* Cleanup display of storage queries

* Bump dependencies (incl. KV decoding fix)
2018-07-11 17:19:56 +02:00
Travis CI
cea9d9cbc5 [CI Skip] 0.18.13 2018-07-11 12:55:01 +00:00
Luke Schoen
62b1158c69 fix: Fixes #130 latest rust reports chains differently (#133)
* fix: Detect chain specs that enable test environment and dev accounts Issue #130

* test: refactor moving chain checker into meaningful function name

* fix: Detect check specs requiring backward compatibility encoding for Issue #130

* remove comment

* remove comment and restore source maps

* fix: Fix the license information in test files

* refactor: Move cases into array with meaningful array. Cater for numbers

* refactor: Reduce how condensed the code is

* refactor: Use Polkadot isUndefined helper

* refactor: Move RegEx instantiation outside function so not called every time

* refactor: Move new utility functions and associated tests into ui-react-rx/src/util

* fix: Update to cater for renaming of poc-2 to staging

See commit updates since `poc-2` has been renamed to `staging` 3426552c76
2018-07-11 14:50:01 +02:00
Travis CI
b96c450774 [CI Skip] 0.18.12 2018-07-11 06:54:14 +00:00
YJ
aaf7286042 stricter types (#134) 2018-07-11 08:49:35 +02:00
Travis CI
0f5b461fd5 [CI Skip] 0.18.11 2018-07-10 08:38:30 +00:00
Jaco Greeff
c03a4473f6
Expand the example, indicating validators with sorting (#129) 2018-07-10 10:32:00 +02:00
Travis CI
378fed132c [CI Skip] 0.18.10 2018-07-09 11:42:56 +00:00
Jaco Greeff
3fb85094a6
Example & tutorial (#127)
* Add tutorial step 001

* Update LICENSE header

* Query storage via HOC

* Tut 003, read proposals

* Tut 004 replacing HOC

* Pull Intentions & Proposals together

* Add final image

* Cleanup unused methods

* Source links

* Remove unused var
2018-07-09 13:38:31 +02:00
Travis CI
8d41e8ada9 [CI Skip] 0.18.9 2018-07-05 13:31:10 +00:00
Jaco Greeff
6538e71a01
Fix ts-ignore for Trans component (#126) 2018-07-05 15:25:15 +02:00
Travis CI
dd3ee80349 [CI Skip] 0.18.8 2018-07-03 15:00:48 +00:00
Jaco Greeff
f561d6c4fa
Fix storage select (#123) 2018-07-03 16:55:56 +02:00
Travis CI
da2ce5a2a5 [CI Skip] 0.18.7 2018-06-28 15:25:37 +00:00
Jaco Greeff
349c35cf41
Fix extrinsic submissions (#111)
* Update parent when values have changed

* Fix linting

* Cast for correct signature

* Cater for correct "Bytes" for submitExtrinsic
2018-06-28 17:19:18 +02:00
Travis CI
b805bccf5f [CI Skip] 0.18.6 2018-06-28 14:36:55 +00:00
Chevdor
70fe02d128 Add missing locale resources (#109)
* Add missing locale resources

* Add a few other locale reouces for 'en'
2018-06-28 16:31:43 +02:00
Travis CI
2f19a06d5b [CI Skip] 0.18.5 2018-06-28 05:16:31 +00:00
Travis CI
25ea6ad657 [CI Skip] 0.18.4 2018-06-27 10:47:31 +00:00
Jaco Greeff
f523383216
Add TSLint (#106) 2018-06-27 12:43:07 +02:00
Travis CI
4b5c3733ad [CI Skip] 0.18.3 2018-06-26 15:48:52 +00:00
Jaco Greeff
6cafd1492a Update dependencies 2018-06-26 17:43:45 +02:00
Travis CI
235b671d11 [CI Skip] 0.18.2 2018-06-26 10:15:09 +00:00
Jaco Greeff
f2d234b591
Fix parameter updates (#105) 2018-06-26 12:10:41 +02:00
Travis CI
75b3a9759b [CI Skip] 0.18.1 2018-06-25 16:07:53 +00:00
Jaco Greeff
078e2e431a
Support enumerable accounts (#102)
Covert to TypeScript
2018-06-25 18:02:47 +02:00
Travis CI
249962e453 [CI Skip] 0.17.15 2018-06-19 08:10:26 +00:00
Travis CI
875275c2b9 [CI Skip] 0.17.14 2018-06-14 16:41:09 +00:00
Luke Schoen
2360c2e4f5 fix: Fixes #70 by Rename Submit Extrinsic to Submit Transaction (#85)
* fix: Fixes #70 by Rename Submit Extrinsic to Submit Transaction

* fix: Rename Extrinsic modal button from Submit Extrinsic to Submit Transaction
2018-06-14 18:36:24 +02:00
Travis CI
bb6562b46b [CI Skip] 0.17.13 2018-06-13 20:37:48 +00:00
Jaco Greeff
9c89026e6e
Copyright project authors (#95)
* Copyright project authors

* Add contributors
2018-06-13 22:32:49 +02:00
Travis CI
5b87995d14 [CI Skip] 0.17.12 2018-06-13 14:49:34 +00:00
Luke Schoen
5296c4fee1 fix: Fixes #88 buttonbar style cornering on Accounts and Addresses pages (#90)
* fix: Fixes #88 buttonbar style cornering on Accounts and Addresses pages

- Add right corners to Forget
- Add left corners to Reset

* refactor: Move overrides for buttonbar corner styles into shared resource

* fix: Add newline to end of file

* refactor: Refactor using PostCSS variables, nesting, and import

* refactor: Move variables into partials subfolder. Apply CSS when preceding sibling is spacer

* fix: Remove unnecessary comma to pass CI linting

* fix: Add initial divider with no padding to apply corners conditionally

There is no CSS selector combinator that allows conditional styling of an element conditional upon "subsequent" sibling elements existing. This is a work-around whereby a dummy divider with no padding is added to the start of the button group such that the custom corner overrides only apply to button groups that contain a 1st and 3rd element that are dividers. Only options for conditional styling dependent on "preceding" sibling elements currently exist that are compatible across browsers (i.e. 'Adjacent sibling combinator' by use of `+` and 'General sibling combinator' by use of `~`, see below reference for details).

Another alternative solution that was considered by not deemed generic enough was to conditionally apply the custom cornering only to button groups that are contained within a classname that contains the text "--Editor", on the assumption that the Forget, Reset, Save button group would only be used within a nesting containing such a wildcard value (as is currently the case)
```
div [class*="--Editor"] {
  .ui--Button-Group {
    .ui.buttons {
      .button:nth-child(1) {
        border-top-right-radius: $small-corner;
        border-bottom-right-radius: $small-corner;
      }
      .ui.button.compact.mini.basic + .button:nth-child(3) {
        border-top-left-radius: $small-corner;
        border-bottom-left-radius: $small-corner;
      }
    }
  }
}
```

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors

* fix: Resolve linting CI errors

* fix: Add missing dependencies to package.json to pass CI

* refactor: Move widthless divider into base Group component

* refactor: Move button group custom cornering styles
2018-06-13 16:42:03 +02:00
Travis CI
2e98b92cf1 [CI Skip] 0.17.11 2018-06-13 07:23:43 +00:00
Luke Schoen
d7319e809b config: Enable source maps in development for front-end debugging (#84)
* config: Enable source maps in development for front-end debugging

* feat: Switch to source map for dev env as used by create react app
2018-06-13 09:18:35 +02:00
Travis CI
61e7d21b84 [CI Skip] 0.17.10 2018-06-13 07:16:42 +00:00
Luke Schoen
934d2b912a feat: Fixes #75. Add edit icon from semantic-ui to account name input field (#83)
* feat: Fixes #75. Add edit icon from semantic-ui to account name input field

Adding an edit icon that is embedded in the account name input field makes it more obvious to the user that the input field isn't read-only, and that there is a way to "click before doing" (i.e. editing the input field that is identified as being editable before the ability to save changes is granted). Some users may click the edit icon itself thinking it toggles the ability to edit the input field, whilst others may just recognise that the edit icon means the input field is editable. In either case just having the edit icon should suffice as being the initial "call to action" for a user wishing to edit the input field, and since the Reset and Save buttons illuminate when the account name is modified, they'll recognise that a further step is required to save their changes.

* resolve introduced ESLint and Flow errors

* fix: Move attributes up so they are in alphabetical order

* fix: Remove unnecessary classenames. Edit icon stays within input field
2018-06-13 09:08:13 +02:00
Travis CI
6312cf4270 [CI Skip] 0.17.9 2018-06-12 11:46:10 +00:00
Jaco Greeff
bb3c44fb13 Merge master 2018-06-12 13:41:46 +02:00
Jaco Greeff
cacc08b93c Update dependencies 2018-06-12 13:34:07 +02:00
Travis CI
c83c37cfb4 [CI Skip] 0.17.8 2018-06-12 09:00:45 +00:00
Jaco Greeff
96a5330d86
Add yarn & node to engines (#91)
* Add yarn & node to engines

* yarn ^1.3.2

* Update dependencies
2018-06-12 10:55:23 +02:00
Travis CI
57b77db310 [CI Skip] 0.17.7 2018-06-11 16:09:47 +00:00
Jaco Greeff
e77363ba1b
Upgrade dependencies (#87)
* Upgrade dependencies

* Update getting started

* Attemp test-case for https://github.com/polkadot-js/apps/issues/81

* Fix small typos
2018-06-11 18:05:23 +02:00
Travis CI
2c0918581d [CI Skip] 0.17.6 2018-06-11 07:13:11 +00:00
Travis CI
34b17880a3 [CI Skip] 0.17.5 2018-05-31 13:31:05 +00:00
Travis CI
acfc1facbd [CI Skip] 0.17.4 2018-05-31 12:05:21 +00:00
Jaco Greeff
e55f10e8d8
Fix array type display (#69) 2018-05-31 13:59:00 +02:00
Travis CI
2cccf30f00 [CI Skip] 0.17.3 2018-05-30 10:13:38 +00:00
Jaco Greeff
d45642e3f6
Fix address defaultValue/value, hide testing accounts (#66)
* Fix address defaultValue/value

* @flow cleanups

* Remove debug info

* Properly hide dev chain addresses (default)

* Close https://github.com/polkadot-js/apps/issues/68

* Don't allow pre-existing accounts and addr

* Failsafe on conversion check

* Don't try to encode arrays

* Display decoded Proposals as text
2018-05-30 12:07:45 +02:00
Travis CI
bae287ad3c [CI Skip] 0.17.2 2018-05-29 18:00:21 +00:00
Jaco Greeff
f0a8370ea2 Update dependencies 2018-05-29 19:55:05 +02:00
Travis CI
71d3c2e706 [CI Skip] 0.17.1 2018-05-29 15:38:11 +00:00
Jaco Greeff
ba36eede0b
Include ui-* packages in repo (development speed) (#65)
* Include ui-* packages in repo (development speed)

* Bump

* Bump

* Cleanup dependencies
2018-05-29 17:33:29 +02:00
Travis CI
4d1156bbfb [CI Skip] 0.7.2 2018-05-29 14:43:39 +00:00
Jaco Greeff
fa47246874 Update dependencies 2018-05-29 16:39:17 +02:00
Travis CI
c35c8c0731 [CI Skip] 0.7.1 2018-05-29 12:38:30 +00:00
Jaco Greeff
a4531a50d6
Update for latest @polkadot/params (#64)
* Update for latest @polkadot/params

* Allow passing in of WS_URL environment

* Cleanup block display

* Update dependencies
2018-05-29 14:34:23 +02:00
Travis CI
6881f555da [CI Skip] 0.6.12 2018-05-28 20:36:29 +00:00
Jaco Greeff
540a39ff48
Use apiSupport & apiConnected from withApi (#63) 2018-05-28 22:31:24 +02:00
Travis CI
bcd7867ba7 [CI Skip] 0.6.11 2018-05-28 16:46:51 +00:00
Jaco Greeff
4790214a24
Support both poc-1 & latest encodings (#62)
* Support both poc-1 & latest encodings

* v.
2018-05-28 18:43:14 +02:00
Travis CI
5fb30b8b0e [CI Skip] 0.6.10 2018-05-28 08:06:05 +00:00
Jaco Greeff
07dd46442f
Small app-RPC fixes (#60)
* Don't render invalid accountIndex

* Don't try to decode null/undefined
2018-05-28 10:01:09 +02:00
Travis CI
9bc9bfd6fe [CI Skip] 0.6.9 2018-05-27 16:59:30 +00:00
Jaco Greeff
69d0985410
Cleanup type definitions (#59)
* Cleanup type definitions

* Update dependencies

* Update depnedencies
2018-05-27 18:54:24 +02:00
Travis CI
c447844ffd [CI Skip] 0.6.8 2018-05-25 16:04:47 +00:00
Jaco Greeff
004824dbec
Be explicit in State returns (#58)
* Be explicit in State returns

* Cleanup Param properties

* Cleanup casting

* Cleanup type manipulations

* Don't allow null for InputAddress defaultValue
2018-05-25 17:57:51 +02:00
Travis CI
ccae56beca [CI Skip] 0.6.7 2018-05-25 14:09:42 +00:00
Jaco Greeff
07f2a1ae07
Use componentDidUpdate for change triggers (#57)
* Use componentDidUpdate for change triggers

* Update dependencies
2018-05-25 16:05:01 +02:00
Travis CI
42c52c3387 [CI Skip] 0.6.6 2018-05-25 12:31:20 +00:00
Jaco Greeff
c99a119878
Move Balance -> u128, Index -> u32 (#56)
* u128 balances operational

* Allow app build (from src)
2018-05-25 14:26:56 +02:00
Travis CI
598bbde6c8 [CI Skip] 0.6.5 2018-05-24 16:09:13 +00:00
Jaco Greeff
99b188bf5d
Update dependencies, cleanup app-rpc results (#55)
* Align with upstream types

* Fix app-rpc outputs
2018-05-24 18:04:49 +02:00
Travis CI
917cfeba97 [CI Skip] 0.6.4 2018-05-23 16:16:51 +00:00
Travis CI
e8fe1abfbb [CI Skip] 0.6.3 2018-05-23 16:05:57 +00:00
Jaco Greeff
397dd0c983
Update jsonrpc dependency tree (#54)
* Use tyopeToString from @polkadot/params

* Upgrades... before checks

* Cleanups... WIP.

* more WIP.

* Expand defaultValue & handlers

* Cleanups

* CodeClimate cleanups

* Additional CodeClimate cleanups

* Base for app-rpc

* Initial split into ui-signer

* Signer operational (extrinsics)

* Decode extrinsic method

* RPC progress...

* RPC class works again

* @flow cleanups
2018-05-23 18:01:42 +02:00
Travis CI
578555ce1a [CI Skip] 0.6.2 2018-05-17 13:57:45 +00:00
Jaco Greeff
a2fea201ac
Fix block sorting when numbers change (#53)
* Fix block sorting when numbers change

* Formatting

* Update @polkadot/dev (bn.js type fix)
2018-05-17 15:51:43 +02:00
Travis CI
a8b0c04068 [CI Skip] 0.6.1 2018-05-17 12:56:52 +00:00
Jaco Greeff
6753dc0ad2
Use @babel 7 (#52)
* Use @babel 7

* Use @babel 7

* Use custom webpack config

* Minify input css

* Remove @flow header form webpack.config

* Webpack config re-usable

* Split with vendor/main bundles

* Use hash for main entry, specify chunkHash

* Import base postcss config

* Hashing uses blake2

* Align number formats

* Use contenthash fro extracted css

* Format number directly

* Split runtime (better caching)
2018-05-17 14:51:41 +02:00
Travis CI
7c3a2e9d37 [CI Skip] 0.5.2 2018-05-15 16:16:56 +00:00
Jaco Greeff
69fa449578 Fix Account isValid class 2018-05-15 18:09:25 +02:00
Travis CI
8b0dfd661c [CI Skip] 0.5.1 2018-05-15 15:06:16 +00:00
Jaco Greeff
5f884c4b65
Add utility/toolbox app (#51)
* Upgrades

* Add & use Output component

* Render app in content

* Use update @polkadot/dev-react

* Add app-toolbox

* DRY className concat

* Hashing in place

* Verify signature operational

* Entry updates

* Verification operational

* Final cleanups before PR

* Bump version
2018-05-15 16:58:32 +02:00
Travis CI
e1f1ca5153 [CI Skip] 0.4.12 2018-05-14 15:50:42 +00:00
Jaco Greeff
a940292287
Convert to @polkadot/param formatters (#49)
* Convert to @polkadot/param formatters

* WIP

* Renderinbg operational

* Update with checks

* Show 'empty' with no array values

* Pass-through label properly

* Pass through isDisabled property
2018-05-14 17:43:22 +02:00
Travis CI
92cc9c2add [CI Skip] 0.4.11 2018-05-12 18:45:23 +00:00
Jaco Greeff
62279af6b9
Pass through Button.Or className (#48) 2018-05-12 20:38:19 +02:00
Travis CI
410a3be007 [CI Skip] 0.4.10 2018-05-12 18:28:20 +00:00
Jaco Greeff
b9fda4df7a
Add when best vanity offsets the same (#47) 2018-05-12 20:21:18 +02:00
Travis CI
9ba16dabd6 [CI Skip] 0.4.9 2018-05-12 13:13:17 +00:00
Jaco Greeff
ea50c4f1fe
Pull in ui-app components only (#46)
* Pull in ui-app components only

* Undefined check

* Small overall layout updates (buttons)

* Password hide/unhide icons

* Automatically assign name to inputs
2018-05-12 15:05:41 +02:00
Travis CI
905e9c8ff8 [CI Skip] 0.4.8 2018-05-12 11:03:43 +00:00
Jaco Greeff
8c349a0420
Dropdown label type update (#43) 2018-05-12 12:57:03 +02:00
Travis CI
3c2e0d6446 [CI Skip] 0.4.7 2018-05-12 09:33:39 +00:00
Jaco Greeff
ec2bff5d70
Remove debug log (Address) (#45) 2018-05-12 11:27:38 +02:00
Travis CI
33983cce97 [CI Skip] 0.4.6 2018-05-12 08:50:01 +00:00
Jaco Greeff
b20a131b15
Be explicit in supported input types (#42)
* Be explicit in supported input types

* label as React$Node
2018-05-12 10:42:13 +02:00
Travis CI
14d10ef6af [CI Skip] 0.4.5 2018-05-12 08:37:31 +00:00
Jaco Greeff
1489a1c4e6
Add defaultLabel for Labelled (#40)
* Add defaultLabel

* Typing for defaultLabel

* Add null for label prop

* Try to fix (in the dark)

* Allow anything for label
2018-05-12 10:29:54 +02:00
Travis CI
a4a83f9795 [CI Skip] 0.4.4 2018-05-12 08:20:59 +00:00
Jaco Greeff
9eb671cd17
Expose CopyButton properties (#41) 2018-05-12 10:12:59 +02:00
Travis CI
1108e96b53 [CI Skip] 0.4.3 2018-05-12 08:02:44 +00:00
Jaco Greeff
af452ba222
Remove unneeded key prop 2018-05-12 09:55:37 +02:00
Travis CI
2cee2b2b79 [CI Skip] 0.4.2 2018-05-12 06:37:55 +00:00
Jaco Greeff
ccd656fb75
Remove wayward debug log 2018-05-12 08:30:06 +02:00
Travis CI
9c201d1323 [CI Skip] 0.4.1 2018-05-11 16:14:14 +00:00
Jaco Greeff
b11a6981a2
Optimise components (#39)
* ui-react-app -> ui-app

* CopyButton, Input & Password components

* Convert all to use ui-app/{Input, Label}

* Change to PureComponent where we have onChange listeners

* Cleanup layouts

* Swap dropdown components, remove uselexx constructors

* Allow address/account forget

* Bump

* Searching with headers operational

* flex grow/shrink for icon + account add

* Fix balance & transaction display (account/address management)

* Adjust balance layout

* Equalise padding
2018-05-11 18:08:10 +02:00
Travis CI
da4807b63c [CI Skip] 0.3.4 2018-05-11 07:26:36 +00:00
Jaco Greeff
0eab4f6f22
Basic address management app (#38)
* Update vanity regex (no 'I')

* Allow copy of generated seed

* Update connecting info

* ui--form -> ui--row

* Cleanup layouts with ui--row

* negative -> default (non-removal)

* Embedded rows don't have padding

* Allow ability to hide address

* Adjust button layouts

* Make account edit/create (slightly) prettier

* @flow fixes

* Some spacing adjustments

* Outline ofg the addressbook app

* Address create & edit operational

* @flow fixes

* Small UI cleanups, done as a first round
2018-05-11 09:20:44 +02:00
Travis CI
cd64a4de5f [CI Skip] 0.3.3 2018-05-10 12:03:07 +00:00
Jaco Greeff
38c02cd666
Allow unlock on locked accounts (extrinsics) (#37) 2018-05-10 13:57:49 +02:00
Travis CI
4ca16458f2 [CI Skip] 0.3.2 2018-05-10 07:58:33 +00:00
Jaco Greeff
6006749297
Split UI-specific keyring into own package (#36)
* Swap to using split-out ui-keyring

* First part of split into ui-keyring complete

* Create/Edit account operational

* Cleanup keyring display

* InputAddress defaultValue
2018-05-10 09:52:49 +02:00
Travis CI
d8f7ef5f5e [CI Skip] 0.3.1 2018-05-09 18:39:06 +00:00
Jaco Greeff
e30bff9d85 Bump 2018-05-09 20:32:49 +02:00
Jaco Greeff
e02b971998
Allow external address input (#34)
* Allow external address input

* Remove hold-over debug log
2018-05-09 17:54:17 +02:00
Travis CI
9206cbf7fc [CI Skip] 0.2.3 2018-05-09 14:05:46 +00:00
Jaco Greeff
d0ae20117f
Use bs58 base for regex (#33)
* Use bs58 base for regex

* Fix match regex

* Share bs58 regex
2018-05-09 15:55:19 +02:00
Travis CI
82e6cf290d [CI Skip] 0.2.2 2018-05-09 12:28:45 +00:00
Jaco Greeff
52df94d58c
Node use libsodium bindings (optional) (#32)
* Node cli improvements

* Extra cli options

* Allow withCase from UI

* Text updates
2018-05-09 14:21:42 +02:00
Jaco Greeff
4cec0ec5ea
Toy vanity address generator (#31)
* Basic vanity address generator

* Node operations moved to cli completely

* Cleanups

* cli progress
2018-05-09 12:39:55 +02:00
Travis CI
45937acddd [CI Skip] 0.2.1 2018-05-08 15:52:27 +00:00
Jaco Greeff
dfaddef7eb
Basic account management app (#29)
* Basic account management functions

* Allow dividers

* Use dividers to split menu

* Bump

* Basic cleanups
2018-05-08 17:47:34 +02:00
Travis CI
36c8850f3a [CI Skip] 0.1.12 2018-05-07 15:41:52 +00:00
Jaco Greeff
724e1e1b3d
Basic parameter passing with storage (#28)
* Basic parameter passing with storage

* Add GH link

* Cleanup param formatting
2018-05-07 17:36:32 +02:00
Travis CI
a33522298d [CI Skip] 0.1.11 2018-05-07 11:00:08 +00:00
Jaco Greeff
19495e590e
Use ui-react-rx & api-rx packages (#27)
* Use ui-react-rx & api-rx packages

* Install
2018-05-07 12:54:51 +02:00
Travis CI
4f850e18ab [CI Skip] 0.1.10 2018-05-07 09:41:57 +00:00
Jaco Greeff
072c5d73f1
Simplify app using setState (#23)
* Remove extra subjects from app-explorer

* Use bs58 addresses

* Base upgrades subject -> onChange

* app-storage & app-explorer works

* Remove useless placeholder

* Progres...

* Rename Submission -> Selection

* Baby steps... things display now...

* setState operational

* Explicit onChange

* Work around eslint issues (!!!)

* @flow fixes

* Small styling updates

* Small app content styling updates

* Simplify
2018-05-07 11:37:06 +02:00
Travis CI
351af88ab2 [CI Skip] 0.1.9 2018-05-05 19:41:39 +00:00
Jaco Greeff
49cd48a07b
Use bs58 address display format (#22)
* Remove extra subjects from app-explorer

* Use bs58 addresses
2018-05-05 21:36:05 +02:00
Travis CI
974012213b [CI Skip] 0.1.8 2018-05-05 11:24:32 +00:00
Jaco Greeff
da5c28faa6
Fix extrinsic proposals (#15)
* Fix file upload size

* Extrinsics should extrinsic again
2018-05-05 13:20:23 +02:00
Travis CI
d256ea6b30 [CI Skip] 0.1.7 2018-05-04 13:14:55 +00:00
Jaco Greeff
a5607ac90e
App for realtime storage queries (#11)
* Create app-storage structure

* Split shared components into ui-react-app

* Cleanup @flow issues

* Rename apps classes

* Split with ui-react-app operational

* Import es semantic-ui

* Selection section/key split into 2

* Basic storage queries (no-params) in-place

* Upgrades

* No-param queries operational

* Default values operational (dropdown)

* Additional cleanups, constrolled value

* @flow updates

* @flow fixes

* Move Params to ui-react-app (future-use in app-storage)

* Fix final @flow issues

* Query removal

* Cleanups

* Update README

* Upgrades

* Fixup cached components

* Bump @polkadot/rx-react

* Simple explorer animations

* Additional (final) cleanups
2018-05-04 15:07:44 +02:00
Travis CI
3d17f951ab [CI Skip] 0.1.6 2018-04-30 09:40:51 +00:00
Jaco Greeff
2206d30f69
Allow setCode file uploads (#10)
* File upload (setCode)

* Cleanup Param types
2018-04-30 11:35:23 +02:00
Travis CI
18c1e08a0e [CI Skip] 0.1.5 2018-04-30 06:56:10 +00:00
Jaco Greeff
a514337b9b
Small tweaks to hash input (#9) 2018-04-30 08:50:52 +02:00
Travis CI
f60f4ede89 [CI Skip] 0.1.4 2018-04-29 14:58:02 +00:00
Jaco Greeff
b71e029cc8
Round out available extrinsic methods (#8)
* Expand methods

* Remove extra params label

* Move shared extrinsic definitions

* Split extrinsics into own packages

* Update entry location

* Include all method calls

* Expand to include all extrinsics

* Cleanup extrinsic definitions

* Build folder change
2018-04-29 16:52:55 +02:00
Travis CI
81a5411dcb [CI Skip] 0.1.3 2018-04-27 14:19:57 +00:00
Jaco Greeff
79dcf5ab54
Expand available extrinsic methods (#7)
* Public/Private extrinsics

* Better dropdown displays

* Expand definition with name

* Pass actual full selected extrinsic around

* Create param layout from parameters

* u32 encoding

* Re-introduce Params component

* Proposal & params display operational

* Parameter-drive method construction

* s/Method/Extrinsic/

* Cleanup locations
2018-04-27 16:15:20 +02:00
Travis CI
6ec84ca16c [CI Skip] 0.1.2 2018-04-26 10:05:06 +00:00
Jaco Greeff
83d551309b
Plumbing for gh-pages (#6)
* Add homepage URL

* Allow deployment to gh-pages branch

* Bump @polkadot/dev (with deploy:ghpages)
2018-04-26 11:59:29 +02:00
Travis CI
cf9dd565fe [CI Skip] 0.1.1 2018-04-25 15:25:58 +00:00
Jaco Greeff
903ba110cf Merge branch 'master' of github.com:polkadot-js/portal 2018-04-25 17:21:28 +02:00
Jaco Greeff
85ba5d2eb0 Add LICENSE & README.md to packages 2018-04-25 17:21:16 +02:00
Jaco Greeff
3377c9f791
Build all packages (#5)
* Build all packages

* Cleanup package.json config (allow publish)

* Fix build with React
2018-04-25 17:13:19 +02:00
Jaco Greeff
ad5cf04b07
Update rx-react/rx-api packages (16.3 compliant) (#4)
* Update rx-react/rx-api packages (16.3 compliant)

* onChange & subject is optional

* Cleanup translations

* Clean up logging

* Upgrades

* Use yarn on Travis

* install -> add

* No lerna global install

* Ignore engines

* Update dev

* Final dependency bumps

* Simplify travis.yml more
2018-04-25 16:45:14 +02:00
Jaco Greeff
6631261ed9
Connecting overlay (#3)
* NotFound translatable

* Connecting overlay

* Update rx-react (proper state management)

* Use i18n-next everywhere

* @flow updates
2018-04-24 17:02:44 +02:00
Jaco Greeff
d589964bf2
Simple block exploration app (#2)
* Updates

* s/app-testing/app-extrinsics/

* Run components as apps using url

* Redirect to /home

* Expand Portal with NotFound app component

* New block numbers & hashes are being shown

* Only display best block once

* best block -> best

* TODO for calcHash

* Explorer aligns with blockNumber/hash

* Break signing into seperate modal

* Cleanups with @flow

* Adjust Dropdown for methods

* Remove (for now) unused app-home

* Update deps
2018-04-23 17:25:00 +02:00
Jaco Greeff
e81ff2b9b6 dangling (invalid) eslint warnings 2018-04-19 17:45:40 +02:00
Jaco Greeff
714a5fff2c Cleanup eslint 2018-04-19 17:42:03 +02:00
Jaco Greeff
6ccef75454 First-pass on submission there 2018-04-19 17:29:25 +02:00
Jaco Greeff
c13a12c1a7 flow fixes 2018-04-19 14:29:07 +02:00
Jaco Greeff
0484805619 Cleanups 2018-04-19 13:19:41 +02:00
Jaco Greeff
e7fa6e8e1f Submission ... working... 2018-04-19 13:17:55 +02:00
Jaco Greeff
c550c88a06 Simplify address determination 2018-04-19 12:46:51 +02:00
Jaco Greeff
18e90dbef2 Reformatting 2018-04-19 09:25:27 +02:00
Jaco Greeff
c9ffe7a2de Flatten components 2018-04-18 17:52:23 +02:00
Jaco Greeff
0e2b6b9a8e Encoding works as expected 2018-04-18 17:45:35 +02:00
Jaco Greeff
ddd4a0c3ff StakingTransfer getValues 2018-04-18 17:23:43 +02:00
Jaco Greeff
bc6dd91258 API move TODOs 2018-04-18 16:45:07 +02:00
Jaco Greeff
2e7c858ce9 Nonce displayed & updated 2018-04-18 16:44:20 +02:00
Jaco Greeff
9263058345 Basic Home app 2018-04-18 12:06:04 +02:00
Jaco Greeff
c4dcc9bb4a Basic transfer options on-screen 2018-04-18 11:27:55 +02:00
Jaco Greeff
baf3dc6688 s/content-testing/app-testing/ 2018-04-17 17:28:19 +02:00
Jaco Greeff
d85ce9c263 Initial commit 2018-04-17 17:02:30 +02:00