Commit Graph

28 Commits

Author SHA1 Message Date
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
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
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
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
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
Thibaut Sardan
6649c167ac
Group unlocking by era (#1138)
* group unlocking by era

* use reduce

* better names and optimization

* lint

* interpolation

* use an object instead of Map

* empty line before result

* lint.. we'll get there

* address comments
2019-05-11 19:33:43 +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
kwingram25
dd245ce5db Add total issuance summary card (#1086)
* Add total issuance summary card

* Remove unit from TotalInsurance formatting
2019-05-08 11:59:09 +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
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
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
Amaury Martiny
b40ae36f6c
Allow exports of dumb components (#953)
* Dumb exports ui-reactive

* Dumb exports ui-signer/Checks
2019-04-10 19:00:36 +02:00
kwingram25
56aef9398b Add BondedRx component & display bonded value, refactor RecentlyOffline (#923)
* recently offline on own accounts

* wip bonded display

* RxBonded component

* travis-ci

* import mistake

* redo

* RRemove balance (overview) & index (accounts)

* Remove session.validators

* Re-add displaying only the last offline block

* Small setState cleanup (+ State in generic)
2019-04-08 14:01:20 +02:00
Jaco Greeff
def0506e1d
formatting utils from @polkadot/util (#878) 2019-04-02 15:12:58 +02:00
Jaco Greeff
27689e8816
ss58 & US language updates (substrate 1.0-rc) (#871)
* ss58 & US language updates

* All Finalised -> Finalized

* Remove unused status

* 0.28

* 0.28
2019-03-29 18:26:18 +01:00
Jaco Greeff
1387a34c1d Adjust support with Option<Moment> 2019-03-29 12:35:22 +01:00
Jaco Greeff
b64b1226c4
Support new blockPeriod (#868)
* Update `timestamp_blockPeriod` to `timestamp_minimumPeriod`

* Support both old and new
2019-03-28 20:21:47 +01:00
Jaco Greeff
338bd517a0
Remove /index imports (swap to bare) (#814)
* Remove /index imports (swap to bare)

* Bump deps
2019-03-14 10:45:58 +01:00
Jaco Greeff
03d7865047
Expand https -> ws connection info (#749)
* Expand https -> ws connection info

* Update NodeInfo.tsx

* Update Connecting.tsx

* Remove apps--App (& Content/SideBar flex embedded)
2019-02-22 08:11:08 +01:00
Jaco Greeff
cf23041b85
Pull in @polkadot/ui-util (#724)
* Pull in @polkadot/ui-util

* Pull in @polkadot/ui-util

* Skip tests
2019-02-18 14:45:29 +01:00
Jaco Greeff
f547f8f0b1
Rework labelled layouts (#654)
* Rework labelled layouts

* Adjust storage output display

* Minor adjustments

* Linting cleanups

* Remove unused injected ia8n

* Minor adjustments

* Force Param re-render, fix Nonce params

* Text updates

* Expand Params key
2019-01-27 22:33:29 +01:00
Jaco Greeff
653c2a505f
Basic info display for 123-code (#641)
* Add withCalls

* withCalls operational

* Basic header display & cleanups

* Global account selector for app

* Remove errant debug log

* Simple transfer applet working

* Update Upgrade.tsx

* Update InputNumber.tsx

* Update Transfer.tsx

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

* Good enough for a v1
2019-01-27 12:50:47 +01:00
Jaco Greeff
3061057e30
Bump API, Node info peer id displayed (#630)
* Node info peer id displayed

* Latest API

* Add peer best & countdown to nodeinfo
2019-01-21 12:06:18 +01:00
Jaco Greeff
eb0abb8307
Cleanup api call usage (#617)
* Rename apiPromise -> api

* First attemp at React render component (unused)

* Cleanup api call usage

* Cleanup linting

* Remove render component

* Adjustments on HOC types (& usage)
2019-01-18 23:04:13 +01:00
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