You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-03-24] [$250] Workspace - Mentions are not highlighted in workspace description #54941
we didn't wrap the MenuItemWithTopDescription inside the <MentionReportContext.Provider value={mentionReportContextValue}> so the mention room are not highlighted.
Also, when user saves the room description as #room-1, BE does not return the correct description like <mention-report reportID={...}>#room-1</mention-report>.
What changes do you think we should make in order to solve the problem?
In context, introduce a new variable policyID?: string.
Then, we need to wrap the MenuItemWithTopDescription inside the <MentionReportContext.Provider value={mentionReportContextValue}> with const mentionReportContextValue = useMemo(() => ({policyID: policy.id, exactlyMatch: true}), [policy]); so the room will be highlighted if it exists. The exactlyMatch: true is optional.
changed the title [-]Workspace - Mentions are not highlighted in workspace description[/-][+][$250] Workspace - Mentions are not highlighted in workspace description[/+]on Jan 10, 2025
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: NA. I believe this is a new feature.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon Jan 8, 2025
Triggered auto assignment to @zanyrenney (
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.truph01 commentedon Jan 8, 2025
Edited by proposal-police: This proposal was edited at 2025-01-08 09:29:11 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/workspace/WorkspaceProfilePage.tsx
Line 283 in 0f6756b
we didn't wrap the
MenuItemWithTopDescriptioninside the<MentionReportContext.Provider value={mentionReportContextValue}>so the mention room are not highlighted.#room-1, BE does not return the correct description like<mention-report reportID={...}>#room-1</mention-report>.What changes do you think we should make in order to solve the problem?
In context, introduce a new variable
policyID?: string.In here, update the
isGroupPolicyReport:policyIDin:App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx
Line 29 in 9293c26
and use it in:
App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx
Line 44 in 9293c26
policyIDwhen calling function in:App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx
Line 70 in 9293c26
Then, we need to wrap the
MenuItemWithTopDescriptioninside the<MentionReportContext.Provider value={mentionReportContextValue}>withconst mentionReportContextValue = useMemo(() => ({policyID: policy.id, exactlyMatch: true}), [policy]);so the room will be highlighted if it exists. TheexactlyMatch: trueis optional.Then, update:
App/src/libs/actions/Policy/Policy.ts
Line 1387 in 9293c26
to:
mention-reportmessage with the properreportID.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
excludedMarkdownRules={['reportMentions']}to this place so the the text will never been highlighted.zanyrenney commentedon Jan 10, 2025
adding external
melvin-bot commentedon Jan 10, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021877698306462649748
[-]Workspace - Mentions are not highlighted in workspace description[/-][+][$250] Workspace - Mentions are not highlighted in workspace description[/+]melvin-bot commentedon Jan 10, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (
External)122 remaining items
melvin-bot commentedon Mar 17, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)mallenexpensify commentedon Mar 24, 2026
@eh2077 @truph01 👀 and feedback please.
eh2077 commentedon Mar 27, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: NA. I believe this is a new feature.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/617280
Regression Test Proposal
Precondition:
Test:
Test 1:
Test 2:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-a112-a3de-3310-63125ce86824eh2077 commentedon Mar 27, 2026
@mallenexpensify yes, there was a regression, it was fixed and hit production on May 18, so this is ready for payment, thanks 🙇
mallenexpensify commentedon Mar 27, 2026
Payment Summary
Contributor: @truph01 due $125 via NewDot
Contributor+: @eh2077 due $125 via NewDot
^ Test case created
Thx!
m-natarajan commentedon Mar 27, 2026
@eh2077 This regarding the Regression test proposal
Room mention is not highlighted description, Is this a potential issue?
Recording.2602.mp4
eh2077 commentedon Mar 31, 2026
@m-natarajan We only highlight room mentions that exist in the same workspace. see tests #54941 (comment)
laurenreidexpensify commentedon Apr 27, 2026
$125 approved for @eh2077