-
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
Chat - Mentions are not shown in expensify issue card thread page instead a double space shown #54630
Comments
Triggered auto assignment to @sakluger ( |
Edited by proposal-police: This proposal was edited at 2024-12-27 21:26:29 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - Mentions are not shown in expensify issue card thread page instead a double space shown What is the root cause of that problem?For the thread header case when the assigned user hasn't set firstName BE will set it to empty string so the fallback of login here will not work as we use App/src/libs/ReportActionsUtils.ts Line 1809 in 12e0941
What changes do you think we should make in order to solve the problem?We need to use
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We can write a test for getCardIssuedMessage with shouldRenderHTML as false and assert that the assignee part is not empty string when the assignee firstName is empty string What alternative solutions did you explore? (Optional)We are intentionally displaying the assignee part with the firstName instead of the login for when shouldRenderHTML is false if we want it to consistent with the shouldRenderHTML case we can set it directly to |
Edited by proposal-police: This proposal was edited at 2024-12-28 04:55:56 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Mentions are not shown in expensify issue card thread page instead a double space is shown What is the root cause of that problem?We can reproduce this issue in WS while inviting new users and remove the existing users In some cases, BE will return the following message
In here and Line 3913 in 9412d21
we have the logic to convert html to text but it just covers the case -> the html doesn't match with the defined regex, so we don't see the mentioned users What changes do you think we should make in order to solve the problem?
so we need to update it to
Use the same logic for What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We should add new test in
and What alternative solutions did you explore? (Optional)In parseReportActionHtmlToText we can apply the logic to wrap accountID inside Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. Result |
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: 9.0.79-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Component: Chat Report View
Action Performed:
Expected Result:
Mentions must be shown in expensify issue card thread page and a double space must not be shown
Actual Result:
Mentions are not shown in expensify issue card thread page instead a double space is shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6703168_1735331811915.screenrecorder-2024-12-27-19-14-02-45.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: