ghost-portal/packages/react-components/src/util
Vitaliy 734c3c653a
Add sorting for accounts view (#5923)
* 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>

* Sort by total balance and by type

* Rename "clas" to "htmlClass"

* Extract DEFAULT_SORT_CONTROLS constant

* Move stableSort to its own file

* Optimize sorting on accounts page

* Adopt new sorting design

* Apply suggestions from code review

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

* Remove stableSort function

* Move Dropdown css to Account styles

* Add tests for sorting

* Adjust tests and apply lint fixes

* Apply lint fixes

* Improve row coloring and styling of button for sort direction

* Improve styling

* Fix tests setup and bug connected with cloning accounts

* Restore condition

* Fix imports

Co-authored-by: Jaco <jacogr@gmail.com>
Co-authored-by: Krzysztof Jelski <kjelski@gmail.com>
Co-authored-by: MiZiet <michalzietalak@o2.pl>
Co-authored-by: Ewa Kowalska <ewcia.kowalska@gmail.com>
2021-09-06 14:14:56 +02:00
..
checkVisibility.tsx Update deps (& berry) (#4765) 2021-03-03 11:52:39 +01:00
getAccountCryptoType.ts Add sorting for accounts view (#5923) 2021-09-06 14:14:56 +02:00
getAddressMeta.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
getAddressName.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
getAddressTags.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
getContractAbi.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
index.ts Add sorting for accounts view (#5923) 2021-09-06 14:14:56 +02:00
isTreasuryProposalVote.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
toAddress.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
toShortAddress.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
types.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00