20354 money request participants selector list refactoring#32692
Conversation
Co-authored-by: Agata Kosior <agata.kosior57@gmail.com>
…rticipantsSelector.js Co-authored-by: VickyStash <vikstash@gmail.com>
Co-authored-by: Michael (Mykhailo) Kravchenko <rezkiy37@gmail.com>
|
@rushatgabhane 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-10.at.12.12.59.moviOS: NativeScreen.Recording.2024-01-10.at.12.18.32.movMacOS: Chrome / SafariScreen.Recording.2024-01-08.at.18.02.46.mov |
|
@rushatgabhane fixed conflicts |
|
@lukemorawski and @rushatgabhane , Could you please make sure that the author and reviewer checklists pass? |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
hey @lukemorawski - it seems like I'm also noticing a flicker of the skeleton appearing, which doesn't show up in the SearchPage or NewChatPage, not sure if this is a feature or bug. Screen.Recording.2024-01-12.at.01.57.42.mov |
|
@youssef-lr on it! |
|
@youssef-lr can you create an ticket from this comment, or should I just create a new PR and mention it here? |
|
The latter seems fine! |
|
@youssef-lr here's the quick fix PR |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.25-0 🚀
|
| maxParticipantsReached, | ||
| _.some(participants, (participant) => participant.searchText.toLowerCase().includes(searchTerm.trim().toLowerCase())), | ||
| ), | ||
| [maxParticipantsReached, newChatOptions.personalDetails.length, newChatOptions.recentReports.length, newChatOptions.userToInvite, participants, searchTerm], |
There was a problem hiding this comment.
This logic is crashing...when I select more than 5 participants on request money Can not read personalDetails of undefined.
There was a problem hiding this comment.
any steps to reproduce the crash? cause I had no crashes at all
There was a problem hiding this comment.
- Request money.
- set 7 $.
- Select 8 participants.
- Notice the crash.
There was a problem hiding this comment.
yep, got it. PR with a fix is on it's way. Should I just mention it here and tag you in the comment, or will there be a new ticket for it?
There was a problem hiding this comment.
You can create the PR. I will mention the same on the current issue.
|
@parasharrajat here's the quick fix PR #34587 |
|
Thank you @lukemorawski @parasharrajat edit: all done and merged |
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.25-10 🚀
|



Details
This PR refactors the
MoneyRequestParticipantSelectorandMoneyRequestParticipantPageto use new<SelectionList />component.Some other changes had been made, like moving some logic to
useMemohooks instead of invaliduseEffect->useStatepattern.A new param has been added to
<SelectionList />to allow it to display a component on the right hand side of each list item. This param allows to pass a react node or a function that will render a component.Fixed Issues
$ #20354
PROPOSAL: no proposal (draft pr)
Tests
same as QA steps
Verify that no errors appear in the JS console
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)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