Open m-natarajan opened 1 month ago
Triggered auto assignment to @bfitzexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Job added to Upwork: https://www.upwork.com/jobs/~01c334929c73b11c6c
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External
)
It looks like the backend is setting action.message.text correctly when a comment with mention is added, and that the backend is also removing that mention from that same action.message.text when OpenReport is called.
Mentions are omitted from the thread title
We get title with getReportName()
function.
Inside that function, we call getReportActionMessage()
to get text.
And it returns reportAction.messge.text
like in below code part. Mentions are not included in text
so we can't display mentions in thread title.
We have to get html
from getReportActionMessage()
and fix ui part to render mentions since currently it is only showing string.
reportAction?.message?.[0]?.text
to reportAction?.message?.[0]?.html
in this partDisplayNamesWithoutTooltip
and DisplayNamesWithToolTip
in DisplayNames
.
📣 @CleverWolf1220! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Mentions are omitted from the thread title
The thread title is determined by calling the function getReportName()
from ReportUtils. This function simply returns plain text without any user mentions or extra formatting. Furthermore, the title is rendered as straightforward text, eliminating the need for any parsing. This is the primary reason why user mentions are excluded from the title. You can see the image.
To address this, you should modify the reportAction
array response to return HTML content instead of plain text here as mention below. This allows you to include user mentions or any additional formatting needed for the header title. Then, when rendering the header title, ensure it's treated as HTML content to display the formatted title correctly.
reportAction?.message?.[0]?.html
You need to check the backend because the title is rendered as plain text in the header. However, from the backend, it returns the text without any user mentions in the text parameter of reportAction
.
BE issue, when the AddComment API is sent, the BE turns the right value
but with the next API call, GetNewerActions, the BE turns the value without the mention
🎀 👀 🎀 Internal
After opening a thread report the BE also returns the parent report action but it sends incorrect message.text
. This seems affecting both OpenReport
and GetNewerActions
Triggered auto assignment to @hayata-suenaga, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
oh completely blank 😓 I'm going to take a look at this when I have time. Moving the priority to weekly
@s77rt @bfitzexpensify @hayata-suenaga this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Can we move this to Internal
?
Issue not reproducible during KI retests. (First week)
This issue has not been updated in over 15 days. @s77rt, @bfitzexpensify, @hayata-suenaga eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
This is still internal
will take a look at this again when I have time this week.
Issue not reproducible during KI retests. (Second week)
Issue not reproducible during KI retests. (Third week)
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.73-3 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: @sakluger Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1715694813328969
Action Performed:
Expected Result:
Header should show up with mentions (e.g @mnata)
Actual Result:
Mentions are not showed up in the title
Workaround:
unknonw
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
![thread mention](https://github.com/Expensify/App/assets/38435837/89e7458d-8880-4363-9514-f66f233aa83e)
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rt