[CP Staging] fix: dont use snapshot data in search page in settlement button#66059
Conversation
|
@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] |
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-07-15.at.00.28.18.movMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ttlement-button fix: dont use snapshot data in search page in settlement button (cherry picked from commit 53f0ae3) (cherry-picked to staging by luacmartins)
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.1.80-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
…napshot-use-in-settlement-button"
…napshot-use-in-settlement-button'
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.80-8 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/luacmartins in version: 9.1.81-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.1.81-7 🚀
|
Explanation of Change
We need all policies to filter workspaces where the account is an admin and show it as a payment option for an IOU in
SearchPage. The snapshot data doesn't return all policies, and at a low level,useOnyxprevents access to the regular policies onyx data from theSearchPage. This change will utilize the Onyx connection fromPolicyUtils.tsbased on a condition.Fixed Issues
$ #65982
PROPOSAL:
Tests
Offline tests
N/a
QA Steps
Same as Tests
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))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
MacOS: Desktop