-
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-09-06] [$250] mWeb - Submit expense - Site crashes sending a distance expense after two scan expenses #46296
Comments
Triggered auto assignment to @greg-schroeder ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Site crashes when distance map calls fitBounds with high padding on low screen size. What is the root cause of that problem?This happens when
What changes do you think we should make in order to solve the problem?We can make the In usages of
This is used in Else, we can put the |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app crash when adding a distance request after 2 scan request. What is the root cause of that problem?When we have 2 scan expense + 1 distance, the size of the preview becomes small. Then, we set a padding of 50 to the map which will be used when trying to center the map. App/src/components/ConfirmedRoute.tsx Line 111 in 5e65276
However, the size of the map is smaller than the padding combined (left+right / top+bottom). What changes do you think we should make in order to solve the problem?Change the padding to the smallest size (or 0 or decrease the value) if it's bigger than the map size.
|
@greg-schroeder Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01890de5ca6ea4b22c |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
♻️ Reviewing proposals today. |
@ShridharGoel's proposal looks good to me. They were first to identify the root cause and the proposed solution fixes the issue. However, there's some important context to understand here before moving forward with a fix - and I think @Expensify/design might want to weigh in here regarding the best choice 👇 ContextNotes:
Here's how the map preview looks on narrow layouts with different values vs on large layouts:
As one can see, the lower the padding, the more zoomed-in the map preview is and vice-versa.
Important We should wait for design's team input here before moving forward. 🎀👀🎀 C+ reviewed |
Current assignee @marcaaron is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
|
@shawnborton Can you have a look? #46296 (comment) |
Oh wow, great investigation! So just to be clear, what are you recommending we use for the paddings for narrow screens vs wide screens? Personally I don't think there needs to be a huge difference, given that the size of the map preview is pretty much the same on mobile vs desktop. Also, I think this "more zoomed in" screenshot looks good IMO, but would love to see it with a route that is horizontal too. cc @dubielzyk-expensify (skipping Danny ping while he's 🌴) for vis |
@shawnborton For wide screens, we can keep the existing padding of 50. For narrow screens, either we can just go to 0, or we can set it to 20 based on @ikevin127's testing. |
Can you show me the side-by-side difference though? The receipt thumbnail is virtually the same size on both wide and small screens, so I'm not sure if we actually want a difference here. |
I stand by my previous #46296 (comment) and considering the context from that comment: Note Based on the results below I think we should keep 50 Padding on wide screens layout and adjust to 30 Padding only for narrow screens layout - this would ensure things look good on narrow layout devices and also keep things within scope as the main thing here is to ensure the app doesn't crash. Here's the side by side in different scenarios: Note:
1. 20 vs 50 Padding - Wide screen layout on longer horizontal / vertical routesCaution This is why I think we shouldn't touch the wide screen layout value of 50 Padding. Flow: Submit expense (Waypoints) Screen
Flow: Confirm Distance expense Screen
2. 20 vs 50 Padding - Narrow screeen layout on longer horizontal / vertical routesCaution Here we have to decrease the padding because otherwise the app will crash. Flow: Submit expense (Waypoints) Screen
Flow: Confirm Distance expense Screen
@ShridharGoel Given the results on narrow layout, I think the best option would be to go with 30 Padding which is closer to 50 but not close enough to crash the app. I tested with 30 Padding on the smaller device: iPhone 4 (320x480) and it doesn't crash. @shawnborton Wdyt ? |
@greg-schroeder, @marcaaron, @ikevin127 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Awaiting input from the design team on how we want the UI to look, then will be able to move on with opening a PR. |
This issue reproducible also after third distance request. Reproduce in production Screenrecorder-2024-08-13-12-28-01-781_compress_1.mp4 |
Will be opening PR soon. Don't have Mac access since few days, so setting
up WSL.
|
Thanks for the update @ShridharGoel |
Not overdue, currently awaiting for contributor to open PR based on #46296 (comment). |
@greg-schroeder, @marcaaron, @ShridharGoel, @ikevin127 Eep! 4 days overdue now. Issues have feelings too... |
This comment was marked as duplicate.
This comment was marked as duplicate.
@ShridharGoel Please let us know if you have the capacity to open the PR or if we should move forward with another Contributor for this one. Thanks! |
Draft PR is already up since few days, just waiting for adhoc builds.
|
@ikevin127 Maybe you can start the testing from your side till the adhoc builds are available. I need the adhoc builds since I'm unable to build locally. |
This on staging. Awaiting deploy to prod |
Given the context above, this issue should be on Payment 2024-09-06 according to 4 days ago's production deploy from Deploy Checklist: New Expensify 2024-08-28. |
Updated |
Regression Test Proposal
Do we agree 👍 or 👎. |
Sorry, processing |
Paid @ikevin127 , sent new offer to @ShridharGoel. Will pay ASAP once accepted |
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: 9.0.13-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: https://expensify.testrail.io/index.php?/tests/view/4765667
Email or phone of affected tester (no customers): nahummelaku9+d27@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Distance expense is created and navigated to the conversation
Actual Result:
The site crashes with a message "Uh-oh, something went wrong!"
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6552463_1721899827253.video_2024-07-25_12-17-52.mp4
logs (2).txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ikevin127The text was updated successfully, but these errors were encountered: