[CP Staging] fix select workspace request money#27868
Conversation
|
@s77rt I fixed the search by name, we use search text like create a group chat. |
|
@s77rt I tested on Web, desktop, safari, and mweb. Currently, I have an issue with my laptop, and now I'm having problems when building on native Android and iOS. You can help test it. |
| } | ||
| if (hasMatchedParticipant && (isValidEmail || isValidPhone)) { | ||
| if (hasMatchedParticipant) { | ||
| return ''; | ||
| } |
There was a problem hiding this comment.
I see an error for that, If we only search name something like "workpace" and select the ws. It's not email and phone
There was a problem hiding this comment.
Can you please attach a screenshot? That may be considerable as a bug
| searchTerm.trim(), | ||
| maxParticipantsReached, | ||
| _.some(participants, (participant) => participant.login.toLowerCase().includes(searchTerm.trim().toLowerCase())), | ||
| _.some(participants, (participant) => participant.searchText && participant.searchText.toLowerCase().includes(searchTerm.trim().toLowerCase())), |
There was a problem hiding this comment.
Is there left any case where searchText won't be set?
There was a problem hiding this comment.
I see a case, If we select a workspace and an account. then un select an account. and click workspace => the searchText will be null.
There was a problem hiding this comment.
Any idea why the searchText is null in this case?
|
Please mark this as ready for review so we can get this merged asap. |
|
@namhihi237 Can you please prioritize this as it's a deploy blocker |
|
Yes, I'm checking it why searchText null when choose the row selected before |
|
@s77rt Please help to check. |
|
@s77rt Sorry, I sent the video and comment above but for some reason it's not public, it's pending status Before Screen.Recording.2023-09-21.at.01.14.09.movAfter changed Screen.Recording.2023-09-21.at.01.15.31.mov |
|
I don't think that's necessary a bug, the search text is partial here, I think it's okay to revert that change |
|
Updated |
|
Yes, In the above case I mentioned, the search does not email or phone. |
|
It will be shown as not found because of the condition bypass this case: App/src/libs/OptionsListUtils.js Lines 1437 to 1441 in 94c07ea |
|
I see, I don't think this is a blocker then |
|
So we'll continue like this and it will be fixed in another one? |
Reviewer Checklist
Screenshots/Videos |
mountiny
left a comment
There was a problem hiding this comment.
Jumping in to get this CPed sooner than later
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] fix select workspace request money (cherry picked from commit e7bcd7f)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.72-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.72-11 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|








Details
Fixed Issues
$ #27864
PROPOSAL:
Tests
Offline tests
The same test
QA Steps
The same test
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
Web
Screen.Recording.2023-09-20.at.23.05.07.mov
Mobile Web - Chrome
RPReplay_Final1695226581.MP4
Mobile Web - Safari
RPReplay_Final1695226270.MP4
Desktop
Screen.Recording.2023-09-20.at.23.07.18.mov
iOS
Android