You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2025-01-30] [$250] EReceipt thumbnail is being cut off at the bottom. #54772
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.80-6 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: 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:@jayeshmangwani Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Press the FAB button.
Select Create Expense.
Tap Scan and choose a file.
Upload an invalid image file (example provided below).
Select any recipient.
Observe the default thumbnail for the receipt.
Expected Result:
EReceipt thumbnail should be fully visible with rounded corners.
Actual Result:
EReceipt thumbnail is partially cut off at the bottom.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceScreen.Recording.2025-01-03.at.2.51.19.AM.mov
we render the EReceiptThumbnail component. However, the overflow: hidden styling applied to the EReceiptThumbnail is causing the thumbnail to get cut off at the bottom.
In the MoneyRequestConfirmationListFooter, the parent View of ReceiptImage is assigned a height of 200, while the ReceiptImage component itself has a total height of 164. This mismatch results in the bottom 36 height being cut off due to the overflow: hidden property.
What changes do you think we should make in order to solve the problem?
Pass flex: 1 to the parent component (PressableWithoutFocus) of ReceiptImage.
This ensures the child ReceiptImage will occupy the full height of the parent component (200).
It resolves the overflow issue without impacting other styles.
Alternative to Solution 2:
If removing the overflow: hidden property from EReceiptThumbnail poses a risk of regression, we can limit its use specifically to the EReceiptThumbnail within the EReceipt component. To achieve this, we can create a new style prop for ReceiptImage and apply overflow: hidden conditionally in the EReceipt component. This approach ensures no unintended side effects on ReceiptImage while preserving the existing styling logic.
changed the title [-]EReceipt thumbnail is being cut off at the bottom.[/-][+][$250] EReceipt thumbnail is being cut off at the bottom.[/+]on Jan 14, 2025
changed the title [-][$250] EReceipt thumbnail is being cut off at the bottom.[/-][+][HOLD for payment 2025-01-30] [$250] EReceipt thumbnail is being cut off at the bottom.[/+]on Jan 23, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.88-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@paultsimura / @jayeshmangwani@slafortune@paultsimura / @jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Press the FAB button.
Select Create Expense.
Tap Scan and choose a file.
Upload an image file in the .tiff format
Select any recipient.
Verify the default thumbnail for the receipt is fully visible and not cropped on the bottom.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jan 2, 2025
Triggered auto assignment to @slafortune (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.jayeshmangwani commentedon Jan 2, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
EReceipt thumbnail is being cut off at the bottom.
What is the root cause of that problem?
The
ReceiptImagecomponent is used to display receipts. When eitherisThumbnailorisEReceiptistrue,App/src/components/ReceiptImage.tsx
Lines 130 to 134 in 41c38e3
we render the
EReceiptThumbnailcomponent. However, theoverflow: hiddenstyling applied to theEReceiptThumbnailis causing the thumbnail to get cut off at the bottom.App/src/components/EReceiptThumbnail.tsx
Lines 100 to 104 in 41c38e3
In the
MoneyRequestConfirmationListFooter, the parentViewofReceiptImageis assigned a height of200, while theReceiptImagecomponent itself has a total height of164. This mismatch results in the bottom36height being cut off due to theoverflow: hiddenproperty.App/src/components/MoneyRequestConfirmationListFooter.tsx
Lines 679 to 681 in 41c38e3
App/src/styles/index.ts
Lines 4458 to 4460 in 41c38e3
What changes do you think we should make in order to solve the problem?
Pass
flex: 1to the parent component (PressableWithoutFocus) ofReceiptImage.This ensures the child
ReceiptImagewill occupy the full height of the parent component (200).It resolves the overflow issue without impacting other styles.
App/src/components/MoneyRequestConfirmationListFooter.tsx
Lines 711 to 714 in 41c38e3
+ style={styles.flex1}What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
I believe automated tests aren't useful for purely UI mismatching issues/bugs.
What alternative solutions did you explore? (Optional)
Solution 2:
Remove the
overflow: hiddenstyle from theEReceiptThumbnailcomponent entirely.overflow: hiddenwas added on this PR [NoQA] [Wave 8 - ECard Transactions] CreateeReceiptThumbnailandeReceiptcomponents #29075, not sure why it was added but when I was testing, shows that theReceiptImageandEReceiptThumbnailUI works as expected without overflow style.Alternative to Solution 2:
If removing the
overflow: hiddenproperty fromEReceiptThumbnailposes a risk of regression, we can limit its use specifically to theEReceiptThumbnailwithin theEReceiptcomponent. To achieve this, we can create a new style prop forReceiptImageand applyoverflow: hiddenconditionally in theEReceiptcomponent. This approach ensures no unintended side effects onReceiptImagewhile preserving the existing styling logic.melvin-bot commentedon Jan 6, 2025
@slafortune Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jan 8, 2025
@slafortune Eep! 4 days overdue now. Issues have feelings too...
melvin-bot commentedon Jan 10, 2025
@slafortune 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon Jan 14, 2025
@slafortune 10 days overdue. Is anyone even seeing these? Hello?
melvin-bot commentedon Jan 14, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021879191008215577946
[-]EReceipt thumbnail is being cut off at the bottom.[/-][+][$250] EReceipt thumbnail is being cut off at the bottom.[/+]19 remaining items
[-][$250] EReceipt thumbnail is being cut off at the bottom.[/-][+][HOLD for payment 2025-01-30] [$250] EReceipt thumbnail is being cut off at the bottom.[/+]melvin-bot commentedon Jan 23, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 23, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.88-7 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 2025-01-30. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 23, 2025
@paultsimura / @jayeshmangwani @slafortune @paultsimura / @jayeshmangwani The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
paultsimura commentedon Jan 28, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: N/A
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
.tiffformatDo we agree 👍 or 👎
slafortune commentedon Jan 31, 2025
@paultsimura role C+ - paid $250 via UpWorks
@jayeshmangwani Role Contributor - requires payment through NewDot Manual owed $250
garrettmknight commentedon Feb 11, 2025
$250 approved for @jayeshmangwani