Skip to content

fix: debounce debug log preview filter to keep focus while typing#1172

Open
Exotic209093 wants to merge 1 commit into
tprouvot:releaseCandidatefrom
Exotic209093:fix/debug-log-filter-debounce
Open

fix: debounce debug log preview filter to keep focus while typing#1172
Exotic209093 wants to merge 1 commit into
tprouvot:releaseCandidatefrom
Exotic209093:fix/debug-log-filter-debounce

Conversation

@Exotic209093

Copy link
Copy Markdown

Summary

  • keeps the Debug Log Viewer custom filter input focused while typing
  • debounces preview filter application instead of reprocessing the preview on every keystroke
  • keeps the live input value separate from the applied filter and cancels stale queued updates

How it works

When the user types in the custom filter box, the textbox value updates immediately, but the expensive preview filtering is only applied after a short debounce. The filter input is no longer disabled during preview filter processing, so focus is not dropped mid-typing.

Test Plan

  • Open Logs Viewer (beta)
  • Open any log preview
  • Type continuously in the Custom Filter field
  • Verify the input keeps focus and the cursor does not jump out while typing
  • Verify the selected filter template still updates the preview correctly
  • Close and reopen a preview to confirm the filter resets cleanly

Closes #1063

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.

[bug]:Debug Log Viewer flickers while typing in custom filter

1 participant