-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix: Fix scrollable elements in Policy pages. #38719
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: Fix scrollable elements in Policy pages. #38719
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@shawnborton #37782 (comment), do you have something to suggest here? it would be great if we clear things before I start implementing it on other pages since we need to handle multiple pages, eg: tags, categories, taxes, distance, etc etc. demo_scrollheader_list.mp4 |
|
Thanks for the video! cc @Expensify/design for visibility One thing that would be nice, but would be more difficult - it would be cool if the entire page was able to scroll below the header area, but as soon as the table column header row |
|
@shawnborton, my apologies for the delay. I encountered some difficulties over the past few days while attempting to implement your suggestions. However, I believe I've finally managed to grasp it. Could you please confirm if this is what you meant? sticky_thead.mp4 |
|
Exactly! Though it looks like the thead has an incorrect BG color? |
|
@shawnborton, Yep, I just added white as bg for testing because it was transparent and hard to see in demo video. Will update that. Thanks. One more thing I would suggest is that we should scroll to the top when the user selects all by using the checkbox in the |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@shawnborton, could you please tell me what background to use for the sticky header? The application's background is set to stickyheader_demo.mp4 |
|
Whoa - no idea why the opacity is reduced. Can we just remove that and make it so that it uses a 100% opacity background? |
|
yep, we can create a new variable for that to use the same bg color with full opacity, will share screenshots after making changes. |
|
Do we need a new variable? It should just be the same as the appBG right? |
|
Sorry for the confusion, I was lost in elements tab. We are using |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
Code changes are completed, will do final testing and add recordings for review. |
|
Facing a weird issue :(, the LHS is not displayed when visiting any policy settings page. Will try again later. no_sidebar.mp4 |
|
Looks like we have some conflicts. |
|
@shawnborton, IMO making the buttons stick to the top, instead of
|
|
Yeah, that makes sense to me and I think it's a good compromise. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@akinwale, code is updated according to the discussion above, you can start the review. Recordings will be updated in few moments. |
|
@akinwale recordings are updated. @shawnborton can you pls verify the behaviour in the recording below. android_native.mp4 |
|
That feels pretty good to me. Thoughts @Expensify/design? |
|
Yeah I think that feels pretty good. |
|
LGTM too! |
|
@akinwale, bump for review. |
|
Reviewing today. |
Reviewer Checklist
Screenshots/VideosAndroid: Native38719-android-native.mp4Android: mWeb Chrome38719-android-chrome.mp4iOS: Native38719-ios-native.mp4iOS: mWeb Safari38719-ios-safari.mp4MacOS: Chrome / Safari38719-web.mp4MacOS: Desktop38719-desktop.mp4 |
akinwale
left a comment
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.
| /** Custom content to display in the header */ | ||
| headerContent?: ReactNode; | ||
|
|
||
| ListHeaderComponent?: React.JSX.Element | 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.
Why is ListHeaderComponent CamelCase instead of listHeaderComponent as lowerCamelCase?
Additionally, I see headerContent, footerContent, and listFooterContent, so should this be named listHeaderContent for consistency?
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.
@flodnv, thanks for the catch, that makes sense to me, now updated to listHeaderContent
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@flodnv, friendly bump to merge this. |
|
@flodnv, bump ^ |
|
@Krishna2323 I believe the merge freeze is still active. |
|
Unfortunately, that's correct |
|
✋ 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/chiragsalian in version: 1.4.76-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.76-7 🚀
|


Details
Fixed Issues
$ #37782
PROPOSAL: #37782 (comment)
Tests
For devices with width greater than
800pxMembers,Distance rates,Categories,TagsandTaxespage.For devices with width less than
800pxMembers,Distance rates,Categories,TagsandTaxespage.theadscrolls and buttons are fixed.Offline tests
For devices with width greater than
800pxMembers,Distance rates,Categories,TagsandTaxespage.For devices with width less than
800pxMembers,Distance rates,Categories,TagsandTaxespage.theadscrolls and buttons are fixed.QA Steps
For devices with width greater than
800pxMembers,Distance rates,Categories,TagsandTaxespage.For devices with width less than
800pxMembers,Distance rates,Categories,TagsandTaxespage.theadscrolls and buttons are fixed.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4