Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Action Performed:
- Open the app
- Open any report
- Write @, it will trigger mention suggestions
- Write any letter, number or symbol after it
- Take it cursor back to position after the @ and observe that app again displays mention suggestions
- Clear everything and write double @@
- Take cursor back to position after the first @ and observe that app does not display mention suggestions
Expected Result:
App should display mention suggestions according to cursor position and text before it
Actual Result:
App does not display mention suggestions even though @ is present before cursor if @ is also present after cursor
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android / native
- Android / Chrome
- iOS / native
- iOS / Safari
- MacOS / Chrome / Safari
- MacOS / Desktop
Version Number: 1.3.77.2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
android.native.double.@.mention.issue.mp4
android.chrome.double.@.mention.issue.mp4
windows.chrome.double.@.mention.issue.mp4
ios.native.safari.double.@.mention.issue.mov
mac.chrome.double.@.mention.issue.mov
mac.desktop.double.@.mention.issue.mov
Recording.4843.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696338120628179
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~017e08f14329a2fd98
- Upwork Job ID: 1709321185861791744
- Last Price Increase: 2023-10-10
- Automatic offers:
- paultsimura | Contributor | 27123369
- dhanashree-sawant | Reporter | 27123379
Activity
[-]Chat - App closes mention suggestions when cursor is between double @[/-][+][$500] Chat - App closes mention suggestions when cursor is between double @[/+]melvin-bot commentedon Oct 3, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 3, 2023
Job added to Upwork: https://www.upwork.com/jobs/~017e08f14329a2fd98
melvin-bot commentedon Oct 3, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 3, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)paultsimura commentedon Oct 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Placing a cursor in between consecutive
@signs doesn't show the name suggestions.What is the root cause of that problem?
We are using a RegExp that no longer exists (
CONST.REGEX.NEW_LINE_OR_WHITE_SPACE_OR_EMOJI) to calculate the end of the next word after the cursor:App/src/pages/home/report/ReportActionCompose/SuggestionMention.js
Line 191 in a4f4a77
As a result, the value of
indexOfFirstWhitespaceCharOrEmojiAfterTheCursoris always 0 (as RegExp is undefined), and the calculation logic is broken.What changes do you think we should make in order to solve the problem?
We should replace the non-existing RegExp with the one that replaced it in #19004
Result:
double-mention.mov
What alternative solutions did you explore? (Optional)
Christinadobrzyn commentedon Oct 3, 2023
Hey team! Do you think this GH has the same root and therefore the same fix? #28753
paultsimura commentedon Oct 3, 2023
Hey @Christinadobrzyn , even though I'm not a part of the Internal team:
#28753 is a regression from the recently merged #28045
And this issue (#28754) existed relatively long before that regression – at least since #25758.
27 remaining items
melvin-bot commentedon Oct 18, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 18, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-5 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-10-25. 🎊
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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Oct 18, 2023
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:
mallenexpensify commentedon Oct 26, 2023
Issue reporter: @dhanashree-sawant paid $50 via Upwork
Contributor: @paultsimura paid $750 via Upwork, inc. urgency bonus (see above)
Contributor+: @parasharrajat due $750 via NewDot
@parasharrajat , can you please fill out the BZ checklist? Thx
parasharrajat commentedon Oct 26, 2023
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:
Regression Test Steps
@gmail(or any other email domain that is present in your contacts) after the first "@". It should be looking like@@gmailnow.Do you agree 👍 or 👎 ?
melvin-bot commentedon Oct 30, 2023
@madmax330, @paultsimura, @mallenexpensify, @parasharrajat Whoops! This issue is 2 days overdue. Let's get this updated quick!
madmax330 commentedon Oct 30, 2023
@mallenexpensify can you review the BZ checklist when you get a chance?
mallenexpensify commentedon Oct 30, 2023
Thanks @parasharrajat !
Regression test GH
Payment confirmation above is complete and up to date
parasharrajat commentedon Dec 5, 2023
Payment requested as per #28754 (comment)
JmillsExpensify commentedon Dec 11, 2023
$750 payment approved for @parasharrajat based on this comment.