[No QA] [TS Migration] Migrate 'ImageWithSizeCalculation.js' component to TypeScript#30179
Conversation
|
@fabioh8010 @blazejkustra i don't think this needs C+ and is already reviewed, do you need me to complete the checklist? |
|
@getusha Yes, we need you to complete the checklist! Thanks 😄 |
Reviewer Checklist
Screenshots/Videos |
| ); | ||
| ImageWithOnyx.resizeMode = RESIZE_MODES; | ||
|
|
||
| export {RESIZE_MODES}; |
There was a problem hiding this comment.
@pasyukevich Is there any reason we are exporting RESIZE_MODES from here again? why can't we use it from ./resizeModes?
There was a problem hiding this comment.
Yes, to keep approach that used before and have all that is needed for the component from one file
There was a problem hiding this comment.
@pasyukevich Files should be named after the component/function/constants they export, respecting the casing used for it. read more here
if there is no strong reason can we just use values from ./resizeModes everywhere? this will make it less confusing.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25028 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@srikarparsi bump! |
|
✋ 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 staging by https://github.com/srikarparsi in version: 1.3.96-6 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
|
🚀 Deployed to staging by https://github.com/srikarparsi in version: 1.3.98-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.98-5 🚀
|






Details
Fixed Issues
$ #25028
PROPOSAL:
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)/** 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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop