Auto reporting: backward compatibility#70240
Auto reporting: backward compatibility#70240stitesExpensify merged 62 commits intoExpensify:mainfrom
Conversation
This reverts commit 18b803c.
|
This one is not back-end related so no need for me to review it, I am going to unassign myself and leave it to @stitesExpensify who was originally assigned to the issue |
|
Working my way through this review slowly but surely. In the mean time @s77rt can you please pull main and fix the conflicts? i'll try to get this done quick tomorrow so that more don't pop up |
|
Resolved conflicts. @c3024 Can you please give this a quick retest |
|
Wahoo! Over to you, @stitesExpensify. |
stitesExpensify
left a comment
There was a problem hiding this comment.
Looks great! Thanks for all of your work on this one!
|
How are there conflicts already 😭 @s77rt if you can fix those and DM me on Slack I will merge straight away |
|
@stitesExpensify The first conflicts came from a merged PR, then that PR got reverted so we got the conflicts again in reverse 😅. Resolved and should be good for merge |
|
Classic 🙃 . Thank you for dealing with that! |
|
✋ 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/stitesExpensify in version: 9.2.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.28-5 🚀
|
| handleReportChanged(report); | ||
| InteractionManager.runAfterInteractions(() => { | ||
| handlePreexistingReport(report); | ||
| }); |
There was a problem hiding this comment.
The InteractionManager.runAfterInteractions is applied to all reports which caused performance regression on accounts with thousands of reports. #74364
Fix PR: #74567
More details are in this thread: https://expensify.slack.com/archives/C08CZDJFJ77/p1762354238469329
There was a problem hiding this comment.
The InteractionManager.runAfterInteractions delays the navigation to the preexisting report, which causes the original report to show as self DM: #75956
| const shouldAutoReport = !!policy?.autoReporting || !!personalPolicy?.autoReporting || action !== CONST.IOU.ACTION.CREATE; | ||
| const transactionReportID = shouldAutoReport ? policyExpenseReport?.reportID : CONST.REPORT.UNREPORTED_REPORT_ID; | ||
| setTransactionReport(transactionID, {reportID: transactionReportID}, true); |
There was a problem hiding this comment.
When creating a per diem via the “+” button inside a report, transactionReportID is incorrectly set.
More details: #78235 (comment)
Explanation of Change
Fixed Issues
$ #70220
PROPOSAL:
Tests
Test 1: Personal policy auto reporting is off + Group policy auto reporting is off
Perquisites:
NoneTest 2: Personal policy auto reporting is on + Group policy auto reporting is off
Perquisites:
New reportOffline tests
Same as tests
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))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
MacOS: Desktop
Screen.Recording.2025-10-01.at.6.04.14.PM.mov