App icon indicating copy to clipboard operation
App copied to clipboard

[Pay 9/6] Clearing the comment while Editing will show (edited) for a brief time period

Open aman-atg opened this issue 5 years ago β€’ 20 comments

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:

  1. Login to newDot
  2. Go to any chat
  3. Edit your comment and delete everything in it
  4. (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:

View all open jobs on Upwork

aman-atg avatar Aug 04 '21 12:08 aman-atg

Triggered auto assignment to @michaelhaxhiu (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 04 '21 12:08 MelvinBot

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 1268 so that we don't flag the comment as edited when it's actually empty/deleted
    //  Delete the comment if it's empty
    if (_.isEmpty(htmlForNewComment)) {
        deleteReportComment(reportID, originalReportAction);
        return;
    }

aman-atg avatar Aug 04 '21 12:08 aman-atg

@michaelhaxhiu Eep! 4 days overdue now. Issues have feelings too...

MelvinBot avatar Aug 09 '21 19:08 MelvinBot

Holding for a weekish

mallenexpensify avatar Aug 10 '21 19:08 mallenexpensify

@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.

michaelhaxhiu avatar Aug 10 '21 19:08 michaelhaxhiu

I'll stay assigned til it's closed, you can unsubscribe to notifications @michaelhaxhiu

mallenexpensify avatar Aug 10 '21 22:08 mallenexpensify

ok kewl, I'll follow for fun anyway:)

michaelhaxhiu avatar Aug 11 '21 01:08 michaelhaxhiu

Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 20 '21 01:08 MelvinBot

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

mallenexpensify avatar Aug 20 '21 01:08 mallenexpensify

Yep, this looks like it's fine for UpWork πŸ‘

NikkiWines avatar Aug 23 '21 18:08 NikkiWines

Triggered auto assignment to @pecanoro (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Aug 23 '21 19:08 MelvinBot

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

mallenexpensify avatar Aug 23 '21 20:08 mallenexpensify

It looks good to me!! @aman-atg Go for it!

pecanoro avatar Aug 24 '21 19:08 pecanoro

@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

mallenexpensify avatar Aug 25 '21 15:08 mallenexpensify

Submitted the proposal on Upwork.

aman-atg avatar Aug 25 '21 15:08 aman-atg

Hired in Upwork!

mallenexpensify avatar Aug 25 '21 16:08 mallenexpensify

: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.

botify avatar Aug 30 '21 15:08 botify

πŸš€ Deployed to staging by @pecanoro in version: 1.0.88-3 πŸš€

platform result
πŸ€– android πŸ€– cancelled πŸ”ͺ
πŸ–₯ desktop πŸ–₯ cancelled πŸ”ͺ
🍎 iOS 🍎 cancelled πŸ”ͺ
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Aug 30 '21 17:08 botify

πŸš€ Deployed to production by @roryabraham in version: 1.0.90-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 failure ❌
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 01 '21 01:09 botify

Paid in Upwork, inc. bonus for reporting this issue

mallenexpensify avatar Sep 06 '21 18:09 mallenexpensify