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

[$500] IOU- In distance request, user unable to edit amount #30331

Closed
5 of 6 tasks
izarutskaya opened this issue Oct 25, 2023 · 7 comments
Closed
5 of 6 tasks

[$500] IOU- In distance request, user unable to edit amount #30331

izarutskaya opened this issue Oct 25, 2023 · 7 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@izarutskaya
Copy link

izarutskaya commented Oct 25, 2023

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.3.90-1

Reproducible in staging?: Y

Reproducible in production?: Y

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:

  1. Launch app
  2. Tap on a Workspace chat
  3. Tap plus icon and select request money
  4. Tap distance
  5. Enter start and finish waypoints
  6. Tap next
  7. Tap on Amount

Expected Result:

When user taps on amount, he must be able to edit amount.

Actual Result:

When user taps on amount, it does not trigger any action and user unable to edit amount.

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

Android: Native
Android: mWeb Chrome
Bug6249551_1698192941447.bur.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0116de5be45e362471
  • Upwork Job ID: 1717112900168441856
  • Last Price Increase: 2023-10-25
@izarutskaya izarutskaya added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 25, 2023
@melvin-bot melvin-bot bot changed the title IOU- In distance request, user unable to edit amount [$500] IOU- In distance request, user unable to edit amount Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0116de5be45e362471

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot
Copy link

melvin-bot bot commented Oct 25, 2023

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Oct 25, 2023

Proposal

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

In distance request, user unable to edit amount

What is the root cause of that problem?

We do nothing when clicking on amount item if the request is a distance request

if (props.isDistanceRequest) {
return;
}

shouldShowRightIcon={!props.isReadOnly && !props.isDistanceRequest}

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

  1. We can remove the distance request check for amount item here

if (props.isDistanceRequest) {
return;
}

  1. And here
shouldShowRightIcon={!props.isReadOnly}

shouldShowRightIcon={!props.isReadOnly && !props.isDistanceRequest}

  1. And if we are offline, we will display iou.amount if the amount is not empty instead of display common.tbd

    const formattedAmount = isDistanceRequestWithoutRoute

  2. BE also should allow passing amount param in CreateDistanceRequest API and return the edit amount in transaction data.

What alternative solutions did you explore? (Optional)

If the expected is not able to edit the amount for distance request. We should disable navigate to edit mount page in MoneyRequestView and display not found page or dismiss the modal in EditRequestAmountPage if the request is distance request.

@brunovjk
Copy link
Contributor

@izarutskaya, @dukenv0307 Should the user be able to change the value manually or just using distance?

I believe that this value is automatically calculated according to the ratio and distance entered.
The issue here is that the value is calculated once, and then when changing the starting or ending points, the value is not recalculated. There is already an issue about this, but it was closed as a dupe of #26946

Do you know anything about @cubuspl42?

@puneetlath
Copy link
Contributor

I agree that this isn't a bug. It's intended that you can't change the amount of a distance expense directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

5 participants