Skip to content

[$500] IOU - Description is not copied when copying IOU preview to clipboard #36917

Closed

Description

@kbecciv

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

Action Performed:

  1. Navigate to staging.new.expensify.com
  2. Go to 1:1 DM.
  3. Create an IOU with a description.
  4. Go to IOU report.
  5. Right click on the preview > Copy to clipboard.
  6. Paste the content.
    Note that the description is not copied anymore

Expected Result:

The copied content will include the description, and it will be "requested $ for y".

Actual Result:

The copied content does not include the description, and it is just "requested $".

Workaround:

Unknown

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

Bug6385812_1708441940728.20240220_211542.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fae159a80486a6f8
  • Upwork Job ID: 1759970659438272512
  • Last Price Increase: 2024-02-20

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    ExternalAdded to denote the issue can be worked on by a contributor
    on Feb 20, 2024
  2. changed the title [-]IOU - Description is not copied when copying IOU preview to clipboard[/-] [+][$500] IOU - Description is not copied when copying IOU preview to clipboard[/+] on Feb 20, 2024
  3. melvin-bot commented on Feb 20, 2024

    @melvin-bot
  4. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Feb 20, 2024
  5. melvin-bot commented on Feb 20, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

  6. github-actions commented on Feb 20, 2024

    @github-actions
    Contributor

    👋 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.
  7. melvin-bot commented on Feb 20, 2024

    @melvin-bot

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

  8. kbecciv commented on Feb 20, 2024

    @kbecciv
    Author

    We think that this bug might be related to #vip-bills
    CC @davidcardoza

  9. 9 remaining items

  10. shahinyan11 commented on Feb 20, 2024

    @shahinyan11

    Proposal

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

    Expense - Old amount is copied to clipboard when the request amount is changed

    What is the root cause of that problem?

    Regression as stated above

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

    1. Define new variable const isIOUTransactionAction = originalMessage?.IOUTransactionID
      and replace the check of shouldConsiderScanningReceiptOrPendingRoute with (isIOUTransactionAction || shouldConsiderScanningReceiptOrPendingRoute) in this condition
    const isIOUTransactionAction = originalMessage?.IOUTransactionID
    
    if (!isEmptyObject(reportAction) && (isIOUTransactionAction || shouldConsiderScanningReceiptOrPendingRoute ) && reportAction && ReportActionsUtils.isMoneyRequestAction(reportAction)) {
    
    1. Move definition of originalMessage above definition of isIOUTransactionAction
    2. Add below code here
    const transactionDetails = getTransactionDetails(!isEmptyObject(linkedTransaction) ? linkedTransaction : null);
    
    1. Change [this](Localize.translateLocal('iou.requestedAmount', {formattedAmount: amountToDisplay})) code with below
    Localize.translateLocal('iou.requestedAmount', {formattedAmount: amountToDisplay, comment: transactionDetails?.comment ?? ''})
    

    What alternative solutions did you explore? (Optional)

  11. paultsimura commented on Feb 20, 2024

    @paultsimura
    Contributor

    The offending PR is being reverted now

  12. shahinyan11 commented on Feb 20, 2024

    @shahinyan11

    @paultsimura Why revert if there is working solution

  13. shahinyan11 commented on Feb 20, 2024

    @shahinyan11

    @flodnv My proposal will fix this issue and below issues
    #36924
    #36911

  14. flodnv commented on Feb 21, 2024

    @flodnv
    Contributor
  15. srikarparsi commented on Feb 22, 2024

    @srikarparsi
    Contributor

    Closing this out since the revert PR takes care of it and has been CPed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions