-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: update account list to support grouping #16285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update account list to support grouping #16285
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
app/components/UI/EvmAccountSelectorList/EvmAccountSelectorList.styles.ts
Outdated
Show resolved
Hide resolved
app/components/UI/EvmAccountSelectorList/EvmAccountSelectorList.tsx
Outdated
Show resolved
Hide resolved
app/components/UI/EvmAccountSelectorList/EvmAccountSelectorList.tsx
Outdated
Show resolved
Hide resolved
0a67af5
to
10d2739
Compare
|
10d2739
to
e6f78bd
Compare
|
app/selectors/featureFlagController/multichainAccounts/enabledMultichainAccounts.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
app/multichain-accounts/controllers/account-tree-controller/constants.ts
Outdated
Show resolved
Hide resolved
app/multichain-accounts/messengers/account-tree-controller-messenger/index.ts
Outdated
Show resolved
Hide resolved
app/multichain-accounts/messengers/account-tree-controller-messenger/index.ts
Show resolved
Hide resolved
app/multichain-accounts/messengers/account-tree-controller-messenger/index.ts
Show resolved
Hide resolved
app/components/UI/EvmAccountSelectorList/EvmAccountSelectorList.tsx
Outdated
Show resolved
Hide resolved
a423183
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Platform LGTM
renderItem={renderAccountItem} | ||
renderSectionHeader={accountTreeSections ? renderSectionHeader : undefined} | ||
renderSectionFooter={accountTreeSections ? renderSectionFooter : undefined} | ||
// Increasing number of items at initial render fixes scroll issue. | ||
initialNumToRender={999} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best to change this from a SectionList/Flatlist to a FlashList..
This field specifically breaks virtualisation (it will only virtualise items after 999 items are rendered)
Description
This PR adds account grouping in accounts menu using the newly added AccountTreeController. All the changes are hidden by a feature flag
Related issues
Jira ticket: https://consensyssoftware.atlassian.net/browse/MUL-199
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist