Skip to content
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 2024-04-15] IOU - IOU preview in the main chat does not support mark down, while IOU report supports it #39451

Closed
6 tasks done
kbecciv opened this issue Apr 2, 2024 · 22 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering

Comments

@kbecciv
Copy link

kbecciv commented Apr 2, 2024

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.59-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Request money > Manual.
  3. Request money from user with no unsettled request and include description with mark down.
  4. Note that the IOU preview in 1:1 DM does not support mark down.
  5. Create a second request with the same user.
  6. Go to IOU report.
  7. Note that the IOU preview of the first request in expense report supports mark down.

Expected Result:

Since IOU preview in IOU report (Step 6) supports mark down, the IOU preview in the main chat should also support mark down.

Actual Result:

The IOU preview in the main chat does not support mark down.

Workaround:

n/a

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6435885_1712081039309.20240403_015949.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @ishpaul777
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019a357ce26a3a91d5
  • Upwork Job ID: 1780017603019825152
  • Last Price Increase: 2024-04-15
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Triggered auto assignment to @aldo-expensify (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

github-actions bot commented Apr 2, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@kbecciv
Copy link
Author

kbecciv commented Apr 2, 2024

We think that this bug might be related to #wave-collect - Release 1

@neonbhai
Copy link
Contributor

neonbhai commented Apr 2, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

IOU preview in the main chat does not support mark down, while IOU report supports it

What is the root cause of that problem?

We don't use renderHTML to render the description in ReportPreview hence it displays as plain-text

{shouldShowSubtitle && (
<View style={styles.flexRow}>
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}>
<Text style={[styles.textLabelSupporting, styles.textNormal, styles.lh20]}>{previewSubtitle || moneyRequestComment}</Text>
</View>
</View>
)}

What changes do you think we should make in order to solve the problem?

We should use renderHTML to render the description like we do here:

{shouldShowDescription && (
<View style={[styles.breakWord, styles.preWrap]}>
<RenderHTML html={`<muted-text>${parser.replace(merchantOrDescription)}</muted-text>`} />
</View>
)}

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Apr 2, 2024
@aldo-expensify aldo-expensify added Hourly KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed Reviewing Has a PR in review Weekly KSv2 labels Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Triggered auto assignment to @kadiealexander (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@aldo-expensify
Copy link
Contributor

Adding @ishpaul777 as reviewer

@aldo-expensify
Copy link
Contributor

Thanks @neonbhai for the proposal, I was already working on that, but you made me see that I could use the existing muted-text instead of the supporting-text I was adding here

@neonbhai
Copy link
Contributor

neonbhai commented Apr 3, 2024

@aldo-expensify happy to help!

@aldo-expensify
Copy link
Contributor

@jasperhuangg
Copy link
Contributor

@aldo-expensify were you able to retest this once the PR was deployed to staging?

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Apr 3, 2024

@jasperhuangg I don't think this has been CP's yet, it just had a 👍 but nothing else

@jasperhuangg
Copy link
Contributor

@aldo-expensify It's running

@aldo-expensify
Copy link
Contributor

Thanks!

@aldo-expensify
Copy link
Contributor

Tested well:
Screenshot 2024-04-03 at 3 29 49 PM
Screenshot 2024-04-03 at 3 30 01 PM

@aldo-expensify aldo-expensify removed the DeployBlockerCash This issue or pull request should block deployment label Apr 3, 2024
@aldo-expensify aldo-expensify added Daily KSv2 and removed Hourly KSv2 labels Apr 3, 2024
@aldo-expensify
Copy link
Contributor

@kadiealexander the only thing left here is handling payment for @ishpaul777 in the role of C+ (reviewed PR)

@melvin-bot melvin-bot bot added Overdue Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Apr 8, 2024
@melvin-bot melvin-bot bot changed the title IOU - IOU preview in the main chat does not support mark down, while IOU report supports it [HOLD for payment 2024-04-15] IOU - IOU preview in the main chat does not support mark down, while IOU report supports it Apr 8, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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 2024-04-15. 🎊

For reference, here are some details about the assignees on this issue:

  • @ishpaul777 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Apr 8, 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:

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@ishpaul777] 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:
  • [@ishpaul777] 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:
  • [@ishpaul777] Determine if we should create a regression test for this bug.
  • [@ishpaul777] 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.
  • [@kadiealexander] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 14, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

Payment Summary

Upwork Job

BugZero Checklist (@kadiealexander)

  • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@kadiealexander kadiealexander added the Internal Requires API changes or must be handled by Expensify staff label Apr 15, 2024
Copy link

melvin-bot bot commented Apr 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~019a357ce26a3a91d5

@kadiealexander kadiealexander removed the Internal Requires API changes or must be handled by Expensify staff label Apr 15, 2024
@Expensify Expensify deleted a comment from melvin-bot bot Apr 15, 2024
@ishpaul777
Copy link
Contributor

ishpaul777 commented Apr 16, 2024

hey @kadiealexander The issue was create before the price drop https://expensify.slack.com/archives/C02NK2DQWUX/p1712250884549319, I think provious bounty $500 should be applicable here

@kadiealexander
Copy link
Contributor

Fixed, please accept.

@ishpaul777
Copy link
Contributor

Thank you! Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

6 participants