RocketChat / RocketChat/Rocket.Chat
WebDAV file picker search is not debounced from user input (debounced value always empty)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Issue Title
WebDAV file picker search is not debounced from user input (debounced value always empty)
Problem
In the WebDAV file picker modal, the search input state is not correctly connected to the debounced value used for filtering.
Current code uses:
const [filterText, setFilterText] = useState('');
const debouncedFilter = useDebouncedValue('', 500);So even though filterText updates on every keystroke, debouncedFilter always stays ''.
Impact
- Search/filter behavior is incorrect in the WebDAV file picker.
- Typed text does not properly drive filtered results.
- Users may think search is broken or inconsistent.
Root Cause
useDebouncedValue is called with a constant empty string instead of the actual input state (filterText).
Proposed Fix
Change debounce source from '' to filterText:
const debouncedFilter = useDebouncedValue(filterText, 500);## Expected Result
- Search input updates immediately.
- Filtering updates after debounce delay (500ms).
- File list filtering behaves correctly and predictably.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the WebDAV file picker modal and inspect the useDebouncedValue call alongside the filterText state. Change the debounce input to the user-entered state, then verify that filtering updates after 500ms and that the file list reflects the search text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100