38229 hide approve on submit and close#39071
Merged
robertjchen merged 5 commits intoExpensify:mainfrom Apr 2, 2024
Merged
Conversation
Contributor
Author
|
@Ollyws Over to you for review. |
6 tasks
Contributor
Author
|
@Ollyws Gentle bump on review here |
Contributor
|
Reviewing today |
Ollyws
reviewed
Apr 1, 2024
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4MacOS: Chrome / Safari05_MacOS_Chrome.mp4MacOS: Desktop06_MacOS_Desktop.mp4 |
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
44 tasks
48 tasks
Contributor
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
6 tasks
8 tasks
jjcoffee
reviewed
Oct 28, 2025
| value: optimisticNextStep, | ||
| }, | ||
| ]; | ||
| const optimisticData: OnyxUpdate[] = !isSubmitAndClosePolicy |
Contributor
There was a problem hiding this comment.
Coming from #72752. The submitted message does appear (maybe it changed since this PR) from the BE, so we shouldn't exclude it here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Ollyws @robertjchen
Details
This PR implements the hiding of the
Approvebutton during submission of report inSubmit and Closeapproval mode.Further, we also prevent creation of the
submittedreport action while submitting the report inSubmit and Closeapproval mode.Fixed Issues
$ #38229
PROPOSAL: #38229 (comment)
Test
Precondition:
Submit and Closeapproval mode.Steps:
Collectworkspace.Submitbutton for the money request created in step 1.Submitbutton.Approvebutton is not displayed in the report preview (Test 1)Approvebutton (Test 2)Offline tests
Same as the Steps in Tests Section.
QA Steps
Same as the Steps in Tests Section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
MacOS: Safari
38229-web-safari-01.mp4
iOS: mWeb Safari
38229-mweb-safari.mp4
MacOS: Desktop
38229-desktop.mp4
iOS: Native
38229-ios-native.mp4
Android: Native
38229-android-native.mp4
Android: mWeb Chrome
38229-mweb-chrome.mp4