-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$2000] Web - Inconsistently highlighting occurs when multiple mentions are used without spaces. #21753
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalInconsistently highlighting occurs when multiple mentions are used without spaces.Please re-state the problem that we are trying to solve in this issue.What is the root cause of that problem? What changes do you think we should make in order to solve the problem?In Solution of this issue The code can modify as follows: By checking This change will ensure that both cases (mentions without spaces and mentions with user email) are consistently highlighted or not highlighted based on their selection status |
Job added to Upwork: https://www.upwork.com/jobs/~01647f661251c3871e |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Added the external label. |
ProposalInconsistently highlighting occurs when multiple mentions are used without spaces.Please re-state the problem that we are trying to solve in this issue.What is the root cause of that problem? What changes do you think we should make in order to solve the problem?In Solution of this issue The code can modify as follows: By checking This change will ensure that both cases (mentions without spaces and mentions with user email) are consistently highlighted or not highlighted based on their selection status |
@aimane-chnaif thoughts on the proposal above? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistently highlighting occurs when multiple mentions are used without spaces What is the root cause of that problem?When @here mention is added along side user mention, ExpensiMark parser doesn't parse
This regex doesn't extract correct match However, with Hence, this caused inconsistency in highlight of here mention with multiple mentions. What changes do you think we should make in order to solve the problem?To fix here mention identification when mentioned with other user mention, we can change regular expression with below code here
What alternative solutions did you explore? (Optional)Since, we only consider user mention as valid if it's proceeded by a space. we should apply the same rule for here mention as well to have consistency. with that To apply this logic, we can change
|
@aimane-chnaif thoughts on the proposals above? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Shivam7-1 The root cause is not correct |
Okay I will check again and make changes in proposal accordingly |
Hello @aimane-chnaif What about @payal-lathidadiya proposal ? |
@payal-lathidadiya can you please explain in detail about your solution (regex)? |
PR review is ongoing. |
@agilejune I merged the expensify-common PR. Please open a PR in Expensify/App to update the expensify-common version. Thanks! |
@puneetlath @aimane-chnaif |
Based on #31541 (comment), the fix already deployed to production on Nov 23 in this PR |
Ok so is there anything left to do here? Or it sounds like we're ready to pay out? |
yes ready This was not a regression. As an edge case, the bug always existed after we implement here mentions. |
kk. @aimane-chnaif I sent you an offer. @agilejune can you please apply here? https://www.upwork.com/jobs/~01f57f05c12d9a825a |
@agilejune bump. Can you please apply to the Upwork job so that we can close this out? Actually, also @usmantariq96. https://www.upwork.com/jobs/~01f57f05c12d9a825a @aimane-chnaif has been paid |
@puneetlath applied Thanks |
@puneetlath |
@agilejune to this one? https://www.upwork.com/jobs/~01f57f05c12d9a825a I'm not seeing your application. |
can you check this proposal ? |
Yes, I applied there |
Super weird. I don't see it. Can you message me your upwork profile either here or in Slack and I'll try inviting you directly. Also @usmantariq96 friendly bump to apply. |
@puneetlath |
I thought I saved my details to contribute here. Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@puneetlath applied thanks |
@puneetlath offer accepted Thanks |
Ok only @agilejune left to pay once they accept. |
@puneetlath |
All paid. Thanks everyone! |
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:
Expected Result:
Consistency is expected, where both cases should either be highlighted or not.
Actual Result:
Multiple use of "@ here" are highlighted, but when using mentions with a user email followed by "@ here," it does not get highlighted.
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?
Version Number: 1.3.33-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
Recording.920.mp4
Bug.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687759061501769
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: