chore: migrate withViewportOffsetTop.js class to function component#27492
chore: migrate withViewportOffsetTop.js class to function component#27492amyevans merged 4 commits into
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 |
|
🎯 @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 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
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