[TS migration] Migrate 'ReportParticipants' page to TypeScript#34882
Conversation
| }; | ||
| type ReportParticipantsPageProps = ReportParticipantsPageOnyxProps & WithReportOrNotFoundProps; | ||
|
|
||
| type ParticipantData = { |
There was a problem hiding this comment.
I think there is already type Participant
There was a problem hiding this comment.
There is but it has a couple mismatches
There was a problem hiding this comment.
Present in ParticipantData and missing in Participant:
- displayName
- tooltipText
- participantsList
Present in Participant and missing in ParticipantData:
- firstName
- lastName
- phoneNumber
- searchText
- selected
| }; | ||
| type ReportParticipantsPageProps = ReportParticipantsPageOnyxProps & WithReportOrNotFoundProps; | ||
|
|
||
| type ParticipantData = { |
| }; | ||
|
|
||
| type ComponentProps = OnyxProps & { | ||
| type WithReportOrNotFoundProps = OnyxProps & { |
There was a problem hiding this comment.
Maybe we should rename OnyxProps too?
There was a problem hiding this comment.
Great idea, done!
Reviewer Checklist
Screenshots/Videos |
|
@JKobrynski Can you merge main to resolve conflicts? |
|
@jjcoffee done! |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #25187 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
✋ 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/hayata-suenaga in version: 1.4.34-0 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.4.34-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.34-1 🚀
|
| const participants = getAllParticipants(report, personalDetails, translate).map((participant) => ({ | ||
| ...participant, | ||
| isDisabled: ReportUtils.isOptimisticPersonalDetail(participant.accountID), | ||
| isDisabled: participant?.accountID ? ReportUtils.isOptimisticPersonalDetail(participant.accountID) : false, |
There was a problem hiding this comment.
Coming from https://github.com/Expensify/App/pull/35385/files#r1472924653:
Was there any reason to return false when participant.accountID is falsy?






Details
Fixed Issues
$ #25187
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop