fix: only fall back to group policy for expense sign when no report exists - #99434
marcochavezf merged 4 commits into
Conversation
…gated expense-sign SelfDM report is type=chat/not expense, so with the isEmptyObject(report) gate (ReportUtils:5073 / TotalCell:55) isGroupPolicy fallback is ignored. Draft amount is now display-signed (+5000) not storage-negated, matching real isGroupPolicy(undefined)=false and fixing multi-WS P2P sign flip.
garrettmknight
left a comment
There was a problem hiding this comment.
Looks good from a product perspective.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUploading 99434_android_native.mov… Android: mWeb ChromeUploading 99434_android_web.mov… iOS: HybridApp99434_ios_native.moviOS: mWeb SafariUploading 99434_ios_web.mov… MacOS: Chrome / Safari99434_web_chrome.mov |
|
🚧 marcochavezf has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 9.4.73-0 🚀
|
|
No help site changes are required for this PR, so I did not create a docs PR. This is an internal sign-convention bug fix, not a behavior or feature change that the help site documents. Why I concluded thatWhat changed: both Net user-facing effect: the amount displays correctly (positive) instead of incorrectly (negative). The corrected state is what the help site already implies, so there is nothing to add, remove, or reword. Docs I checked in
Other checks: no new or renamed UI labels, tabs, settings, or buttons; no new workflow or setting; no copy changes. The third file changed is a unit-test assertion. @M00rish, please confirm you agree that no help site update is needed here. If you think an article should call out expense amount display, reply with |
They are the same as the |
|
description updated |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.73-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Fixed Issues
$ #98715
PROPOSAL:
#98715 (comment)
Tests
4.. Choose the recipient as "You" (Personal account)
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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))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
Screen_Recording_20260901_174109_New.Expensify.mp4
Android: mWeb Chrome
android.webm
iOS: Native
ios.webm
iOS: mWeb Safari
iosweb.webm
MacOS: Chrome / Safari
web1.webm