Commit Graph

136 Commits

Author SHA1 Message Date
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
Thibaut Sardan
096b3fa944
CSS fixes (#1300)
* colum for accounts

* wrapping trick for chrome
2019-06-17 20:51:31 +08:00
Thibaut Sardan
6749d694cc Use AddressCard (#1295)
* use addressCard

* alphabetical
2019-06-15 12:29:45 +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
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
269c966e46
Fix AddressMini padding on staking (#1285) 2019-06-07 09:38:00 +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
434b7bb6e9
Add AddressCard (#1269)
* Add AddressCard

* Simplify AddressCard rendering
2019-06-04 13:30:49 +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
Jaco Greeff
f887f68cfb
Combine AddressSummary & Row (#1260)
* Combine AddressSummary & Row

* Cleanup address rendering

* Tiny tags cleanups

* Remove unused ui--AddressSummary overrides

* Column component

* Columar

* Cleanups

* Remove hot client

* Backport data padding
2019-06-02 10:13:38 +02:00
Jaco Greeff
6ef01c0024
Render AddressRow balances from AddressInfo (#1259)
* Render AddressRow balances from AddressInfo

* Extract BalanceActiveType

* Filtering around AddressSummary children
2019-06-01 08:36:28 +02:00
Jaco Greeff
7564c51248
Bumps, minor style adjustments (labels) (#1226)
* Bumps, minor style adjustments (labels)

* Remove unneeded flags to AddressRow

* Labels to React.ReactNode

* Rewrite yarn.lock

* Unneeded override
2019-05-29 09:32:33 +02:00
Jaco Greeff
4e4e9514e5
Swap accounts/addresses/staking to CardGrid & Card layout (#1225)
* Swap accounts/addresses to CardGrid & Card layout

* Staking to CardGrid layout

* Staking styling adjustments

* Edit inputs left align
2019-05-28 10:59:15 +02:00
Jaco Greeff
c64f3c905a
Small adjustments on staking & mini labels (#1222)
* Small adjustments on staking & mini labels

* Formatting
2019-05-27 22:00:01 +02:00
Jaco Greeff
0c5f76f2ad
Add available balances to transfer modal (#1210)
* Add available balances to transfer modal

* Hide transfer modal

* Fix editing bug

* ... don't hide... yet

* liniting

* Fix broken address search

* Adjust labels (there is space)

* Adjust padding for fees

* Convert fee calculations in transfer app

* Hide all secondary buttons (non-hover)

* Re-apply row padding fix

* ui-reactive labels

* balance -> total

* label, string -> React.ReactNode

* Redeem shows

* Incorporate help messages

* Move transfer

* default AddressSummary size, 64

* Swap to AddressRow... everywhere

* AccountInfo (and use in staking/accounts)

* Modal tweaks

* De-emphasise extrinsic inherent

* Align class name with filename

* Hide AddressInfo (?)'s (for now)

* onEnter saves, closes (name)
2019-05-27 10:20:44 +02:00
kwingram25
dc943d7cd6
Button/TxButton submit on enter (#1170)
* Button/TxButton submit on enter

* promise linting

* testing ref approach

* Add TxComponent to handle submit on enter

* remove accountNonce

* remove input ref

* remove TxButton constructor

* remove comment

* empty constructor

* linting

* bug with null ref

* linting
2019-05-22 18:08:58 +02:00
Thibaut Sardan
797c12be3c
Account overview (#1163)
* starting point

* show all accounts

* edit and save a name but remains ugly

* actually don't use deriveStateFromProps

* fix AdressRow

* indentation

* upperCase

* bring back the index

* trim input

* change edition l&f

* lint

* cater for small screens

* address comments

* lint and alphabetical order

* allow viewing and editing tags

* better UX when tag editing and styling for no tags

* nonce refactoring and show balances

* crypto type

* styling balances

* use css grid

* fix address row and creator

* with buttons

* button styling

* locked tooltip

* edit button always visible

* nits cleanup

* lint

* address comments

* try to prevent jump on editing

* no jump when no tags

* tweak for tag jump

* forgot the useless spacer

* align AddressSummary childre top right

* fix key warning and nits

* CSS stuff to align things

* Fix merge gone wrong
2019-05-22 15:38:44 +02:00
Thibaut Sardan
791226a2c2 convert and fix alphabetical order on the fly (#1186) 2019-05-22 14:56:42 +02:00
Jaco Greeff
a86f8231d5
Convert to new api.derive (multi-query) functions (#1173)
* Convert to new api.derive functions

* Ensure stashId passed-through

* Bump api

* Update validation details

* Lint fixes

* Bump API

* Drop linked nominator query
2019-05-17 18:08:26 +02:00
Jaco Greeff
7887f56336
Add isMulti param for withCall (#1090) 2019-05-15 16:11:26 +02:00
kwingram25
3e7683b2c0 remove console (#1158) 2019-05-13 17:35:22 +02:00
kwingram25
ec7d5a1c5f
Add maximum balance button to app-transfer and app-staking (#1076)
* Add maximum balance button to app-transfer and app-staking

* Promise handling

* cleanup

* Use balances.all for max transfer amount

* update max amts with balances.all

* travis ci

* fixes

* merge
2019-05-13 16:49:55 +02:00
Jaco Greeff
41b426c982
Only show own accounts in controller selection (#1156) 2019-05-13 16:34:27 +02:00
Jaco Greeff
904b07005a
Rework account & address modals (#1143)
* Modal styling

* Update account forgetting

* Swap name prop to AddressRow/Summary to defaultName

* typo

* Backup modal

* Don't allow edit on isTesting accounts

* ChangePassword modal update

* Label help on password labels

* typo

* Create & backup dialog

* Addressbook forget

* Update packages/app-accounts/src/modals/Forgetting.tsx

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

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

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

* Update packages/app-accounts/src/modals/Backup.tsx

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

* Update packages/app-accounts/src/modals/Backup.tsx

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

* Update packages/app-address-book/src/Forgetting.tsx

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

* Update packages/app-address-book/src/Forgetting.tsx

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

* Update packages/app-accounts/src/modals/ChangePass.tsx

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

* Update packages/app-accounts/src/modals/Backup.tsx

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

* Update packages/app-accounts/src/modals/Forgetting.tsx

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
2019-05-13 15:59:04 +02:00
Jaco Greeff
fbbe56e0bd
Only allow ed25519 session keys in modal (#1132)
* Only allow ed25519 session keys

* Add session === stash warnings
2019-05-13 10:44:34 +02:00
Jaco Greeff
c970ecbc35
InputAddress should handle defaultValue of U8a (#1136)
* InputAddress should handle defaultValue of U8a

* Linting, my old friend
2019-05-10 18:28:56 +02:00
Jaco Greeff
5c21396c33
Turn bond controller selection into non-submit errors (#1130)
* Turn bond controller selection into non-submit errors

* Update ValidateController.tsx

* controllerError incorporates valid controller check
2019-05-10 18:28:25 +02:00
Jaco Greeff
1447a00702
Bump common & API (#1116)
* Bump common & API

* Cater for removed stakingBalance

* typo

* util bump

* derive fix from API
2019-05-09 20:35:31 +02:00
Thibaut Sardan
4d39523daf Allow to withdrawUnbonded + additional info (#1070)
* skeleton for Available and Unlocking

* available (with bug) and unlocking balance

* implement available according to the rust code

* lint

* unlock modal components

* use tx button directly instead of useless modal withdrawUnbonded

* use BN and move max to util

* Sum unlockables

* show unlockableSum and refactor

* add unlockable button

* lint

* smaller padding around unlock button

* cleanup and address comment

* use labels directly instead of passing in props

* function ordering and make private

* fixme for vesting, function ordering

* css in components

* lint
2019-05-08 11:06:54 +02:00
Luke Schoen
653fd09d2b misc: Minor issues found whilst working on #1001 (#1095)
* misc: Minor issues found whilst working on #1001

* restore no newline
2019-05-07 10:00:12 +02:00
kwingram25
2c9235e19f account actions layout (#1094) 2019-05-07 09:59:49 +02:00
Jaco Greeff
512192cf22
Align staking capitalization with other apps (#1091) 2019-05-07 09:59:06 +02:00
Daniel Yamuza
604b1ae8ba Fixed my nominations filter (#1080) (#1085) 2019-05-06 14:26:50 +02:00
Jaco Greeff
462c501dc2
Tweak block staking icon display (#1065) 2019-05-02 13:54:34 +02:00
Jaco Greeff
dec64403c6
Consistent staking filter placement (#1064) 2019-05-02 13:37:51 +02:00
Thibaut Sardan
21f76ca0ac
Add unbond button (#1057)
* don't show 'Bond additionnal' if the stash already bond everything it could

* add unbound button

* clean up

* clean up bis

* linting

* add comments + some more cleanup

* add group active and total

* refactor the isOpen props for all modals

* conditionnaly call the renderer

* revert isOpen changes

* add comment regarding the modal loading choice
2019-05-01 17:44:50 +02:00
Jaco Greeff
16972eeafa
Adjust AddressMini layout (#1054) 2019-04-30 17:59:59 +02:00
kwingram25
95a3690c35 Replace withCall -> withCalls (#1021)
* Wiki link

* replace withCall => withCalls

* rv wiki

* fix typing errors -> withMulti

* Fix typing errors

* callOnResult
2019-04-30 16:28:44 +02:00
Thibaut Sardan
c898427d27
add proper check (#1048) 2019-04-26 17:49:19 +02:00
Daniel Yamuza
020c0b1322 Added a simple filter to the staking overview (#971) . (#1039)
* Added a simple filter to the staking overview (#971) .

* Linting, code cleaning

* Corrected the help text
2019-04-26 07:38:09 +02:00
Jaco Greeff
b63583168b
Use staking.stakers to pull nominators (#999)
* Use staking.stakers to pull nominators

* Render own + other values
2019-04-12 19:11:58 +02:00
Jaco Greeff
e6d46f9922
Fix staking buttons to immediately show (#998)
* Fix staking buttons to immediately show

* Move back to params as a name, cleanup danglings
2019-04-12 18:05:14 +02:00
Jaco Greeff
70e2f3f537
Hide Nominators(0) (#970) 2019-04-11 16:22:26 +02:00
Jaco Greeff
d73452b865
Basic filters for staking accounts (#965)
* Basic filters for staking accounts

* Extract address getter, display names consistently

* Center last block
2019-04-11 14:35:34 +02:00
Jaco Greeff
e20933e68e
Additional set controller checks (#963)
* Cleanup naming (contreoller, stashes)

* Warning for controllers & stashes

* Linting

* Adjust popup to align with react-tooltip colors
2019-04-11 12:39:31 +02:00
kwingram25
fa8e13c562 add last block to staking overview, reposition warning (#959) 2019-04-11 08:30:03 +02:00
kwingram25
51e71dc3ac RecentlyOffline added to Account Actions (#929)
* RecentlyOffline added to Account Actions

* travis-ci

* relocate recentlyOffline state

* comma

* comma
2019-04-10 10:55:14 +02:00