[Pay 9/6] Clearing the comment while Editing will show (edited) for a brief time period
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Login to newDot
- Go to any chat
- Edit your comment and delete everything in it
- (edited) will be shown for a few
ms
Expected Result:
Nothing should be shown
Actual Result:
https://user-images.githubusercontent.com/28243942/128183804-d3fa45aa-21a4-40a0-b614-69d1f17282ba.mp4
Workaround:
Visual Issue.
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:
Triggered auto assignment to @michaelhaxhiu (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Proposal
- This situation can be handled inside
src/libs/actions/Report..js. https://github.com/Expensify/App/blob/f77283722983908fe69befe261a2449b9a2cec19/src/libs/actions/Report.js#L1265-L1270 - We can add the below code after line
1268so that we don't flag the comment aseditedwhen it's actuallyempty/deleted
// Delete the comment if it's empty
if (_.isEmpty(htmlForNewComment)) {
deleteReportComment(reportID, originalReportAction);
return;
}
@michaelhaxhiu Eep! 4 days overdue now. Issues have feelings too...
Holding for a weekish
@mallenexpensify do you plan to keep this one throughout completion? I'm flexible - just want to make sure I don't miss it if it needs any action from me in coming days/weeks.
I'll stay assigned til it's closed, you can unsubscribe to notifications @michaelhaxhiu
ok kewl, I'll follow for fun anyway:)
Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Taking off hold. This is a tiny improvement but it'll be more clean without the (edited) blurb, unless we happen to need that for some reason. @NikkiWines can you take a peek then add the External label if you think this should be fixed and can be worked on by a contributor? Thx
Yep, this looks like it's fine for UpWork π
Triggered auto assignment to @pecanoro (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Posted to Upwork https://www.upwork.com/jobs/~01f40ebf66a38fb1f7 @pecanoro , can you review @aman-atg 's proposal above? https://github.com/Expensify/App/issues/4407#issuecomment-892634813
It looks good to me!! @aman-atg Go for it!
@aman-atg can you submit a proposal in Upwork and drop a comment in here when you have? I'll hire ya there. https://www.upwork.com/jobs/~01f40ebf66a38fb1f7
Submitted the proposal on Upwork.
Hired in Upwork!
:hand: 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 @pecanoro in version: 1.0.88-3 π
| platform | result |
|---|---|
| π€ android π€ | cancelled πͺ |
| π₯ desktop π₯ | cancelled πͺ |
| π iOS π | cancelled πͺ |
| πΈ web πΈ | success β |
π Deployed to production by @roryabraham in version: 1.0.90-2 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | failure β |
| πΈ web πΈ | success β |
Paid in Upwork, inc. bonus for reporting this issue