-
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
[Awaiting checklist completion] [$500] Chat - User suggestion lost when hit space after entering user's first name #30217
Comments
Triggered auto assignment to @twisterdotcom ( |
Job added to Upwork: https://www.upwork.com/jobs/~01d7e3cf200819dc8c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a user's display name contains a space, the suggestions cause by mentioning a user with an @ sign stop working after the space What is the root cause of that problem?Parsing the @ is done by splitting words by the What changes do you think we should make in order to solve the problem?In the case of parsing mentions (i.e. the original logic is OK for the emoji parsing but not mention parsing), instead of only checking the last word, we should check the last x words, where x is a reasonable amount of spaces in a name we should support searching. Like so (edit of lines 201 on from src/pages/home/report/ReportActionCompose/SuggestionMention.js):
Alternative Solutions:Change composer parsing altogether such that it uses more complex signals to determine what is the currently active segment of text (i.e. timing or something else) rather than by relying on spaces. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - User suggestion lost when hit space after entering user's first name What is the root cause of that problem?We're extracting the lastWord (split by space) to figure out it's the mention or not
In this case, the text is -> The mention suggestion is not shown What changes do you think we should make in order to solve the problem?We should not split the text by space to detect the mention, instead of that, we should use
In the code change above, I use the additional condition numberOfSpace to count the spaces after ResultScreen.Recording.2023-10-24.at.19.05.39.mov |
Two proposals please @allroundexperts. |
In my opinion, we should not change the character we're using to split the keyword. It makes the solution more complex. What @graylewis has proposed seems much more simple. I think we should go with there proposal. I also think that most names won't have more than 2 spaces so we should just check for the last 2 words. @twisterdotcom and the assigned internal engineer can confirm this though. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allroundexperts What happens if we allow 4-5 spaces in the name? The solution you choose may add the redundant codes |
@tienifr I think we can also do that dynamically in the PR IF requirement changes to something like 5 spaces in name. |
I agree that, in most situations, names won't contain more than 2 spaces. Even if there are more than 2 spaces, this would still create a unique name, and mentioner should be able to select the user. |
📣 @allroundexperts Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @graylewis 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Just accepted the offer on Upwork. I should be able to get a PR submitted by tomorrow evening CEST |
@techievivek Quick clarifying point, I have the code working with all edge cases I can think of. There is one small detail that I felt I should ask about before submitting my PR. Here's the relevant snippet with the updated code:
This code works great for all the edge cases I can think of, but it also reveals another issue. When the entire display name is supplied to the MentionSuggestions component, the getStyledTextArray() function which handles rendering the display name of the suggestion returns a lowercase string. I'm not sure why this design decision was made, but regardless it will need to be re-engineered for this edge case. This doesn't seem like a regression, but rather an edge case that wasn't considered in the design of the getStyledTextArray function. It also doesn't seem like it's in the scope of this bug report to fix. What should I do in this situation? Am I now responsible for this separate bug that is revealed (but not caused by) my fix? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.5-7 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-12-07. 🎊 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:
|
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:
|
Payment Summary: @graylewis paid $500 here (Contributor) Awaiting checklist completion |
This one had a regression @twisterdotcom. Should be 1/2. |
Refund requsted for $250 from @graylewis: https://www.upwork.com/nx/wm/give-refund/f/contracts/35329365/give-refund New Payment Summary: |
@twisterdotcom Refund given |
Great. @allroundexperts do we need regression testing steps here? |
@twisterdotcom I think this was more of a feature request. As such, the checklist / regression test is not needed here. |
Reopening this since we have a pesky regression that we are thinking stems from here. @situchan has recommended here that we revert #31435, which was connected to this issue. @twisterdotcom @techievivek thoughts? |
$250 payment for @allroundexperts based on comment above. |
@sakluger let's move this to slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1706196697256569 |
Okay cool, so we won't revert this actual PR, but we can fix it all as one in the new issue. I don't think we would penalise @graylewis or @allroundexperts for this one. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.89-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Suggestion list should remain when user use space to divide First and Last name
Actual Result:
User suggestion lost when hit space after entering user's first name into chat composers
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Windows: Chrome
Bug6248030_1698095877043.Recording__1293.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexpertsThe text was updated successfully, but these errors were encountered: