Fix mark as complete button shows up on cancelled task report#38991
Conversation
|
Please fix conflict |
|
@situchan I updated. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeweb-ios2.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb-ios.movMacOS: Desktopdesktop.mov |
| </PressableWithoutFeedback> | ||
| <View style={[styles.reportOptions, styles.flexRow, styles.alignItemsCenter]}> | ||
| {isTaskReport && !isSmallScreenWidth && ReportUtils.isOpenTaskReport(report) && <TaskHeaderActionButton report={report} />} | ||
| {isTaskReport && !isSmallScreenWidth && ReportUtils.isOpenTaskReport(report, parentReportAction) && <TaskHeaderActionButton report={report} />} |
There was a problem hiding this comment.
@dukenv0307 this change is enough for me. No need changes in ReportScreen. Am I missing anything?
web-ios.mov
There was a problem hiding this comment.
@situchan #37707 (comment) the change in ReportScreen is added to fix the issue that you mentioned here.
There was a problem hiding this comment.
Ah yes, but the current change will cause performance regression on ReportScreen.
I think what I reported is minor and can be out of scope if it's not straightforward fix.
There was a problem hiding this comment.
As you see the perf-test is passed since we change the memo to only re-render if the parentReportAction is changed.
|
@dukenv0307 you missed |
|
Updated the test step. |
|
✋ 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/marcochavezf in version: 1.4.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
Fix mark as complete button shows up on cancelled task report
Fixed Issues
$#37707
PROPOSAL:#37707 (comment)
Tests
Mark as completebutton doesn't appearOffline tests
Same as above
QA Steps
Mark as completebutton doesn't appearPR 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
Android: Native
Screen.Recording.2024-03-26.at.17.46.33.mov
Android: mWeb Chrome
Screen.Recording.2024-03-26.at.17.37.22.mov
iOS: Native
Screen.Recording.2024-03-26.at.17.48.05.mov
iOS: mWeb Safari
Screen.Recording.2024-03-26.at.17.38.51.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-26.at.17.35.00.mov
MacOS: Desktop
Screen.Recording.2024-03-26.at.17.50.40.mov