[TS migration] Migrate 'AttachmentModal.js' component to TypeScript#33929
Conversation
…s-migration/AttachmentsModal
| canEditReceipt: PropTypes.bool, | ||
| }; | ||
| /** A function as a child to pass modal launching methods to */ | ||
| children?: React.FC<ChildrenProps>; |
There was a problem hiding this comment.
Could you test if this prop works when using the component?
There was a problem hiding this comment.
@fabioh8010 what do you mean by that?
If that the prop have some values when using component ?
or just if this component work when we pass children to it?
overall both cases I think yes :D

There was a problem hiding this comment.
I meant the TS part, e.g. Use this component in a new file and pass the children props, or convert a component that use this one to TS and see if this prop is properly typed.
blazejkustra
left a comment
There was a problem hiding this comment.
Minor comments, LGTM!
…s-migration/AttachmentsModal
Reviewer Checklist
Screenshots/VideosAndroid: NativeattachmentModalAndroid.mp4Android: mWeb ChromeattachmentModalAndroidChrome.mp4iOS: NativeattachmentModaliOS.mp4iOS: mWeb SafariattachmentModaliOSSafari.mp4MacOS: Chrome / SafariattachmentModalChrome.mp4MacOS: DesktopattachmentModalDesktop.mp4 |
|
@c3024 comments resolved 😄 |
|
I am not able to add a jpeg attachment from composer. It works fine on main. Are you able to add attachment from composer? Screen.Recording.2024-01-23.at.4.10.28.PM.mov |
…s-migration/AttachmentsModal
…s-migration/AttachmentsModal
|
@c3024 all resolved, please recheck 😄 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25130 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
blimpich
left a comment
There was a problem hiding this comment.
Looks good, one comment, if that is addressed then I think we're good to merge.
…s-migration/AttachmentsModal
|
@blimpich its fixed, thanks ! |
…s-migration/AttachmentsModal
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.33-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 1.4.34-0 🚀
|
|
🚀 Deployed to staging by https://github.com/blimpich in version: 1.4.34-0 🚀
|
| if (!report) { | ||
| return undefined; | ||
| } |
There was a problem hiding this comment.
This removal caused regression (deploy blocker)
@kubabutkiewicz can you please check this urgently?
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.34-1 🚀
|

Details
Fixed Issues
$ #25130
Tests
Start a chat
Click + icon
Add Attachment
Attachment should be sent
Open RHN
Go to your profile
Click on Avatar
Select new photo
Avatar should be changed
Offline tests
QA Steps
Start a chat
Click + icon
Add Attachment
Attachment should be sent
Open RHN
Go to your profile
Click on Avatar
Select new photo
Avatar should be changed
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
mchrome.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
msafari.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4