-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Render shortened mentions with blue/green outline in live markdown preview #38025
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b3ecb2640f3bf7a3 |
Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
No problem. Done |
📣 @OskarMast! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.New Feature - The live markdown preview in the composer (mobile app only) does not currently render shortened mentions (e.g., @username without the domain) with the blue/green outline like it does for full mentions (e.g., @user@domain.com). This is inconsistent with how mentions actually render in the chat. What is the root cause of that problem?The root cause is that the logic for detecting and rendering mentions in the live preview, specifically in the What changes do you think we should make in order to solve the problem?To solve this issue, we should make the following changes:
readonly EMAIL_PART: "([\\w\\-\\+\\'#]+(?:\\.[\\w\\-\\'\\+]+)*(?:@(?:[\\w\\-]+\\.)+[a-z]{2,})?)";
readonly MARKDOWN_EMAIL: "([\\w\\-\\+\\'#]+(?:\\.[\\w\\-\\'\\+]+)*(?:@(?:[\\w\\-]+\\.)+[a-z]{2,})?)"; Now, the |
Tagging @robertKozik @tomekzaw as this is related to markdown preview. |
@thienlnam We would like to work on it as this probably requires some small changes in Live Markdown library as well. |
Hey! I’m Jakub Szymczak from Software Mansion, an expert agency, and I’d like to work on this issue! |
Personally I don't think this requires any change in markdown live preview, and should only include an update to our |
Great and will @SzymczakJ still be the person to work on it? |
Someone from SWM will handle this task as this requires some extra thoughts on how to pass app state to Markdown parser efficiently. Let me check internally who's the lucky person and I will let you know. |
@puneetlath Can I take this over as a reviewer here? |
Just for the context, we're still waiting for the live-markdown bump to be merged (#53627) so let's hold on that PR for now |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Someone from SWM will work on this feature |
Hey guys I work form SWM, please assign me to this issue and I will start working on it. |
@shubham1206agra Do you have greater context here? I see that #35725 is just on hold for this issue. I was tagging along this one since March 😢 |
@allroundexperts Yes since I was following the upstream PR and #35725 is there since February. |
Gotcha. |
@puneetlath I'm not sure if you're the best person to ask, but I have some questions. I'm currently looking at the regexes in ExpensiMark used to parse What specific versions of short mentions should we support? I'm assuming the most basic one is:
I guess I can use the first part of |
We need to support anything that could be before the |
Before Christmas update. For the past few days I've been working on ExpensiMark, to try to understand the current email-parsing regexes and to add Please take a look at the PR and more specifically at which tests are failing, because some of these are tricky and need some agreeing what we would consider a short mention. The current plan would be:
|
In depth implementation detailsIn order to implement this task we need to modify 3 (sic!) repos: A/App, List of PRs needed to implement this issue:
Implementation plan
|
expensify-common PR in review - @shubham1206agra could you also take a look at this PR since you're the C+ here? Expensify/expensify-common#824 Tried to assign you but can't until you comment on it |
Problem
Our markdown rendering renders mentions with a blue or green outline within the chat body like this:
We also have "live markdown preview" in the composer which is supposed to give a live preview of how the text will be rendered like this:
However, this doesn't currently happen for shortened mentions:
Solution
Add shortened mentions to the live markdown preview rendering that happens in the composer.
Note for potential contributors: live markdown preview currently only exists on mobile apps.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: