-
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
[HOLD for payment 2024-10-25] [$250] Room-Description with mentions shown in preview but after saved disappeared #49407
Comments
Triggered auto assignment to @greg-schroeder ( |
@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-09-19 17:04:09 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/ReportDetailsPage.tsx Line 729 in 0c618ac
while the description returned by BE is a MD string. What changes do you think we should make in order to solve the problem?
App/src/pages/RoomDescriptionPage.tsx Line 82 in ace39e8
with:
to make sure the
App/src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx Line 89 in ace39e8
to:
What alternative solutions did you explore? (Optional)SeeFix the description preview
+ <MentionReportContext.Provider value={mentionReportContextValue}>
<MenuItemWithTopDescription
+ shouldParseTitle
- shoudlRenderAsHTML
+ excludedMarkdownRules={!policy ? ['reportMentions'] : []}
/>
+ </MentionReportContext.Provider> + const mentionReportContextValue = useMemo(() => ({currentReportID: report.reportID}), [report.reportID]); Fix the description's form
App/src/pages/RoomDescriptionPage.tsx Line 36 in 0c618ac
|
Job added to Upwork: https://www.upwork.com/jobs/~021836660554703667076 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah ( |
This is not a bug. If we mention a correct room the BE sets the description to the mention of that room and it is a correct clickable mention but if the BE doesn't get a room with that name it will consider it a normal text so the mention will disappear. In compose we have a option to deal with this case with a whisper message explaining that the room doesn't exist and ask if the user wants to create it but in this case I think it is unnecessary. |
@greg-schroeder Can you confirm the expected behavior here? In the preview, should we always highlight the text |
Will review this in my morning 👍 |
@greg-schroeder Can you confirm this comment? |
@Expensify/design Could you please clarify the expected behavior here? |
Looks like this is an issue on the main intro chat message too: CleanShot.2024-09-26.at.10.45.55.mp4Since we respect all other forms of mention (user name) and links (urls), I kinda feel like we should respect the room mentions too, but it being unhighlighted makes me wonder if this is a deliberate decisions. Let's loop in @JmillsExpensify , @trjExpensify and @dannymcclain to hear if they know why this is happening. Otherwise I'd say that we should respect the mention of other rooms in the same way we do URLs and users. |
@dubielzyk-expensify FYI, we only highlight The issue we're facing here (see video) is that after saving the room description with the #... syntax, the text following the # is briefly highlighted but then reverts to regular text. |
Ahh right. I see what you mean. I don't think this is a huge deal then, but if we can understand that this isn't actually a room before we save and preview it, then that'd be ideal. So that we don't end up with this flicker |
Yeah, my solution follows this approach. |
Totally agree. 👍 |
^^ samesies. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder, @rayane-djouah Eep! 4 days overdue now. Issues have feelings too... |
Thanks for confirming the expected result! will review the existing proposal today |
@rayane-djouah The test branch here |
@truph01 The RCA and solution make sense to me. (The proposal suggests applying the mention styles only when the mention data has a corresponding report ID.) Is it possible to also fix the bug related to the room description on the report page and to the Screen.Recording.2024-10-07.at.8.11.42.PM.mov |
Line 4164 in fb4e24e
Currently, we only set Line 4181 in fb4e24e
that leads to the bug you mentioned above. To fix it, we need to make sure we also set |
Triggered auto assignment to @yuwenmemon, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @truph01 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready |
@rayane-djouah is up for review! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-25. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist
Regression Test Proposal
Do we agree 👍 or 👎 |
Payment summary: Contributor: @truph01 - $250 via Upwork |
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.37-0
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Description with mentions shown in preview and must be displayed after saved also.
Actual Result:
Description with mentions shown in preview but after saved shown briefly and disappears.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6607424_1726644443287.screenrecorder-2024-09-18-10-28-17-734_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: