Conversation
…and close approval flow
… approval mode the policy has
|
@rushatgabhane 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] |
| }; | ||
|
|
||
| /** @deprecated Whether the scheduled submit is enabled */ | ||
| isPreventSelfApprovalEnabled?: boolean; |
There was a problem hiding this comment.
This is no longer being sent from backend so we can remove it
|
|
||
| describe('it generates a nullable optimistic nextStep', () => { | ||
| test('closed status', () => { | ||
| const result = NextStepUtils.buildNextStep(report, CONST.REPORT.STATUS_NUM.CLOSED); | ||
|
|
||
| expect(result).toBeNull(); | ||
| }); | ||
| }); |
There was a problem hiding this comment.
I believe this usecase is only in the Cancel payment flow and even in that one I think its fair so show the Finished no further action required message. So its safe to remove
|
@rushatgabhane will you be able to address this one? |
|
@mountiny yes today |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-04-08.at.13.06.37.movMacOS: DesktopSame as web |
|
✋ 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/MariaHCD in version: 1.4.61-0 🚀
|
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.4.61-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|




Details
We were missing default values for delayed submission and for the approval mode when the policy is created optimistically in newdot. By default, the policy is made as Submit and close, so when we create a policy offline and then proceed to create a request and submit it, the report should end up getting closed.
Added a unit test to cover this case
Fixed Issues
$ #39337
Tests
FinishedNo further action required!Offline tests
Same as tests
QA Steps
Same as tests
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
Logic changes so only adding web and ios native:
Screen.Recording.2024-04-03.at.23.02.14.mp4
Screen.Recording.2024-04-03.at.23.03.58.mp4
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop