You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-05-29] [$1000] Contact suggestion focus/selection does not reset after selecting a contact #18844
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Open a chat and write “@” only to mention a contact
Use the down arrow key on the keyboard to navigate through the contact suggestion list and select the second contact in the suggestion list and hit enter key
Write "@" again
Expected behavior:
The contact suggestion selection should start from the first contact again
Actual behavior:
The contact suggestion selection remains on the previously selected contact
NOTE : This behavior is inconsistent with the emoji suggestion functionality (video attached)
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
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.13.0 Reproducible in staging?: y Reproducible in production?: 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
We added the Mentions support in this PR #18469, where we didn't reset the index. I don't see any need for a regression test, nor updating the checklist. This can be categorized as missing test case/mistake.
I've commented on the offending PR to let the contributors know.
@amyevans do you think we need a regression test here?
Sorry, I should have flagged that I was offline yesterday for the US Bank Holiday but most of the team was offline too. I will work on the payment process today.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon May 12, 2023
Triggered auto assignment to @isabelastisser (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)PrashantMangukiya commentedon May 12, 2023
Proposal
Posting proposal early as per new guidelines
Please re-state the problem that we are trying to solve in this issue.
Contact suggestion focus/selection does not reset after selecting a contact.
What is the root cause of that problem?
When we press enter it will run this code.
App/src/pages/home/report/ReportActionCompose.js
Lines 749 to 758 in 101a3e2
We can see we are not resetting the index after suggesting. This is the root cause of the problem.
What changes do you think we should make in order to solve the problem?
We have to reset index as shown in code below i.e.
this.setState({highlightedMentionIndex: 0});This will solve the issue as shown in result video.
What alternative solutions did you explore? (Optional)
If we have to match code similar to emoji suggestion then we have to add
highlightedMentionIndex: 0for next state here.App/src/pages/home/report/ReportActionCompose.js
Lines 541 to 545 in 101a3e2
So updated code looks as under
This will also solve the issue and give same results.
Result
18844-MentionHighlight.mov
isabelastisser commentedon May 12, 2023
I won't be able to act on this until next Tuesday (Compliance deadlines), reassigning!
melvin-bot commentedon May 12, 2023
Triggered auto assignment to @alexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 12, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)alexpensify commentedon May 13, 2023
I started an internal discussion here: https://expensify.slack.com/archives/C049HHMV9SM/p1683994795740649?thread_ts=1683803719.905009&cid=C049HHMV9SM
46 remaining items
alexpensify commentedon May 27, 2023
@mananjadhav, @PrashantMangukiya, and @Nathan-Mulugeta - To prepare for the payment date, please apply to the job in Upwork:
https://www.upwork.com/jobs/~013072759f95d2c09f
Thanks!
PrashantMangukiya commentedon May 27, 2023
@alexpensify Can you please invite me for the job. I have not enough Upwork connect balance to apply. This is my Upwork profile https://www.upwork.com/freelancers/~01c718889ed7821f82 Thank you for your time.
mananjadhav commentedon May 27, 2023
We added the Mentions support in this PR #18469, where we didn't reset the index. I don't see any need for a regression test, nor updating the checklist. This can be categorized as missing test case/mistake.
I've commented on the offending PR to let the contributors know.
@amyevans do you think we need a regression test here?
alexpensify commentedon May 28, 2023
Thank you for that update @mananjadhav!
mananjadhav commentedon May 29, 2023
@alexpensify this is ready for payout.
amyevans commentedon May 30, 2023
No I think we're fine without.
alexpensify commentedon May 30, 2023
Sorry, I should have flagged that I was offline yesterday for the US Bank Holiday but most of the team was offline too. I will work on the payment process today.
alexpensify commentedon May 30, 2023
Flagging the urgency bonus here: #18844 (comment)
alexpensify commentedon May 30, 2023
Alright, it's payment time-- ring the bell!
@mananjadhav, @PrashantMangukiya, and @Nathan-Mulugeta - please accept in Upwork and I can complete the payment process. Thanks!
PrashantMangukiya commentedon May 30, 2023
@alexpensify Offer accepted on Upwork.
Nathan-Mulugeta commentedon May 31, 2023
Just accepted offer @alexpensify
alexpensify commentedon May 31, 2023
Alright, @mananjadhav, @PrashantMangukiya, and @Nathan-Mulugeta have been paid via Upwork. Great work here, the job is closed now!