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] |
|
|
||
| let currentUserAccountID = -1; | ||
| let currentUserEmail = ''; | ||
| let session: Session; |
There was a problem hiding this comment.
Why this change? I think we can use isPayer like what we did here
| if ( | ||
| isInvoiceReport(report) || | ||
| !isPayer( | ||
| !isPayerReportUtils( |
| type: 'strong', | ||
| } | ||
| : { | ||
| text: `an admin`, |
There was a problem hiding this comment.
For the text an admin, do we need type strong? We don't use strong in
Line 293 in f2683d9
| message: [ | ||
| }; | ||
|
|
||
| if (autoReportingFrequency !== CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT) { |
There was a problem hiding this comment.
Can you add the reason for this change?
There was a problem hiding this comment.
Coming from #57574 checklist: As described, we're currently checking the approval status instead of the report frequency, so we need to update the logic to use the approval mode instead.
|
@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 |
|
✋ 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 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
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