-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$500] LHN shows tag as @email@domain.com instead of @person #36284
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017c3d81a0688971b8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Triggered auto assignment to @joekaufmanexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Show @person mentions in LHN What is the root cause of that problem?Seems we have no accountID on the html object we send and retrieve. What changes do you think we should make in order to solve the problem?We can start sending the accountid of the mentioned user inside the node so that #26877 works as expected. It requires us to pass down the account id from the suggestion to the ExpensiMark parser which converts it to the suggestion html. What alternative solutions did you explore? (Optional) |
Not overdue. Will look at this more today |
ProposalPlease re-state the problem that we are trying to solve in this issue.LHN shows tag as @email@domain.com instead of @person What is the root cause of that problem?On LHN show the lastMessageText including email mentioned without a username What changes do you think we should make in order to solve the problem?We will detect email mention with the pattern let lastMessageText = lastMessageTextFromReport;
+ const mentionRegex = /[^@\s]+@[^@\s]+\.[^@\s]+/g;
+ const matchedEmail = lastMessageText.match(mentionRegex);
+ if (matchedEmail && matchedEmail.length > 0) {
+ matchedEmail.forEach((email) => {
+ const pDetail = UserUtils.getPersonalDetailByEmail(email);
+ if (pDetail?.displayName) {
+ lastMessageText = lastMessageText.replace(email, pDetail.displayName);
+ }
+ });
+ } Or update at Add function function getPersonalDetailByEmail(email?: string)?: PersonalDetails | undefined | null {
return Object.values(allPersonalDetails ?? {}).find((personalDetails) => personalDetails?.login === email);
} POC Screen.Recording.2024-02-13.at.02.12.05.movWhat alternative solutions did you explore? (Optional) |
Confirmed in Slack that this should be fixed by https://github.com/Expensify/Expensify/issues/313934 , closing in favor of that issue! |
Hi, @joekaufmanexpensify Your reference issue is incorrect, could you please update it? and how can I access this thread? Thank you! |
@suneox It's actually just an internal issue, that's why you're unable to view it. The Slack discussion I linked is internal as well. Our team is fixing this one internally. LMK if you have any other questions. |
@joekaufmanexpensify thank you for your feedback, I've got it
Due to the issue will be resolved internal so I have a bit confuse if my proposal will be applied |
Ah, got it. Nope we're refactoring this feature entirely, which will fix this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.39-0
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
Expensify/Expensify Issue URL:
Issue reported by: @coleaeason
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707498095462179
Action Performed:
Expected Result:
LHN should show @person
Actual Result:
Shows as @email@domain.com
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence

View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: