-
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
chore: migrate withViewportOffsetTop.js class to function component #27492
chore: migrate withViewportOffsetTop.js class to function component #27492
Conversation
This is still in need of a cross-agency Reviewer checklist, will wait to merge until that's set! |
C+ can review and checklist for function component migration PRs. |
Ah right, thanks for the reminder @situchan! @thesahindia you're the assigned C+ on the issue, are you able to review? |
Yes, I will test it today. |
Hey @teneeto, can you please add some kind of test steps? |
…ate-with-viewport-offset-top-file-to-function-component
@thesahindia I have updated the description with the reference link of the initial PR description that authored/created the |
It looks like now we don't ask for the password while trying to set the payment method as default so there is no input field and the keyboard can't be opened, so we can't follow these steps. We are using The code changes looks good to me but I wanted to check if things are working fine. Not sure what to do next. cc: @amyevans |
let me take a look at another possible qa step. |
Note: Notice how the keyboard pushes the save button rather than overlap. Screen.Recording.2023-10-02.at.05.41.54.mov |
Let me know if this works for you and I'll update the test/qa steps. |
Just a friendly reminder! @thesahindia can we kindly have a look at this again with the updated qa steps. |
@teneeto, sorry but I am little confused. We are using |
Ayye! Let me check again.... |
@thesahindia this seem to be the only visible way to test this. But again, since the ViewPortOffsetTop is used within EmojiPicker, the component is called each time you're in a chat screen. can tell visibly exactly what it solves, but i still think it's part of a solution as referenced here. @amyevans @thesahindia how do we proceed with this? |
@amyevans, thoughts?? |
If you read the proposal linked from the PR that implemented this component, it says:
If you then follow the git blame history, you can get to this PR: #10208, where the test steps are:
mWeb Safari seems to be the crucial platform to check for a regression in that case. With With |
Excellent, thanks! Testing it now. |
Reviewer Checklist
Screenshots/Videos |
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!
🎯 @thesahindia, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #29392. |
@teneeto, please update the testing/QA steps. |
Steps Updated! |
✋ 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/amyevans in version: 1.3.84-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.84-10 🚀
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.85-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.85-4 🚀
|
Details
This change is made to migrate the withViewportOffsetTop.js from class to a function component
Fixed Issues
$: 16224
PROPOSAL: 16224
Tests
Offline tests
QA Steps
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
Screen.Recording.2023-09-07.at.02.23.20.mov
Mobile Web - Chrome
Screen.Recording.2023-09-07.at.02.24.24.mov
Mobile Web - Safari
Screen.Recording.2023-09-07.at.02.22.03.mov
Desktop
Screen.Recording.2023-09-07.at.02.25.58.mov
iOS
Screen.Recording.2023-09-07.at.02.17.55.mov
Android
Screen.Recording.2023-09-07.at.02.40.09.mov