-
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
fix: money request report scroll fix #29102
Conversation
@allroundexperts The changes seem to be adding some extra space above MoneyReportView: SpaceExample.mp4Video |
@Ollyws The |
@@ -41,7 +41,6 @@ function AnimatedEmptyStateBackground() { | |||
|
|||
return ( | |||
<Animated.Image | |||
pointerEvents="none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was enabling pointerEvents necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ollyws With pointer events disabled, the scrolling would work when the height of the header is less than the height of the background image.
@allroundexperts Could you sort out those merge conflicts? Thanks! |
@Ollyws Resolved. |
@allroundexperts Thanks. Videoheightexample.mp4 |
@Ollyws I think this is correct. We were inconsistent previously on the money request screens. On all other screens, the items are show after applying 275px margin from the top. For money report screens, we were applying 280px. |
If you feel too strongly about this though, do let me know and I can apply 5px more. |
Reviewer Checklist
Screenshots/VideosWeb01_MacOS_Chrome.mp4Mobile Web - Chrome02_Android_Chrome.mp4Mobile Web - Safari03_iOS_Safari.mp4Desktop04_MacOS_Desktop.mp4iOS05_iOS_Native.mp4Android06_Android_Native.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mountiny I can see a scroll bar and then console window opened on the right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but curious about the gray block on right side for the scroll bar is that on main too?
{isExpensifyCardTransaction ? ( | ||
<OfflineWithFeedback pendingAction={getPendingFieldAction('pendingFields.cardID')}> | ||
<MenuItemWithTopDescription | ||
description={translate('iou.card')} | ||
title={cardProgramName} | ||
titleStyle={styles.flex1} | ||
interactive={canEdit} | ||
/> | ||
</OfflineWithFeedback> | ||
) : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{isExpensifyCardTransaction ? ( | |
<OfflineWithFeedback pendingAction={getPendingFieldAction('pendingFields.cardID')}> | |
<MenuItemWithTopDescription | |
description={translate('iou.card')} | |
title={cardProgramName} | |
titleStyle={styles.flex1} | |
interactive={canEdit} | |
/> | |
</OfflineWithFeedback> | |
) : null} | |
{isExpensifyCardTransaction && ( | |
<OfflineWithFeedback pendingAction={getPendingFieldAction('pendingFields.cardID')}> | |
<MenuItemWithTopDescription | |
description={translate('iou.card')} | |
title={cardProgramName} | |
titleStyle={styles.flex1} | |
interactive={canEdit} | |
/> | |
</OfflineWithFeedback> | |
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern is prohibited as far as I can recall. This will try to render false
for falsy isExpensifyCardTransaction
. This in turn would cause console error on android native.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I'm wrong here. This happens only when the left hand side is a string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will push in a sec.
@mountiny On main: Screen.Recording.2023-10-20.at.2.00.11.AM.movYou're talking about the scroll bar block, right? |
Ah nice! I never move my mouse over that area haha |
@allroundexperts can you just address that one comment? I know its not from your changes but feels like a thing we should clean up |
Replied @mountiny |
@mountiny Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.88-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.88-11 🚀
|
Details
This PR fixes the scroll which was broken on the money request report page.
Fixed Issues
$ #29038
PROPOSAL: #29038 (comment)
Tests
Verify that the page scrolls correctly
Offline tests
N/A
QA Steps
Verify that the page scrolls correctly
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2023-10-09.at.9.20.29.PM.mov
Android: mWeb Chrome
Screen.Recording.2023-10-09.at.9.19.19.PM.mov
iOS: Native
Screen.Recording.2023-10-09.at.9.15.53.PM.mov
iOS: mWeb Safari
Screen.Recording.2023-10-09.at.9.16.47.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-09.at.9.13.52.PM.mov
MacOS: Desktop
Screen.Recording.2023-10-09.at.9.21.13.PM.mov