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
    DeployBlockerCash
    External
    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 Wanted
    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. added
    Weekly
    and removed
    Hourly
    on Feb 20, 2024
  11. shahinyan11 commented on Feb 20, 2024

    @shahinyan11
    Contributor

    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)

  12. added
    Daily
    and removed
    Weekly
    on Feb 20, 2024
  13. paultsimura commented on Feb 20, 2024

    @paultsimura
    Contributor

    The offending PR is being reverted now

  14. shahinyan11 commented on Feb 20, 2024

    @shahinyan11
    Contributor

    @paultsimura Why revert if there is working solution

  15. shahinyan11 commented on Feb 20, 2024

    @shahinyan11
    Contributor

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

  16. added
    Weekly
    and removed
    Daily
    on Feb 21, 2024
  17. flodnv commented on Feb 21, 2024

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

    @srikarparsi
    Contributor

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

  19. removed
    DeployBlockerCash
    on Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalHelp WantedReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions