ghost-portal/packages/react-components/src
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
..
Button Allow keyboard navigation in create account modal (#5968) 2021-09-01 12:17:37 +02:00
Chart Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
i18n 2021 (#4310) 2021-01-03 11:33:39 +01:00
IdentityIcon Adjust icon based on spec (#5491) 2021-06-08 08:05:39 +02:00
InputAddress Bump deps (#5665) 2021-06-23 11:21:24 +02:00
InputAddressMulti Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
InputConsts Bump API (#5850) 2021-07-19 17:01:25 +02:00
InputExtrinsic Bump API (#5850) 2021-07-19 17:01:25 +02:00
InputRpc Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
InputStorage Bump API (#5871) 2021-07-23 08:52:12 +02:00
Menu Jest config cleanup (#6053) 2021-09-01 21:38:45 +03:00
Modal Jest config cleanup (#6053) 2021-09-01 21:38:45 +03:00
Params 2021 (#4310) 2021-01-03 11:33:39 +01:00
Popup Jest config cleanup (#6053) 2021-09-01 21:38:45 +03:00
Status Bump deps (#6072) 2021-09-05 14:37:55 +02:00
styles Add hover to the expand button (#6052) 2021-09-03 09:40:49 +02:00
Table Adjust balance alignment (#6051) 2021-09-02 08:15:49 +03:00
Tabs Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
util Add sorting for accounts view (#5923) 2021-09-06 14:14:56 +02:00
AccountIndex.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
AccountName.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
AddressInfo.tsx Fix democracy icon location (#6077) 2021-09-06 11:52:51 +02:00
AddressMini.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
AddressRow.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
AddressSmall.tsx Jest config cleanup (#6053) 2021-09-01 21:38:45 +03:00
AddressToggle.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Available.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
AvatarItem.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Badge.tsx Add new menu styling (#4317) 2021-03-24 10:27:37 +01:00
Balance.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
BatchWarning.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
Bonded.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
ButtonCancel.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Call.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
CallExpander.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Card.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
CardSummary.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
ChainImg.tsx Logo/colors based on specName (#5325) 2021-05-19 08:58:03 +02:00
ChainLock.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Checkbox.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Columar.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
constants.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
ConvictionDropdown.tsx Bump deps (common, local types) (#4726) 2021-02-25 07:55:48 +01:00
CopyButton.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
CryptoType.tsx Add sorting for accounts view (#5923) 2021-09-06 14:14:56 +02:00
DemocracyLocks.tsx Fix democracy icon location (#6077) 2021-09-06 11:52:51 +02:00
Digits.tsx Select slot range via dropdown (#4845) 2021-03-14 13:15:26 +01:00
Dropdown.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
EditButton.tsx Style tags (#5893) 2021-08-14 09:10:21 +02:00
Editor.tsx Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
ErrorBoundary.tsx Bump deps (#5665) 2021-06-23 11:21:24 +02:00
Event.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
ExpandButton.tsx Add hover to the expand button (#6052) 2021-09-03 09:40:49 +02:00
Expander.tsx Bump API (#5850) 2021-07-19 17:01:25 +02:00
Extrinsic.tsx Bump deps (#6072) 2021-09-05 14:37:55 +02:00
FilterOverlay.tsx Tiny menu/tabs/naming adjustments (#4923) 2021-03-24 14:58:32 +01:00
Flag.tsx Style flags (#6003) 2021-08-28 10:47:23 +03:00
Forget.tsx Replace sui modal with a custom one (#5914) 2021-08-24 12:14:34 +03:00
HelpOverlay.tsx Add new menu styling (#4317) 2021-03-24 10:27:37 +01:00
Icon.tsx Popup menu replace and styling (#6007) 2021-08-31 10:39:17 +02:00
IconLink.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
index.tsx Add hover to the expand button (#6052) 2021-09-03 09:40:49 +02:00
InfoForInput.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Input.tsx Ensure useState doesn't re-init with function calls (#4552) 2021-02-01 14:17:14 +01:00
InputAddressSimple.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
InputBalance.tsx Balance display with SI units (#5440) 2021-06-04 10:13:32 +02:00
InputFile.tsx Jest config cleanup (#6053) 2021-09-01 21:38:45 +03:00
InputNumber.tsx Ensure siDefault is always used on InputNumber (#5810) 2021-07-12 06:33:50 +02:00
InputTags.tsx Style tags (#5893) 2021-08-14 09:10:21 +02:00
InputWasm.tsx Parachains registration (#4318) 2021-01-04 14:46:14 +01:00
Inset.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Label.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
LabelHelp.tsx Add tabIndex=-1 to all hints (#5703) 2021-06-29 06:50:17 +02:00
Labelled.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
LinkExternal.tsx Replace sidebar text links with icons (#5999) 2021-08-24 17:06:21 +02:00
LockedVote.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
MarkError.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
MarkWarning.tsx Warning & Error with exclamation triangle (#4331) 2021-01-10 08:37:51 +01:00
media.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
Nonce.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Output.tsx Display call hash on signer modal (#4885) 2021-03-21 10:42:39 +01:00
ParaLink.tsx Adjust contribution state update (& indicator) (#5561) 2021-06-11 09:48:28 +02:00
ParentAccount.tsx Remove sui popup (#5924) 2021-08-31 09:35:33 +02:00
Password.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
PasswordStrength.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Progress.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
ProposedAction.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00
Row.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
Sidebar.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Spinner.png
Spinner.tsx Enable Statemine <-> Kusama (w/ fees) (#5495) 2021-06-08 11:08:15 +02:00
StakingBonded.tsx Adapt Darwinia, Crab Network types (#5218) 2021-05-07 06:47:45 +02:00
StakingRedeemable.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
StakingUnbonding.tsx Account row collapsible row details (#5975) 2021-08-26 13:02:24 +02:00
Static.tsx Fix explorer static copy (#5185) 2021-05-01 14:03:43 +02:00
SummaryBox.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Tag.tsx Style flags (#6003) 2021-08-28 10:47:23 +03:00
Tags.tsx Bump dev (w/ lint fixes) (#6006) 2021-08-26 12:16:11 +02:00
TextArea.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
Toggle.tsx Use theme via css vars (#4789) 2021-03-10 11:04:14 +01:00
ToggleGroup.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
Tooltip.tsx Bounties - list layout improvements (#4644) 2021-02-11 11:03:46 +01:00
translate.ts 2021 (#4310) 2021-01-03 11:33:39 +01:00
TreasuryProposal.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
TxButton.tsx Bump deps (#6072) 2021-09-05 14:37:55 +02:00
types.ts Add sorting for accounts view (#5923) 2021-09-06 14:14:56 +02:00
VoteAccount.tsx 2021 (#4310) 2021-01-03 11:33:39 +01:00
VoteValue.tsx Handle BN type-only imports correctly (#5428) 2021-06-03 10:41:55 +02:00