Commit Graph

243 Commits

Author SHA1 Message Date
Jaco
47767ea424
Align entry retrieval with key retrieval (#7096) 2022-03-03 10:19:33 +02:00
Jaco
01d78c33af
Adjust useMapKeys trigger params (#7091) 2022-03-02 20:04:32 +02:00
Jaco
6fe5f8996b
Don't connect to unreachable/disabled para endpoints (#6977)
* Don't connect to unreachable/disabled para endpoints

* Only check on API creation

* Address TODO
2022-02-13 15:56:53 +02:00
Jaco
4cc31fc856
Ensure InputAddress is de-deuped prior to display (#6934) 2022-02-07 15:27:36 +02:00
Jaco
c41139403e
Adjust treasury summary (only isApproved bounties) (#6898)
* Adjust tresury summary (only isApproved bounties)

* Update deps

* Adjust Ledger imports

* Adjust...
2022-01-29 12:08:31 +02:00
Jaco
1334a2de24
Ignore bounty isProposed in treasury calcs (#6885) 2022-01-26 13:05:59 +02:00
Jaco
8027568a3f
Extend treasury display (w/ bounties/approved) (#6882)
* Extend treasury display (w/ bounties/approved)

* Adjust
2022-01-26 11:24:49 +02:00
Jaco
0d74428624
Relay accounts on common-good & system paras (#6740)
* Relay accounts on common-good & system paras

* Revert useEndpoint

* Add relay values to current

* Ordering
2022-01-18 12:15:19 +02:00
Jaco
5174f5ffbe
Bump API & common (#6797)
* Bump API & common

* BN imports

* Root imports

* Bump
2022-01-07 17:37:36 +02:00
Jaco
b1a04a5d46
Bump dev (w/ header fixes) (#6772) 2022-01-03 17:37:55 +02:00
Jaco
51835328db
2022 (#6764) 2022-01-01 09:30:15 +02:00
Jaco
a16d60076d
Use relay identity for common-good & system chains (#6758)
* Use relay identity for common-good & system chains

* Adjust

* Align useCallMulti
2021-12-30 17:38:26 +02:00
Jaco
05cee230bf
Expose apiEndpoint details on Api context (#6757)
* Expose apiEndpoint details on Api context

* No need to pass through apiEndpoint (yet)

* Lint
2021-12-30 16:45:59 +02:00
Jaco
a7a48c1140
Extract derive.accounts.* into own hooks (#6755)
* Extract derive.accounts.* into own hooks

* useAccountApi as applicable

* Rename step 1

* useSystemApi
2021-12-30 10:02:41 +02:00
1devNdogs
b7baf1b47f
Add Subspace expected block time (#6665)
* extract expectedBlockTime for non babe chains

* Apply suggested changes on block time
2021-12-11 12:11:05 +02:00
Jaco
a1523209d9
No derivation on Ethereum (not implemented) (#6591) 2021-11-22 11:22:31 +02:00
Jaco
0a26f52103
Bump @polkadot deps (#6514)
* Bump @polkadot deps

* Bumps
2021-11-07 12:09:50 +02:00
Jaco
b957353d22
Hooks (most, no generic) via createNamedHook (#6451) 2021-10-30 17:30:43 +03:00
Jaco
68a423748b
Adjust createNamedHook (#6449)
* Adjust createNamedHook

* All (most) in react-hooks now named

* Add useValidators hook

* linting?
2021-10-30 13:36:05 +03:00
Jaco
094a94449f
Adjust error stack formatting (#6448)
* Adjust error stack formatting

* linting
2021-10-30 11:30:11 +03:00
Jaco
60a5334ff2
Add error stakcs to useCall & ErrorBoundary (#6447) 2021-10-30 10:41:24 +03:00
Jaco
f512c1a539
Bump de & api (w/ __Unused on enum) (#6326)
* Bump de & api (w/ __Unused on enum)

* Linting fixes

* tsc adjustments

* Api bump
2021-10-17 16:37:57 +03:00
Ewa Kowalska
03a58ad8e7
Style badges in accounts list (#6208) 2021-10-06 11:48:47 +02:00
MiZiet
053e0efca2
Split registrars display (#6157)
* Add subs modal

* Add tests

* Add Translations

* Improve closing modal

* Improve tests

* Improve styles

* Style balances & identity

* Optimize imports

* Improve styles

* Set greater width to balance section

* Rename subs modal toggle

* Change 'amount' to 'count' in test name

* Set make modal header fixed while content is scrollable

* Style multisig

* Update multisig styles

* Capitalize headers

* Move sidebar tests to Sidebar.spec.tsx

* Remove duplications in tests

* Add UserIcon component

* Revert subs modal changes and add scrollable section in Sidebar

* Remove unused styles

* Use accountsPage clearAccount method

* Wrap subs into Expander

* Add useSubidentities hook

* Adjust api mock in tests

* WIP - split judgements

* Display judgements

* Handle no judgements case

* [WIP] Add popup test

* Extract JudgmentTag component

* Add popup test

* Refactor tests and remove pointer from no judgements tag

* Extract JudgementTag test class

* Close popup on scroll

* Remove old section

* Clean registration

* Clean up identity in useAccountInfo and mock in Page

* Remove fragment tag

* Fix imports

* Move SortedJudgements to /types

* Move Registrar interface to types

* Refactor clickRegistrar fcn

* Move hasAccount check to isRegistrar

* Add useJudgements hook

* Rename and move getJudgementColor to utils

* Fix import and casting in tests

* Sort imports

* Add review fixes

* Fix tests

Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-29 10:45:34 +02:00
MiZiet
42ef182879
Style identity and balance sections in sidebar (#6096)
* Add subs modal

* Add tests

* Add Translations

* Improve closing modal

* Improve tests

* Improve styles

* Style balances & identity

* Optimize imports

* Improve styles

* Set greater width to balance section

* Rename subs modal toggle

* Change 'amount' to 'count' in test name

* Set make modal header fixed while content is scrollable

* Style multisig

* Update multisig styles

* Capitalize headers

* Move sidebar tests to Sidebar.spec.tsx

* Remove duplications in tests

* Add UserIcon component

* Revert subs modal changes and add scrollable section in Sidebar

* Remove unused styles

* Use accountsPage clearAccount method

* Wrap subs into Expander

* Add useSubidentities hook

* Adjust api mock in tests

* WIP - split judgements

* Revert mistaken commit

Co-authored-by: Krzysztof Jelski <krzysztof@ethworks.io>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-09-19 08:49:23 +02:00
Jaco
73e3a32aba
Support for v14 metadata (#5927)
* Support for v14 metadata

* sessionIds as map or array

* Cleanups

* Some storage page adjustments

* Arg mapping, no filterOrigin

* Use base64Encode in metadata

* Cleanups

* Storage cleanups

* Additional

* Use API types

* typo

* Storage historic compat

* Const input type

* Bumps

* Bumps

* Bumps

* Force salt to string
2021-09-18 08:18:51 +02:00
Ewa Kowalska
ad8226a5c3
Account sidebar - single button for editing name and tags (#6049)
* WIP - merge edition of account name and tags

* [WIP] - tests

* Apply test improvements

* Improve tests

* Improve tests and use useCallback

* WIP - add cancel button

* Outside click

* Add more tests

* Apply styling

* Add opacity on not editable elements

* Remove unnecessary code and fix type of sidebar ref

* Disable eslint rule

* Place edit button within account menu buttons

* Adjust test setup

* Ato-lint fixes

* Update styles

* Apply review suggestions

* Remove unused styles and change type of sidebar ref

* Remove onCancel from useAccountInfo hook

* Fix issue with edit button

* Apply review suggestions, remove tests

* Adjust tests

* Simplify tests

* Apply lint fixes

* Change layout of buttons

Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-09 19:40:09 +02:00
fixxxedpoint
8ef4ed18dd
Changed THRESHOLD in useBlockTime so chains that uses values smaller than 1s for the MinimumPeriod (pallet_timestamp) parameter are displayed correctly (#6045) 2021-09-01 13:25:35 +02:00
MiZiet
b6c827a908
Remove sui popup (#5924)
* Add custom popup

* Render popup window with react portal

* Handle scroll

* Handle pointer scroll

* Refactor types

* Add useOutsideClick

* Restore button styles

* Update types

* Add tests

* Set multiple refs

* Cleanup

* Cleanup

* Move offset const to the utils

* Add useCallback in useScroll

* Remove empty lines in useElementPosition

* Change styled components to functional

* Make sure popup window stays in view

* Highlight trigger button when popup is open

* Add uesPopupWindow hook

* Make triangle larger

* Use full trigger height

* Apply new lint rules

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-08-31 09:35:33 +02:00
Vitaliy
c9aef5cfe9
Add summary bar for accounts view (#5876)
* Show basic balance info

* Show bonded summary

* Show redeemable summary

* Show unbonding summary

* Adopt linter suggestions

* Hide cards with zero balance

* Apply simplifications

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

* Remove dead code

* Simplify balance==undefined case

* Add summary bar tests (#5890)

* Add tests for summary bar

* Improve test case name

Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>

* Factor empty render into a beforeEach block

* Improve name of helper variable

Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>

* Construct correct instance for StakingLedger.active

* Override only the relevant parts in each test case

* Simplify test cases

Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>

Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
2021-08-18 11:26:12 +02:00
Jaco
e267f07639
Discard invalid configuration minimumPeriod values (#5913)
* Discard invalid configuration minimumPeriod values

* Update packages/react-hooks/src/useBlockTime.ts
2021-08-03 08:46:33 +02:00
Marcin Wachulski
809520ddc0
Add app-accounts testing support (#5872) 2021-07-28 11:50:06 +02:00
Jaco
97d2866e6e
Use useCollectiveModule for all collective locations (#5762)
* Use useCollectiveModule for all collective locations

* staking useCollectiveModule

* Bounties useCollectiveModule

* Mock collective

* Adjust

* useMember -> useCollectiveMembers
2021-07-05 08:03:27 +02:00
Jaco
42cb6b84d3
Rework collective queries (#5732)
* Rework collective queries

* members derive

* All via derive

* Adjust society useMembers

* Adjust optional consts

* Detect council module locations

* Adjust tech comm with module locations

* Rework loading

* Unused type import
2021-07-02 10:42:13 +02:00
Jaco
7c84bccbb9
Adjust Ledger lookups via hash/apps only (#5618)
* Adjust Ledger lookups via hash/apps only

* Lookup on all genesis hashes

* Lookup against all hashes

* Adjust ledger lookups
2021-06-29 16:23:00 +02:00
Jaco
e347442666
Treasury account from palletId (as available) (#5714) 2021-06-29 07:52:41 +02:00
Jaco
a237847956
Randomize parachain endpoints (#5656) 2021-06-22 14:19:26 +02:00
Jaco
299c95eb3d
Remove Substrate 2.0 generation payouts (#5612)
* Remove Subtrate 2.0 generation payouts

* Display available totals

* Empty available

* No need to check for batch availability

* Adjust headers

* Adjust views
2021-06-17 08:27:19 +02:00
Jaco
b47f6cbacf
Check endpoints sort order (#5564)
* Check endpoints sort order

* colors adjust

* Adjust

* Sorting via objects

* linting

* shared santize
2021-06-11 17:41:03 +02:00
Jaco
5401577bbc
Adjust contribution state update (& indicator) (#5561) 2021-06-11 09:48:28 +02:00
Jaco
c21dadcd9e
Optimize crowdloan refresh (delta only on events) (#5549)
* Optimize crowdloan refresh (delata only on events)

* Adjust own contributions
2021-06-10 09:05:40 +02:00
Jaco
09343fba3f
Optimize finding loan account (hex-only encoding) (#5524) 2021-06-09 11:25:16 +02:00
Jaco
0e72723b7b
Enable Statemine <-> Kusama (w/ fees) (#5495)
* Enable Statemine <-> Kusama (w/ fees)

* Retrievals

* text
2021-06-08 11:08:15 +02:00
Jaco
3d6b6734dc
Chain types CI check (#5460)
* Chain types CI check

* SLOW for test
2021-06-05 13:58:33 +02:00
Jaco
6f45181a23
Ensure multi destinations for teleport are available (#5454)
* Ensure multi destinations for teleport are available

* One-way teleport warning

* Statemine colors
2021-06-04 14:45:47 +02:00
Jaco
80bac62fc2
Extract relay by genesis (#5445) 2021-06-04 07:23:36 +02:00
Jaco
094c3a84e7
Allow empty teleport array (#5434)
* Allow empty teleport array

* Enable para -> relay

* Set Rococo genesis

* No Rococo teleport (yet)
2021-06-03 14:19:41 +02:00
Jaco Greeff
210aed00c5
Merge branch 'master' into jg-para-relay 2021-06-03 14:31:34 +03:00
Jaco
3208fe117e
Carry teleport info per chain (#5430)
* Carry teleport info per chain

* Always has teleports
2021-06-03 13:21:21 +02:00
Jaco
8a95b1a93b
Handle BN type-only imports correctly (#5428)
* Handle BN type-only imports correctly

* lint fixes
2021-06-03 10:41:55 +02:00