Commit Graph

744 Commits

Author SHA1 Message Date
Jaco Greeff
fd0ceaff0d
Use BN_{BILLION, MILLION} constants (#4577)
* Use BN_{BILLIN, MILLION} constants

* BN_ONE

* Update packages/page-treasury/src/Overview/ProposalCreate.tsx

* Update packages/page-staking/src/Payouts/useStakerPayouts.ts

* Additional

* Update packages/page-democracy/src/Overview/Summary.tsx

* Additional

* Additional

* Re-apply

* Cleanups

* Apply suggestions from code review
2021-02-03 10:59:37 +01:00
MiZiet
072b26b6f2
Adjust the popup's arrow according to the theme (#4583) 2021-02-03 09:18:34 +01:00
Jaco Greeff
85b084b265
Pass registry along with call decoding (#4570)
* Pass registry along with call decoding

* Bump API
2021-02-01 21:35:48 +01:00
Jaco Greeff
59ad14c658
Don't call query (useState via fn) (#4569) 2021-02-01 20:36:55 +01:00
Jaco Greeff
1b43ffa046
Ensure useState doesn't re-init with function calls (#4552)
* Ensure useState doesn't re-init with function calls

* extra

* Additional
2021-02-01 14:17:14 +01:00
Jaco Greeff
3f93ac2af7
Adjust Menu.Divider (only when between items) (#4560)
* Adjust Menu.Divider (only when between items)

* typos
2021-02-01 13:52:15 +01:00
Jhon
916a925cda
added validator/nominator flags (#4546)
* lighter read to make it more readable on dark mode

* added missing themeprops ref

* ran linter

* undo opacity 1 on non red 'other stake' to keep the focus on the whle number'

* ran linter

* isolate opacity change to format balance error text

* updated settings > metadata layout to be more consistent with the rest

* ran linter

* Update packages/page-settings/src/Metadata/Extensions.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* updated ternary condition to get rid of empty string at the end as well as fixed weird indentation on styled components

* added validator flag

* Update packages/react-hooks/src/useAccountInfo.ts

* Update packages/react-hooks/src/useAccountInfo.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-02-01 13:26:08 +01:00
Jaco Greeff
b5731e537a
Inline block for parachain links (#4540)
* Inline block for parachain links

* Cleanups
2021-01-29 21:35:27 +01:00
Jaco Greeff
0196649ce4
Adjust endpoint logos with allowed empty (#4539)
* Adjust endpoint logos with allowed empty

* Displa parachain logos alongside
2021-01-29 16:11:54 +01:00
Jaco Greeff
99ae6ecd8e
Bump API (Kusama upgrade) (#4519) 2021-01-28 12:37:36 +01:00
Ewa Kowalska
ccf44f650b
Bounties - Hide bounty unhappy path actions (#4500) 2021-01-28 10:18:57 +01:00
Jaco Greeff
960f0d6fc9
Allow storage without accounts (#4514) 2021-01-27 15:39:22 +01:00
Jaco Greeff
3eb5cd6270
Ensure InputAddress doesn't return non-filtered (#4473) 2021-01-27 11:46:21 +01:00
Jaco Greeff
2542c017bf
Incremental staking rendering (#4503)
* Incremental staking rendering

* Apply suggestions from code review
2021-01-26 18:30:36 +01:00
Jaco Greeff
3a40a10420
Display extrinsic signature & type (#4489) 2021-01-25 11:08:48 +01:00
Jhon
8be67fc5e1
Identicon and error red shading adjustments for dark theme (#4483)
* lighter read to make it more readable on dark mode

* added missing themeprops ref

* ran linter
2021-01-24 17:50:30 +01:00
Jaco Greeff
0323d96b4c
Row classes overrides for tables (#4472)
* Row classes overrides for tables

* Adjust faint highlight
2021-01-24 12:52:21 +01:00
Jaco Greeff
38b7ebc24c
Format multiple balances w/ properties (#4480)
* Format mutiple balances w/ properties

* Bump API

* Update chainDecimals extraction

* Fox bounties mock API

* Expand rendering

* Bumps
2021-01-23 15:30:37 +01:00
Jaco Greeff
df9c515326
Display all balance instances (#4479) 2021-01-23 09:23:46 +01:00
MiZiet
b09bc9cbc9
Adjust components placement and styling in bounties list (#4460) 2021-01-22 12:06:49 +01:00
Jaco Greeff
dd994a67be
Split parachain proposals (#4423) 2021-01-15 11:07:22 +01:00
Jaco Greeff
d28d9c6941
Add small QR border (#4392)
* Add small QR border

* Missing style...

* Border for networkspecs QR
2021-01-13 15:10:46 +01:00
Jaco Greeff
50544d55d4
Adjust paras proposals media (#4387)
* Media queries on proposals

* Adjust paras proposals media

* Approve button
2021-01-13 12:48:29 +01:00
Jaco Greeff
9a1de6ea5b
Parachain proposal details slider (#4384) 2021-01-13 10:58:51 +01:00
Jaco Greeff
8db595b535
Menu hover adjustments (only background) (#4362) 2021-01-11 12:26:10 +01:00
Jaco Greeff
e577bfbd82
Adjust non-preimage display (#4359) 2021-01-11 07:54:47 +01:00
Jaco Greeff
b577b97809
Fix JS width (dropdown breaking out) (#4357)
* Fix JS width (dropdown breaking out)

* Adjust HelpOverlay
2021-01-10 09:40:58 +01:00
Jaco Greeff
d8b2bab912
Warning & Error with exclamation triangle (#4331)
* Warning & Error with exclamation triangle

* Fix lint

* Apply suggestions from code review
2021-01-10 08:37:51 +01:00
Jaco Greeff
6bb45bcb75
Adjust highlights (#4354) 2021-01-09 14:21:40 +01:00
Jaco Greeff
10ce7a40e8
font-weight: 400 -> theme.fontWeightNormal (#4339)
* font-weight: 400 -> theme.fontWeightNormal

* Less lazy, font-weight: 400 converted
2021-01-09 09:41:13 +01:00
Jaco Greeff
2d1da5332c
Staking fixes (comm, entries) (#4329)
* Staking fixes (comm, entries)

* Flatten
2021-01-06 11:15:19 +01:00
Jaco Greeff
c5bf0de631
Parachains registration (#4318)
* Parachains registration

* Registrar dialog
2021-01-04 14:46:14 +01:00
Jaco Greeff
6dbb188a1a
2021 (#4310) 2021-01-03 11:33:39 +01:00
Jaco Greeff
602bd35977
Remove genericAsset (to be replaced with asset) (#4303) 2020-12-30 18:05:05 +01:00
Jaco Greeff
d548b838a2
Bump deps (w/ cleanups) (#4301) 2020-12-30 12:49:01 +01:00
Jaco Greeff
248b9ba319
Fix InputAddress (#4297) 2020-12-29 19:40:15 +01:00
Jaco Greeff
a44e1b7d08
Fix dark theme multi address background (#4293) 2020-12-29 16:40:27 +01:00
Jaco Greeff
ec56e100a6
0.73 (#4274)
* 0.73

* Typing
2020-12-28 14:37:31 +01:00
Jaco Greeff
5830e5eab6
Pass explicit function through to TxButton tx prop (#4251)
* Pass explicit function through to TxButton tx prop

* Updates

* Claim adjust

* Allow null on tx

* Adjust

* Apply suggestions from code review

* Adjustments after merge
2020-12-24 10:01:42 +01:00
Jaco Greeff
93b38ece21
Cleanup WebPack (#4258)
* Remove unused WP5 override

* Adjust

* Additional imports

* Adjust
2020-12-21 13:15:40 +01:00
Jaco Greeff
b22f61347e
Remove unused TxModal components (#4250)
* Remove unused TxModal components

* Cleanups
2020-12-20 17:50:06 +01:00
Jaco Greeff
964995ea1a
Adjust sui imports (non-cjs) (#4245) 2020-12-19 19:12:09 +01:00
Jaco Greeff
582d0a18cc
Warn on non-atomic batches (#4242) 2020-12-19 16:46:29 +01:00
Jaco Greeff
7d071d147d
Remove global registry imports (only use on api) (#4218)
* Remove global registry imports (only use on api)

* Additional

* QR only displayed when valid

* ApiSigner
2020-12-17 11:18:34 +01:00
Jaco Greeff
1cf7b5e629
Allow InputAddress with no options (#4227)
* Allow InputAddress with no options

* Update packages/react-params/src/Param/index.tsx
2020-12-17 11:07:08 +01:00
iiiiiiii
a55579dd97
fix tooltip z-index (#4222) 2020-12-16 09:22:46 +01:00
Jaco Greeff
fe31bc522d
Sharing of user types (#4210)
* Sharing of user types

* url encoding/decoding

* assert non-array

* Developer page URL encoding

* Cleanup saving/loading encoding

* Move fflate

* CopyButton
2020-12-15 10:54:40 +01:00
Jaco Greeff
48a3127ba8
Display error.message || error (when string is thrown) (#4197)
* Display error.message || error (when string is thrown)

* Update packages/react-signer/src/TxSigned.tsx
2020-12-12 10:19:41 +01:00
Jaco Greeff
c1c87d2aeb
Internal deps bumps (#4194)
* Internal deps bumps

* acala
2020-12-11 12:47:59 +01:00
MiZiet
7ed65ebf7b
Add max-width to content (#4170)
* Add max-width to content

* Add padding to content and change Query position

* Add max-width constants

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-09 15:42:58 +01:00
Jaco Greeff
cfea8723a5
Bump deps (#4181)
* Bump deps

* Additional
2020-12-09 14:15:59 +01:00
Jaco Greeff
2e6cbe8f7c
Ensure bad judgement has the highest priority (#4178) 2020-12-08 21:36:54 +01:00
Jaco Greeff
e4fc6b7aea
Move moonbeam/sora RPCs to bundle-only (#4174)
* Move moonbeam/sora RPCs to bundle-only

* Update packages/react-components/src/InputRpc/useRpcs.ts
2020-12-08 16:38:01 +01:00
Jaco Greeff
58c27ed919
Bumpi API (bounty derives, typesBundle rpcs) (#4173)
* Bumpi API (bounty derives, typesBundle rpcs)

* linting
2020-12-08 16:09:56 +01:00
Jaco Greeff
fef4479fd6
Bump dev (import plugin in base) (#4169) 2020-12-07 17:14:33 +01:00
Ewa Kowalska
541213f233
Ek extract type only imports into separate group (#4168)
* Plug new beta of eslint plugin simple import sort

* Apply new configuration to existing imports
2020-12-07 16:04:05 +01:00
Jaco Greeff
864687d0a3
Adjust Tooltip formatting for consistency (#4167) 2020-12-07 13:33:20 +01:00
Jaco Greeff
f86cc1a689
Small target opts (incl. non-selected sorting) (#4159)
* Small target opts (incl. non-selected sorting)

* Remove last dangling validatorPayment
2020-12-04 16:21:50 +01:00
Jaco Greeff
81bce1e4f7
Fix HelpOverlay background for dark (#4156) 2020-12-04 09:03:22 +01:00
Jaco Greeff
a74ff3ccad
Output className, remove extra } (#4132) 2020-12-01 16:49:01 +01:00
Ewa Kowalska
87505b1c59
Eslint imports (#4037)
* Add eslint configuration

* Patch eslint plugin for sorting imports

* Apply eslint rules for imports
2020-12-01 14:40:42 +01:00
Jaco Greeff
78b3680f3c
Rework with useNominations (incl. loading indicators) (#4128) 2020-12-01 13:13:47 +01:00
Jaco Greeff
ee25db733d
Remove classes utility (#4106)
* Remove classes utility

* Update packages/react-components/src/InputNumber.tsx
2020-11-30 16:01:37 +01:00
Jaco Greeff
e6d3c61176
Use type imports from @polkadot/types/interfaces (#4103)
* Move chain params to apps-config

* Use type imports from @polkadot/types/interfaces
2020-11-29 19:03:06 +01:00
Jaco Greeff
366c8804d0
Cleanup targets pre-filtering on sort (#4098) 2020-11-29 12:56:13 +01:00
Jaco Greeff
c9d9b5022d
Bump API (#4088) 2020-11-28 14:29:12 +01:00
Jaco Greeff
b9113f7375
Fix RPC params change (#4083) 2020-11-26 14:11:21 +01:00
Jaco Greeff
c70f82807e
Trate user-RPCs consistently alongside known (#4081) 2020-11-26 13:07:21 +01:00
Jaco Greeff
aaedb61e0d
import type { UseTranslationResponse } (#4074) 2020-11-26 10:23:52 +01:00
Jaco Greeff
488230d5db
Also explicitly list h1 height (as h2) (#4073) 2020-11-25 22:24:17 +01:00
Jaco Greeff
f99dcb2b0a
Fonts from new.css (#4071)
* Fonts from new.css

* line-height 1

* h2 adjust

* rm Nunito
2020-11-25 21:42:31 +01:00
MiZiet
cedc6b28c1
Align account name with nunito sans (#4038)
* Fix font alignment

* Plug in Nunito Sans

* Remove line-height

* Align AccountName

* Update packages/react-components/src/AccountName.tsx

Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-25 21:24:01 +01:00
Jaco Greeff
bcb36ec4f0
Allow CopyButton on all Hash* fields (#4065) 2020-11-24 15:56:53 +01:00
Jaco Greeff
a0b82d88a4
Use import type { ... } (#4052)
* Use import type { ... }

* value imports

* TypeDefInfo

* Apply suggestions from code review

* fixes... am going blind.
2020-11-19 16:20:14 +01:00
Jaco Greeff
fce4f76297
Adjust config imports/exports (#4051)
* Adjust config imports/exports

* Move type import

* yarn

* drive-by type imports
2020-11-19 14:17:29 +01:00
Jaco Greeff
dfdf75ba2b
On-demand Expander rendering (#4039)
* On-demand Expander rendering

* Use indexes, not progress
2020-11-17 15:33:13 +01:00
Jaco Greeff
685971fa09
Max length for InputNumber (equal to allowed digits) (#4034)
* Max length for InputNumber (equal to allowed digits)

* Description on length check
2020-11-16 16:35:03 +01:00
Antoine Estienne
c004f07c53
Feature/better eth address addition (#4032)
* update labels for eth private key

* updated copy button

* lint

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* typo

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-16 15:19:08 +01:00
Jaco Greeff
2c951cf263
Bump API (#4029) 2020-11-16 07:19:04 +01:00
Jaco Greeff
e10d56d0ec
Bump API (#4017)
* Bump API

* Rebuild i18n

* Fix InputAddress

* Pass through registry where applicable
2020-11-12 15:43:19 +01:00
Jaco Greeff
64299ebd29
Dev bump (#4012)
* Bump API/Common (esnext exports)

* Bump deps

* Adjust

* Bumps

* Bumps

* repository

* Update dev

* Remove Rococo (for the time being)

* script extension
2020-11-11 15:28:52 +01:00
Antoine Estienne
31904bf106
Support ethereum addresses for Moonbeam (#3961)
* support ethereum addresses

* corrections

* add standalone url and ethereum identicons

* add moonbeam config

* added changes from the old pr

* add new config

* added dummy rpc method declarations for eth methods

* wip fix address add modal

* support ethereum addresses

* corrections

* add standalone url and ethereum identicons

* add moonbeam config

* added changes from the old pr

* add new config

* added dummy rpc method declarations for eth methods

* wip fix address add modal

* wip repair app with new keyring

* use isDevelopement false for ethereum

* lint

* more formatng

* eth addresses by default for account creation

* added many more types to support moonbeam

* added color

* add h160 to types and components

* add rpc methods to app-config

* lint

* polish

* Update packages/react-params/src/initValue.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* moved ethereum networks to config

* added real rpc method typings

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-10 18:12:11 +01:00
Jaco Greeff
ce796b499a
Cleanup maxVote calculations (no re-triggers) (#3992)
* Cleanup maxVote calculations (no re-triggers)

* Remove duplicate equality check

* Remove (now unneeded) isBn check
2020-11-08 13:36:58 +01:00
Jaco Greeff
524cbc8a80
Add fontWeight* to theme (#3985)
* Add fontWeight* to theme

* Cleanup comments

* fontWeightLarge -> fontWeightLight
2020-11-06 14:31:23 +01:00
Thibaut Sardan
08196d3093
Cleanup style expansion (#3943)
* cleanup style expansion

* ThemeDef

* Don't create unneeded objects

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-06 13:58:04 +01:00
Jaco Greeff
50fd662f8a
Revert font changes (#3976) 2020-11-05 12:50:40 +01:00
Jaco Greeff
5070ecdd10
s/fontFamily/fontSans/ (#3968) 2020-11-04 15:11:02 +01:00
Albert
2215541cd9
Apply Nunito fonts globally (#3882)
* Add nunito fonts

* Apply Nunito fonts globally

* Remove Nunito fonts (600,800)

* Add fontFamily to themes

* Unify font-weight and font-family across app

* Fix linting

* Use Monospace font from theme where required

* Add font-family from theme to buttons

* Revert font-family change in Claim

* Provide enough vertical space for rendering of an account name with verified identity

* Use theme font in transfer and search inputs

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
2020-11-04 14:35:49 +01:00
Jaco Greeff
2a1fb452af
Add support for ethereum icon theme (#3964)
* Add support for ethereum icon theme

* Bump deps
2020-11-03 16:06:40 +01:00
Jaco Greeff
27fbeef324
Bump deps (#3949)
* Bump deps

* Type imports
2020-10-30 11:38:54 +01:00
Jaco Greeff
b484947b79
Display last blocks for execution (per contract) (#3917)
* Display last blocks for execution (per contract)

* Bump API with new block subs

* linting
2020-10-22 20:21:38 +02:00
Jaco Greeff
3dd77c8393
Contract event decoding (#3914)
* Contract event decoding

* Update packages/apps/src/Content/Status.tsx

* Update packages/react-components/src/Status/Queue.tsx

* Bump API
2020-10-22 16:34:11 +02:00
Krzysztof Jelski
7b387762bd
Updated flow for creating accounts (#3880)
* Add 3 step account creation

* Add textarea with dropdown

* Add OWASP and styles to PasswordStrength

* Align the checkbox with other ui elements

* Notification on mnemonic copy

* Make confirmation label clickable

* Do not shorten address in creation modal

* Make address name not editable in header

* Always show password strength meter

* Always show password strength meter

* Update tests to new account flow

* Remove repeated dependency

* Remove console.log from test

* Update yarn.lock

* Restore imports order.

* Format div component according to style

* Remove cursor styling for old browsers

* Empty line

* Organize imports. Configure StrengthTester once. Use color from theme.

* wip on text area

* TextArea styling

* Checbox styling

* Update repeated password validity on first password change

* Simplify CopyButton notification code.

* Change TextArea styling to more consistent

* Make password strength indicator wider

* Move external warning down and show on both steps

* Inline TextArea subcomponents

* Move mnemonic saved confirmation label closer to buttons

* Add steps counter to header

* Remove space

Co-authored-by: Michał Ziętalak <michal.z@ethworks.io>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-22 15:59:01 +02:00
Jaco Greeff
ca20e2aa70
Allow ascii inputs on Bytes fields (#3908)
* Allow ascii inputs on Bytes fields

* Remove help
2020-10-21 12:33:46 +02:00
Jaco Greeff
d2a4ed7f0c
Fix Babe availability check (#3900) 2020-10-19 16:41:30 +02:00
Jaco Greeff
dc4db837a7
Don't display unbonding blocks in Aura (#3896) 2020-10-19 12:02:31 +02:00
Jaco Greeff
71f6ec83c1
Adjust formatting with large balance values (#3871) 2020-10-14 19:14:52 +02:00
Jaco Greeff
ee7a4de77d
Allow ABI removal on upload (#3869) 2020-10-14 09:15:13 +02:00
Jaco Greeff
7ccbc57918
Add overall contracts summary, bump API (#3852) 2020-10-11 14:50:22 +02:00
Jaco Greeff
d58852558c
Display on-chain status for contract code & instances (#3851) 2020-10-11 11:50:27 +02:00