Migrate SearchFiltersParticipantsSelector and SearchFiltersChatsSelector#81416
Migrate SearchFiltersParticipantsSelector and SearchFiltersChatsSelector#81416zfurtak wants to merge 12 commits intoExpensify:mainfrom
SearchFiltersParticipantsSelector and SearchFiltersChatsSelector#81416Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
| reportAttributesDerived, | ||
| ); | ||
| sections.push(formatResults.section); | ||
| sections.push({...formatResults.section, title: undefined, shouldShow: true}); |
There was a problem hiding this comment.
This is temporary so the type is okay, will be changed while migrating NewChatPage
| ); | ||
|
|
||
| newSections.push(formatResults.section); | ||
| newSections.push({...formatResults.section, title: undefined, shouldShow: true}); |
There was a problem hiding this comment.
This is temporary so the type is okay, will be changed while migrating MoneyRequiestParticipantsSelector
| reportAttributesDerived, | ||
| ); | ||
| newSections.push(formatResults.section); | ||
| newSections.push({...formatResults.section, title: undefined, shouldShow: true}); |
There was a problem hiding this comment.
This is temporary so the type is okay, will be changed while migrating MoneyRequestAccountantSelector
| * Get the participant option for a report. | ||
| */ | ||
| function getParticipantsOption(participant: OptionData | Participant, personalDetails: OnyxEntry<PersonalDetailsList>): Participant { | ||
| function getParticipantsOption(participant: OptionData | Participant, personalDetails: OnyxEntry<PersonalDetailsList>): Participant & {keyForList: string} { |
There was a problem hiding this comment.
Added & {keyForList: string} here cause changing this type in Participant cause over 150 ts errors and I don't think it's worth changing and fixing som many cases.
Explanation of Change
In this PR I migrate 2 components:
SearchFiltersParticipantsSelectorandSearchFiltersChatsSelector, because I had to change some typed that are shared between them.These 2 selectors are very similar imo, so it shouldn't be problematic.
Note
#80898 should be merged first
Fixed Issues
$ #65658
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari