-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[$250] Report preview doesn't show distance merchant for tracked workspace expense #41653
Comments
Triggered auto assignment to @JmillsExpensify ( |
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Report preview doesn't show distance merchant for tracked workspace expense What is the root cause of that problem?The description/merchant is only shown when Line 4074 in ab1e924
The map shouldn't be shown optimistically instead Lines 2027 to 2044 in ab1e924
What changes do you think we should make in order to solve the problem?We can check for number of transaction( // getTrackExpenseInformation util function changes
const optimisticReceipt: Receipt = {
source: ReceiptGeneric as ReceiptSource,
state: CONST.IOU.RECEIPT_STATE.OPEN,
};
const existingTransaction = allTransactionDrafts[`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${existingTransactionID ?? CONST.IOU.OPTIMISTIC_TRANSACTION_ID}`];
const isDistanceRequest = existingTransaction && existingTransaction.iouRequestType === CONST.IOU.REQUEST_TYPE.DISTANCE;
let optimisticTransaction = TransactionUtils.buildOptimisticTransaction(
ReportUtils.isExpenseReport(iouReport) ? -amount : amount,
currency,
shouldUseMoneyReport && iouReport ? iouReport.reportID : '0',
comment,
created,
'',
'',
merchant,
isDistanceRequest ? optimisticReceipt : receiptObject,
filename,
existingTransactionID ?? null,
category,
tag,
billable,
isDistanceRequest ? {waypoints: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD} : undefined,
false,
);
// In ReportPreview.tsx
const allTransactions = TransactionUtils.getAllReportTransactions(iouReportID);
const numberOfRequests = allTransactions.length; What alternative solutions did you explore? (Optional)Resultreport_preview_track_expense.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~017f6ca9bb1a7123b8 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
@neil-marcellini Is this something we are expecting #41653 (comment)? Or we show map while online and |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense appears optimistically showing the amount and the merchant with distance info only, no map. After the response it shows the map and the amount only. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
OPTIONAL: We can also count the number of track-expenses and display it in the support text here
Line 2036 in 84118d8
What alternative solutions did you explore? (Optional)NA |
Please re-state the problem that we are trying to solve in this issue.Report preview doesn't show distance merchant for tracked workspace expense What is the root cause of that problem?The inconsistency between the optimistic data and the backend response stems from the handling of What changes do you think we should make in order to solve the problem?To ensure consistency between the optimistic and backend states and address the issue of differing displays, we propose using App/src/libs/ReportActionsUtils.ts Line 792 in 9cad715
Video:https://drive.google.com/file/d/1Ali5HXxIeN_qo7Ky4xRWjOp1yfUeGfDG/view?usp=sharing |
As mentioned in the issue description expected result, it should show the map optimistically (for the online case). While offline we should show a pending view. That's getting handled in this PR #39243. Maybe we can just focus on the merchant info for now, and see if we need to fix the map later? |
Got it. Thanks. I will focus on showing merchant info for now. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @parasharrajat, @neil-marcellini Eep! 4 days overdue now. Issues have feelings too... |
@JmillsExpensify, @parasharrajat, @neil-marcellini Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@Gonals Any thoughts on this #41653 (comment)? |
@JmillsExpensify @parasharrajat @neil-marcellini this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Created a slack thread for the same question. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Got one lead on slack and started looking into the code for analysis. Next update by tomorrow. |
Still looking. I will prioritize this today. |
I chimed in on the Slack convo. Maybe we need a backend fix? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @parasharrajat, @neil-marcellini Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not working today. I will have an update tomorrow. Probably we need to update both fronted and backend. |
@JmillsExpensify, @parasharrajat, @neil-marcellini Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Ok, so we must fix the backend to return the proper data. This should resolve the issue with distance and merchant info. we are only focusing on distance and merchant info on this issue as per #41653 (comment) 🎀 👀 🎀 C+ reviewed |
Current assignee @neil-marcellini is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@JmillsExpensify @parasharrajat @neil-marcellini this issue is now 4 weeks old, please consider:
Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @parasharrajat, @neil-marcellini Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Waiting on @neil-marcellini. |
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.70-2
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: @neil-marcellini
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714782868884039
Action Performed:
Expected Result:
Expense appears optimistically showing a map, the amount, and the merchant with distance info. After the response the same thing should be shown, although the map is expected to be slightly different.
Actual Result:
Expense appears optimistically showing the amount and the merchant with distance info only, no map. After the response it shows the map and the amount only.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-05-03.at.5.22.56.PM.mov
Track.expernse.mp4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @parasharrajatThe text was updated successfully, but these errors were encountered: