Skip to content

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

Merged
merged 25 commits into from
Jun 17, 2025

Conversation

PatrykLucka
Copy link
Contributor

@PatrykLucka PatrykLucka commented Jun 11, 2025

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

  1. Make sure multichain accounts feature flag is enabled
  2. Open accounts menu
  3. Accounts should be grouped

Screenshots/Recordings

Before

Screenshot 2025-06-11 at 17 13 45

After

Screenshot 2025-06-11 at 17 35 50

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@PatrykLucka PatrykLucka self-assigned this Jun 11, 2025
@PatrykLucka PatrykLucka added the Run Smoke E2E Requires smoke E2E testing label Jun 11, 2025
@PatrykLucka PatrykLucka added the No QA Needed Apply this label when your PR does not need any QA effort. label Jun 11, 2025
Copy link

socket-security bot commented Jun 11, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​metamask/​account-tree-controller@​0.1.1721007192100

View full report

Copy link
Contributor

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.

Copy link
Contributor

github-actions bot commented Jun 11, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 04705c7
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/db53f064-90c3-488c-b225-89d58b608195

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@PatrykLucka PatrykLucka changed the title Mul 199 update account list to support grouping feat: update account list to support grouping Jun 11, 2025
@PatrykLucka PatrykLucka marked this pull request as ready for review June 11, 2025 15:38
@PatrykLucka PatrykLucka requested review from a team as code owners June 11, 2025 15:38
@PatrykLucka PatrykLucka requested a review from a team June 11, 2025 15:38
@PatrykLucka PatrykLucka force-pushed the MUL-199-update-account-list-to-support-grouping branch from 0a67af5 to 10d2739 Compare June 12, 2025 09:30
@PatrykLucka PatrykLucka added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jun 12, 2025
Copy link
Contributor

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 10d2739
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6d5c9ce8-c1b4-4554-9bee-f14b22716a60

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@PatrykLucka PatrykLucka force-pushed the MUL-199-update-account-list-to-support-grouping branch from 10d2739 to e6f78bd Compare June 12, 2025 09:35
@PatrykLucka PatrykLucka added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jun 12, 2025
Copy link
Contributor

github-actions bot commented Jun 12, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: e6f78bd
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/634a3d13-dc91-4c44-a74e-e62a92ec5910

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

infiniteflower
infiniteflower previously approved these changes Jun 12, 2025
Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments

GustavoRSSilva
GustavoRSSilva previously approved these changes Jun 14, 2025
Copy link

@PatrykLucka PatrykLucka added Run Smoke E2E Requires smoke E2E testing and removed Run Smoke E2E Requires smoke E2E testing labels Jun 17, 2025
Copy link
Contributor

github-actions bot commented Jun 17, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: a423183
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/492ee47f-68d7-477a-9b0a-e3c1b7e5165d

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Platform LGTM

@PatrykLucka PatrykLucka enabled auto-merge June 17, 2025 20:53
@PatrykLucka PatrykLucka added this pull request to the merge queue Jun 17, 2025
Merged via the queue into main with commit ce2cb9a Jun 17, 2025
50 of 52 checks passed
@PatrykLucka PatrykLucka deleted the MUL-199-update-account-list-to-support-grouping branch June 17, 2025 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Jun 17, 2025
@metamaskbot metamaskbot added the release-7.50.0 Issue or pull request that will be included in release 7.50.0 label Jun 17, 2025
renderItem={renderAccountItem}
renderSectionHeader={accountTreeSections ? renderSectionHeader : undefined}
renderSectionFooter={accountTreeSections ? renderSectionFooter : undefined}
// Increasing number of items at initial render fixes scroll issue.
initialNumToRender={999}
Copy link
Contributor

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.50.0 Issue or pull request that will be included in release 7.50.0 Run Smoke E2E Requires smoke E2E testing team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants