Skip to content

fix: Debounce metadata search filter to prevent UI freezing#1163

Open
Exotic209093 wants to merge 1 commit into
tprouvot:releaseCandidatefrom
Exotic209093:fix/metadata-search-debounce
Open

fix: Debounce metadata search filter to prevent UI freezing#1163
Exotic209093 wants to merge 1 commit into
tprouvot:releaseCandidatefrom
Exotic209093:fix/metadata-search-debounce

Conversation

@Exotic209093

Copy link
Copy Markdown

Summary

  • Adds a 150ms debounce to the metadata filter input in the Download Metadata page
  • The filter value updates immediately (so the input stays responsive), but the expensive DOM filtering is deferred until the user pauses typing

Root Cause

When many metadata sections are expanded (e.g., CustomMetadata + ApexClass), filtering runs on every keystroke and blocks the main thread, causing the input to freeze and typed characters to appear in bursts.

Test Plan

  • Open Download Metadata, expand several large sections (e.g., CustomMetadata, ApexClass)
  • Type quickly in the search filter — input should remain responsive
  • Verify filtering still works correctly after the debounce delay
  • Clear the filter and verify all items reappear

Closes #959

Add a 150ms debounce to the metadata filter input so that filtering
only runs after the user pauses typing. This prevents the page from
freezing on every keystroke when many metadata items are expanded.

Closes tprouvot#959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat]: Search in Download Metadata freezes with each new key press

1 participant