-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-06-02] [$1000] Mention auto-suggester adds extra spaces when same mention is selected #18742
Comments
Triggered auto assignment to @isabelastisser ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention auto suggester adds extra space when same mentioned is selected What is the root cause of that problem?The root cause of this problem is that we're always adding an extra space here regardless if the The same error occurs with emoji selection as well. What changes do you think we should make in order to solve the problem?We need to replace this line with:
We'll need to do the same in the What alternative solutions did you explore? (Optional)None The |
Job added to Upwork: https://www.upwork.com/jobs/~0179550c85e09022ec |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Current assignee @puneetlath is eligible for the External assigner, not assigning anyone new. |
Marking external since @szebniok is off for the rest of the week. |
@thesahindia note that @allroundexperts has already posted a proposal for review above. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Mention auto-suggester adds extra spaces when the same mention is selected What is the root cause of that problem?We are adding space every time we update the comment in both insertSelectedEmoji insertSelectedMention App/src/pages/home/report/ReportActionCompose.js Lines 610 to 624 in dd5fbb6
App/src/pages/home/report/ReportActionCompose.js Lines 589 to 604 in dd5fbb6
What changes do you think we should make in order to solve the problem?We should check if the first character of
We also do the same thing in insertSelectedEmoji like this
ResultMy solution will make the behavior like Slack Screen.Recording.2023-05-19.at.12.36.34.1.mp4 |
This comment was marked as outdated.
This comment was marked as outdated.
@thesahindia I think the selected approach will not work as it will not add a space if we have an emoji directly after the text. For example, this is how it works on Slack: After #19004 is merged, our app will essentially behave the same as above. With the proposal that we're currently choosing, following will happen: |
@thesahindia I think we should hold this issue until this thread is resolved |
@thesahindia we will remain the logic to get mention suggestion as @puneetlath mentioned here |
@dukenv0307, your updated proposal is similar to @allroundexperts. They proposed the solution first so I am going to go with them. @puneetlath, I like @allroundexperts's proposal 🎀👀🎀 C+ reviewed |
This comment was marked as off-topic.
This comment was marked as off-topic.
Are you sure that you have tested it correctly? Because I didn't see any problem. It works fine for me. |
@thesahindia Sorry, my bad. please ignore my comment |
No worries @dukenv0307! |
📣 @allroundexperts You have been assigned to this job by @puneetlath! |
PR created #19304 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.18-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-06-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Sent contracts to @0xmiroslav @allroundexperts @thesahindia. @thesahindia friendly reminder about the checklist! |
Paid @0xmiroslav and @allroundexperts. @thesahindia will get you once the checklist is done. |
Sorry for the delay. Dealing with it now. |
https://github.com/Expensify/App/pull/18469/files#r1218352520
https://expensify.slack.com/archives/C049HHMV9SM/p1685985155886849
I don't think we need a test case for this but let me know if we wanna add tests. |
I think we're good on tests. We're going to add a suite specifically for mentions. Thanks! |
@thesahindia I paid the contract but upwork seems to be having issues and won't let me close it. I'll try again tomorrow. |
Ok, managed to close it. Thanks everyone! |
Screen.Recording.2023-05-10.at.3.55.29.PM.mov
When you select the same mention again via the auto-suggestion menu extra spaces are added. We shouldn't do that.
@szebniok do you want to take this one?
Reported by @0xmiroslav
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: