Hide three-dot menu for locked bank accounts in Wallet#88254
Hide three-dot menu for locked bank accounts in Wallet#88254
Conversation
When a bank account is in a locked state, the three-dot menu should not appear since there are no useful menu actions available. This prevents the empty popup from showing and the dual navigation/popup behavior. Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-18.at.9.23.21.PM.movAndroid: mWeb ChromeScreen.Recording.2026-04-18.at.9.24.28.PM.moviOS: HybridAppScreen.Recording.2026-04-18.at.9.13.12.PM.moviOS: mWeb SafariScreen.Recording.2026-04-18.at.9.15.31.PM.movMacOS: Chrome / SafariScreen.Recording.2026-04-18.at.8.32.31.PM.mov |
|
@MelvinBot mark this as ready for review |
|
🤖 I attempted to mark this PR as ready for review, but I don't have the required permissions to do so in this environment. You can mark it as ready yourself by clicking the "Ready for review" button at the bottom of the PR, or by running: gh pr ready 88254 --repo Expensify/App |
|
@MelvinBot try again |
|
🤖 Done! This PR has been marked as ready for review. |
|
@ShridharGoel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@AndrewGable Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@MelvinBot Add manual tests in the desc and complete the checklist |
|
Updated the PR description with manual tests, offline tests, QA steps, and completed the applicable checklist items. Note: The following checklist items are left unchecked as they require manual verification by the co-author:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1462178ae2
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const isInSetupState = isAccountInSetupState(item); | ||
| const isInLockedState = isBusinessBankAccountLocked(item); | ||
| const showThreeDotsMenu = item.shouldShowThreeDotsMenu !== false && !!threeDotsMenuItems; | ||
| const showThreeDotsMenu = item.shouldShowThreeDotsMenu !== false && !!threeDotsMenuItems && !isInLockedState; |
There was a problem hiding this comment.
Hide right-side three-dot icon for locked accounts
Setting showThreeDotsMenu to false for locked accounts stops rendering ThreeDotsMenu, but it also activates the fallback path in MenuItem (shouldShowRightIcon={!showThreeDotsMenu && item.shouldShowRightIcon}) while iconRight is still the three-dot asset for wallet payment methods. In WalletPage this means locked bank accounts still show a three-dot icon, just without the menu behavior, which preserves the misleading affordance this change is trying to remove.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@flaviadefaria Can you confirm if we want to show the three dots icon or not? We have prevented the menu from showing, should we remove the icon as well?
Explanation of Change
When a bank account is in a locked state, the three-dot menu still renders in the Wallet page. Since there are no useful actions for a locked account (most conditional items are false), the menu shows empty space with only a delete option. Additionally, tapping the icon triggers both navigation to Concierge chat AND the popup menu simultaneously.
This fix adds
!isInLockedStateto theshowThreeDotsMenucondition inPaymentMethodListItem.tsx, which prevents the three-dot icon from rendering entirely for locked bank accounts. This matches the expected behavior described in the issue: "No more menu appears when tapping the three-dot icon on a locked account."Fixed Issues
$ #87731
PROPOSAL: #87731 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari