App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2022-11-09] [$250] Bug: Space after emoji doesn't get added for edit field like main composer reported by @Puneet-here

Open kavimuru opened this issue 2 years ago • 16 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. Open any chat > Send message > Edit
  2. Click on emoji button and select an emoji

Expected Result:

The space should be added after emoji like composer

Actual Result:

Space doesn't get added after adding emoji

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.2.14-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: https://user-images.githubusercontent.com/43996225/195677511-af2c2bc9-0443-44db-bcd3-37445b0206b6.mp4 https://user-images.githubusercontent.com/43996225/195677500-769c3c7d-6497-4561-91c5-6dd2b328e982.mov Expensify/Expensify Issue URL: Issue reported by: @Puneet-here Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1665670095261569

View all open jobs on GitHub

kavimuru avatar Oct 13 '22 18:10 kavimuru

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

melvin-bot[bot] avatar Oct 13 '22 18:10 melvin-bot[bot]

Proposal

We need to add a new variable emojiWithSpace and need to use it like this:

    addEmojiToTextBox(emoji) {
        const emojiWithSpace = `${emoji} `;
        const newComment = this.state.draft.slice(0, this.state.selection.start)
            + emojiWithSpace + this.state.draft.slice(this.state.selection.end, this.state.draft.length);
        this.setState(prevState => ({
            selection: {
                start: prevState.selection.start + emojiWithSpace.length,
                end: prevState.selection.start + emojiWithSpace.length,
            },
        }));
        this.updateDraft(newComment);
    }

https://github.com/Expensify/App/blob/44c75aada4405bbff7b1c992e690b616c2c659d4/src/pages/home/report/ReportActionItemMessageEdit.js#L158 we also do the same at reportActionCompose.js

Puneet-here avatar Oct 13 '22 18:10 Puneet-here

I was able to reproduce this bug, passing to engineering.

sakluger avatar Oct 15 '22 01:10 sakluger

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

melvin-bot[bot] avatar Oct 15 '22 01:10 melvin-bot[bot]

Triggered auto assignment to @davidcardoza (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

melvin-bot[bot] avatar Oct 17 '22 17:10 melvin-bot[bot]

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

melvin-bot[bot] avatar Oct 17 '22 17:10 melvin-bot[bot]

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

melvin-bot[bot] avatar Oct 17 '22 17:10 melvin-bot[bot]

@Puneet-here 's proposal looks good to me.

cc: @sketchydroide

:ribbon: :eyes: :ribbon: C+ reviewed

parasharrajat avatar Oct 17 '22 17:10 parasharrajat

📣 @Puneet-here You have been assigned to this job by @sketchydroide! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻 Keep in mind: Code of Conduct | Contributing 📖

melvin-bot[bot] avatar Oct 27 '22 10:10 melvin-bot[bot]

not overdue...

sketchydroide avatar Oct 27 '22 10:10 sketchydroide

BugZero Checklist: The PR fixing this issue has been merged! The following checklist will need to be completed before the issue can be closed:

  • [ ] A regression test has been added or updated so that the same bug will not reach production again. Link to the updated test here:
  • [ ] The PR that introduced the bug has been identified. Link to the PR:
  • [ ] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [ ] A discussion in #contributor-plus has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [ ] Payment has been made to the issue reporter (if applicable)
  • [ ] Payment has been made to the contributor that fixed the issue (if applicable)
  • [ ] Payment has been made to the contributor+ that helped on the issue (if applicable)

melvin-bot[bot] avatar Oct 31 '22 11:10 melvin-bot[bot]

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.22-3 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

  • https://github.com/Expensify/App/pull/12200

If no regressions arise, payment will be issued on 2022-11-09. :confetti_ball:

melvin-bot[bot] avatar Nov 02 '22 15:11 melvin-bot[bot]

@davidcardoza I think no regressions were found, so I think we are good to follow with the payment.

sketchydroide avatar Nov 11 '22 10:11 sketchydroide

Offer sent to @parasharrajat for payment

davidcardoza avatar Nov 11 '22 23:11 davidcardoza

@kavimuru I Have read the proposal on UpWork so i head to this issue. As per above discussion I can see the issue has been resolved already. Can you please confirm me is it still open & need to fix in an enhanced manner? Please let me know just looking forward to hear from your side. Thanks

hammad-6304 avatar Nov 12 '22 06:11 hammad-6304

@hammad-6304 Yes, it is fixed now.

kavimuru avatar Nov 12 '22 13:11 kavimuru

@davidcardoza anything for us to do here?

sketchydroide avatar Nov 14 '22 10:11 sketchydroide

Hi @davidcardoza, could you please send me an offer or provide the job link since it qualifies for fixing and reporting bonus.

Puneet-here avatar Nov 14 '22 11:11 Puneet-here

@Puneet-here Sent

davidcardoza avatar Nov 14 '22 19:11 davidcardoza

I have accepted the offer.

Puneet-here avatar Nov 14 '22 19:11 Puneet-here

There was no Upwork job created for this @davidcardoza. C+ is still waiting for payment on this. Please reopen it.

parasharrajat avatar Nov 14 '22 19:11 parasharrajat

@parasharrajat I sent you a payment on Upwork for the job. Can you accept? image

davidcardoza avatar Nov 15 '22 00:11 davidcardoza

@davidcardoza, I only received $250. I believe the total amount should be $500, $250 for the fix and $250 for the reporting

Puneet-here avatar Nov 15 '22 07:11 Puneet-here

Bump @davidcardoza

Puneet-here avatar Nov 18 '22 20:11 Puneet-here

@Puneet-here i processed an additional $250

davidcardoza avatar Nov 18 '22 20:11 davidcardoza

I have accepted the offer, thanks

Puneet-here avatar Nov 18 '22 20:11 Puneet-here

@davidcardoza I am still awaiting payment on this. Should we reopen this issue until payment is done? It is easier to track this way.

parasharrajat avatar Nov 18 '22 21:11 parasharrajat

Bump :arrow_up:

parasharrajat avatar Nov 22 '22 10:11 parasharrajat

@parasharrajat I am showing a $250 payment was processed and accepted by you on the job - https://www.upwork.com/jobs/~01cfb61bdcd6543656

image

davidcardoza avatar Nov 23 '22 01:11 davidcardoza

@davidcardoza I have only accepted the offer. You still need to complete the payment and complete the contract.

parasharrajat avatar Nov 23 '22 01:11 parasharrajat