Commit Graph

309 Commits

Author SHA1 Message Date
Jaco Greeff
e13d79e10a
Parity Signer QR support (#592)
* Pull in first bits from old branch

* Extract styles

* Update for eslint

* Bump deps, react-qr-reader

* remove wrapped component, only QR{Display, Scan}

* Multipart display

* Track updates via xxhash

* Address display & scanning

* Bump deps

* DisplayExtrinsic -> DisplayPayload

* Rewrite yarn.lock

* Bumps

* Add direct string <-> u8a conversion utils

* Use encodeString everywhere

* Update deps

* Bump deps (final round, can  merge now)
2019-07-19 13:47:52 +02:00
Jaco Greeff
77689fba59
Constant queries (#1419)
* InputConsts dropdown

* Bumps

* 2. x Constants explorer
2019-07-18 18:01:36 +02:00
Jaco Greeff
699af2f413
Show banner to prompt extension install (#1414)
* Show banner to prompt extension install

* Updated, slightly better looking

* Update packages/app-accounts/src/Banner.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* trim

* Full bar, limited text width
2019-07-18 10:22:15 +02:00
Jaco Greeff
8bb35dd9ff
Complete eslint swap (#1407) 2019-07-16 11:56:40 +02:00
Jaco Greeff
144c8bbd85
eslint fixes (round 2) (#1401)
* eslint fixes (round 2)

* ui-params converted

* Tiny.

* Classes fix

* Some type cleanups

* Cleanup traling ,

* < 1k

* Small additions

* <750

* Mini updates modifiers

* More ui-app cleanups

* 312 problems (182 errors, 130 warnings)
2019-07-15 23:17:19 +02:00
kwingram25
a7791a8e69 Submit candidacy (#1402)
* Change council to collective/elections

* fix proposal type

* package

* Submit candidacy

* update index

* Minor eslint cleanups

* rename back to council

* blank line
2019-07-15 22:42:17 +02:00
Jaco Greeff
ea829237de
eslint cleanup (as unknown as State -> Pick<State, never>) (#1405) 2019-07-15 12:36:17 +02:00
Jaco Greeff
4632c304cb
Fix static params display (#1404)
* Fix statis params display

* Remove stray log
2019-07-15 08:53:23 +02:00
Jaco Greeff
0e2265ff70
Some initial pre-eslint cleanups (#1383)
* Some initial cleanups

* Make it lint

* Small s/type/interface/ additions

* Small minor s/type/interface/

* More type -> interface

* Add lint:new rule

* Some small updates

* Cleanup dangling tslint  issues

* Small updates

* ui-signer cleanups

* ui-reactive updated

* Make lint:new run

* Mini ui-params cleanups

* Some additions

* Tiny... and done for now.

* 1950 problems (1241 errors, 709 warnings)

* 1829 problems (1181 errors, 648 warnings)

* 1674 problems (1181 errors, 493 warnings) (no any... for now)

* Small additions.

* Array<T> -> T[] (all)
2019-07-14 22:27:12 +02:00
kwingram25
e9b5f72e8b
Change council to collective/elections (#1398)
* Change council to collective/elections

* fix proposal type

* package
2019-07-14 20:26:32 +01:00
Jaco Greeff
babd33bc34
Bump deps (#1399)
* Bump deps

* Cleanup assertion

* Bump API, contract fn params
2019-07-14 18:58:29 +02:00
kwingram25
fee32b2cd5
Mortal/immortal extrinsics (#1393)
* show mortality

* NodeInfo

* NodeInfo
2019-07-12 15:11:34 +01:00
Thibaut Sardan
4205907b7c Fix for democracy overflow and signing (#1379)
* unlock-signing-fix

* overflow in referenda and motions

* revert

* sign fix bis

* alphabetical order
2019-07-12 00:46:08 +02:00
Jaco Greeff
bde6a6ad64
Cleanup linked inputs (#1377)
* Cleanup linked inputs

* Cleanup linting

* Fallback for possibly undefined, no clue - https://github.com/polkadot-js/apps/issues/1375

* public accesibility (eslint requires these)
2019-07-10 22:59:16 +02:00
kwingram25
e691868d76
Council motions (#1358)
* council motions

* continue

* council motions > propose

* travis ci

* latest api

* add council votes, proposal views

* linting

* remove settings

* new yarn.lock

* base-x

* Only pick text-transform from Labelled changes

* collapse voting view, aye/yay

* move button

* lint

* fixes

* approve <details> tag

* aye/nay lists
2019-07-10 17:49:46 +01:00
Thibaut Sardan
42e0baf332 Bonded and available as labelExtra in Staking > bond more funds (#1371)
* bonded and available

* alphabetical ordering

* keep only available, +10% opacity for label and labelExtra

* lint
2019-07-09 17:25:06 +02:00
Jaco Greeff
c00ec5a470
Basic parachains app (#1338)
* Parachains structure

* Basic display

* Bump API

* Treasury/Parachains ordering

* Update for latest Column changes
2019-07-09 10:36:24 +02:00
Jaco Greeff
68a523a778
Beauty is in the eye of the beerholder (#1328)
* Beuty is in the eye of the beerholder

* Signer dialog

* .multiple with address

* Transfer wrapper

* Multiple input height

* 2rem -> 1.75rem

* Adjustments for invalid

* Break IdentityIcon out of box

* Small layout adjustments

* Row adjustment

* Remove commented styles

* Remove commented code

* Remove unneeded padding

* Remove unused i81n

* Display messages with input-like styling

* InputFile & Messages overrides

* Adjust input margins (non-flex)

* Center icon

* Adjust labelExtra placement, staking dropdown

* Combine linked lists into one

* Fix developer settings
2019-07-08 22:33:57 +02:00
Amaury Martiny
f4fc0648d8
Upgrade api to use MetadataV6 (#1354)
* Upgrade to latest api

* Add polkadot/keyring

* Rename StorageEtnry
2019-07-03 11:21:02 +02:00
kwingram25
f21de3dd1c
ActionItem component for responding to proposals (#1351)
* ActionItem

* rearrange
2019-07-01 18:00:26 +01:00
Thibaut Sardan
81c89bd78d
Fixes for democracy display (#1353)
* fix chart display

* fix description overflow

* alphabetical ordering and cleanup
2019-06-30 10:42:28 +02:00
Thibaut Sardan
b2f6d87de1
Use empty props from CardGrid (#1304)
* empty for account, addressbook

* staking empty screen

* use multi only when values changed

* lint

* withCall paramPick transform

* use paramPick and log things

* swap logging

* Display getMethod errors in withCall

* Remove nested try

* Use updateDb to trigger an update

* fix bonding

* Revert ifs

* Update call.tsx

* lint

* stray logs
2019-06-29 10:02:58 +02:00
Jaco Greeff
431f219709 Create account cleanups (#1340)
* Creqate account cleanups

* No need for noop
2019-06-27 10:14:52 +02:00
kwingram25
b74755bbaa
Treasury app (#1324)
* treasury app

* fixes

* more fixes

* treasury app

* fixes

* more fixes

* fixes + collections

* force travis
2019-06-25 15:20:53 +01:00
Jaco Greeff
f9a28fc6ea Remove all tags on create dialogs (#1348) 2019-06-25 15:15:08 +01:00
Jaco Greeff
e7dbb1a0ca
Use getDerivedState for Chart (and kick the can...) (#1320)
* Use getDerivedState for Chart (and kick the can...)

* Update Doughnut.tsx

* Update HorizBar.tsx
2019-06-21 17:31:12 +02:00
Jaco Greeff
479d5bb8bf
ui-keyring & api updates (#1326)
* ui-keyring & api updates

* Rewrite yarn.lock (pin @types/styled-components)
2019-06-21 16:44:55 +02:00
Jaco Greeff
31a78cef00
Fix extrinsics app [object Object] (#1319) 2019-06-19 21:33:41 +02:00
Jaco Greeff
9295fb060f
Horizontal bar layout for referendum results (#1317)
* Initial stab, gremlins remain

* It is ok.
2019-06-19 18:15:53 +02:00
Jaco Greeff
b497f5599a
Seconding modal (#1313)
* Seconding modal

* Add voting modal, adjust button placement
2019-06-19 15:56:53 +02:00
Jaco Greeff
53339e5f1b
Democracy layout changes (#1309)
* Democracy layout changes

* Select democarcy.propose as default

* Revert default, blonde moment

* Remove min-height for ui--Card

* Extract Item styles

* Extract all styles into styled-components

* lint hack

* Update Row.tsx

* Update Address.tsx

* Small layout cleanups
2019-06-19 13:13:48 +02:00
Jaco Greeff
51e188d4f6
Filter modules (query & storage) without methods (#1311) 2019-06-19 08:25:50 +02:00
Thibaut Sardan
096b3fa944
CSS fixes (#1300)
* colum for accounts

* wrapping trick for chrome
2019-06-17 20:51:31 +08:00
Jaco Greeff
957e210043
Default proposal/sudo for new 2.x substrate (#1296) 2019-06-16 07:10:59 +02:00
Thibaut Sardan
6749d694cc Use AddressCard (#1295)
* use addressCard

* alphabetical
2019-06-15 12:29:45 +02:00
Jaco Greeff
28c5a83809
Bump API (new api-contreacts, new typings) (#1297) 2019-06-15 11:55:38 +02:00
Thibaut Sardan
c9c88c3bff
Fix nits from previous PRs (#1292)
* spacer

* address in lower case

* bring back names in staking overview

* lint

* uppercase only for names

* remove type in AddressCard

* same fix for council members

* reflect selection in setRewardDestination

* nowrap on edit and copy icons

* nit comment
2019-06-14 18:20:55 +08:00
Jaco Greeff
6440e3baaa
Bump deps (change use as required) (#1293)
* Bump deps (change use as required)

* Bump api with send fix
2019-06-13 20:19:15 +02:00
Thibaut Sardan
d868adae88 Redo staking process and overview (#1268)
* remove filtering on actions tab

* remove unused balances on actions

* remove unused balances on actions

* only show stash

* show stashed including validators and nominators

* some buttons

* new stake button

* bond edit init

* BondEdit button

* combined session and validating button

* remove comments

* remove css hack

* phrasing

* validator prefs

* can edit validator prefs

* fix validatorPrefs undifined and nits

* validate unstakeThreshold (<11)

* with setting button noautoclose

* fix nominee styling

* change session and process feeling

* lint

* change nominees without defaultValue

* display and change reward destination

* change controller

* add balances on bond and unbond

* available balance, setting button right, nameOrAddress

* back to the old flow with set session key, cleanup logs

* balance off on chrome

* fix comments + a design hickup on chrome

* fix conflicts

* nits

* Various small UI fixes

* Types for getAddress defaults

* use name

* type props for Row

* lint
2019-06-13 06:04:01 +02:00
Jaco Greeff
db4d7441d9
Various small UI fixes (incl. AddressMini names) (#1291)
* Various small UI fixes

* Types for getAddress defaults
2019-06-13 06:03:33 +02:00
kwingram25
4b7987ae1c
New contracts app (#1283)
* new contracts app

* new contracts app

* test ci fix

* fixes

* fixes

* remove abi inline

* css code card

* icon buttons

* fixes

* fixes cont.

* travis ci fixed

* api version
2019-06-12 13:52:53 +02:00
Jaco Greeff
43aaacf40e
Extract (some) explorer styling (#1286)
* Bump deps

* Extract explorer (some) styling

* Bump deps

* Bump deps
2019-06-09 07:50:13 +02:00
Jaco Greeff
227686439d
Adjust AddressRow-buttons right margin (#1284) 2019-06-07 08:14:16 +02:00
Thibaut Sardan
638c91fb12 Fix AddressRow cut (#1280)
* nowrap

* lower level
2019-06-05 22:10:04 +02:00
Jaco Greeff
8123602356
Remove absolute from RecentlyOffline (#1276)
* Remove absolute from RecentlyOffline

* Remove extra/unneeded offline query

* Remove unneeded guard
2019-06-05 10:19:32 +02:00
Jaco Greeff
63c3f8fa8d
Use toggle for custom endpoint (#1274) 2019-06-04 18:01:56 +02:00
Jaco Greeff
7d453c73d5
Flex AddressRow on header & buttons (#1270)
* Flex AddressRow on header & buttons

* Max-width, extra spacers for mult-columns

* 0.5rem adjustment to link padding
2019-06-04 14:33:26 +02:00
Jaco Greeff
434b7bb6e9
Add AddressCard (#1269)
* Add AddressCard

* Simplify AddressCard rendering
2019-06-04 13:30:49 +02:00
Jaco Greeff
facf34cc2f
Additional syled-component conversions (#1265)
* Additional syled-component conversions

* Small updates

* Providers to index

* Cleanup linting
2019-06-04 13:30:16 +02:00
Jaco Greeff
ba6b0c6df7
Basic council overview (#1267)
* Cleanup styles for staking

* Basic council members list

* AddressRow adjustments

* Less-spacy rows

* Adjust after merge

* Move accounts to first tranch

* s/council/members/

* Update CardGrid.tsx

* Remove any on styled props

* Small readability tweak
2019-06-04 10:04:14 +02:00