bug: directory view shows infinite loader when filtering users or searching
Describe the Bug
The Directory screen shows a constant loading indicator when filtering to "users" or entering a search query, and no results are displayed.
Steps to Reproduce
Open the Directory screen Tap the filter icon Select "Users" Or type a search query in the search box
Expected Behavior
Results should load and display Loading indicator should stop when results are fetched Search should return matching users
Actual Behavior
Loading indicator appears and never stops No results are displayed Search input doesn't return any results
Rocket.Chat Server Version
NA
Rocket.Chat App Version
4.68.0
Device Name
NA
OS Version
NA
Additional Context
No response
Hi @deepak0x, I have reviewed this issue and I think the loading state might not be getting cleared after users filter request resolves . I believe it is possibly a missing state update or API response handling. I would like to work on this issue and propose a fix. Hence could you please assign this issue to me?
Hi @deepak0x and maintainers 👋,
I’d like to work on this issue as well. From the description, it seems the loading state in the Directory screen is not being cleared correctly when:
- switching to the "Users" filter, or
- performing a search query
My plan is to(Approach):
- reproduce the issue locally
- trace the users filter / search request lifecycle
- ensure the loading state is properly reset once the API response (success or error) is received
If there’s no ongoing PR for this, I’ll proceed with investigating and propose a fix.
Thanks!
Hi @deepak0x , I’ve started working on this issue and will share a PR soon. Please let me know if anyone else is already working on it.
hey @Pallavi778 actually this issue only occur in open workspace not in custom workspace have to take more info from maintainers about it that's why i keep it open... Will work on it once maintainer give some views on this...
Also you can explore codebase and raise issues too
Thanks for the clarification @deepak0x.
Got it — I’ll look into the difference between open and custom workspaces on the Directory flow and keep an eye on maintainer feedback before proceeding further. Meanwhile, I’ll continue exploring the codebase and related permission handling.
Thanks!