-
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
[$250] Distance - The route image is cropped in the IOU preview #40791
Comments
Triggered auto assignment to @Gonals ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@Gonals 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 #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The route image is cropped in the IOU preview What is the root cause of that problem?In this PR #35041, Object position top is added to resolve the issue of the receipt thumbnail not displaying its top portion. However, this causes the map distance request to appear cropped in the IOU preview. What changes do you think we should make in order to solve the problem?First, we need to update Then, in Next, in the return {thumbnail: `${path}.1024.jpg`, image: path, filename, transaction}; Finally, in here, we will set the objectPosition to const isDistanceRequest = transaction && TransactionUtils.isDistanceRequest(transaction);
propsObj = {
shouldUseThumbnailImage: true,
source: thumbnailSource,
fallbackIcon: Expensicons.Receipt,
fallbackIconSize: isSingleImage ? variables.iconSizeSuperLarge : variables.iconSizeExtraLarge,
isAuthTokenRequired: true,
objectPosition: isDistanceRequest ? CONST.IMAGE_OBJECT_POSITION.INITIAL : CONST.IMAGE_OBJECT_POSITION.TOP
}; What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~0160841ad69bf530a2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
Triggered auto assignment to @garrettmknight ( |
@ra-md Object position top is added to fix issue #34120. @Gonals This seems to be a regression from #35041 cc: @dukenv0307 |
@Pujan92 Oh, I see. 😅 |
I think this may not be a blocker, since it just kinda moves an existing bug a few pixels 😆. What do you think, @mountiny? |
Aah this could be related to my Web-PDFs change where I centered receipts to the top - https://github.com/Expensify/Web-PDFs/pull/572 I also don't think this is a blocker |
The root cause is on the backend and already on prod so yeah, not a blocker. It would be great to fix soon though. It looks bad for distance requests. |
proposal updated based on this comment |
I believe this should be handled by @dukenv0307 in #34120 since this is a regression of a PR from that issue |
@Beamanator I will add the fix in this PR #40763. |
Cool, closing this one in favor of the other then. |
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.64-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4502640
Issue reported by: Applause - Internal Team
Action Performed:
Prerequisites:
Create WS collect, invite an employee
Expected Result:
The route image must fit completely in the IOU preview
Actual Result:
The route image is cropped in the IOU preview
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6458075_1713824565000.Recording__75.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: