Skip to content

feat: full-page account selector and optional picker dropdown icon#28701

Merged
gantunesr merged 21 commits into
mainfrom
gar/feat/account-selector-full-page-picker-dropdown
Apr 23, 2026
Merged

feat: full-page account selector and optional picker dropdown icon#28701
gantunesr merged 21 commits into
mainfrom
gar/feat/account-selector-full-page-picker-dropdown

Conversation

@gantunesr

@gantunesr gantunesr commented Apr 10, 2026

Copy link
Copy Markdown
Member

Description

This PR consolidates the account selector on the full-page experience and removes the feature flag that toggled it. The add-wallet / add-account flow no longer uses bottom sheet components; it opens in a standard Modal with the same headers and actions as before.

Changelog

CHANGELOG entry: Updated the account selector to use the full-page list for all users.

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MUL-1695

Manual testing steps

Feature: Account selector and account picker

  Scenario: Open account list from wallet
    Given the user is on the wallet home screen
    When the user opens the account selector
    Then the full-page account list is shown and the user can switch accounts or open add wallet

Screenshots/Recordings

Before

N/A

After

Screen.Recording.2026-04-23.at.1.14.15.PM.mov

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.

Note

Medium Risk
Moderate UI/navigation refactor in the account selector flow, replacing bottom-sheet behavior with animated full-page + nested modal, which could affect dismissal/navigation and related tests across platforms.

Overview
Unifies AccountSelector onto the animated full-page presentation for all users by removing the full-page feature-flag path and the bottom-sheet implementation.

The add-account/add-wallet actions now open via a standard Modal with its own header/back handling, and the footer action buttons are rendered directly (new footer styles) instead of using BottomSheetFooter. Tests and E2E page objects were updated accordingly (including snapshot updates and using a header back button to dismiss stacked modals).

Separately, the wallet PickerAccount no longer applies dropdown-arrow sizing/styling (removing the trailing dropdown affordance).

Reviewed by Cursor Bugbot for commit 34f2a20. Bugbot is set up for automated code reviews on this repo. Configure here.

…t UI with modal

- Always use full-page account list (drop selectFullPageAccountListEnabledFlag)
- Swap BottomSheet overlay and BottomSheetFooter for Modal and inline footer buttons
- Update unit tests for full-page and add-wallet modal behavior

Made-with: Cursor
…ckerAccount

- Default keeps existing dropdown arrow for other pickers
- PickerAccount omits prop and always hides the icon

Made-with: Cursor
@gantunesr gantunesr self-assigned this Apr 10, 2026
@metamaskbot metamaskbot added the team-accounts-framework Accounts team label Apr 10, 2026
@gantunesr gantunesr marked this pull request as ready for review April 10, 2026 23:58
@gantunesr gantunesr requested review from a team as code owners April 10, 2026 23:58
Comment thread app/component-library/components/Pickers/PickerBase/PickerBase.test.tsx Outdated
@github-actions github-actions Bot added the risk-high Extensive testing required · High bug introduction risk label Apr 13, 2026
@github-actions github-actions Bot added risk-high Extensive testing required · High bug introduction risk and removed risk-high Extensive testing required · High bug introduction risk labels Apr 13, 2026
Comment thread app/components/Views/AccountSelector/AccountSelector.test.tsx Outdated
@gantunesr gantunesr requested a review from a team as a code owner April 13, 2026 21:29
@github-actions github-actions Bot added risk-high Extensive testing required · High bug introduction risk and removed risk-high Extensive testing required · High bug introduction risk labels Apr 13, 2026
Comment thread app/component-library/components/Pickers/PickerAccount/PickerAccount.test.tsx Outdated
@github-actions github-actions Bot added risk-high Extensive testing required · High bug introduction risk and removed risk-high Extensive testing required · High bug introduction risk labels Apr 13, 2026
@github-actions github-actions Bot added risk-high Extensive testing required · High bug introduction risk and removed risk-high Extensive testing required · High bug introduction risk labels Apr 14, 2026
Comment on lines +291 to +298
<Button
key={index}
style={
index > 0
? styles.footerButtonSubsequent
: styles.footerButton
}
{...buttonProp}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'll keep this as it is despite the warning from sonar

@github-actions github-actions Bot added the risk:medium AI analysis: medium risk label Apr 22, 2026
montelaidev
montelaidev previously approved these changes Apr 22, 2026
@github-actions github-actions Bot added risk:high AI analysis: high risk and removed risk:medium AI analysis: medium risk labels Apr 23, 2026
Comment thread app/components/Views/AccountSelector/AccountSelector.styles.ts
@github-actions

Copy link
Copy Markdown
Contributor

AI PR Analysis

🚫 Merge safe: false | 🟠 Risk: high

Merge decision: AI analysis did not complete — manual review required before merging.

AI analysis did not complete. Manual review recommended.

View run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 33a3e80. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - skip-smart-e2e-selection label found

All E2E tests pre-selected.

View GitHub Actions results

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

E2E Fixture Validation — Schema is up to date
12 value mismatches detected (expected — fixture represents an existing user).
View details

@georgewrmarshall georgewrmarshall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving on behalf of @MetaMask/design-system-engineers

@gantunesr gantunesr enabled auto-merge April 23, 2026 21:28

@owencraston owencraston left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested loading a short accounts list, long accounts list and dapp connection. all worked as expected.

@gantunesr gantunesr added this pull request to the merge queue Apr 23, 2026
Merged via the queue into main with commit 2e461bc Apr 23, 2026
120 checks passed
@gantunesr gantunesr deleted the gar/feat/account-selector-full-page-picker-dropdown branch April 23, 2026 22:56
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.76.0 Issue or pull request that will be included in release 7.76.0 label Apr 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.76.0 Issue or pull request that will be included in release 7.76.0 risk:high AI analysis: high risk risk-high Extensive testing required · High bug introduction risk size-M skip-smart-e2e-selection Skip Smart E2E selection, i.e. select all E2E tests to run team-accounts-framework Accounts team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants