-
Couldn't load subscription status.
- Fork 3.4k
##23220 WEB maintainVisibleContentPosition #28793
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
##23220 WEB maintainVisibleContentPosition #28793
Conversation
…pensify#23220-web-adjustForMaintainVisibleContentPosition
…pensify#23220-web-adjustForMaintainVisibleContentPosition
1beed0d to
3c5d279
Compare
…ntPosition' of https://github.com/margelo/expensify-app-fork into feat/#Expensify#23220-web-adjustForMaintainVisibleContentPosition
…ntPosition' of https://github.com/margelo/expensify-app-fork into feat/#Expensify#23220-web-adjustForMaintainVisibleContentPosition
…pensify#23220-web-adjustForMaintainVisibleContentPosition
|
@thienlnam Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Should we hold on merging this until the rnw bump is merged then? EDIT: Actually, this doesn't add any new functionality with this list so it doesn't make a difference |
| @@ -0,0 +1,205 @@ | |||
| /* eslint-disable es/no-optional-chaining, es/no-nullish-coalescing-operators, react/prop-types */ | |||
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.
Can we try to resolve some of these lints instead of just disabling them? Or you could write this in TS if you'd like
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.
I wanted to keep the code as close as possible as the PR it is based on so I disabled the lint rules instead of trying to fix it. I think this is ok since this code is temporary until proper maintainVisibleContentPosition is merged in rn-web.
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.
Cool thanks for the context - agree with that
|
Looks like we have more lint checks failing though |
|
@thienlnam do you think we should ask for more review before merging this? I just want to push it forward. |
|
Can you run npm run prettier and push the changes? It's good to go but is failing lint checks so I haven't merged it yet |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@thienlnam looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Pref tests failing already / this doesn't add any code that is in use |
|
✋ 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/thienlnam in version: 1.3.96-0 🚀
|
|
Why did we not have a C+ review on this one, seems like there are some regressions which could have been tested, lets make sure we try to always use the C+ help whenever its a PR changing more things or some lower level stuff 🙇 |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
|
FYI we ended up reverting this as it was causing multiple deploy blockers. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
This implements the
maintainVisibleContentPositionprop onScrollViewfor WEB(https://reactnative.dev/docs/scrollview#maintainvisiblecontentposition), as well as normalizing the scrolling behavior when adding items at the top of a ScrollView.
Details
Upstream PR: necolas/react-native-web#2588
Fixed Issues
$ #23220
PROPOSAL:
Tests
Offline tests
QA Steps
As we don't have this functionality in the app, we can't test it directly. The testing goal is to use the chat list and verify that the scrolling direction is correct. Ensure that the copying process works as expected and check if the styles are correct (with nothing inverted)
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android