-
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
[TS migration] Migrate 'useKeyboardState.js' hook to TypeScript #29267
[TS migration] Migrate 'useKeyboardState.js' hook to TypeScript #29267
Conversation
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.
Left comments.
Co-authored-by: Michael (Mykhailo) Kravchenko <[email protected]>
…hoc' into 24955-migrate-withKeyboardState-hoc
# Conflicts: # src/components/withKeyboardState.tsx # src/hooks/useKeyboardState.js
Why is this No QA? Keyboard handling is important part of the app. Please add Test/QA step at least for one page affected by this change |
@fvlvte Please add test steps for this one! |
Added steps @fabioh8010 @situchan for ScreenWrapper that is basically biggest user of this hook. |
@situchan Bump |
will review today. please merge main |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24941 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
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.
Re-approving to get engineer review
@lakchote kind bump 🙂 |
testing |
Tests well! |
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.
@fvlvte One comment, I think the TODO is too generic and also I see that its been in place for couple months so is it indeed still pending?
src/components/withKeyboardState.tsx
Outdated
isKeyboardShown: boolean; | ||
}; | ||
|
||
// TODO: Remove - left for backwards compatibility with existing components. |
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.
Is this still required, if so, can you link an issue/ PR which is tied to this?
Let me double check |
Done @mountiny |
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.
Appreciate it!
✋ 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/mountiny in version: 1.4.21-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
Details
Migrated useKeyboardState hook and it's dependency to TypeScript.
Fixed Issues
$ #24941
$ #24955
PROPOSAL: N/A
Tests
Offline tests
N/A
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
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
web-ff.mov
Mobile Web - Chrome
web-chrome.mov
Mobile Web - Safari
web-safari.mov
Desktop
electron.mov
iOS
ios17.mov
Android
android.mov