Conversation
6fb7b67 to
a7eada7
Compare
isOneTransactionReportisOneTransactionReport
|
@allroundexperts 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-06-29.at.3.46.26.AM.moviOS: HybridAppScreen.Recording.2025-06-29.at.3.42.06.AM.moviOS: mWeb SafariScreen.Recording.2025-06-29.at.3.40.20.AM.movMacOS: Chrome / SafariScreen.Recording.2025-06-29.at.3.35.06.AM.movMacOS: DesktopScreen.Recording.2025-06-29.at.3.37.29.AM.mov |
@JakubKorytko This seems to be failing. I created an expense in the future as an employee, and am still able to approve and pay it as a admin. Screen.Recording.2025-06-25.at.5.09.12.AM.mov |
|
@allroundexperts I believe this only applies to hotel and car rental reservations.
App/src/libs/TransactionUtils/index.ts Lines 1216 to 1221 in e091028 |
|
@JakubKorytko On each platform, when you open the single transaction report, it initially shows two icons, and after the transaction gets loaded, it shows the correct number of icons. Screen.Recording.2025-06-29.at.3.46.26.AM.mov |
@allroundexperts I know this might seem wrong, but I can't think of any other way to get the avatar count when the data hasn't loaded yet. You can check on the staging to see that the icon hasn't changed at all because the code was incorrect. |
|
The diagonal avatar/2 avatar case is typically the edge case - it ONLY happens when an IOU report has expenses from two separate people. I would prefer we default to a single avatar in the loading state if we can. |
|
@shawnborton Sorry, I used the wrong terminology. This isn't the same issue. It's not a case of two versus one avatar, but rather the user avatar being in a subscript.
There is a difference here. So, should the user avatar be in a subscript by default or not? |
A little suprised by that, it probably didn't work for a while but in the code actually we want to show this type of avatar on every report that is not a single transaction report view. Line 8812 below: Lines 8789 to 8830 in af6db62 Subscript is basically the non-diagonal workspace - user avatar so I'm a little confused about what to do with this. |
|
@shawnborton Okay then, so we need to remove Right now, though, I think this PR's branch should be merged into #64802, and this PR should be closed, as the two overlap dangerously and will cause many conflicts. I believe this would make things much cleaner as they are both around avatars at this point. I'm not sure how to handle @allroundexperts payment though. cc: @mountiny @trjExpensify for opinion on this. |
|
We can pay out @allroundexperts for the review here as it's approved. 👍 |
|
Closing as it was merged into #64802 |





Explanation of Change
The function
getOneTransactionThreadReportIDnever returns null; it always returns undefined. Therefore,isOneTransactionReportalways returns true.What has been done:
ReportUtilsGetIconsTestwas brought back and corrected.EnforceActionExportRestrictions.isOneTransactionReportreturn value was corrected.As this is a refractor of a helper method that is used in other report functions, it is difficult to specify the exact test steps and videos. However, I don't think it should be marked as 'no QA', so I indicated the areas of the app that are most affected in the tests section.
Fixed Issues
$ #64333
PROPOSAL: N/A
Tests
Offline tests
Same as tests
QA Steps
Same as tests
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))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