-
Notifications
You must be signed in to change notification settings - Fork 444
Fix #7765, Fix #7618: Portfolio Group By filter & Empty State #7826
Conversation
want to mention here again.
looks like a bug. wdyt? cc @jamesmudgett @srirambv |
not sure if this is what we want. but its a minor issue. |
…for grouping by accounts and grouping by networks
…tapping save filters without changing filters.
Update logic so groups with no balance are only hidden when `Hide Small Balances` is enabled
…ch uses `leo.carat.down` for the expand button and has no indent. Fix group sorting for iOS 16.4 ..< iOS 17
7ee627e
to
a94a5dd
Compare
Add a custom
Padding and separator issue should be resolved now.
Groups are now only hidden here now when
Updated sort logic when sorting empty balances by value to move native token(s) to top of list, otherwise will sort alphabetically when 2+ assets have 0 balance 92eadf2. |
…Goerli test network added to tests.
all my comments have been addressed. Portfolio looks pretty awesome now! good work here! |
…y filter & Empty State (brave/brave-ios#7826) * Support Group By Filter & Display Setting in Portfolio * Update PortfolioStoreTests to test each filter separately, add tests for grouping by accounts and grouping by networks * Add empty state, loading state to Portfolio Assets * Sort order of 0 balance assets can change when tapping save filters without changing filters. * Update `Hide Small Balances` threshold from $1 to $0.05. Update logic so groups with no balance are only hidden when `Hide Small Balances` is enabled * Add new `WalletDisclosureGroup` replacement for `DisclosureGroup` which uses `leo.carat.down` for the expand button and has no indent. Fix group sorting for iOS 16.4 ..< iOS 17
Summary of Changes
Group By
filter withnone
(default),accounts
andnetworks
grouping options.This pull request fixes #7765, fixes #7618
Submitter Checklist:
NSLocalizableString()
Test Plan:
Reset
Group By
option isNone
.Group By
to accounts and tapSave Changes
.Hide Small Balances
is enabled.Save Changes
Reset
(re-selects all accounts again), then changeGroup By
toNetworks
and tapSave Changes
Hide Small Balances
is enabled.Reset
.Save Changes
.Group By
filter is preserved.Screenshots:
portfolio.grouping.mp4
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement