-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix/32635: Clear search input once invite user #32638
Fix/32635: Clear search input once invite user #32638
Conversation
@aimane-chnaif 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] |
@@ -126,6 +127,7 @@ class WorkspaceInviteMessagePage extends React.Component { | |||
Keyboard.dismiss(); | |||
Policy.addMembersToWorkspace(this.props.invitedEmailsToAccountIDsDraft, this.state.welcomeNote, this.props.route.params.policyID); | |||
Policy.setWorkspaceInviteMembersDraft(this.props.route.params.policyID, {}); | |||
SearchInputManager.searchInput = ''; |
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.
This solution doesn't work for me
Screen.Recording.2023-12-07.at.11.09.35.AM.mov
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.
Yeah. I `ve moved the PR to "Draft" and implementing a new solution
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.
@aimane-chnaif Updated PR. Now it is ready to review
@@ -77,9 +77,6 @@ function WorkspaceInvitePage(props) { | |||
}; | |||
|
|||
useEffect(() => { | |||
if (!SearchInputManager.searchInput) { | |||
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.
yeah good catch
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
This is not forwarding the search to the next page for me anymore 🤔 |
@rlinoz Can you share the screenshot? |
Oh I am sorry, I was testing for rooms, and this is only for workspace. Which makes me think we should have this behavior for rooms and group chats as well. But yeah, it is working, sorry. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…dded-user-appear-in-the-find-member-disappear Fix/32635: Clear search input once invite user (cherry picked from commit de744ef)
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.9-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.9-5 🚀
|
Details
Fixed Issues
$ #32635
PROPOSAL:
Tests
Offline tests
QA Steps
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)StyleUtils.getBackgroundAndBorderStyle(theme.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screencast.from.07-12-2023.16.51.22.webm
MacOS: Desktop