[TS migration] Migrate 'LHNOptionsList' component to TypeScript#33108
Conversation
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
…essableWithSecondaryInteraction, and SidebarUtils
| // Ensure that we blur the composer when opening context menu, so that only one component is focused at a time | ||
| if (DomUtils.getActiveElement()) { | ||
| DomUtils.getActiveElement().blur(); | ||
| (DomUtils.getActiveElement() as HTMLElement | TextInput)?.blur(); |
There was a problem hiding this comment.
Is it possible to update DomUtils.getActiveElement() return type to escape assertion?
There was a problem hiding this comment.
I think its not possible (or I dont know how to do it)
const getActiveElement: GetActiveElement = () => document.activeElement;
and activeElement is returning Element | null
…s-migration/LHNOptionsList/component
Fix type error in SidebarUtils
| isFocused, | ||
| fullReport, | ||
| isFocused = false, | ||
| fullReport = null, |
There was a problem hiding this comment.
Do we need null default values?
There was a problem hiding this comment.
I think its not needed , will test without that
blazejkustra
left a comment
There was a problem hiding this comment.
One minor comment, LGTM!
| preferredLocale = CONST.LOCALES.DEFAULT, | ||
| comment, | ||
| policy, | ||
| policy = null, |
There was a problem hiding this comment.
No need for null default values:
| policy = null, | |
| policy, |
…s-migration/LHNOptionsList/component
|
@rushatgabhane 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] |
…s-migration/LHNOptionsList/component
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-17.at.12.25.37.movAndroid: mWeb ChromeScreen.Recording.2024-01-17.at.12.24.27.moviOS: NativeScreen.Recording.2024-01-17.at.12.25.52.moviOS: mWeb SafariScreen.Recording.2024-01-17.at.12.24.02.movMacOS: Chrome / SafariScreen.Recording.2024-01-17.at.12.22.09.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25149 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
…s-migration/LHNOptionsList/component
…s-migration/LHNOptionsList/component
|
Hi @mountiny ! can you assign Expensify engineer to this PR? I think the automation didnt work. |
|
@kubabutkiewicz merge conflicts |
…s-migration/LHNOptionsList/component
|
✋ 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 production by https://github.com/thienlnam in version: 1.4.31-7 🚀
|

Details
Fixed Issues
$ #25149
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.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
Android: Native
android.mp4
Android: mWeb Chrome
iOS: Native
ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4