-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 undo message after delete #25583
fix undo message after delete #25583
Conversation
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.
Left a comment about the code.
if (ReportActionsUtils.isDeletedAction(props.action)) { | ||
Report.saveReportActionDraft(props.report.reportID, props.action, ''); | ||
} |
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.
Let's move it to a separate hook and we should add another check isDeleted && !isDraftEmpty
useEffect(() => {
if (isDraftEmpty || !ReportActionsUtils.isDeletedAction(props.action)) {
return;
}
Report.saveReportActionDraft(props.report.reportID, props.action, '');
}, [isDraftEmpty, props.action, props.report.reportID]);
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.
@fedirjh thanks for review, I updated
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-08-22.at.12.44.42.mp4Mobile Web - ChromeCleanShot.2023-08-22.at.13.15.17.mp4Mobile Web - SafariCleanShot.2023-08-22.at.12.59.01.mp4DesktopCleanShot.2023-08-22.at.12.50.06.mp4iOSCleanShot.2023-08-22.at.13.02.47.mp4AndroidCleanShot.2023-08-22.at.13.46.40.mp4 |
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.
Looks good to me.
🎀 👀 🎀 C+ reviewed
cc @namhihi237 @Gonals The PR (#24544) that fixed the first case was reverted Should we hold this PR until the other issue is fixed? |
I think we should wait for #24544 to be fixed. I checked the deploy blocker ticket, It's a simple fix #25690 (comment), I think it does make sense to put this on hold. |
I totally agree, we should hold and wait for it. |
Let's wait on that, then :) |
@fedirjh @namhihi237, all good here? Do you want to retest? |
It seems that #21527 is on hold for merge freeze. |
Is #24445 reproducible even without this PR? |
@fedirjh, can you do a final round of testing if needed? this seems ready to go |
Seems we have a failing test. cc @namhihi237
Does the other PR fixes the case for 2 devices? |
No. It does not fix this case |
@fedirjh I synced with the main and fixed the test fail |
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.
Looks good to me
✋ 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/Gonals in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
🚀 Deployed to staging by https://github.com/Gonals in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Fixed Issues
$ #24445
PROPOSAL: #24445 (comment)
Tests
Offline tests
QA Steps
The same test
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
web.mov
Mobile Web - Chrome
Screen.Recording.2023-08-21.at.21.44.46.mov
Mobile Web - Safari
safari.mov
Desktop
desk.mov
iOS
ios.mov
Android
Screen.Recording.2023-08-21.at.21.40.52.mov