-
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 'KeyboardShortcut' lib to TypeScript #29338
[TS migration] Migrate 'KeyboardShortcut' lib to TypeScript #29338
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.
two NABs , but LGTM
@abdulrahuman5196 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] |
Hey @abdulrahuman5196, are you able to do the reviewer checklist for this PR? |
Yes. Will work on today |
Code looks good to me. Need to do some good amount of testing since its a common functionality. Will update here once done. |
@abdulrahuman5196 Hello! Are you working on the checklist? |
@BartoszGrajdek Sorry got couple of high priority issues last couple of days. Will be working on checklist today. |
Working on testing now. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-10-26.at.11.45.10.PM.mp4Android: mWeb ChromeScreen.Recording.2023-10-26.at.11.27.45.PM.mp4iOS: NativeScreen.Recording.2023-10-26.at.11.39.05.PM.mp4iOS: mWeb SafariScreen.Recording.2023-10-26.at.11.20.48.PM.mp4MacOS: Chrome / SafariScreen.Recording.2023-10-26.at.11.15.57.PM.mp4MacOS: DesktopScreen.Recording.2023-10-26.at.11.46.38.PM.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours.
🎀 👀 🎀
C+ Reviewed
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24920 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.3.93-0 🚀
|
const displayName = getDisplayName(keyCommandEvent.input, eventModifiers); | ||
|
||
// Loop over all the callbacks | ||
Object.values(eventHandlers[displayName]).every((callback) => { |
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.
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.
Any specific flow/screen you're seeing this?
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.
Happens on all platforms
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.
Here's simple repro step:
Screen.Recording.2023-10-30.at.9.12.47.PM.mov
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.
@blazejkustra can you please raise quick PR? This is now deployed to staging
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.
On it 👍
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.
@blazejkustra this is already fixed i think #30602
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.
Yep, I just noticed after merging the newest main, thanks!
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.93-1 🚀
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.3.94-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.3.94-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
Details
Migration of
KeyboardShortcut
to Typescript.Fixed Issues
$ #24920
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
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
web.mov
Mobile Web - Chrome
a-web.mov
Mobile Web - Safari
i-web.mp4
Desktop
dekstop.mov
iOS
ios.mp4
Android
android.mov