fix: money request report scroll fix#29102
fix: money request report scroll fix#29102mountiny merged 8 commits intoExpensify:mainfrom allroundexperts:fix-29038
Conversation
|
@allroundexperts The changes seem to be adding some extra space above MoneyReportView: DetailsSpaceExample.mp4Video |
|
@Ollyws The |
|
|
||
| return ( | ||
| <Animated.Image | ||
| pointerEvents="none" |
There was a problem hiding this comment.
Why was enabling pointerEvents necessary?
There was a problem hiding this comment.
@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 |
|
@mountiny I can see a scroll bar and then console window opened on the right. |
mountiny
left a comment
There was a problem hiding this comment.
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.
| {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.
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.
Actually I'm wrong here. This happens only when the left hand side is a string.
There was a problem hiding this comment.
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. |
|
✋ 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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