fix: a 'new comment' when opening the one expense report for the first time#43531
fix: a 'new comment' when opening the one expense report for the first time#43531srikarparsi merged 8 commits intoExpensify:mainfrom
Conversation
|
Still working on the testing on all platforms. Also, comparing to the staging where I can find the easiest step test case. |
|
@mollfpr any update here? |
|
Still working on the testing, but I'll finish it EOD. |
|
@nkdengineer I think we're missing the expected result here. Currently, in staging, we have one money request preview at least when it's open offline as expected on the PR #36657. Here's the result from this PR. There's no money request preview when it's only one expense. The new comment mark is still appearing when more than one expense is submitted. |
@mollfpr Can you share the full step for this bug, here is my result when I test in this PR. Screen.Recording.2024-06-19.at.21.09.33.mov
Please share the full steps to reproduce this bug, I also can't reproduce this. |
|
@nkdengineer The step is same with the issue.
The easiest way to repro the issue is, to switch offline before opening the money request and make sure you haven't open the money request report before. |
Here is the result when I test on the latest main (the result is the same on staging). Screen.Recording.2024-06-20.at.11.25.28.movHere is the result when I test on this PR Screen.Recording.2024-06-20.at.11.27.19.mov |
|
@nkdengineer why the result on staging different with the issue? Also, you should be sign-in as approver after the employee submit the expense, exactly the same with the video in the issue. |
I signed-in as approver in the video. |
@mollfpr It comes from BE. Now on staging when we login as approver, BE returns the created action of transaction thread report and only return the iou action of expense report. So if we open the iou report, the With this PR, we will use |
|
I see it now. The behavior seems to change on the staging and my latest test doesn't repro the issue I mention before. Thanks @nkdengineer |
|
The test and changes look good to me! We just need to resolve the conflict and re-run the test. Also, for the test step, I think we can update it too: Pre-requisite, 2 accounts one of them is the employee and approver.
|
Reviewer Checklist
Screenshots/VideosAndroid: Native43531.Android.mp4Android: mWeb Chrome43531.mWeb-Chrome.mp4iOS: Native43531.iOS.moviOS: mWeb Safari43531.mWeb-Safari.movMacOS: Chrome / Safari43531.Web.mp4MacOS: Desktop43531.Desktop.mp4 |
srikarparsi
left a comment
There was a problem hiding this comment.
Hey @nkdengineer, looks like there's conflicts now. Please ping me once you get to them and I can review
|
Didn't mean to approve |
|
@srikarparsi I resolved the conflict. Please help to check again. |
|
Lint looks like it's failing now @nkdengineer |
|
@srikarparsi It's fixed now. |
|
✋ 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 production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|



Details
Fixed Issues
$ #42472
PROPOSAL: #42472 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov