Commit Graph

233 Commits

Author SHA1 Message Date
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
Jaco Greeff
92a0967ed9
Move Chart to styled-components (#1098) 2019-05-07 15:40:05 +02:00
Jaco Greeff
f461c84642
Small contracts fixes & adjustments (#1092)
* Adjust code deploy redirection (w & wo contracts)

* Allow contract call with 0 value

* TxButton to calculate all on click

* Stray logging
2019-05-07 10:00:53 +02:00
Jaco Greeff
48e01bda50
Simple slide in help overlay (#1075)
* Simple slide in help overlay

* Indent
2019-05-07 09:58:12 +02:00
Jaco Greeff
f20defddfd Adjust offline icon placement (#1088) 2019-05-06 12:10:36 +02:00
Luke Schoen
edce456d15 refactor: Relates to #1060. Consistent top padding across apps (#1077)
* refactor: Relates to #1060. Remove min-height and padding-top from CardSummary for consistent top padding

* fix: Increase top padding across apps

* feat: Add shorter height on mobile devices

* review-fix: Reduce margin between tab items and contents
2019-05-03 18:08:39 +02:00
Luke Schoen
029224530f fix: Fixes #1071. Consistent vertical alignment of tab menu items across apps (#1072) 2019-05-03 11:37:33 +02:00
Jaco Greeff
62e8e18421 TxButton should not calc. on disabled (#1067) 2019-05-03 02:07:56 -07:00
Jaco Greeff
dec64403c6
Consistent staking filter placement (#1064) 2019-05-02 13:37:51 +02:00
kwingram25
1179b66190 Keep number input value on unit change (#1062) 2019-05-02 11:11:34 +02:00
kwingram25
6435293ff4 Refactor TxButton and expand use (#1023)
* Refactor TxButton and expand use

* Set button to loading while broadcasting

* Travis CI

* add extrinsic prop, req changes

* restore loading indicator
2019-05-02 10:25:51 +02:00
Jaco Greeff
16972eeafa
Adjust AddressMini layout (#1054) 2019-04-30 17:59:59 +02:00
Jaco Greeff
3be42a74be
Adjust summary labels min height (#1056) 2019-04-30 16:43:57 +02:00
kwingram25
0c7f1b8924 Sudo app added (#1036)
* sudo app start

* finish sudo app

* console

* split into two tabs, sidebar filtering

* unused SubjectInfo

* Attempt to get sanity into yarn.lock

* Add actual needsSudo to sudo route
2019-04-30 15:52:37 +02:00
Luke Schoen
1ff70781e0 Refactor nitpicks in app-js (#1052)
* chore: nitpicks

* remove console.logs
2019-04-30 15:22:50 +02:00
Daniel Yamuza
ceba73832e Tooltip component, a react-tooltip wrapper (#938) (#1050)
* Added Tooltip component to Apps-UI a react-tooltip Wrapper (#938)

* Made the trigger prop mandatory to enforce the usage of different ids over controlled triggers, removed some unneeded blank lines
2019-04-30 11:39:58 +02:00
Thibaut Sardan
345cd06539 Add help on critical apps (#1030)
* add help on account app

* add help on addresses app

* add help on transfer app

* typos

* add help for voting app

* add help slidein for accounts

* correction session needs to be ed25519

* add transfer and address book

* add democracy and fix typo

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

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

* Apply suggestions from code review

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

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

* use both DOTs and Units, move crypto to help, fix typo
2019-04-29 17:13:17 +02:00
Thibaut Sardan
1b9b07bdac
Make sure labels aren't over help-hover (#1027) 2019-04-17 14:41:40 +01: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
a2f46dd551
Responsive labels (#995)
* Responsive labels

* Closing

* Update media.ts

* Remove errant log
2019-04-12 14:51:29 +02:00
Jaco Greeff
7b04762b87
Adjust (?) margin (#994) 2019-04-12 14:26:11 +02:00
Jaco Greeff
d9d6364a1e
Adjust extrinsic hash formatting (#992) 2019-04-12 12:52:48 +02:00
Jaco Greeff
707ae0b696
Validate codehash (with wasm), address (with code) & wasm header (#991)
* Validate codehash (with wasm), address (with code) & wasm header

* Typo
2019-04-12 12:50:58 +02:00
Jaco Greeff
a81fafef0d
Label icon -> middle (#990) 2019-04-12 09:54:26 +02:00
Jaco Greeff
db21bb51e9
Align labels to the top (#989)
* Align labels to the top

* Oops.

* Another oops. (last 2 related, unsaved edits...)

* Small CSS adjustments (misc.)
2019-04-12 00:01:58 +02:00