-
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
[$250] [Held requests] Markdown isn't applied to the "Hold" message #37015
Comments
Job added to Upwork: https://www.upwork.com/jobs/~011f83ef4d2ad62f49 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Triggered auto assignment to @abekkala ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @flodnv ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU - Markdown isn't applied to the "Hold" message What is the root cause of that problem?The root cause of this issue is we are not passing What changes do you think we should make in order to solve the problem?We need to pass it and add it to the component so that the What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU - Markdown isn't applied to the "Hold" message What is the root cause of that problem?We are not parsing comment with using What changes do you think we should make in order to solve the problem?Use Result |
@BartoszGrajdek @MonilBhavsar @robertjchen I see you in #33897, can you please have a look here? |
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?
Screen.Recording.2024-02-21.at.19.09.13.mov
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.On hold message not shown as HTML What is the root cause of that problem?The message from description for HOLD reason is saved as simple string What changes do you think we should make in order to solve the problem?There's 2 main areas that needs to be fixed. 1 - use ReportUtils.getParsedComment(comment)We need to save the message as parsed before passed to Onyx here Line 5049 in d8361ee
function putOnHold(transactionID: string, comment: string, reportID: string) {
+ const parsedComment = ReportUtils.getParsedComment(comment);
const createdReportAction = ReportUtils.buildOptimisticHoldReportAction();
- const createdReportActionComment = ReportUtils.buildOptimisticHoldReportActionComment(comment);
+ const createdReportActionComment = ReportUtils.buildOptimisticHoldReportActionComment(parsedComment);
// ...
API.write(
'HoldRequest',
{
transactionID,
- comment,
+ parsedComment
reportActionID: createdReportAction.reportActionID,
commentReportActionID: createdReportActionComment.reportActionID,
},
{optimisticData, successData, failureData},
);
} 2- Use
|
children = <ReportActionItemBasicMessage message={translate('iou.heldRequest')} />; |
We can add a new prop to ReportActionItemBasicMessage
like shouldDisplayHTML
or use another component tthat render comment as HTML
POC video:
20240326_111057.mp4
Proposal |
Good question, I'll update the backend to return |
Thanks for proposals, everyone.
Based on this comment. I'm inclining to @dragnoir proposal. But I have a suggestion for his solution, I think he can use RenderHTML directly instead of passing a prop to Link to selected proposal #37015 (comment) 🎀👀🎀 C+ reviewed |
Current assignee @robertjchen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Thanks for the review, the backend change should be going out later today so we can proceed here 👍 |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dragnoir You have been assigned to this job! |
Upwork said "This job is no longer available." is it OK to proceed with the PR? |
I think just continue with the PR @dragnoir. The BZ team will handle it later. |
PR ready for review #39452 |
Fix: @dragnoir PR not merged yet |
This issue has not been updated in over 15 days. @robertjchen, @hoangzinh, @abekkala, @dragnoir eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
We're still working on the PR #39452 |
I'm suggesting we close this issue, to reflect where we've landed in the PR. #40408 (comment) - any thoughts, comment there. CC: @JmillsExpensify |
Yes, agreed. Let's close. |
Cool, thanks ya'll! |
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: 1.4.43.0
Reproducible in staging?: y
Reproducible in production?: new feature
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Expected Result:
Markdown should be applied.
Actual Result:
Markdown isn't applied to the "Hold" message.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: