-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$500] Distance - Distance request thumbnail is different in reports when created offline #37638
Comments
Triggered auto assignment to @garrettmknight ( |
@garrettmknight FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave5 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance request thumbnail is different in reports when created offline. What is the root cause of that problem?when creating the distance request we set an optimisticReceipt with source as ReceiptGeneric image here: Lines 992 to 995 in fc4297d
and we are using ReceiptGeneric also when displaying the receipt here: Line 37 in 93c66ce
that's because we have only svg icon of the route pending image that we are using for example here. we couldn't use Expensicons.EmptyStateRoutePending here and here. because of the type mismatch.
What changes do you think we should make in order to solve the problem?we should add png version for route pending image |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Distance request thumbnail is different in reports when created offline What is the root cause of that problem?We display Lines 37 to 39 in ea2bda2
But we use What changes do you think we should make in order to solve the problem?We should add Then change What alternative solutions did you explore? (Optional)NA |
@garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
1 similar comment
@garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01230fd2c4938cb72a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Confirmed and added to a wave. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Distance request thumbnail is different in reports when created offline What is the root cause of that problem?We display another component here What changes do you think we should make in order to solve the problem?Add
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance request thumbnail is different in reports when created offline What is the root cause of that problem?We are using App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Lines 218 to 220 in 8262ebb
App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 257 to 258 in 8262ebb
when the route is pending for a distance request and we do this to render the map same as in confirmation page instead of waiting until the server returns the map image and the default behaviour of this image when offline is to return PendingMapView which displays EmptyStateRoutePending Icon
What changes do you think we should make in order to solve the problem?To be consistent with ReportPreview as in here App/src/components/ReportActionItem/ReportPreview.tsx Lines 266 to 272 in 8262ebb
we should display the ReportActionItemImage with the placeholder Receipt thumbnail instead of ConfirmRoute when we are offline as in that case the ConfirmRoute will display EmptyStateRoutePending icon that doesn't align with ReportPreview causing this issueSo we need to change these conditions App/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx Line 120 in 8262ebb
What alternative solutions did you explore? (Optional)But in the other way round we can also use App/src/components/ReportActionItem/ReportActionItemImages.tsx Lines 78 to 84 in 8262ebb
In this case we will have the advantage of ConfirmRoute (i.e to avoid latency in the display of map view until the BE returns it) in the Report preview too
|
@mollfpr can you check these out? |
Still working through the PR |
Chirag said I can take this over, so I will and I think we can get it merged in the next few days. |
We encountered various bugs in the PR and have had to determine if each is new or existing on main already. I'll set a reminder to review the PR again tomorrow, but we'll probably have to keep waiting for a bit due to the merge freeze. |
Still working through the PR - I think it's ready for another review @mollfpr |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-18. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-20. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Couldn't find the offending PR. We re-work the component to fix the issue and also replace the map pending thumbnail.
No need to create a discussion on the channel, because it seems only a time bug.
|
$500 approved for @mollfpr |
All set here |
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.4.46-0
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:
Expected Result:
The receipt preview for the distance request should be consistent in the main chat, expense report and transaction thread
Actual Result:
The receipt preview for the distance request is different in the main chat, expense report and transaction thread
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6398750_1709323958826.bandicam_2024-03-02_01-11-44-819.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: