-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: a 'new comment' when opening the one expense report for the first time #43531
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, thanks for the changes
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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