-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Awaiting C+ offer acceptance] [$500] [MEDIUM] Distance: Improve the delay in the map image showing within the distance request preview on creation #28965
Comments
Current assignee @trjExpensify is eligible for the NewFeature assigner, not assigning anyone new. |
Current assignee @trjExpensify is eligible for the Bug assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~01fab7e23c87b42e3c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
I think maybe we should wait for this ongoing refractoring before we make changes to distance. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Improve the distance request preview on the creation. What is the root cause of that problem?The map route is missing cause we are waiting for the backend to give the image, which takes 4-5 seconds. What changes do you think we should make in order to solve the problem?Use the component of the map in the And remove the optimistic receipt image from What alternative solutions did you explore? (Optional)Make a snapshot of the map from Mapbox and send the temp image in an optimistic report while executing ResultScreen.Recording.2023-10-06.at.4.10.16.PM.mov |
@aimane-chnaif If you want a test branch to test the feature, please write it here. |
Oh hm, I don't quite see the correlation myself on this issue, but @tgolen is a smarter man than I, so I'll tag him here for vis! |
This is only tangentially related to my refactoring (I'm basically rewriting the entire creation flow while trying to keep all the existing behavior). So, it doesn't need to be held on my work, but will create some cleanup for one of us depending on the order the code is merged. I think it's OK to move forward with exploring solutions, but it would really be nice to halt the actual development so that it builds off of my refactored code instead of the currently existing code. I have a few thoughts about this issue in general:
|
@tgolen Can you check my proposal video, and tell me whether this will work or not? #28965 (comment) |
It functionally looks like what we are expecting, yes. How are you taking an image snapshot of the map? |
For native, there is an inbuilt function and for the web, some manipulation of DOM elements give this (mainly canvas) |
Ah okay cool, noted. Once we're aligned on a solution I'll pop a hold in the title and link to the issue/PR. 👍
Yep, agreed. This issue is about the map image. Re: the
I agree this okay, for the same reason you mentioned. 👍 |
Although doing a snapshot is possible, I agree that rending the map component with interactions disabled is probably best, especially because we already have code to do that. If we're offline we should render the pending map view instead. |
@neil-marcellini I think we should do snapshot as making map component in preview and view may make code a little complex to maintain. If we have showed the map on success request, then the logical way is to create map in optimistic also. But in this case, snapshot is more correct way to go. |
@trjExpensify Not a regression but a follow-up feature request which is low on the priority scale right now. |
@trjExpensify, @grgia, @shubham1206agra, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Okay, payment summary as follows:
Offers sent! |
@trjExpensify Accepted |
@shubham1206agra paid! |
@trjExpensify, @grgia, @shubham1206agra, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@aimane-chnaif can you accept the offer, so we can pay this one out? |
@trjExpensify, @grgia, @shubham1206agra, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Aimane is out of office, dropping to weekly |
Apologies for the delay. I already have offer accepted in the past. |
Paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Minimal delay if any in the UI to display the map route. @neil-marcellini had a suggestion to take a snapshot of the route image, or render the route map until the response comes back.
Actual Result:
The response takes a little while and so it's super noticeable that we're waiting on the API request to return the map image. As a result we have this less than premium experience whereby:
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.78-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
Notes/Photos/Videos: Any additional supporting documentation
mWhZCXcjT7.mp4
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation:
View all open jobs on GitHub
CC: @JmillsExpensify
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: