-
Notifications
You must be signed in to change notification settings - Fork 3k
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 'FormSubmit' component to TypeScript #31137
[TS migration] Migrate 'FormSubmit' component to TypeScript #31137
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
0c63f6d
to
1951756
Compare
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-27.at.10.55.36.PM.movAndroid: mWeb ChromeScreen.Recording.2023-11-27.at.10.34.59.PM.moviOS: NativeScreen.Recording.2023-11-27.at.10.53.01.PM.moviOS: mWeb SafariScreen.Recording.2023-11-27.at.10.20.24.PM.movMacOS: Chrome / SafariScreen.Recording.2023-11-27.at.10.14.30.PM.movMacOS: DesktopScreen.Recording.2023-11-27.at.10.42.12.PM.mov |
@@ -6,7 +7,7 @@ import CONST from '@src/CONST'; | |||
* Check if the Enter key was pressed during IME confirmation (i.e. while the text is being composed). | |||
* See {@link https://en.wikipedia.org/wiki/Input_method} | |||
*/ | |||
const isEnterWhileComposition = (event: KeyboardEvent): boolean => { | |||
const isEnterWhileComposition = (event: KeyboardEvent | React.KeyboardEvent): boolean => { |
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't we just use React.KeyboardEvent
alone?
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.
No, we need both of them to satisfy all cases
@pasyukevich unit tests are failing. |
dee7c0d
to
7e4b19b
Compare
rebased to the latest main |
@getusha All tests now succeed |
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
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25069 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.
lgtm
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/srikarparsi in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Details
Fixed Issues
$ #25069
PROPOSAL:
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
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
Android: Native
android-native-converted.webm
Android: mWeb Chrome
android-web-converted.webm
iOS: Native
ios-native-converted.mp4
iOS: mWeb Safari
ios-web-converted.mp4
MacOS: Chrome / Safari
desktop-web-converted.mov
MacOS: Desktop
desktop-native-converted.mov