-
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 2023-09-27] [$1000] Feature request: Hyperlink any URLs that appear in request descriptions #23949
Comments
Current assignee @JmillsExpensify is eligible for the NewFeature assigner, not assigning anyone new. |
Triggered auto assignment to Design team member for new feature review - @shawnborton ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
{props.html ? <RenderHTML html={`<comment>${props.html}</comment>`} /> : ...title code} What alternative solutions did you explore? (Optional)
|
@shawnborton removing you as I think we're on the same page . |
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~01e1f1d0e52e445d5f |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Whoops, I just realized that I should have put an |
@JmillsExpensify Do we just only want to add support for hyperlink in task description or support all Markdown styling features that chat supports? |
ProposalPlease re-state the problem that we are trying to solve in this issue.We want to hyperlink any URLs that appear in request descriptions What is the root cause of that problem?We do not handle any markup in the description section of the request. What changes do you think we should make in order to solve the problem?We should make use of ReportUtils and write a function that uses ExpensiMark parser to parse markdown link and autolink styling. We can add that function to the report utils. function getParsedLink(text) {
const parser = new ExpensiMark();
const autolinkFilter = {filterRules: _.filter(_.pluck(parser.rules, 'name'), (name) => name === 'autolink' || name === 'link')};
return text.length < CONST.MAX_MARKUP_LENGTH ? parser.replace(text, autolinkFilter) : _.escape(text);
}
const formattedTransactionDescription = getParsedLink(transactionDescription); Then we pass that formated description to the title of MenuItemWithTopDescription in the code below. App/src/components/ReportActionItem/MoneyRequestView.js Lines 72 to 78 in 58dc0c9
We can then add another view here to handle the rendered html specifically based on a prop we pass through: App/src/components/MenuItem.js Lines 205 to 222 in 9a6b4a8
or replace the Title Text section in line 207 with: <RenderHTML html={`<comment>${props.title}</comment>`} /> What alternative solutions did you explore? (Optional)function getParsedLink(text) {
const parser = new ExpensiMark();
const autolinkFilter = ['autolink', 'link']
return text.length < CONST.MAX_MARKUP_LENGTH ? parser.replace(text, autolinkFilter) : _.escape(text);
} |
Great question. I think we want to keep it simple for now, and just focus on supporting hyperlinks. cc @shawnborton @trjExpensify in case ya'll are thinking about it differently. |
Proposal |
Yeah, I think it's cool to tackle hyperlinks as a first step and not bloat this issue. |
@thesahindia Mind commenting on the proposals thus far? |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 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 2023-09-27. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@JmillsExpensify, @narefyev91, @thienlnam, @jeet-dhandha Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Hold for payment |
@JmillsExpensify, @narefyev91, @thienlnam, @jeet-dhandha Eep! 4 days overdue now. Issues have feelings too... |
This is ready for payment cc @JmillsExpensify |
@JmillsExpensify Let's cancel my payment as its been too long for payment and also Regressions were happening due to less testing and discussion on both of our ends. Let's make this a learning to not implement any feature until all the cases are covered. |
To clarify, you don't wish to be paid for this issue/PR? |
Nothing just handle the payment as usual. |
Payment summary:
|
Offer has been sent via Upwork. |
@JmillsExpensify I got payment from service account for |
@JmillsExpensify Can you update the price of new contract to |
Will do! Updating now. |
Should be all set here! |
While we hyperlink URLs that appear in chat messages, we don't do the same for URLs that appear in the description field of a request. Let's close that gap, because it's frustrating to have the hyperlink in one place but not in the other.
Assigning myself as part of wave3 in the product roadmap.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: