[TS Migration] Remove EmptyObject type#42851
Conversation
…on/remove-empty-object
|
@mkhutornyi 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] |
blazejkustra
left a comment
There was a problem hiding this comment.
Looks very promising! 🚀
How about EmptyObject usage in src/components/PopoverProvider/types.ts and src/hooks/useKeyboardShortcut.ts?
|
@tienifr Could you please explain why |
|
@tienifr bump, and we have conflicts now |
…on/remove-empty-object
|
Do we need to write a test to make sure no one would use it in the future? |
|
These lints are not related to this PR. |
…on/remove-empty-object
|
Looks good so far. @tienifr please add screen recordings, along with fixing conflict. |
…on/remove-empty-object
…on/remove-empty-object
…on/remove-empty-object
|
@mkhutornyi Updated! Please prioritize this because we get more and more conflicts every day. |
|
Looks like there are more conflicts already @tienifr |
…on/remove-empty-object
|
@mkhutornyi All done. Same reminder above ^. |
|
@mkhutornyi please let me know after you review so that we can merge before there's conflicts again |
|
Looks like there's a conflict but @mkhutornyi please review/add screenshots anyway. The conflicts look relatively small and I will also review them before merging after @tienifr fixes. |
|
@mkhutornyi is there any update here? |
|
I've been testing various flows. Will complete soon |
…on/remove-empty-object
mkhutornyi
left a comment
There was a problem hiding this comment.
Looks good except conflict
|
Thanks @mkhutornyi, I know screenshots/videos are a little difficult for this one but if you could add some type of screenshots that would just help check off the requirement for this. @tienifr, I'm reviewing now but if you could fix the conflict whenever you have a chance that would be great. I think you might just be able to replace the {} with null. |
There was a problem hiding this comment.
This looks good to me as well apart from the conflict. Thanks everyone! @tienifr please let me know once you get around to resolving the conflict and I can re-approve and merge. There seems to be a couple more now.
|
On it. |
…on/remove-empty-object
|
✋ 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/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|

Details
This PR investigates and removes usages of
EmptyObjecttype.Fixed Issues
$ #39124
PROPOSAL:
Tests
Offline tests
NA
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
video_2024-06-21_16-53-53.mp4
Android: mWeb Chrome
video_2024-06-21_16-53-50.mp4
iOS: Native
Untitled.mov
iOS: mWeb Safari
Screen.Recording.2024-06-21.at.16.25.38-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-21.at.16.07.58-compressed.mov
MacOS: Desktop
Screen.Recording.2024-06-21.at.16.15.22-compressed.mov