-
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
##23220 WEB maintainVisibleContentPosition #28793
##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
maintainVisibleContentPosition
prop onScrollView
for 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android