-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 - After editing a Distance request in offline mode, TBD does not appear in the Amount field #29899
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01a882c54a16f7ff85 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.After editing waypoints in offline mode, the amount and distance don't change to TBD What is the root cause of that problem?Our What changes do you think we should make in order to solve the problem?In What alternative solutions did you explore? (Optional)We can also use |
ProposalPlease re-state the problem that we are trying to solve in this issue.After editing a Distance request in offline mode, TBD does not appear in the Amount field What is the root cause of that problem?The root cause of the problem is that when the user changes the waypoints when offline the App/src/components/ReportActionItem/MoneyRequestView.js Lines 102 to 104 in b38171d
What changes do you think we should make in order to solve the problem?Firstly, we need to handle the text to be displayed when the waypoints key is present in the App/src/components/ReportActionItem/MoneyRequestView.js Lines 102 to 104 in b38171d
Also for the merchant string.
Lastly, to render the default receipt, we need to add some logic such as |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When editing a Distance request offline, the distance and amount fields are not set to "TBD" What is the root cause of that problem?We are not handling the loading state of the distance transaction properly. We set the Lines 757 to 766 in cd9cd57
And we handle this state in other places, like here:
But we do not handle this state on the What changes do you think we should make in order to solve the problem?On const isLoading = lodashGet(transaction, 'isLoading', false); And use it accordingly here: if (isDistanceRequest && (!formattedTransactionAmount || isLoading)) {
formattedTransactionAmount = translate('common.tbd');
} App/src/components/ReportActionItem/MoneyRequestView.js Lines 102 to 104 in 641e652
And here: title={isLoading ? translate('common.tbd') : transactionMerchant} App/src/components/ReportActionItem/MoneyRequestView.js Lines 206 to 217 in 641e652
As for me, this is a cleaner approach as it doesn't modify any data in the transactions, which looks more like a hack compared to using the Also, I don't think we should modify the map preview before #28965, as the receipt will be replaced with an actual map for loading distance requests. Result:Screen.Recording.2023-10-19.at.10.11.12.movWhat alternative solutions did you explore? (Optional) |
@ArekChr let me kindly disagree with your decision as from my POV there is a cleaner solution. Just posted the proposal here: #29899 (comment) |
@Tony-MK I think we should just show TBD when |
@arosiclair that's exactly what my proposal suggests, isn't it? |
@arosiclair, I updated my prospal according to your comment |
I saw your proposal but it is not the same because Your proposal is okay but for these reasons I'm going to stick to @Tony-MK's updated proposal. |
📣 @Tony-MK 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Thank you for the explanation @arosiclair, I agree with your decision. Just to clarify, the only place where we set Line 763 in 3b86da6
This is exactly what you described as "it was always the attention to use As for the RCA – agree, it was made a bit in a hurry. |
PR review in progress |
This issue has not been updated in over 15 days. @JmillsExpensify, @arosiclair, @Tony-MK, @ArekChr 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! |
Looks like automations failed here for some reason? Fixes we're deployed a week ago. cc @JmillsExpensify |
Contributor has been paid out. @ArekChr Also do you mind confirming whether a regression test should be created before I close this issue? |
Sure, we can add a regression test here. Regression Test Proposal
Do we agree 👍 or 👎 |
Regression test issue created. Closing! |
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.86-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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:
Prerequisites:
The account must have a distance request or create one
Expected Result:
After changing the route in offline mode the receipt route image should be pending, and the distance and amount should show as TBD
Actual Result:
The receipt route image is not in a pending state, and the distance and amount are not displayed as TBD when editing Distance expense request offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6242084_1697652502355.Recording__497.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: