-
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
Show deleted messages with a strike-through when offline #10780
Conversation
Hey @PauloGasparSv is this ready for review? Just wondering b/c I don't see any platform screenshots 🤔 |
Oh sorry @Beamanator! Adding them now, didn't do that for my previous P.R. I'll start adding them now :D |
Thanks @PauloGasparSv ! Will start reviewing now! For tiny changes like this I like to add at least 1 screenshot :D |
Thanks @Beamanator! I think I found a problem in iOS I didn't see when testing, it is only changing the message opacity but not adding the strike-through on deletion! Can you wait until I fix that for reviews? |
|
Ready for reviews! |
Hmm For some reason when testing in Android sim I'm seeing this - can one of y'all test android too? Oh my goodness i'm frustrated b/c my screen capture isn't working 😠 |
@Beamanator re-tested android here, it is super slow but the delete strike-through seems to work : ) |
Oh, it has to do with this P.R. : ) |
Ok nice @PauloGasparSv - i think it's a problem with my setup, so I'll approve thanks for testing on all devices! |
Also I think the fix was merged so maybe merge main @PauloGasparSv ? |
Yes @Beamanator! But I think I have to check the items in the contributor checklist before merging it now, so let me do that and I’ll then merge it in a bit :D |
@PauloGasparSv looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
…-strike Show deleted messages with a strike-through when offline (cherry picked from commit 77e5843)
…-10780 🍒 Cherry pick PR #10780 to staging 🍒
🚀 Cherry-picked to staging by @PauloGasparSv in version: 1.1.96-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Btw, something i realized just now is that the code here should have been tested with the test steps I posted in my PR which you reverted. This is because the code here did not capture the online scenario where the API takes some time which is what my PR and the deploy blocker had captured. QA is still facing the same deploy blocker issue on staging and for now, I've told them that it's not deployblocker worthy but they should create an issue of this - comment. |
@chiragsalian We have an issue logged #10799. Do we still need to log another issue? Bug5721995_10780_mWeb.mp4 |
Ah nope, that issue looks great. Thank you. |
Tests passed. Not an emergency. |
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
cc @chiragsalian @luacmartins
Details
Make sure message appears as striked-throughed if the user deletes it while offline
Fixed Issues
Follow up of #10764
Tests / QA
Delete message while offline
Delete message while online
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
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)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android