Skip to content

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

Open
gantunesr wants to merge 2 commits intomainfrom
gar/feat/account-selector-full-page-picker-dropdown
Open

feat: full-page account selector and optional picker dropdown icon#28701
gantunesr wants to merge 2 commits intomainfrom
gar/feat/account-selector-full-page-picker-dropdown

Conversation

@gantunesr
Copy link
Copy Markdown
Member

@gantunesr gantunesr commented Apr 10, 2026

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.

PickerBase gains an optional showDropdownIcon prop (default true). PickerAccount always passes false so the wallet account picker no longer shows a trailing dropdown arrow, while other pickers keep the previous behavior.

Changelog

CHANGELOG entry: Updated the account selector to use the full-page list for all users and removed the dropdown arrow from the wallet account picker.

Related issues

Fixes:

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

  Scenario: Account picker on wallet header
    Given the user is on the wallet home screen
    When the user views the account name control
    Then no dropdown arrow is shown next to the account name

Screenshots/Recordings

Before

N/A

After

Screen.Recording.2026-04-10.at.7.39.28.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 change: AccountSelector flow is refactored to always use the full-page experience and the add-wallet flow now uses a Modal, which could affect navigation/animation behavior across platforms.

Overview
Account selection UI is consolidated to the full-page experience. AccountSelector no longer branches on the full-page feature flag or uses bottom sheet components; it always renders the sliding full-page view and opens add-wallet/add-account flows in a standard Modal.

Picker dropdown icon can now be disabled. PickerBase adds showDropdownIcon (default true) and PickerAccount hard-disables it to remove the trailing arrow; tests are updated/added to assert the icon is (not) rendered and account-selector tests drop the feature-flag coverage while validating the new modal overlay behavior.

Reviewed by Cursor Bugbot for commit 7ee2d30. 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
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

⏭️ Smart E2E selection skipped - draft PR

All E2E tests pre-selected.

View GitHub Actions results

@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
Copy link
Copy Markdown

@cursor cursor bot left a comment

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 7ee2d30. Configure here.

expect(icon).toBeTruthy();
});

it('should not render dropdown icon when showDropdownIcon is false', () => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New test name uses banned "should" prefix

Low Severity

The newly added test 'should not render dropdown icon when showDropdownIcon is false' uses the word "should" in its name. The unit testing guidelines state: "NEVER use 'should' in test names — this is a hard rule with zero exceptions." An action-oriented name like 'hides dropdown icon when showDropdownIcon is false' would comply.

Fix in Cursor Fix in Web

Triggered by project rule: Unit Testing Guidelines

Reviewed by Cursor Bugbot for commit 7ee2d30. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants