[TS migration] Migrate 'KeyboardShortcut' lib to TypeScript#29338
[TS migration] Migrate 'KeyboardShortcut' lib to TypeScript#29338rlinoz merged 5 commits intoExpensify:mainfrom
Conversation
kubabutkiewicz
left a comment
There was a problem hiding this comment.
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 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
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.
Any specific flow/screen you're seeing this?
There was a problem hiding this comment.
Here's simple repro step:
Screen.Recording.2023-10-30.at.9.12.47.PM.mov
There was a problem hiding this comment.
@blazejkustra can you please raise quick PR? This is now deployed to staging
There was a problem hiding this comment.
@blazejkustra this is already fixed i think #30602
There was a problem hiding this comment.
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
KeyboardShortcutto Typescript.Fixed Issues
$ #24920
PROPOSAL: N/A
Tests
Offline tests
N/A
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
web.mov
Mobile Web - Chrome
a-web.mov
Mobile Web - Safari
i-web.mp4
Desktop
dekstop.mov
iOS
ios.mp4
Android
android.mov