-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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. |
src/libs/OptionsListUtils.js
Outdated
if (hasMatchedParticipant && (isValidEmail || isValidPhone)) { | ||
if (hasMatchedParticipant) { | ||
return ''; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please attach a screenshot? That may be considerable as a bug
@@ -223,7 +232,7 @@ function MoneyRequestParticipantsSelector({ | |||
Boolean(newChatOptions.userToInvite), | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there left any case where searchText won't be set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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