-
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
[C+ Checklist Needs Completion] [$500] Android - Task - Background image in task report appears cropped after cancelling the task #33922
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01f32de82628d0256b |
Triggered auto assignment to @greg-schroeder ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
Withdrawing my first proposal as it seems to break on web. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The EmptyStateBackground image on deleted task page looks clipped What is the root cause of that problem?Animated background image used to be an SVG image. Recently that was replaced with a PNG. Earlier we used to set the container width to Line 704 in d4c3e63
Now this is not required as PNG images properly apply the resizeMode within the container. The PNG image height is set to 300px for small screen devices and it is positioned 'absolutely' with in it's parent container. Parent container of the AnimatedBackground image has a much smaller height. Being the first item in the inverted Flatlist the absolutely positioned image goes out of the contentContainer bounds. On Android anything outside the content container of Flatlist gets clipped even if we provide overflow:'visible'. That's why the image gets clipped only on Android. Below image shows contentContainer with red border applied around it on iOS and Android. What changes do you think we should make in order to solve the problem?Set BackgroundImage container width to 100% if (isSmallScreenWidth) {
return {
height: emptyStateBackground.SMALL_SCREEN.IMAGE_HEIGHT,
width: '100%',
position: 'absolute',
};
} Now the image translation logic needs to be adjusted as width is now set to 100%
to const IMAGE_OFFSET_X = 0; Also replace the fragment wrapper here with a App/src/pages/home/report/ReportActionItem.js Lines 586 to 598 in d4c3e63
<View >
<AnimatedEmptyStateBackground />
<View style={[StyleUtils.getReportWelcomeTopMarginStyle(props.isSmallScreenWidth)]}>
<ReportActionItemSingle
action={parentReportAction}
showHeader={_.isUndefined(props.draftMessage)}
report={props.report}
>
<RenderHTML html={`<comment>${props.translate('parentReportAction.deletedTask')}</comment>`} />
</ReportActionItemSingle>
<View style={styles.reportHorizontalRule} />
</View>
</View Result
What alternative solutions did you explore? (Optional)None (edited) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The report background image is cut off on a canceled task report. What is the root cause of that problem?In short, the view container height is smaller than the background height. The image height is defined by Lines 134 to 143 in d800d60
On a small screen, the height is App/src/pages/home/report/ReportActionItem.js Lines 584 to 599 in d800d60
The height is around 70 and we have a margin-top style from What changes do you think we should make in order to solve the problem?
(do the same for non-canceled task) |
ProposalPlease re-state the problem that we are trying to solve in this issue.For android, an empty state image in the task report clipped and doesn't looks correct What is the root cause of that problem?Currently, Parent of the absolute image have Problem arises after this PR where the parent IssueScreen.Recording.2024-01-04.at.23.51.59.mp4What changes do you think we should make in order to solve the problem?We should re-add parent by replacing fragment with App/src/pages/home/report/ReportActionItem.js Lines 586 to 587 in 1752bc5
App/src/pages/home/report/ReportActionItem.js Lines 602 to 603 in 1752bc5
|
Awaiting proposal review @alitoshmatov |
Missed this one, working now |
@Pujan92 Why was view replaced by fragment element on that PR? |
Based on this comment the styles applied to that |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thoughts on the above @alitoshmatov? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@greg-schroeder @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Ah right. I also reproduced on android while moving phone vertically |
So it sounds like we've still got some issues to fix here? |
No, it's past comment. We're waiting for PR to hit staging. |
Perfect! Thanks for setting me straight @aimane-chnaif 👍 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-04-05. 🎊 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:
|
C and C+ paid. Can you complete the checklist @aimane-chnaif? Thanks! |
Bump @aimane-chnaif |
Friendly bump to get this checklist done @aimane-chnaif! |
@aimane-chnaif any chance we can knock this out? |
@aimane-chnaif please jump on this one so we can close it, thank you! |
Oh, Aimane is OOO. @aswin-s any chance you could step in for the checklist? |
Bump @aimane-chnaif or @aswin-s |
Sorry I am back. |
This bug happened after we add background image in cancelled task report. No specific PR which caused regression. Regression Test Proposal
|
No sweat! Thanks @aimane-chnaif |
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.21-2
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 background image in task report will not appear cropped after cancelling the task
Actual Result:
The background image in task report appears cropped after cancelling the task
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6331783_1704328677391.Screen_Recording_20240103_170106_New_Expensify__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: