-
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
update status num to correct value #56950
Conversation
@dukenv0307 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] |
src/libs/NextStepUtils.ts
Outdated
|
||
let currentUserAccountID = -1; | ||
let currentUserEmail = ''; | ||
let session: Session; |
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.
Why this change? I think we can use isPayer
like what we did here
src/libs/NextStepUtils.ts
Outdated
@@ -268,7 +298,7 @@ function buildNextStep(report: OnyxEntry<Report>, predictedNextStatus: ValueOf<t | |||
case CONST.REPORT.STATUS_NUM.APPROVED: | |||
if ( | |||
isInvoiceReport(report) || | |||
!isPayer( | |||
!isPayerReportUtils( |
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.
Why not using isPayer
?
type: 'strong', | ||
} | ||
: { | ||
text: `an admin`, |
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.
For the text an admin
, do we need type strong
? We don't use strong in
Line 293 in f2683d9
text: 'an admin', |
message: [ | ||
}; | ||
|
||
if (autoReportingFrequency !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT) { |
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.
Can you add the reason for this change?
@dukenv0307 updated! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-20.at.21.40.08.movAndroid: mWeb ChromeScreen.Recording.2025-02-20.at.21.36.14.moviOS: NativeScreen.Recording.2025-02-20.at.21.41.27.moviOS: mWeb SafariScreen.Recording.2025-02-20.at.21.33.36.movMacOS: Chrome / SafariScreen.Recording.2025-02-20.at.21.29.37.movMacOS: DesktopScreen.Recording.2025-02-20.at.21.45.55.mov |
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
✋ 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/jasperhuangg in version: 9.1.3-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.3-4 🚀
|
Explanation of Change
The optimistic message was wrong and the delete option was missing if we canceled payment offline, this PR fixes that issue
Fixed Issues
$ #55319
PROPOSAL: #55319 (comment)
Tests
Same as QA test steps
Offline tests
Same as QA test steps
QA Steps
Precondition:
Test Steps:
Verify that: Delete expense button is present
Verify that: You see the message
Waiting for you to pay expense(s).
Note that there is a backend bug where it will show, no further action needed when we come online, that will be fixed seperately by @jasperhuangg
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Screen_recording_20250218_124936.mp4
Android: mWeb Chrome
Screen_recording_20250218_125727.mp4
iOS: Native
Simulator.Screen.Recording.-.Expensify.testing.-.2025-02-18.at.12.38.54.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.Expensify.testing.-.2025-02-18.at.12.40.41.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-02-18.at.12.28.22.PM.mov
MacOS: Desktop
Screen.Recording.2025-02-18.at.12.33.46.PM.mov