Fix: one expense report view render conditions#59814
Conversation
|
@ZhenjaHorbach 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] |
|
As for me this behavior does not look critical @mountiny |
|
🚧 @mountiny has triggered a test 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! 🧪🧪 |
|
@ZhenjaHorbach I think that if we have all the necessary data locally we should not show the skeleton. Can you please do thorough testing on this one? |
Yes |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreenrecorder-2025-04-07-15-39-25-77.mp4Android: mWeb ChromeScreenrecorder-2025-04-07-15-41-56-0.mp4iOS: Native2025-04-07.15.47.59.mp4iOS: mWeb Safari2025-04-07.15.48.03.mp4MacOS: Chrome / Safari2025-04-07.15.58.20.movMacOS: Desktop2025-04-07.15.58.20.mov |
|
Just checked But maybe they are just broken 2025-04-08.23.06.09.mov |
Thanks @ZhenjaHorbach for testing! Yeap, it looks unrelated, actually we've already started investigating why some expense reports have weird states (e.g. "Hmm... it's not here"). For now, we do know that it's related to duplicated requests sent ( Anyway, we'll try to fix this soon 🤚 cc @adhorodyski |
Sounds good |
|
@ZhenjaHorbach to confirm, for those expenses where you get the hmm its not there page - do you get that in staging/ main too? |
|
With the same expenses yes ! 2025-04-09.12.13.39.mov |
|
✋ 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/mountiny in version: 9.1.26-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.26-10 🚀
|
Explanation of Change
This PR is a follow-up to #59714. The original approach:
is valid. The described issue is not actually a bug, but rather the expected behavior of the app.
https://github.com/user-attachments/assets/1e7ce372-b903-4f5e-8722-b08459151257
Please refer to the attached recording for a step-by-step demonstration:
Expense Reportstab - here I expect to see all merged expenses.Expensestab and open any of the items - it still opens only a single expense view.This flow is completely independent of the changes introduced by @adhorodyski in yesterday's PR, which was the subject of the earlier discussion. It is simply how the app currently behaves. If we decide we want to change this behavior – i.e., to display merged reports in the Expenses tab instead of individual expenses - we can absolutely implement that, but it would constitute a change in application logic.
This PR restores @adhorodyski 's original changes, as they correctly address all the relevant cases for displaying single expense reports.
@mountiny @ZhenjaHorbach looking forward to hearing your thoughts on this.
Fixed Issues
$#58388
Tests
Regular reports
No skeletons when not needed.
Single expense reports
Skeletons each time we visit such reports for the first time. Subsequent visits should not produce a skeleton.
Here's a guide on how to reproduce opening up a fresh single expense report:
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
Nagranie.z.ekranu.2025-04-8.o.14.22.35.mov
MacOS: Desktop