Commit Graph

258 Commits

Author SHA1 Message Date
Jaco Greeff
783ca2c5c0
Some small -> styled-components conversions (#1262)
* Combine AddressSummary & Row

* Cleanup address rendering

* Tiny tags cleanups

* Remove unused ui--AddressSummary overrides

* Column component

* Columar

* Cleanups

* Remove hot client

* Backport data padding

* Some small -> styled-components conversions

* Move RecebtlyOffline styles

* Cleanups
2019-06-02 16:29:29 +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
Bhanu Teja P
a986ca8285 Display extrinsic meta documentation on hover (#1247)
* add help to Extrinsic component

* chain state documentation

* requested changes
2019-05-31 16:11:48 +02:00
Thibaut Sardan
9e0bc06124
Hide search and filter on small screens (#1253)
* hide search and filter on small screens

* lint that vscode doesnt show
2019-05-31 14:40:47 +02:00
Thibaut Sardan
9c3b497608
unlocking -> unbonding (#1252)
* unlocking -> unbonding

* only show bonded on stash
2019-05-31 14:39:57 +02:00
Jaco Greeff
334b2db472
Revert .gtn(-1), update api (#1244)
* Revert .gtn(-1), update api

* Signer header (minor)

* Bump to current deps
2019-05-30 18:07:42 +02:00
Jaco Greeff
d8661ee630
SingleSource accounts & signer compat (#1242)
* SingleSource accounts & signer compat

* Display injected for extensions

* Move start callback (start of tx)

* Bump to current deps
2019-05-30 18:06:43 +02:00
Jaco Greeff
90925fe648
External links from blocks/addresses/extrinsics to polkascan (#1230)
* External links from blocks/addresses to polkascan

* Ok, I give up... abs again :(

* Add extrinsic links
2019-05-30 17:58:24 +02:00
Thibaut Sardan
e88e435dde Use derive staking info (#1239)
* use derive.staking.info

* tooltip on button & remove unlock comp

* merge master fix

* duplicate Bonded

* translation and lint

* comments
2019-05-30 11:27:43 +02:00
Jaco Greeff
9cce0426e3
Only render positive numbers (#1241)
* Only render postive numbers

* Don't render 5xxxx address
2019-05-30 08:20:15 +02:00
Jaco Greeff
23cf0e2bf6
Bump deps, TS 3.5.1 (#1240) 2019-05-29 23:55:11 +02:00
Jaco Greeff
ac731b4f5d
Some minor card styling changes (#1229)
* Some minor card styling changes

* Adjust shadow on hover

* Remove shadow

* cursor: pointer for details
2019-05-29 10:05:17 +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
bfaa44d285
Only display extrinsic hash on block info (#1227) 2019-05-28 16:55:14 +02:00
Jaco Greeff
734b12e6b6 Move button hide to Card styling 2019-05-28 11:45:31 +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
0eb050c430
Swap Addresses to grid layout (as in accounts) (#1224)
* Swap Addresses to grid layout (as in accounts)

* Failsafe in cryptotype

* Edit works. Needs to be made generic.

* Address overview + create dialog
2019-05-28 07:25:49 +02:00
Jaco Greeff
5b5ab129d3
Turn SideBar transfer into modal link (#1217)
* Turn SideBar transfer into modal link

* ui--RecentlyOffline badge location
2019-05-27 22:24:59 +02:00
Jaco Greeff
f76f1ab594
Account/Address create modals (#1221)
* Account/Address create modals

* Spacing

* Account Create modal (& use by vanity)

* Account Create & Import wired in
2019-05-27 22:09:36 +02:00
Jaco Greeff
83c3f115fd
Render AddressInfo directly from balances.all (#1220)
* Render AddressInfo directly from balances.all

* lint

* Bumps (linting fixes)
2019-05-27 21:23:25 +02:00
Jaco Greeff
c41321e30a
Swap AddressSummary for AddressRow (#1212)
* Swap AddressSummary for AddressRow

* Update name/address on change

* Move AddressRow to right
2019-05-27 12:40:22 +02:00
Jaco Greeff
5896ba0454
Move balances description to accounts help (#1216)
* Move balances description to accounts help

* Update packages/app-accounts/src/md/basic.md

Co-Authored-By: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
2019-05-27 12:22:41 +02:00
Thibaut Sardan
e905208f0d
cater for empty unlockings and margin on icon (#1215) 2019-05-27 11:18:21 +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
Jaco Greeff
c786d7f199
Tiny copy button (same as edit, full-row action) (#1211) 2019-05-27 07:35:02 +02:00
Jaco Greeff
9d5188cea2
Pull in @polkadot/extension-dapp (#1207)
* Pull in @polkadot/extension-dapp

* State updates via callback

* Remove extra : tags

* Small formatting cleanups
2019-05-24 15:11:51 +02:00
Thibaut Sardan
fc59f53869
Send button on account (#1193)
* 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

* init

* fix conflicts

* transfer functionnality

* styling the modal

* clean up

* clean up bis

* Transfer dialog enhancements (#1196)

* 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

* [CI Skip]  0.33.0-beta.74

* Redirect correctly when user has no account (#1191)

* right link and hide tabs plus buttons primary

* fix comments

* create highlight

* [CI Skip]  0.33.0-beta.75

* Mark ExtrinsicFailed as error (#1190)

* Hide edit on injected accounts, Button w/ tooltip (#1192)

* Hide edit on injected accounts, Button w/ tooltip

* Don't display "add tags" when not isEditable

* Indentation

* [CI Skip]  0.33.0-beta.76

* Make enable() call to extensions (#1194)

* Make enable() call to extensions

* It works

* Add overlay for injected (prompt)

* Use signer from injectedPromise

* [CI Skip]  0.33.0-beta.77

* withInjected -> PureComponent (fix new refs) (#1195)

* withInjected -> PureComponent (fix new refs)

* Consume data from context

* Expand injected

* Close modal on tx start

* align fees

* remove blank lines
2019-05-24 13:03:54 +02:00
Bhanu Teja P
f9501aa068 Trim details to the summary, expand shows all (#1197)
* trim details using ellipsis

* fix css

* move styles to global stylesheet

* outline to none
2019-05-24 11:37:11 +02:00
Jaco Greeff
687c7121e1
Don't display errors on Input with isDisabled (#1189) 2019-05-23 15:12:45 +02:00
Jaco Greeff
9426ec9c31
Hide edit on injected accounts, Button w/ tooltip (#1192)
* Hide edit on injected accounts, Button w/ tooltip

* Don't display "add tags" when not isEditable

* Indentation
2019-05-22 22:01:55 +02:00
Jaco Greeff
c77c0e63ac
Mark ExtrinsicFailed as error (#1190) 2019-05-22 21:44:30 +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
Jaco Greeff
846cf56528
Re-add CopyButton on AddressSummary (#1180) 2019-05-21 12:08:27 +02:00
Jaco Greeff
7a8d868272
Render KV Array with non-overlapping keys (#1154) 2019-05-20 14:33:06 +02:00
Jaco Greeff
5ce23a57c6
Bump API, metadata, new multi & derive, Extinsic/Method (#1172) 2019-05-16 16:15:03 +02:00
Jaco Greeff
5f0c9543d6
Don't set isValid on isDiabled (InputNumber) (#1152) 2019-05-14 17:19:17 +02:00
Jaco Greeff
2596c3c940
Style cleanups (styled & unused) (#1151) 2019-05-14 11:04:49 +02:00
Jaco Greeff
89e77120a7
Allow tags in Account/Address edit (#1142)
* Start of tag input

* Add tags to account edit

* Don't allow edits/tags on dev accounts

* Add tags to address book

* Update description

* Add tags as part of address & account creation

* Linting
2019-05-13 18:01:08 +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
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
0681375865
Explorer query updates (#1127) 2019-05-10 19:52:07 +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
08e659aea5
Rework inherent submission (#1123) 2019-05-10 14:03:51 +02:00
Thibaut Sardan
f4c9303994 Refactor Available to use the new derive.balances.all (#1125)
* remove max and refactor Available

* api uery on one line
2019-05-10 13:49:14 +02:00
Emilio Silva Schlenker
2c9e64ab99 [#943] Make hash/number query available globally to explorer (#1111)
Updated with comments from @jacogr
2019-05-10 12:46:57 +02:00
Jaco Greeff
0a05e1d367
Keyring case for recents (#1107) 2019-05-08 17:45:04 +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
Jaco Greeff
8f065cddd0
Cleanup status display with address (#1097) 2019-05-08 10:20:15 +02:00