Open lanitochka17 opened 3 weeks ago
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.
@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
We think that this bug might be related to #vip-vsp
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.
In money request description page, we enable the live markdown preview https://github.com/Expensify/App/blob/807c945ef8edabe86cc62f16c866aa754db8750b/src/pages/iou/request/step/IOURequestStepDescription.tsx#L182
but we don't enable it in the room description. https://github.com/Expensify/App/blob/807c945ef8edabe86cc62f16c866aa754db8750b/src/pages/RoomDescriptionPage.tsx#L81-L100
Enable the live markdown in room description by passing isMarkdownEnabled
to the input.
we can do the same for other input that support markdown too
I don't think this is a bug,
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.
@Christinadobrzyn bump
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.
Job added to Upwork: https://www.upwork.com/jobs/~01c4a08b3d6f351b65
I assume this can be external?
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External
)
isMarkdownEnabled
in the room description input here and hereexpensify.com
and there's a personal detail john@expensify.com
, then @john
is a valid mention (try sending that and it will be highlighted as a mention, will tooltips). This is a valid case of short mentionsBut currently in expensify-common
, we don't have logic to parse short mention, so in the live markdown input it was not recognized as a mention and does not have the highlight.
We can see this problem in the @ApplauseTester++0411km
in the OP video, it's not highlighted although it's a valid mention.
isMarkdownEnabled
to the room description input here and hereexpensify-common
.
@here
), we know in advance the list of personal details short hand we'll be supporting, we can pass a list of those to replace
of expensify-common
hereMention
rule here, but instead of matching here
, we should match any of the static mention in the list passed in earlier. replace
of expensify-common
If any other input has the same problem, the fix will also be the same.
NA
Hi @shubham1206agra can you check out these proposals when you have a moment?
We can go with @tienifr's proposal. This will also fix problem with short mentions.
π π π C+ Reviewed
Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @shubham1206agra π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @tienifr π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
I think we are handling the short mention live markdown preview here.
@shubham1206agra The PR for the main change is mostly ready, after assignment I also spent a large amount of time trying to implement the short mention live markdown preview, but I guess we can let that be handled in https://github.com/Expensify/App/issues/38025.
I think it'd be fair to split the bounty between me and @bernhardoj, and we can move forward with the PR so there's no wasted effort.
cc @francoisl
@francoisl Can you finalise here please?
Ok yeah, considering that @tienifr already put some time into this, splitting the bounty and using @bernhardoj's proposal sounds good to me.
(Co-assigning @bernhardoj for the payment later.)
π£ @bernhardoj π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
monitoring PR - https://github.com/Expensify/App/pull/42361
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.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
Action Performed:
1.Go to https://staging.new.expensify.com/
@applausetester++0411km @jaihanumanblog@gmail.com (notice: first mention selected from list, second mention is highlighted)
Tap header
Paste text in room description
Note second mention is not highlighted
Navigate to LHN
Tap fab -- track expense
Enter amount and tap next
Paste the same above text in track expense description
Note now second mention is highlighted and displayed
Expected Result:
There should not be inconsistency while pasting highlighted mention in room and expense description
Actual Result:
Inconsistency while pasting highlighted mention in room and expense description
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/019b0b29-175f-4a31-bcb2-8f1a1fc95d48
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agra