Fix: Partially set up bank account appears in the payment dropdown button#80083
Fix: Partially set up bank account appears in the payment dropdown button#80083lakchote merged 4 commits intoExpensify:mainfrom
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@hungvu193 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] |
trjExpensify
left a comment
There was a problem hiding this comment.
@joekaufmanexpensify is this right to completely filter them out, or should selecting it continue them on in the add bank account flow?
|
It would be ideal if selecting it prompted them to continue with the setup process. But if that's a more involved change, I also think this is fine for now, given the deprioritization of invoices. |
|
Cool, sounds good if it's expected right now. 👍 |
hungvu193
left a comment
There was a problem hiding this comment.
We have another usage of getPaymentSubitem here:
App/src/hooks/usePaymentOptions.ts
Line 166 in 3779ccf
@nyomanjyotisa can you check if we also need to filter out the partially set-up bank account here too?
|
@hungvu193 I'm not sure about the scenario where the Pay button displayed as a secondary action button. But for consistency, I think we should filter it there as well New-Expensify.mp4I hardcoded the App/src/components/MoneyReportHeader.tsx Lines 1515 to 1527 in 3779ccf |
|
Cool. Thanks |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-01-22.at.15.59.40.movAndroid: mWeb ChromeScreen.Recording.2026-01-22.at.16.02.12.moviOS: HybridAppScreen.Recording.2026-01-22.at.16.17.45.moviOS: mWeb SafariScreen.Recording.2026-01-22.at.16.03.17.movMacOS: Chrome / SafariScreen.Recording.2026-01-22.at.15.27.51.mov |
|
@nyomanjyotisa Could you merge main again? I'm unable to open the report because of maximum render depth issue 😂 |
|
Oh it's on main. Looks like it's a deploy blocker that's pending fix. |
|
@nyomanjyotisa could you please solve conflicts? |
|
@lakchote conflict resolved |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.3.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.10-6 🚀
|
Explanation of Change
Filter out partially set up bank accounts in
getPaymentSubItemsso they do not appear in the payment dropdownFixed Issues
$ #79563
PROPOSAL: #79563 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Precondition:
Perform the steps below as User B:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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-Native.mp4
Android: mWeb Chrome
Android-mWeb.Chrome.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-mWeb.Safari.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4