-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
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 |
@@ -334,7 +334,7 @@ function HeaderView({report, personalDetails, parentReport, parentReportAction, | |||
)} | |||
</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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@situchan #37707 (comment) the change in ReportScreen
is added to fix the issue that you mentioned here.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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/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 complete
button doesn't appearOffline tests
Same as above
QA Steps
Mark as complete
button doesn't appearPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.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