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
[HOLD for payment 2024-06-20] [$250] mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description #41919
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 1.4.72 Reproducible in staging?: Y Reproducible in production?: 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
@Christinadobrzyn 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
Please re-state the problem that we are trying to solve in this issue.
When pasting a mention to room description, it's not rendered as a mention but still as a plain text. But if we paste it to money request description, the mention is rendered as mention markdown.
What is the root cause of that problem?
In money request description page, we enable the live markdown preview
From what I can test, the only time the @jaihanumanblog@gmail.com isn't highlighted is after it's copied and pasted but before it's 'saved' in the room/expense/description. Once saved it turns into a mention and is highlighted.
@bernhardoj let me know if you feel otherwise but I'm going to close this as an edge case, small incident.
From what I can test, the only time the
@jaihanumanblog@gmail.com isn't highlighted is after it's copied and pasted but before it's 'saved' in the room/expense/description. Once saved it turns into a mention and is highlighted.
@Christinadobrzyn That's true. To simplify it, the room description page currently doesn't enable the live markdown preview, while the expense/task description enables it. So, if we want to enable the live markdown preview for room description too, then we can reopen this.
Btw, there is a previous discussion here to enable the live markdown preview on some inputs, but looks like the room description page is missing from the list.
changed the title [-]mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/-][+][$250] mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/+]on May 14, 2024
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:
[@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
[@shubham1206agra] 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:
[@shubham1206agra] A discussion in #expensify-bugs 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:
[@shubham1206agra] Determine if we should create a regression test for this bug.
[@shubham1206agra] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@garrettmknight / @Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon May 9, 2024
Triggered auto assignment to @Christinadobrzyn (
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.lanitochka17 commentedon May 9, 2024
@Christinadobrzyn 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
lanitochka17 commentedon May 9, 2024
We think that this bug might be related to #vip-vsp
bernhardoj commentedon May 9, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When pasting a mention to room description, it's not rendered as a mention but still as a plain text. But if we paste it to money request description, the mention is rendered as mention markdown.
What is the root cause of that problem?
In money request description page, we enable the live markdown preview
App/src/pages/iou/request/step/IOURequestStepDescription.tsx
Line 182 in 807c945
but we don't enable it in the room description.
App/src/pages/RoomDescriptionPage.tsx
Lines 81 to 100 in 807c945
What changes do you think we should make in order to solve the problem?
Enable the live markdown in room description by passing
isMarkdownEnabledto the input.we can do the same for other input that support markdown too
Christinadobrzyn commentedon May 10, 2024
I don't think this is a bug,
From what I can test, the only time the
@jaihanumanblog@gmail.comisn't highlighted is after it's copied and pasted but before it's 'saved' in the room/expense/description. Once saved it turns into a mention and is highlighted.@bernhardoj let me know if you feel otherwise but I'm going to close this as an edge case, small incident.
bernhardoj commentedon May 10, 2024
@Christinadobrzyn That's true. To simplify it, the room description page currently doesn't enable the live markdown preview, while the expense/task description enables it. So, if we want to enable the live markdown preview for room description too, then we can reopen this.
Btw, there is a previous discussion here to enable the live markdown preview on some inputs, but looks like the room description page is missing from the list.
bernhardoj commentedon May 14, 2024
@Christinadobrzyn bump
Christinadobrzyn commentedon May 14, 2024
Ah sorry @bernhardoj this GH was closed so I didn't see this. Ah yes, we should work on this based on this convo - https://expensify.slack.com/archives/C01GTK53T8Q/p1711641837108169
Although, I'm wondering if these markdowns are on hold based on this Slack convo - https://expensify.slack.com/archives/C01GTK53T8Q/p1711641837108169 I'll ask in that chat: Answer - no need to hold- let's work on these now.
[-]mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/-][+][$250] mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/+]46 remaining items
melvin-bot commentedon Jun 13, 2024
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:
garrettmknight commentedon Jun 17, 2024
@bernhardoj @tienifr updated offers sent to you to split the bounty.
bernhardoj commentedon Jun 18, 2024
Accepted
garrettmknight commentedon Jun 20, 2024
All paid out - @shubham1206agra can you complete the checklist when you get a chance?
shubham1206agra commentedon Jun 21, 2024
@garrettmknight I am still not paid. Can you please recheck?
Christinadobrzyn commentedon Jun 24, 2024
@shubham1206agra can you check again? I think I just paid you through Upwork. @bernhardoj and @tienifr did you receive payment?
bernhardoj commentedon Jun 25, 2024
@Christinadobrzyn yes, I get the payment
shubham1206agra commentedon Jun 25, 2024
@Christinadobrzyn Yes, I got the payment.
shubham1206agra commentedon Jun 25, 2024
Since this is a new feature. No checklist required here.
Christinadobrzyn commentedon Jul 2, 2024
okay I think this can be closed - payment summary here - #41919 (comment)