-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: room member search to use server data instead of local data #6938
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
Open
Rohit3523
wants to merge
26
commits into
develop
Choose a base branch
from
search-filter-fix
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+195
−74
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ea514b7
Search member in room using API
Rohit3523 fd7e0fe
Guard against out‑of‑order search responses
Rohit3523 ad736f7
Lint fix
Rohit3523 a3aeda5
chore: format code and fix lint issues [skip ci]
Rohit3523 3820bd7
merge search result
Rohit3523 f2edc75
use debounce hook
Rohit3523 ae0fbbc
Merge branch 'develop' into search-filter-fix
Rohit3523 d4839a8
Prevent stale member updates when the filter changes or clears
Rohit3523 cca7ef9
Merge branch 'search-filter-fix' of https://github.com/RocketChat/Roc…
Rohit3523 1492bec
Use members from state
Rohit3523 55cfd8b
Added E2E test for search member
Rohit3523 4f36a02
combine filter text with status filter
Rohit3523 cc8f8b4
test update
Rohit3523 cd9210a
Test update
Rohit3523 831d6d0
status filter is not using search text
Rohit3523 a0a2ec8
chore: format code and fix lint issues [skip ci]
Rohit3523 8bcb82c
Added state room in effect
Rohit3523 47da4ec
chore: code improvements
OtavioStasiak d852979
chore: format code and fix lint issues [skip ci]
OtavioStasiak 8a0316b
chore: code improvements
OtavioStasiak 98f0fad
Merge branch 'develop' into search-filter-fix
OtavioStasiak 2cf2053
chore: format code and fix lint issues [skip ci]
OtavioStasiak 806e79e
fix: remove duplicated fetch roles and remove members from state of u…
OtavioStasiak f207cb7
fix: remove duplicated useEffect and use primitive values in fetchRol…
OtavioStasiak 33265f0
chore: format code and fix lint issues [skip ci]
OtavioStasiak 503bc9f
fix: remove array from useEffect dependencies
OtavioStasiak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| appId: chat.rocket.reactnative | ||
| name: Search Member | ||
| onFlowStart: | ||
| - runFlow: '../../helpers/setup.yaml' | ||
| tags: | ||
| - test-13 | ||
|
|
||
| --- | ||
| - evalScript: ${output.user = output.utils.createUser()} | ||
|
|
||
| - runFlow: | ||
| file: '../../helpers/login-with-deeplink.yaml' | ||
| env: | ||
| USERNAME: ${output.user.username} | ||
| PASSWORD: ${output.user.password} | ||
|
|
||
| - runFlow: | ||
| file: '../../helpers/navigate-to-room.yaml' | ||
| env: | ||
| ROOM: 'general' | ||
| - tapOn: | ||
| id: room-header | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-actions-view' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: 'room-actions-members' | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-search' | ||
| timeout: 60000 | ||
|
|
||
| # should search in all users | ||
| - tapOn: | ||
| id: room-members-view-search | ||
| - inputText: rohit.bansal | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-item-rohit.bansal' | ||
| timeout: 60000 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing cases like search and filter. |
||
|
|
||
| # use online status and it should use the text filter | ||
| - tapOn: | ||
| id: room-members-view-filter | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-toggle-status-online' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: room-members-view-toggle-status-online | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'No members found' | ||
| timeout: 60000 | ||
|
|
||
| # use all status again and it should use text filter | ||
| - tapOn: | ||
| id: room-members-view-filter | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-toggle-status-all' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: room-members-view-toggle-status-all | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-item-rohit.bansal' | ||
| timeout: 60000 | ||
| - tapOn: | ||
| id: clear-text-input | ||
|
|
||
| - evalScript: ${output.secondUser = output.utils.createUser()} | ||
|
|
||
| # should search for new user in all list | ||
| - tapOn: | ||
| id: room-members-view-search | ||
| - inputText: ${output.secondUser.username} | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: 'room-members-view-item-${output.secondUser.username}' | ||
| timeout: 60000 | ||
|
|
||
| # Verify "No members found" message appears correctly when search returns no results | ||
| - tapOn: | ||
| id: room-members-view-search | ||
| - inputText: nonexistentuser12345 | ||
| - extendedWaitUntil: | ||
| visible: | ||
| text: 'No members found' | ||
| timeout: 60000 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.